Class: AssignTagsTask

Inherits:
Task show all
Defined in:
app/models/assign_tags_task.rb

Overview

Note:

At time of writing (3/4/2019) this is used in: “Illumina-B MX Library Preparation”, “Illumina-C MX Library Preparation” “PacBio Tagged Library Prep” (As a subclass) Of those only “Illumina-C MX Library Preparation”, “PacBio Tagged Library Prep” are active, and both have replacements either in development or roadmapped.

A Task used in library creation pipelines Applies the selected tags to the library tubes. Also appears to create and pool into a MultiplexedLibraryTube

Direct Known Subclasses

AssignTagsToTubesTask

Instance Method Summary collapse

Methods inherited from Task

#can_link_directly?, #can_process?, #find_batch, #find_batch_requests, #included_for_do_task

Methods inherited from ApplicationRecord

convert_labware_to_receptacle_for, find_by_id_or_name, find_by_id_or_name!

Methods included from Squishify

extended

Instance Method Details

#do_task(workflows_controller, params, _user) ⇒ Object


27
28
29
30
31
32
# File 'app/models/assign_tags_task.rb', line 27

def do_task(workflows_controller, params, _user)
  workflows_controller.do_assign_tags_task(self, params)
rescue Aliquot::TagClash => e
  workflows_controller.send(:flash)[:error] = e.message
  raise ActiveRecord::Rollback
end

#included_for_render_taskObject


14
15
16
# File 'app/models/assign_tags_task.rb', line 14

def included_for_render_task
  [{ requests: [{ asset: [:asset_groups, { primary_aliquot: :sample }] }, :target_asset, :batch_request] }, :pipeline]
end

#partialObject


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

def partial
  'assign_tags_batches'
end

#render_task(workflows_controller, params, _user) ⇒ Object


22
23
24
25
# File 'app/models/assign_tags_task.rb', line 22

def render_task(workflows_controller, params, _user)
  super
  workflows_controller.render_assign_tags_task(self, params)
end