riverine.locations#
Classes#
Module Contents#
- class riverine.locations.PlateType(*args, **kwds)[source]#
Bases:
enum.EnumRepresents two different types of plates in which DNA sequences can be ordered.
- class riverine.locations.WellPos(ref_or_row: int, col: int, /, *, platesize: Literal[96, 384] = 384)[source]#
- class riverine.locations.WellPos(ref_or_row: str, col: None = None, /, *, platesize: Literal[96, 384] = 384)
A Well reference, allowing movement in various directions and bounds checking.
This uses 1-indexed row and col, in order to match usual practice. It can take either a standard well reference as a string, or two integers for the row and column.
- key_byrow() tuple[int, int][source]#
Get a tuple (row, col) key that can be used for ordering by row.
- key_bycol() tuple[int, int][source]#
Get a tuple (col, row) key that can be used for ordering by column.
- advance(order: Literal['row', 'col'] = 'col') WellPos[source]#
Advances to the “next” well position. Default is column-major order, i.e., A1, B1, C1, D1, E1, F1, G1, H1, A2, B2, … To switch to row-major order, select order as ‘row’, i.e., A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, B1, B2, …
- Returns:
new WellPos representing the next well position