Module: DualSourcedLibrary

Extended by:
ActiveSupport::Concern
Included in:
Ont::Library, Pacbio::Library
Defined in:
app/models/concerns/dual_sourced_library.rb

Overview

Include in a library record to provide a #source_identifier method based on libraries with a single source well or tube

Instance Method Summary collapse

Instance Method Details

#source_identifierString

Identifies the plate and well from which the library was created Typically in the format: DN123:A1.

Returns:

  • (String)

    Identifies source plate and wells. eg. ‘DN123:A1’



26
27
28
# File 'app/models/concerns/dual_sourced_library.rb', line 26

def source_identifier
  source_well&.identifier || source_tube&.identifier
end