Module: Sequencescape::Plate::Pooling

Included in:
Sequencescape::Plate
Defined in:
lib/sequencescape/plate/pooling.rb

Instance Method Summary collapse

Instance Method Details

#populate_wells_with_poolObject



2
3
4
5
6
7
8
# File 'lib/sequencescape/plate/pooling.rb', line 2

def populate_wells_with_pool
  wells.each do |well|
    pool_id, pool = pools.detect { |_, pool| pool['wells'].include?(well.location) }
    next if pool.nil?
    well.pool = pool
  end
end

#populate_wells_with_pre_cap_groupObject



10
11
12
13
14
15
16
# File 'lib/sequencescape/plate/pooling.rb', line 10

def populate_wells_with_pre_cap_group
  wells.each do |well|
    pre_cap_group_id, pre_cap_group = pre_cap_groups.detect { |_, pre_cap_group| pre_cap_group['wells'].include?(well.location) }
    next if pre_cap_group.nil?
    well.pre_cap_group = pre_cap_group
  end
end