Class: V1::Pacbio::Runs::WellResource

Inherits:
JSONAPI::Resource
  • Object
show all
Defined in:
app/resources/v1/pacbio/runs/well_resource.rb

Overview

Note:

Access this resource via the /v1/pacbio/runs/wells endpoint.

Provides a JSON:API resource for the Pacbio::Well model.

== Description

WellResource exposes the attributes and relationships of a Pacbio Well, which represents a single well on a Pacbio plate. It allows clients to retrieve, create, and update wells, including their associated libraries, pools, used aliquots, and annotations.

Primary relationships:

  • used_aliquots - Has many used aliquots (Aliquot)

  • libraries - Has many libraries (Pacbio::Library)

  • pools - Has many pools (Pacbio::Pool)

  • annotations - Has many annotations (Annotation)

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#binding_kit_box_barcodeString

Returns the barcode of the binding kit box.

Returns:

  • (String)

    the barcode of the binding kit box



103
104
105
# File 'app/resources/v1/pacbio/runs/well_resource.rb', line 103

attributes :row, :column, :pacbio_plate_id, :position,
:annotations_attributes,
*Rails.configuration.pacbio_smrt_link_versions.options.keys

#ccs_analysis_outputString

Returns the CCS analysis output.

Returns:

  • (String)

    the CCS analysis output



103
104
105
# File 'app/resources/v1/pacbio/runs/well_resource.rb', line 103

attributes :row, :column, :pacbio_plate_id, :position,
:annotations_attributes,
*Rails.configuration.pacbio_smrt_link_versions.options.keys

#ccs_analysis_output_include_kinetics_informationBoolean

Returns whether to include kinetics information in the CCS analysis output.

Returns:

  • (Boolean)

    whether to include kinetics information in the CCS analysis output



103
104
105
# File 'app/resources/v1/pacbio/runs/well_resource.rb', line 103

attributes :row, :column, :pacbio_plate_id, :position,
:annotations_attributes,
*Rails.configuration.pacbio_smrt_link_versions.options.keys

#ccs_analysis_output_include_low_quality_readsBoolean

Returns whether to include low quality reads in the CCS analysis output.

Returns:

  • (Boolean)

    whether to include low quality reads in the CCS analysis output



103
104
105
# File 'app/resources/v1/pacbio/runs/well_resource.rb', line 103

attributes :row, :column, :pacbio_plate_id, :position,
:annotations_attributes,
*Rails.configuration.pacbio_smrt_link_versions.options.keys

#columnString

Returns the column of the well.

Returns:

  • (String)

    the column of the well



103
104
105
# File 'app/resources/v1/pacbio/runs/well_resource.rb', line 103

attributes :row, :column, :pacbio_plate_id, :position,
:annotations_attributes,
*Rails.configuration.pacbio_smrt_link_versions.options.keys

#demultiplex_barcodesString

Returns the demultiplex barcodes.

Returns:

  • (String)

    the demultiplex barcodes



103
104
105
# File 'app/resources/v1/pacbio/runs/well_resource.rb', line 103

attributes :row, :column, :pacbio_plate_id, :position,
:annotations_attributes,
*Rails.configuration.pacbio_smrt_link_versions.options.keys

#full_resolution_base_qualBoolean

Returns whether to apply full resolution base qual.

Returns:

  • (Boolean)

    whether to apply full resolution base qual



103
104
105
# File 'app/resources/v1/pacbio/runs/well_resource.rb', line 103

attributes :row, :column, :pacbio_plate_id, :position,
:annotations_attributes,
*Rails.configuration.pacbio_smrt_link_versions.options.keys

#generate_hifiBoolean

Returns whether to generate HiFi reads.

Returns:

  • (Boolean)

    whether to generate HiFi reads



103
104
105
# File 'app/resources/v1/pacbio/runs/well_resource.rb', line 103

attributes :row, :column, :pacbio_plate_id, :position,
:annotations_attributes,
*Rails.configuration.pacbio_smrt_link_versions.options.keys

#include_base_kineticsBoolean

Returns whether to include base kinetics.

Returns:

  • (Boolean)

    whether to include base kinetics



103
104
105
# File 'app/resources/v1/pacbio/runs/well_resource.rb', line 103

attributes :row, :column, :pacbio_plate_id, :position,
:annotations_attributes,
*Rails.configuration.pacbio_smrt_link_versions.options.keys

#include_fivemc_calls_in_cpg_motifsBoolean

Returns whether to include 5mC calls in CpG motifs.

Returns:

  • (Boolean)

    whether to include 5mC calls in CpG motifs



103
104
105
# File 'app/resources/v1/pacbio/runs/well_resource.rb', line 103

attributes :row, :column, :pacbio_plate_id, :position,
:annotations_attributes,
*Rails.configuration.pacbio_smrt_link_versions.options.keys

#library_concentrationFloat

Returns the library concentration in pM.

Returns:

  • (Float)

    the library concentration in pM



