wells
Functions to create a metadata dataframe from Yokogawa files.
_extract_row_col_from_well_id(well_id)
¶
Split well name into row & column
This function handles different patterns of well names: Classical wells in their format like B03 (row B, column 03) typically found in 96 & 384 well plates from the cellvoyager microscopes. And 1536 well plates with wells like A01.a1 (row Aa, column 011).
PARAMETER | DESCRIPTION |
---|---|
well_id |
Well name. Either formatted like
TYPE:
|
Returns: Tuple of row and column names.
Source code in fractal_tasks_core/cellvoyager/wells.py
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 |
|
generate_row_col_split(wells)
¶
Given a list of well names, construct a sorted row&column list
This function applies _extract_row_col_from_well_id
to each wells
element and then sorts the result.
PARAMETER | DESCRIPTION |
---|---|
wells |
list of well names. Either formatted like [A03, B01, C03] for 96 well and 384 well plates. Or formatted like [A01.a1, A03.b2, B04.c4] for 1536 well plates. |
Returns: well_rows_columns: List of tuples of row & col names
Source code in fractal_tasks_core/cellvoyager/wells.py
72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 |
|
get_filename_well_id(row, col)
¶
Generates the well_id as extracted from the filename from row & col.
Processes the well identifiers generated by generate_row_col_split
for
cellvoyager datasets.
PARAMETER | DESCRIPTION |
---|---|
row |
name of the row. Typically a single letter (A, B, C) for 96 & 384 well plates. And two letters (Aa, Bb, Cc) for 1536 well plates.
TYPE:
|
col |
name of the column. Typically 2 digits (01, 02, 03) for 96 & 384 well plates. And 3 digits (011, 012, 021) for 1536 well plates.
TYPE:
|
Returns: well_id: name of the well as it would appear in the original image file name.
Source code in fractal_tasks_core/cellvoyager/wells.py
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
|