Class: Robot::Generator::TecanV3
- Includes:
- Behaviours::TecanDefault
- Defined in:
- app/models/robot/generator/tecan_v3.rb
Overview
Handles picking file generation for Tecan robots with reusing tips for buffer addition steps
Constant Summary
Constants inherited from TecanV2
Robot::Generator::TecanV2::NUM_BUFFER_CHANNELS
Instance Attribute Summary
Attributes inherited from Base
#batch, #ctrl_barcode_index, #dest_barcode_index, #picking_data, #plate_barcode, #source_barcode_index
Instance Method Summary collapse
-
#buffer_separator ⇒ String
Adds a 'Break' command between the buffer and sample addition steps.
-
#buffers(data_object) ⇒ String
Groups buffer addition steps by channel, adds 'Comment' lines between steps, appends a 'Wash' command at the end of each channel group.
Methods inherited from TecanV2
Methods inherited from Base
#initialize, #total_volume, #type
Constructor Details
This class inherits a constructor from Robot::Generator::Base
Instance Method Details
#buffer_separator ⇒ String
Adds a 'Break' command between the buffer and sample addition steps.
51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 |
# File 'app/models/robot/generator/tecan_v3.rb', line 51 do # NOTE: The following attribute is not required for Microarray Genotyping. # I think this might be broken and suggests that there should be separate classes for project: one for # next-gen sequencing that includes this attribute in it's metadata, and one for microarray genotyping # that doesn't. include ProjectManager::Associations include BudgetDivision::Associations custom_attribute(:project_cost_code, required: true) custom_attribute(:funding_comments) custom_attribute(:collaborators) custom_attribute(:external_funding_source) custom_attribute(:sequencing_budget_cost_centre) custom_attribute(:project_funding_model, in: PROJECT_FUNDING_MODELS) custom_attribute(:gt_committee_tracking_id) before_validation do |record| record.project_cost_code = nil if record.project_cost_code.blank? record.project_funding_model = nil if record.project_funding_model.blank? end end |
#buffers(data_object) ⇒ String
Groups buffer addition steps by channel, adds 'Comment' lines between steps, appends a 'Wash' command at the end of each channel group. This enables reusing tips for buffer addition steps within each channel.
rubocop:disable Metrics/AbcSize,Metrics/MethodLength
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
# File 'app/models/robot/generator/tecan_v3.rb', line 16 do # NOTE: The following attribute is not required for Microarray Genotyping. # I think this might be broken and suggests that there should be separate classes for project: one for # next-gen sequencing that includes this attribute in it's metadata, and one for microarray genotyping # that doesn't. include ProjectManager::Associations include BudgetDivision::Associations custom_attribute(:project_cost_code, required: true) custom_attribute(:funding_comments) custom_attribute(:collaborators) custom_attribute(:external_funding_source) custom_attribute(:sequencing_budget_cost_centre) custom_attribute(:project_funding_model, in: PROJECT_FUNDING_MODELS) custom_attribute(:gt_committee_tracking_id) before_validation do |record| record.project_cost_code = nil if record.project_cost_code.blank? record.project_funding_model = nil if record.project_funding_model.blank? end end |