Class: StripTube

Inherits:
Plate show all
Defined in:
app/models/strip_tube.rb

Overview

StripTubes can be thought of as long skinny plates. Unlike normal plates they can be kept in a rack. Strip tubes don’t get a barcode assigned upfront.

Constant Summary

Constants included from Metadata

Metadata::SECTION_FIELDS

Instance Attribute Summary

Attributes inherited from Labware

#storage_location_service

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Plate

#after_comment_addition, #all_submission_ids, #buffer_required?, #cherrypick_completed, #comments, #compatible_purposes, #convert_to, #details, #find_well_by_name, #generate_barcode, #height, #invalid_positions, #iteration, #maps, #name_for_label, #number_of_blank_samples, #occupied_well_count, #pick_as_control?, #plate_columns, plate_ids_from_requests, #plate_rows, #plate_type, #plate_type=, #priority, #receptacles_with_position, #related_studies, #sanger_barcode=, #scored?, search_for_plates, #state, #stock_plate, #stock_plate?, #stock_wells, #submission_ids, #submission_ids_as_source, #submissions, #team, #unique_positions_on_plate, #update_qc_values_with_parser, #update_volume, #well_hash, #wells_in_column_order, #wells_in_row_order, #width

Methods included from QcFile::Associations

#has_qc_files

Methods included from Metadata

#has_metadata

Methods included from SubmissionPool::Association::Plate

included

Methods included from Barcode::Barcodeable

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

Methods included from PlateCreation::CreationChild

included

Methods included from Plate::PoolingMetadata

#pools

Methods included from Plate::FluidigmBehaviour

#apply_fluidigm_data, included, #retrieve_fluidigm_data

Methods included from Asset::Ownership::Owned

#change_owner_to, included

Methods included from Transfer::State::PlateState

included

Methods included from Transfer::Associations

included

Methods included from Api::PlateIo::Extensions

included, #json_root

Methods inherited from Labware

#ancestor_of_purpose, #ancestors_of_purpose, #child, #display_name, #external_identifier, find_by_barcode, find_from_any_barcode, #generate_name, #labware, #labwhere_location, labwhere_locations, #parent, #received_date, #retention_instructions, #role, #scanned_in_date, #source_plate, #source_plates, #spiked_in_buffer, #state, #storage_location

Methods included from SharedBehaviour::Named

included

Methods included from AssetLink::Associations

included

Methods included from Uuid::Uuidable

included, #unsaved_uuid!, #uuid

Methods included from Commentable

#after_comment_addition

Methods inherited from Asset

#ancestor_of_purpose, #asset_type_for_request_types, #barcode_number, #compatible_purposes, #contained_samples, #details, #generate_barcode, #get_qc_result_value_for, #has_stock_asset?, #label, #label=, #original_stock_plates, #prefix, #printable?, #printable_target, #register_stock!, #request_types, #type, #update_from_qc

Methods included from EventfulRecord

#has_many_events, #has_many_lab_events, #has_one_event_with_family

Methods included from Event::PlateEvents

#event_date, #fluidigm_stamp_date, #gel_qc_date, #pico_date, #qc_started_date, #sequenom_stamp_date

Methods inherited from ApplicationRecord

alias_association, convert_labware_to_receptacle_for, find_by_id_or_name, find_by_id_or_name!

Methods included from Squishify

extended

Class Method Details

.create_with_barcode!(*args) ⇒ Object

Until we know how barcodes are going to work, we’ll just override this



22
23
24
25
26
27
# File 'app/models/strip_tube.rb', line 22

def self.create_with_barcode!(*args, &)
  attributes = args.extract_options!
  attributes.delete(:barcode)
  attributes.delete(:sanger_barcode)
  create!(attributes, &)
end

Instance Method Details

#friendly_nameObject



9
10
11
# File 'app/models/strip_tube.rb', line 9

def friendly_name
  name
end

#library_source_platesObject



17
18
19
# File 'app/models/strip_tube.rb', line 17

def library_source_plates
  source_plates
end

#subject_typeObject



13
14
15
# File 'app/models/strip_tube.rb', line 13

def subject_type
  'strip_tube'
end