Module: Pipeline::GroupByParent

Extended by:
ActiveSupport::Concern
Included in:
GenotypingPipeline, PacBioSamplePrepPipeline
Defined in:
app/models/pipeline/group_by_parent.rb

Overview

Pipelines which group by parent typically have plate inputs, and ensure that they are all processed together

Instance Method Summary collapse

Instance Method Details

#input_labware(requests) ⇒ Object

Overridden in group-by parent pipelines to display input plates


13
14
15
# File 'app/models/pipeline/group_by_parent.rb', line 13

def input_labware(requests)
  requests.asset_on_labware.select('requests.*').group_by(&grouping_function)
end

#output_labware(requests) ⇒ Object

Overridden in group-by parent pipelines to display output


18
19
20
# File 'app/models/pipeline/group_by_parent.rb', line 18

def output_labware(requests)
  requests.target_asset_on_labware.group_by { |request| [request.labware_id] }
end