Class: LibraryType

Inherits:
ApplicationRecord show all
Includes:
SharedBehaviour::Named
Defined in:
app/models/library_type.rb

Overview

Note:

For historical reasons, library type is not a relationship on request_metadata

A library type is an identifier which describes how a library has been produced Whereas RequestType is largely internal to sequencescape, a library type directly reflects the science, and thus has a many to many relationship with request type. LibraryType gets exposed in the multi-lims warehouse, and can affect downstream processing.

Some library types have no request type associated. These may be used by external pipelines, such as Traction, or may be of use exclusively for library manifests.

or on aliquot. This is because library_types used to by hardcoded in the Request class.

Class Method Summary collapse

Methods included from SharedBehaviour::Named

included

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

.records_in(file_name) ⇒ Object



28
29
30
# File 'app/models/library_type.rb', line 28

def self.records_in(file_name)
  RecordLoader::LibraryTypeLoader.new(files: [file_name]).names
end