Module: Sequencescape::Plate::WellStructure

Included in:
Sequencescape::Plate, Sequencescape::PlateTemplate
Defined in:
lib/sequencescape/plate/well_structure.rb

Instance Method Summary collapse

Instance Method Details

#columnsObject



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

def columns
  case size
  when 96  then (1..12)
  when 384 then (1..24)
  else          raise "Unknown plate size #{size}"
  end
end

#locations_in_rowsObject



18
19
20
21
22
23
24
25
26
# File 'lib/sequencescape/plate/well_structure.rb', line 18

def locations_in_rows
  [].tap do |locations|
    rows.each do |row|
      columns.each do |column|
        locations << "#{row}#{column}"
      end
    end
  end
end

#rowsObject



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

def rows
  case size
  when 96  then ('A'..'H')
  when 384 then ('A'..'P')
  else          raise "Unknown plate size #{size}"
  end
end