Class: RunCsv::OntSampleSheet
- Inherits:
-
Object
- Object
- RunCsv::OntSampleSheet
- Includes:
- DataStructureBuilder
- Defined in:
- app/exchanges/run_csv/ont_sample_sheet.rb
Overview
RunCsv::OntSampleSheet Used to generate sample sheets specific to the ONT pipeline For usage documentation see ‘app/exchanges/README.md’
Instance Method Summary collapse
-
#generate ⇒ Object
return a CSV String using run and configuration attributes to generate headers and data.
Methods included from DataStructureBuilder
#data_structure, #instance_value
Instance Method Details
#generate ⇒ Object
return a CSV String using run and configuration attributes to generate headers and data
13 14 15 16 17 18 19 20 21 22 |
# File 'app/exchanges/run_csv/ont_sample_sheet.rb', line 13 def generate run = object CSV.generate do |csv| csv << csv_headers run.flowcells.each do |flowcell| csv_sample_rows(flowcell).each { |sample_row| csv << sample_row } end end end |