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

Defined Under Namespace

Classes: AssignTagsData

Instance Method Summary collapse

Methods inherited from Task

#find_batch, #find_batch_requests, #get_descriptor_value, #get_subclass_attribute_options, get_subclass_attribute_options, #get_subclass_attribute_value, get_subclass_attributes, #get_subclass_attributes, #included_for_do_task, init_class, #set_descriptor_value, set_subclass_attribute, #set_subclass_attribute_value, #sub_events_for

Methods inherited from ApplicationRecord

convert_labware_to_receptacle_for, find_by_id_or_name, find_by_id_or_name!

Methods included from Warren::BroadcastMessages

#broadcast, included, #queue_associated_for_broadcast, #queue_for_broadcast, #warren

Instance Method Details

#create_render_element(request) ⇒ Object


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

def create_render_element(request)
  request.asset && AssignTagsData.new(request)
end

#do_task(workflow, params) ⇒ Object


37
38
39
# File 'app/models/assign_tags_task.rb', line 37

def do_task(workflow, params)
  workflow.do_assign_tags_task(self, params)
end

#included_for_render_taskObject


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

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

#partialObject


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

def partial
  'assign_tags_batches'
end

#render_task(workflow, params) ⇒ Object


32
33
34
35
# File 'app/models/assign_tags_task.rb', line 32

def render_task(workflow, params)
  super
  workflow.render_assign_tags_task(self, params)
end