Module: Limber::TagLayoutTemplate::InColumnThenRows
- Defined in:
- app/models/limber/tag_layout_template/in_column_then_rows.rb
Overview
Used in quadrant layouts Tags are arranged in quadrants in the case of some 384 well plates. Essentially a 96 well plate of tags is transferred onto the same target plate four times, such that each cluster of 4 wells contains the same tag. Ie. Tag 1 is in wells A1, B1, A2, B2 In the case of column then row direction algorithms Four different tag 2s then get applied to each cluster. These tags are laid out in ROW order ie. A1 => 1, A2 => 2, B1 => 3, B2 => 4
Instance Method Summary collapse
-
#primary_index(row, column, scale, height, _width) ⇒ Integer
Returns the tag index for the primary (i7) tag That is the one laid out in columns with four copies of each.
Instance Method Details
#primary_index(row, column, scale, height, _width) ⇒ Integer
Returns the tag index for the primary (i7) tag That is the one laid out in columns with four copies of each
34 35 36 37 38 |
# File 'app/models/limber/tag_layout_template/in_column_then_rows.rb', line 34 def primary_index(row, column, scale, height, _width) tag_col = (column / scale) tag_row = (row / scale) tag_row + (height / scale * tag_col) end |