Class: Api::V2::AliquotResource
- Inherits:
-
BaseResource
- Object
- JSONAPI::Resource
- BaseResource
- Api::V2::AliquotResource
- Defined in:
- app/resources/api/v2/aliquot_resource.rb
Overview
Access this resource via the /api/v2/aliquots/
endpoint.
Provides a JSON:API representation of Aliquot, which represents a specific portion of material within a liquid. This material could be the DNA of a sample, or it might be a library (a combination of the DNA sample and a tag).
}
For more information about JSON:API, see the JSON:API Specifications or the JSONAPI::Resources package, which implements JSON:API for Sequencescape.
Instance Attribute Summary collapse
-
#insert_size_to ⇒ Integer?
The upper bound of the insert size range for sequencing.
-
#library ⇒ LibraryResource
The library associated with this aliquot.
-
#library_type ⇒ String
The type of library associated with this aliquot.
-
#project ⇒ ProjectResource
The project this aliquot belongs to.
-
#receptacle ⇒ ReceptacleResource
The receptacle (well or tube) containing this aliquot.
-
#request ⇒ RequestResource
The request associated with this aliquot.
-
#sample ⇒ SampleResource
The sample that this aliquot represents.
-
#study ⇒ StudyResource
The study associated with this aliquot.
-
#suboptimal ⇒ Boolean
Indicates whether this aliquot is considered suboptimal.
-
#tag ⇒ TagResource
The primary tag associated with this aliquot.
-
#tag2 ⇒ TagResource
The secondary tag associated with this aliquot.
-
#tag2_index ⇒ Integer?
deprecated
Deprecated.
Use #tag2 instead.
-
#tag2_oligo ⇒ String?
deprecated
Deprecated.
Use #tag2 instead.
-
#tag_index ⇒ Integer?
deprecated
Deprecated.
Use #tag instead.
-
#tag_oligo ⇒ String?
deprecated
Deprecated.
Use #tag instead.
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
#insert_size_to ⇒ Integer?
Returns The upper bound of the insert size range for sequencing.
86 |
# File 'app/resources/api/v2/aliquot_resource.rb', line 86 attribute :insert_size_to, write_once: true |
#library ⇒ LibraryResource
Returns The library associated with this aliquot.
122 |
# File 'app/resources/api/v2/aliquot_resource.rb', line 122 has_one :library |
#library_type ⇒ String
Returns The type of library associated with this aliquot.
82 |
# File 'app/resources/api/v2/aliquot_resource.rb', line 82 attribute :library_type, write_once: true |
#project ⇒ ProjectResource
Returns The project this aliquot belongs to.
98 |
# File 'app/resources/api/v2/aliquot_resource.rb', line 98 has_one :project |
#receptacle ⇒ ReceptacleResource
Returns The receptacle (well or tube) containing this aliquot.
110 |
# File 'app/resources/api/v2/aliquot_resource.rb', line 110 has_one :receptacle |
#request ⇒ RequestResource
Returns The request associated with this aliquot.
106 |
# File 'app/resources/api/v2/aliquot_resource.rb', line 106 has_one :request |
#sample ⇒ SampleResource
Returns The sample that this aliquot represents.
102 |
# File 'app/resources/api/v2/aliquot_resource.rb', line 102 has_one :sample |
#study ⇒ StudyResource
Returns The study associated with this aliquot.
94 |
# File 'app/resources/api/v2/aliquot_resource.rb', line 94 has_one :study |
#suboptimal ⇒ Boolean
Returns Indicates whether this aliquot is considered suboptimal.
78 |
# File 'app/resources/api/v2/aliquot_resource.rb', line 78 attribute :suboptimal, write_once: true |
#tag ⇒ TagResource
Returns The primary tag associated with this aliquot.
114 |
# File 'app/resources/api/v2/aliquot_resource.rb', line 114 has_one :tag |
#tag2 ⇒ TagResource
Returns The secondary tag associated with this aliquot.
118 |
# File 'app/resources/api/v2/aliquot_resource.rb', line 118 has_one :tag2 |
#tag2_index ⇒ Integer?
Use #tag2 instead.
This attribute is read-only; the write_once
functionality is unimplemented.
Retrieves the index of the secondary tag.
74 |
# File 'app/resources/api/v2/aliquot_resource.rb', line 74 attribute :tag2_index, write_once: true |
#tag2_oligo ⇒ String?
Use #tag2 instead.
This attribute is read-only; the write_once
functionality is unimplemented.
Retrieves the oligo sequence of the secondary tag.
68 |
# File 'app/resources/api/v2/aliquot_resource.rb', line 68 attribute :tag2_oligo, write_once: true |
#tag_index ⇒ Integer?
Use #tag instead.
This attribute is read-only; the write_once
functionality is unimplemented.
Retrieves the index of the primary tag.
62 |
# File 'app/resources/api/v2/aliquot_resource.rb', line 62 attribute :tag_index, write_once: true |
#tag_oligo ⇒ String?
Use #tag instead.
This attribute is read-only; the write_once
functionality is unimplemented.
Retrieves the oligo sequence of the primary tag.
56 |
# File 'app/resources/api/v2/aliquot_resource.rb', line 56 attribute :tag_oligo, write_once: true |