Class: CherrypickingPipeline
- Inherits:
-
GenotypingPipeline
- Object
- ActiveRecord::Base
- ApplicationRecord
- Pipeline
- GenotypingPipeline
- CherrypickingPipeline
- Defined in:
- app/models/cherrypicking_pipeline.rb
Overview
Superclass for all Cherrypicking pipelines. Not used directly
Direct Known Subclasses
Constant Summary collapse
- PICKED_STATES =
%w[completed released].freeze
Constants inherited from GenotypingPipeline
GenotypingPipeline::ALWAYS_SHOW_RELEASE_ACTIONS
Constants inherited from Pipeline
Pipeline::ALWAYS_SHOW_RELEASE_ACTIONS
Instance Method Summary collapse
- #pick_information?(batch) ⇒ Boolean
- #robot_verified!(batch) ⇒ Object
- #update_detached_request(batch, request) ⇒ Object
Methods inherited from GenotypingPipeline
Methods included from Pipeline::GroupByParent
#extract_requests_from_input_params, #input_labware, #output_labware, #requests_in_inbox
Methods included from Pipeline::InboxGroupedBySubmission
Methods inherited from Pipeline
#all_requests_from_submissions_selected?, #allow_tag_collision_on_tagging_task?, #completed_request_as_part_of_release_batch, #custom_message, #detach_request_from_batch, #extract_requests_from_input_params, #has_controls?, #input_labware, #is_read_length_consistent_for_batch?, #on_start_batch, #output_labware, #post_finish_batch, #post_release_batch, #request_actions, #request_count_in_inbox, #request_types_including_controls, #requests_in_inbox
Methods included from SharedBehaviour::Named
Methods included from Pipeline::BatchValidation
#validation_of_batch, #validation_of_batch_for_completion
Methods included from Uuid::Uuidable
included, #unsaved_uuid!, #uuid
Methods inherited from ApplicationRecord
convert_labware_to_receptacle_for, find_by_id_or_name, find_by_id_or_name!
Methods included from Squishify
Methods included from Warren::BroadcastMessages
#broadcast, included, #queue_associated_for_broadcast, #queue_for_broadcast, #warren
Instance Method Details
#pick_information?(batch) ⇒ Boolean
16 17 18 |
# File 'app/models/cherrypicking_pipeline.rb', line 16 def pick_information?(batch) PICKED_STATES.include?(batch.state) end |
#robot_verified!(batch) ⇒ Object
10 11 12 13 14 |
# File 'app/models/cherrypicking_pipeline.rb', line 10 def robot_verified!(batch) batch.requests.each do |request| request.reduce_source_volume if request.respond_to?(:reduce_source_volume) end end |
#update_detached_request(batch, request) ⇒ Object
20 21 22 |
# File 'app/models/cherrypicking_pipeline.rb', line 20 def update_detached_request(batch, request) batch.remove_link(request) end |