diagnostic_rt_qpcr/operation_types/aliquot_primer_probe/protocol.rb
# Create and save multiple output Items per operation
# @param operations [OperationList] List of operations
Create and save multiple output Items per operation
Create and save multiple output Items per operation
def save_output(operations)
    operations.make
    operations.each do |op|
      op.output(PRIMER_MIX).item.associate :volume, VOL_SUSPENSION[:qty]
      output_primer = op.output(PRIMER_MIX).sample
      (OUTPUT_ITEMS_NUM[:qty] - 1).times do
        new_aliquot = output_primer.make_item('Primer Mix Aliquot')
        new_aliquot.associate :volume, VOL_SUSPENSION[:qty]
        link_output_item(operation: op, sample: output_primer, item: new_aliquot)
      end
    end
  end
def save_output ( operations ) operations . make operations . each do | op | op . output ( PRIMER_MIX ) . item . associate :volume , VOL_SUSPENSION [ :qty ] output_primer = op . output ( PRIMER_MIX ) . sample ( OUTPUT_ITEMS_NUM [ :qty ] - 1 ) . times do new_aliquot = output_primer . make_item ( 'Primer Mix Aliquot' ) new_aliquot . associate :volume , VOL_SUSPENSION [ :qty ] link_output_item ( operation : op , sample : output_primer , item : new_aliquot ) end end end
Create and save multiple output Items per operation
Create and save multiple output Items per operation
# makes 4 additional aliquots per op
operations
List of operations
List of operations