tables
Subpackage with functions and classes related to table specifications (see https://fractal-analytics-platform.github.io/fractal-tasks-core/tables).
write_table(image_group, table_name, table, overwrite=False, table_type=None, table_attrs=None)
¶
Write a table to a Zarr group.
This is the general interface that should allow for a smooth coexistence of
tables with different fractal_table_version
values. Currently only V1 is
defined and implemented. The assumption is that V2 should only change:
- The lower-level writing function (that is,
_write_table_v2
). - The type of the table (which would also reflect into a more general type
hint for
table
, in the current funciton); - A different definition of what values of
table_attrs
are valid or invalid, to be implemented in_write_table_v2
. - Possibly, additional parameters for
_write_table_v2
, which will be optional parameters ofwrite_table
(so thatwrite_table
remains valid for both V1 and V2).
PARAMETER | DESCRIPTION |
---|---|
image_group |
The image Zarr group where the table will be written.
TYPE:
|
table_name |
The name of the table.
TYPE:
|
table |
The table object (currently an AnnData object, for V1).
TYPE:
|
overwrite |
If
TYPE:
|
table_type |
|
table_attrs |
If set, overwrite table_group attributes with table_attrs key/value
pairs. If |
RETURNS | DESCRIPTION |
---|---|
group
|
Zarr group of the table. |
Source code in fractal_tasks_core/tables/__init__.py
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 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 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 |
|