Class: Pulldown::InitialDownstreamPlatePurpose

Inherits:
IlluminaHtp::InitialDownstreamPlatePurpose
  • Object
show all
Defined in:
app/models/pulldown/initial_downstream_plate_purpose.rb

Instance Method Summary collapse

Instance Method Details

#stock_wells(plate, contents) ⇒ Object

Initial plates in the pulldown pipelines change the state of the pulldown requests they are being created for to exactly the same state.


5
6
7
8
9
# File 'app/models/pulldown/initial_downstream_plate_purpose.rb', line 5

def stock_wells(plate, contents)
  return plate.parents.map { |parent| parent.wells }.flatten unless contents.present?

  Well.joins(:requests).where(requests: { target_asset_id: plate.wells.located_at(contents).pluck(:id) })
end

#supports_multiple_submissions?Boolean

Returns:

  • (Boolean)

11
# File 'app/models/pulldown/initial_downstream_plate_purpose.rb', line 11

def supports_multiple_submissions?; true; end