Class: UltimaSequencingPipeline

Inherits:
SequencingPipeline show all
Defined in:
app/models/ultima_sequencing_pipeline.rb

Overview

Specialized sequencing pipeline for Ultima

Instance Method Summary collapse

Methods inherited from SequencingPipeline

#detach_request_from_batch, #is_flowcell_type_consistent_for_batch?, #is_read_length_consistent_for_batch?, #on_start_batch, #post_release_batch, #request_actions

Methods inherited from Pipeline

#all_requests_from_submissions_selected?, #completed_request_as_part_of_release_batch, #detach_request_from_batch, #extract_requests_from_input_params, #input_labware, #is_flowcell_type_consistent_for_batch?, #is_read_length_consistent_for_batch?, #on_start_batch, #output_labware, #pick_information?, #post_finish_batch, #post_release_batch, #request_actions, #request_count_in_inbox, #request_types_including_controls, #requests_in_inbox, #robot_verified!

Methods included from SharedBehaviour::Named

included

Methods included from Pipeline::BatchValidation

#validation_of_batch

Methods included from Uuid::Uuidable

included, #unsaved_uuid!, #uuid

Methods inherited from ApplicationRecord

alias_association, convert_labware_to_receptacle_for, find_by_id_or_name, find_by_id_or_name!

Methods included from Squishify

extended

Instance Method Details

#ot_recipe_consistent_for_batch?(batch) ⇒ Boolean

Returns:

  • (Boolean)


5
6
7
8
9
10
11
12
# File 'app/models/ultima_sequencing_pipeline.rb', line 5

def ot_recipe_consistent_for_batch?(batch)
  ot_recipe_list = batch.requests.filter_map { |request| request..ot_recipe }

  # There are some requests that don't have the ot_recipe attribute
  return false if ot_recipe_list.size != batch.requests.size

  (ot_recipe_list.uniq.size == 1)
end