Class: UatActions::GenerateTaggedPlates

Inherits:
GeneratePlates show all
Defined in:
app/uat_actions/uat_actions/generate_tagged_plates.rb

Overview

Will construct plates with well_count wells filled with samples

Constant Summary collapse

EXCLUDED_WALKING =

These walking algorithms have dependencies on submission and do not make sense here.

['wells in pools', 'manual by pool'].freeze

Constants inherited from UatActions

CATEGORY_LIST

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from UatActions

all, category, find, form_field, form_fields, #form_fields, grouped_and_sorted_uat_actions, id, inherited, permitted, #report, #save, to_partial_path, uat_actions

Class Method Details

.defaultObject



60
61
62
63
64
65
66
67
68
69
70
# File 'app/uat_actions/uat_actions/generate_tagged_plates.rb', line 60

def self.default
  new(
    plate_count: 1,
    well_count: 96,
    study_name: UatActions::StaticRecords.study.name,
    plate_purpose_name: PlatePurpose.stock_plate_purpose.name,
    well_layout: 'Column',
    direction: 'column',
    walking_by: 'wells of plate'
  )
end

Instance Method Details

#performObject



72
73
74
# File 'app/uat_actions/uat_actions/generate_tagged_plates.rb', line 72

def perform
  super { |plate| TagLayout.create!(user:, plate:, direction:, walking_by:, tag_group:, tag2_group:) }
end