103
104
105
# File 'app/resources/v1/pacbio/runs/well_resource.rb', line 103

attributes :row, :column, :pacbio_plate_id, :position,
:annotations_attributes,
*Rails.configuration.pacbio_smrt_link_versions.options.keys

#library_typeString

Returns the library type.

Returns:

  • (String)

    the library type



103
104
105
# File 'app/resources/v1/pacbio/runs/well_resource.rb', line 103

attributes :row, :column, :pacbio_plate_id, :position,
:annotations_attributes,
*Rails.configuration.pacbio_smrt_link_versions.options.keys

#loading_target_p1_plus_p2Float

Returns the loading target (P1 + P2).

Returns:

  • (Float)

    the loading target (P1 + P2)



103
104
105
# File 'app/resources/v1/pacbio/runs/well_resource.rb', line 103

attributes :row, :column, :pacbio_plate_id, :position,
:annotations_attributes,
*Rails.configuration.pacbio_smrt_link_versions.options.keys

#movie_acquisition_timeFloat

Returns the movie acquisition time in hours.

Returns:

  • (Float)

    the movie acquisition time in hours



103
104
105
# File 'app/resources/v1/pacbio/runs/well_resource.rb', line 103

attributes :row, :column, :pacbio_plate_id, :position,
:annotations_attributes,
*Rails.configuration.pacbio_smrt_link_versions.options.keys

#movie_timeFloat

Returns the movie time in hours.

Returns:

  • (Float)

    the movie time in hours



103
104
105
# File 'app/resources/v1/pacbio/runs/well_resource.rb', line 103

attributes :row, :column, :pacbio_plate_id, :position,
:annotations_attributes,
*Rails.configuration.pacbio_smrt_link_versions.options.keys

#on_plate_loading_concentrationFloat

Returns the on plate loading concentration.

Returns:

  • (Float)

    the on plate loading concentration



103
104
105
# File 'app/resources/v1/pacbio/runs/well_resource.rb', line 103

attributes :row, :column, :pacbio_plate_id, :position,
:annotations_attributes,
*Rails.configuration.pacbio_smrt_link_versions.options.keys

#pacbio_plate_idInteger

Returns the ID of the Pacbio plate.

Returns:

  • (Integer)

    the ID of the Pacbio plate



103
104
105
# File 'app/resources/v1/pacbio/runs/well_resource.rb', line 103

attributes :row, :column, :pacbio_plate_id, :position,
:annotations_attributes,
*Rails.configuration.pacbio_smrt_link_versions.options.keys

#polymerase_kitString

Returns the polymerase kit.

Returns:

  • (String)

    the polymerase kit



103
104
105
# File 'app/resources/v1/pacbio/runs/well_resource.rb', line 103

attributes :row, :column, :pacbio_plate_id, :position,
:annotations_attributes,
*Rails.configuration.pacbio_smrt_link_versions.options.keys

#positionString

Returns the position of the well.

Returns:

  • (String)

    the position of the well



103
104
105
# File 'app/resources/v1/pacbio/runs/well_resource.rb', line 103

attributes :row, :column, :pacbio_plate_id, :position,
:annotations_attributes,
*Rails.configuration.pacbio_smrt_link_versions.options.keys

#pre_extension_timeInteger

Returns the pre-extension time.

Returns:

  • (Integer)

    the pre-extension time



103
104
105
# File 'app/resources/v1/pacbio/runs/well_resource.rb', line 103

attributes :row, :column, :pacbio_plate_id, :position,
:annotations_attributes,
*Rails.configuration.pacbio_smrt_link_versions.options.keys

#rowString

Returns the row of the well.

Returns:

  • (String)

    the row of the well



103
104
105
# File 'app/resources/v1/pacbio/runs/well_resource.rb', line 103

attributes :row, :column, :pacbio_plate_id, :position,
:annotations_attributes,
*Rails.configuration.pacbio_smrt_link_versions.options.keys

#use_adaptive_loadingBoolean

Returns whether to use adaptive loading.

Returns:

  • (Boolean)

    whether to use adaptive loading



103
104
105
# File 'app/resources/v1/pacbio/runs/well_resource.rb', line 103

attributes :row, :column, :pacbio_plate_id, :position,
:annotations_attributes,
*Rails.configuration.pacbio_smrt_link_versions.options.keys

Class Method Details

.resource_klass_for(type) ⇒ Object

JSON API Resources builds up a representation of the relationships on a give resource. Whilst doing to it asks the associated resource for its type, before using this method on the parent resource to attempt to look up the model. Unfortunately this is forced to use the same namespace by default.



117
118
119
120
121
122
123
124
125
# File 'app/resources/v1/pacbio/runs/well_resource.rb', line 117

def self.resource_klass_for(type)
  case type.downcase.pluralize
  when 'libraries' then Pacbio::LibraryResource
  when 'pools' then Pacbio::PoolResource
  when 'annotations' then Pacbio::Runs::AnnotationResource
  else
    super
  end
end