Class: Api::V2::RequestMetadataResource
- Inherits:
-
BaseResource
- Object
- JSONAPI::Resource
- BaseResource
- Api::V2::RequestMetadataResource
- Defined in:
- app/resources/api/v2/request_metadata_resource.rb
Overview
Figure out how to send a POST for a request with request metadata association. Currently, it is possible to create a request and request metadata seperately, but they are not associated with each other. How do you create the association, either in one request or after the individual requests?
Access this resource via the /api/v2/request_metadata/
endpoint.
Provides a JSON:API representation of Metadata::Metadata. which is a class derived from app/models/metadata.rb
The RequestMetadataResource provides metadata information for requests, specifically including details like number_of_pools
and cells_per_chip_well
, which are critical for the scRNA Core pipeline. It is associated with a request
.
For more details on JSON:API, see the JSON:API Specifications or check out the JSONAPI::Resources package for Sequencescape's implementation.
Instance Attribute Summary collapse
-
#allowance_band ⇒ String
readonly
The allowance_band requested in the Submission.
-
#cells_per_chip_well ⇒ Int
The cells_per_chip_well requested in the Submission.
-
#number_of_pools ⇒ Int
The number_of_pools requested in the Submission.
Method Summary
Methods inherited from BaseResource
apply_includes, creatable_fields, default_includes, #fetchable_fields, inclusions, resolve_relationship_names_to_relations, updatable_fields
Instance Attribute Details
#allowance_band ⇒ String (readonly)
Returns the allowance_band requested in the Submission. As used in the scRNA Core pipeline, it is specified at the Study-Project level: it will have the same value for all Requests that share the same Study and Project.
91 |
# File 'app/resources/api/v2/request_metadata_resource.rb', line 91 attribute :allowance_band, read_only: true |
#cells_per_chip_well ⇒ Int
Returns the cells_per_chip_well requested in the Submission. As used in the scRNA Core pipeline, it is specified at the Study-Project level: it will have the same value for all Requests that share the same Study and Project. It is used for volume calculations for pooling.
84 |
# File 'app/resources/api/v2/request_metadata_resource.rb', line 84 attribute :cells_per_chip_well, write_once: true |
#number_of_pools ⇒ Int
Returns the number_of_pools requested in the Submission. As used in the scRNA Core pipeline, it is specified at the Study-Project level: it will have the same value for all Requests that share the same Study and Project. It is used in the pooling algorithm.
76 |
# File 'app/resources/api/v2/request_metadata_resource.rb', line 76 attribute :number_of_pools, write_once: true |