Class: PacBioLibraryTube

Inherits:
Tube
  • Object
show all
Extended by:
Metadata
Includes:
Api::PacBioLibraryTubeIO::Extensions
Defined in:
app/models/pac_bio_library_tube.rb

Constant Summary

Constants included from Metadata

Metadata::SECTION_FIELDS

Instance Attribute Summary

Attributes included from AssetRefactor::Labware::Methods

#storage_location_service

Instance Method Summary collapse

Methods included from Metadata

has_metadata, required_tags

Methods included from Api::PacBioLibraryTubeIO::Extensions

included

Methods inherited from Tube

#after_comment_addition, #ancestor_of_purpose, #barcode!, #comments, create_with_barcode!, delegate_to_purpose, #details, #name_for_child_tube, #name_for_label, #pool_id, #sanger_barcode=, #source_plate, #subject_type, #submission

Methods included from QcFile::Associations

#has_qc_files

Methods included from AssetRefactor::Labware::Methods

#labware, #labwhere_location, #scanned_in_date, #storage_location

Methods included from Transfer::State::TubeState

included

Methods included from Transfer::Associations

included

Methods included from Asset::Ownership::Unowned

#change_owner_to

Methods included from Tag::Associations

#untag!

Methods included from Barcode::Barcodeable

#aker_barcode, #aker_barcode=, #any_barcode_matching?, #barcode_format, #barcode_number, #cgap_barcode, #cgap_barcode=, #external_barcode, #external_barcode=, #external_identifier, #fluidigm_barcode, #fluidigm_barcode=, #generate_barcode, included, #infinium_barcode, #infinium_barcode=, #prefix, #primary_barcode, #printable_target, #sanger_barcode

Instance Method Details

#protocols_for_selectObject


12
13
14
15
16
17
# File 'app/models/pac_bio_library_tube.rb', line 12

def protocols_for_select
  ReferenceGenome.sorted_by_name.map { |x| [x.name, x.id] }.tap do |protocols|
    reference_genome = primary_aliquot.sample.sample_reference_genome
    protocols.unshift([reference_genome.name, reference_genome.id]) if reference_genome.present?
  end
end