Class: TNanoSeq::Row

Inherits:
RowBase
  • Object
show all
Includes:
ActiveModel::Validations
Defined in:
app/models/labware_creators/pcr_cycles_binned_plate/csv_file/t_nano_seq/row.rb

Overview

This version of the row is for the Targeted NanoSeq pipeline.

Constant Summary collapse

HYB_PANEL_MISSING =
'is empty, in %s'

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#hyb_panelObject (readonly)

Returns the value of attribute hyb_panel.



16
17
18
# File 'app/models/labware_creators/pcr_cycles_binned_plate/csv_file/t_nano_seq/row.rb', line 16

def hyb_panel
  @hyb_panel
end

Instance Method Details

#hyb_panel_is_presentObject

Checks whether the Hyb Panel column is filled in



27
28
29
30
31
32
33
34
35
# File 'app/models/labware_creators/pcr_cycles_binned_plate/csv_file/t_nano_seq/row.rb', line 27

def hyb_panel_is_present
  return if empty?

  # TODO: can we validate the hyb panel value? Does not appear to be tracked in LIMS.
  return if hyb_panel.present?

  msg = format(HYB_PANEL_MISSING, to_s)
  errors.add('hyb_panel', msg)
end

#initialize_pipeline_specific_columnsObject



22
23
24
# File 'app/models/labware_creators/pcr_cycles_binned_plate/csv_file/t_nano_seq/row.rb', line 22

def initialize_pipeline_specific_columns
  @hyb_panel = @row_data[hyb_panel_column]&.strip
end