Class: SequencescapeExcel::SpecialisedField::BioscanControlType

Inherits:
ControlType
  • Object
show all
Includes:
Base
Defined in:
app/sequencescape_excel/sequencescape_excel/specialised_field/bioscan_control_type.rb

Overview

Same behaviour as base control type but using a different range definition for the allowed control types used in Bioscan. We also need to validate the supplier name starts with CONTROL_ when a control type is set. We validate well restriction if control type is set: ‘pcr positive’ or ‘pcr negative’ cannot be in H12 ‘lysate negative’ control (if present) can only be in H12

Instance Attribute Summary collapse

Attributes included from Base

#sample_manifest_asset, #value

Instance Method Summary collapse

Methods included from Base

#update

Methods inherited from ControlType

#check_control_type_matches_enum, #update

Instance Attribute Details

#supplier_nameObject

Returns the value of attribute supplier_name.



16
17
18
# File 'app/sequencescape_excel/sequencescape_excel/specialised_field/bioscan_control_type.rb', line 16

def supplier_name
  @supplier_name
end

#wellObject

Returns the value of attribute well.



16
17
18
# File 'app/sequencescape_excel/sequencescape_excel/specialised_field/bioscan_control_type.rb', line 16

def well
  @well
end

Instance Method Details



21
22
23
24
# File 'app/sequencescape_excel/sequencescape_excel/specialised_field/bioscan_control_type.rb', line 21

def link(other_fields)
  self.supplier_name = other_fields[SequencescapeExcel::SpecialisedField::BioscanSupplierName]
  self.well = other_fields[SequencescapeExcel::SpecialisedField::Well]
end