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_pool ⇒ Object
2 3 4 5 6 7 8 9 |
# 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_group ⇒ Object
11 12 13 14 15 16 17 18 19 20 |
# File 'lib/sequencescape/plate/pooling.rb', line 11 def populate_wells_with_pre_cap_group wells.each do |well| pre_cap_group_id, pre_cap_group = pre_cap_groups.detect do |_, pre_cap_group| pre_cap_group['wells'].include?(well.location) end next if pre_cap_group.nil? well.pre_cap_group = pre_cap_group end end |