diagnostic_rt_qpcr/operation_types/aliquot_positive_template__taqpath_/protocol.rb
#Performs the aliquote protocol for a list of operations
#that all use the given rna_stock input.
#
# @param make_aliquots [Item] the rna_stock
# @param operations     [OperationList] the list of operations
Performs the aliquote protocol for a list of operations
that all use the given rna_stock input.

@param make_aliquots [Item] the rna_stock
@param operations     [OperationList] the list of operations
Performs the aliquote protocol for a list of operations that all use the given rna_stock input . @param make_aliquots [ Item ] the rna_stock @param operations [ OperationList ] the list of operations
def make_aliquots(operations, rna_stock:)
    last_tube_id = "" 
    operations.each do |op|
      input_RNAs = Array.new(default_job_params[:output_items_num],\
        rna_stock.id)
      aliquot_tubes = op.outputs().map{|output| output.item.id}
      transfer_table = Table.new
              .add_column("RNA Stock", input_RNAs)
              .add_column("Output RNA Aliquot", aliquot_tubes)
      show do
        title "Dilute Positive Template to Working Stock of 25 copies/μL\
        and Aliquot Single Used Aliquot Positive Controls"
        warning "This reagent should be handled with caution in a dedicated\
        nucleic acid handling area to prevent possible contamination."
        warning "Freeze-thaw cycles should be avoided. Maintain on ice when\
        thawed."
        check "Make single use aliquot by transfering\
        #{default_job_params[:input_vol_2]} #{MICROLITERS} of the diluted\
        postive control (IT) into individual #{TUBE_MICROFUGE} and label it\
         with the proper item ID."
        check "Pipette in #{default_job_params[:dilution_vol_2]} #{MILLILITERS}\
         of COVID‑19 Control Dilution Buffer into individual #{TUBE_MICROFUGE}\
         to achieve the proper working concentration."
        check "Gently vortex the solutions, centrifuge all tubes briefly, and\
         store at -80C."
        check "Discard the empty input and intermediate tubes."
        table transfer_table
      end
      rna_stock.mark_as_deleted
    end
  end
def make_aliquots ( operations , rna_stock : ) last_tube_id = "" operations . each do | op | input_RNAs = Array . new ( default_job_params [ :output_items_num ] , rna_stock . id ) aliquot_tubes = op . outputs ( ) . map { | output | output . item . id } transfer_table = Table . new . add_column ( "RNA Stock" , input_RNAs ) . add_column ( "Output RNA Aliquot" , aliquot_tubes ) show do title "Dilute Positive Template to Working Stock of 25 copies/μL\
        and Aliquot Single Used Aliquot Positive Controls" warning "This reagent should be handled with caution in a dedicated\
        nucleic acid handling area to prevent possible contamination." warning "Freeze-thaw cycles should be avoided. Maintain on ice when\
        thawed." check "Make single use aliquot by transfering\
        #{default_job_params[:input_vol_2]} #{MICROLITERS} of the diluted\
        postive control (IT) into individual #{TUBE_MICROFUGE} and label it\
         with the proper item ID." check "Pipette in #{default_job_params[:dilution_vol_2]} #{MILLILITERS}\
         of COVID‑19 Control Dilution Buffer into individual #{TUBE_MICROFUGE}\
         to achieve the proper working concentration." check "Gently vortex the solutions, centrifuge all tubes briefly, and\
         store at -80C." check "Discard the empty input and intermediate tubes." table transfer_table end rna_stock . mark_as_deleted end end
Performs the aliquote protocol for a list of operations
that all use the given rna_stock input.
Performs the aliquote protocol for a list of operations that all use the given rna_stock input .
# Empty string for storing item id of single use aliquot # Discard the input
operations
<not_specific>
rna_stock
<not_specific>