Class: V1::Ont::RunResource
- Inherits:
-
JSONAPI::Resource
- Object
- JSONAPI::Resource
- V1::Ont::RunResource
- Defined in:
- app/resources/v1/ont/run_resource.rb
Overview
Access this resource via the /v1/ont/runs/
endpoint.
This resource represents a sequencing run for the Oxford Nanopore Technologies (ONT) platform. It provides a JSON:API representation of Ont::Run.
Attributes:
-
experiment_name: The name of the experiment.
-
state: The state of the run.
-
rebasecalling_process: The rebasecalling process of the run.
-
created_at: The creation timestamp of the run.
-
ont_instrument_id: The ID of the associated instrument.
-
flowcell_attributes: The attributes of the flowcells in the run.
Filters:
-
experiment_name: Filter runs by experiment name.
-
state: Filter runs by state.
Primary relationships:
-
instrument InstrumentResource
-
flowcells FlowcellResource
Relationship trees:
-
flowcells.pool
For more information about JSON:API see the JSON:API Specifications or look at the JSONAPI::Resources package for the service implementation of the JSON:API standard.
Instance Attribute Summary collapse
-
#created_at ⇒ String
The creation timestamp of the run.
-
#experiment_name ⇒ String
The name of the experiment.
-
#flowcell_attributes ⇒ Array<Hash>
The attributes of the flowcells in the run.
-
#ont_instrument_id ⇒ Integer
The ID of the associated instrument.
-
#rebasecalling_process ⇒ String
The rebasecalling process of the run.
-
#state ⇒ String
The state of the run.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#created_at ⇒ String
Returns the creation timestamp of the run.
91 92 |
# File 'app/resources/v1/ont/run_resource.rb', line 91 attributes :experiment_name, :state, :rebasecalling_process, :created_at, :ont_instrument_id, :flowcell_attributes |
#experiment_name ⇒ String
Returns the name of the experiment.
91 92 |
# File 'app/resources/v1/ont/run_resource.rb', line 91 attributes :experiment_name, :state, :rebasecalling_process, :created_at, :ont_instrument_id, :flowcell_attributes |
#flowcell_attributes ⇒ Array<Hash>
Returns the attributes of the flowcells in the run.
91 92 |
# File 'app/resources/v1/ont/run_resource.rb', line 91 attributes :experiment_name, :state, :rebasecalling_process, :created_at, :ont_instrument_id, :flowcell_attributes |
#ont_instrument_id ⇒ Integer
Returns the ID of the associated instrument.
91 92 |
# File 'app/resources/v1/ont/run_resource.rb', line 91 attributes :experiment_name, :state, :rebasecalling_process, :created_at, :ont_instrument_id, :flowcell_attributes |
#rebasecalling_process ⇒ String
Returns the rebasecalling process of the run.
91 92 |
# File 'app/resources/v1/ont/run_resource.rb', line 91 attributes :experiment_name, :state, :rebasecalling_process, :created_at, :ont_instrument_id, :flowcell_attributes |
#state ⇒ String
Returns the state of the run.
91 92 |
# File 'app/resources/v1/ont/run_resource.rb', line 91 attributes :experiment_name, :state, :rebasecalling_process, :created_at, :ont_instrument_id, :flowcell_attributes |
Class Method Details
.default_sort ⇒ Object
107 108 109 |
# File 'app/resources/v1/ont/run_resource.rb', line 107 def self.default_sort [{ field: 'created_at', direction: :desc }] end |
Instance Method Details
#fetchable_fields ⇒ Object
124 125 126 |
# File 'app/resources/v1/ont/run_resource.rb', line 124 def fetchable_fields super - [:flowcell_attributes] end |