ngio 0.3.3__py3-none-any.whl → 0.3.4__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ngio/tables/backends/__init__.py +2 -1
- ngio/tables/backends/_anndata.py +10 -0
- ngio/tables/backends/_table_backends.py +3 -2
- {ngio-0.3.3.dist-info → ngio-0.3.4.dist-info}/METADATA +1 -1
- {ngio-0.3.3.dist-info → ngio-0.3.4.dist-info}/RECORD +7 -7
- {ngio-0.3.3.dist-info → ngio-0.3.4.dist-info}/WHEEL +0 -0
- {ngio-0.3.3.dist-info → ngio-0.3.4.dist-info}/licenses/LICENSE +0 -0
ngio/tables/backends/__init__.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"""Ngio Tables backend implementations."""
|
|
2
2
|
|
|
3
3
|
from ngio.tables.backends._abstract_backend import AbstractTableBackend, BackendMeta
|
|
4
|
-
from ngio.tables.backends._anndata import AnnDataBackend
|
|
4
|
+
from ngio.tables.backends._anndata import AnnDataBackend, AnnDataBackendV1
|
|
5
5
|
from ngio.tables.backends._csv import CsvTableBackend
|
|
6
6
|
from ngio.tables.backends._json import JsonTableBackend
|
|
7
7
|
from ngio.tables.backends._parquet import ParquetTableBackend
|
|
@@ -31,6 +31,7 @@ from ngio.tables.backends._utils import (
|
|
|
31
31
|
__all__ = [
|
|
32
32
|
"AbstractTableBackend",
|
|
33
33
|
"AnnDataBackend",
|
|
34
|
+
"AnnDataBackendV1",
|
|
34
35
|
"BackendMeta",
|
|
35
36
|
"CsvTableBackend",
|
|
36
37
|
"DefaultTableBackend",
|
ngio/tables/backends/_anndata.py
CHANGED
|
@@ -75,3 +75,13 @@ class AnnDataBackend(AbstractTableBackend):
|
|
|
75
75
|
index_key=self.index_key,
|
|
76
76
|
)
|
|
77
77
|
self.write_from_anndata(anndata)
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
class AnnDataBackendV1(AnnDataBackend):
|
|
82
|
+
"""A wrapper for the AnnData backend that for backwards compatibility."""
|
|
83
|
+
|
|
84
|
+
@staticmethod
|
|
85
|
+
def backend_name() -> str:
|
|
86
|
+
"""Return the name of the backend."""
|
|
87
|
+
return "anndata_v1"
|
|
@@ -7,7 +7,7 @@ from pandas import DataFrame
|
|
|
7
7
|
from polars import DataFrame as PolarsDataFrame
|
|
8
8
|
from polars import LazyFrame
|
|
9
9
|
|
|
10
|
-
from ngio.tables.backends._anndata import AnnDataBackend
|
|
10
|
+
from ngio.tables.backends._anndata import AnnDataBackend, AnnDataBackendV1
|
|
11
11
|
from ngio.tables.backends._csv import CsvTableBackend
|
|
12
12
|
from ngio.tables.backends._json import JsonTableBackend
|
|
13
13
|
from ngio.tables.backends._parquet import ParquetTableBackend
|
|
@@ -213,7 +213,8 @@ class ImplementedTableBackends:
|
|
|
213
213
|
)
|
|
214
214
|
|
|
215
215
|
|
|
216
|
-
ImplementedTableBackends().add_backend(AnnDataBackend
|
|
216
|
+
ImplementedTableBackends().add_backend(AnnDataBackend)
|
|
217
|
+
ImplementedTableBackends().add_backend(AnnDataBackendV1)
|
|
217
218
|
ImplementedTableBackends().add_backend(
|
|
218
219
|
JsonTableBackend, aliases=["experimental_json_v1"]
|
|
219
220
|
)
|
|
@@ -34,15 +34,15 @@ ngio/ome_zarr_meta/v04/_v04_spec_utils.py,sha256=05tEr2eEP_XVIfBMOAWLT7lzJV4KS5e
|
|
|
34
34
|
ngio/tables/__init__.py,sha256=_BV3sclNMLITu_J8_3DkkUrCB6Kro0HzeWLDCD1ivKM,877
|
|
35
35
|
ngio/tables/_abstract_table.py,sha256=rwGa47TzbFmosucBWVfFq6JEXtgGvOdUVtU9DIelV88,8204
|
|
36
36
|
ngio/tables/_tables_container.py,sha256=3xmpREaN671l40MPprnl1BD-VoOb6xfjECb5mNoMW0w,12173
|
|
37
|
-
ngio/tables/backends/__init__.py,sha256=
|
|
37
|
+
ngio/tables/backends/__init__.py,sha256=MwSRXNF1rWQBFOTDA_vT3oGoNZpviVgytsL5Txnu08I,1619
|
|
38
38
|
ngio/tables/backends/_abstract_backend.py,sha256=tsbHzSPTX88fiCbVc8khXv5aN68ck6HKG8r5OHkY3S8,7457
|
|
39
|
-
ngio/tables/backends/_anndata.py,sha256=
|
|
39
|
+
ngio/tables/backends/_anndata.py,sha256=EdzGH0Zr85GBjVVBy3OxnRoDGgsi5zZLWRWpSLF2GhQ,2832
|
|
40
40
|
ngio/tables/backends/_anndata_utils.py,sha256=DBWIcR0btnH-DIvDvzlcnMXoYhhtXc9DstryiOP0Qsg,3122
|
|
41
41
|
ngio/tables/backends/_csv.py,sha256=Ev61D-AUKo4LIhXRmWPJgYbHI7eQdxiajQR574DevEM,932
|
|
42
42
|
ngio/tables/backends/_json.py,sha256=1ZsEuXDJm1rOZV_KjFm8CB0qhv7L1W7L2EGWPf4q_p0,3137
|
|
43
43
|
ngio/tables/backends/_non_zarr_backends.py,sha256=SvPPhT6n5TrKUOyV1mNcdHQK49huZ5lwR8EVe9MdydM,7254
|
|
44
44
|
ngio/tables/backends/_parquet.py,sha256=ic-p86h8lce8q9luBJGRzy6vxlWyJvA0-2l5cUD6OqY,1398
|
|
45
|
-
ngio/tables/backends/_table_backends.py,sha256=
|
|
45
|
+
ngio/tables/backends/_table_backends.py,sha256=56lMLrkmRS8-NTwNF0wkMzrRwTmOFLk1g_LBDA2i6wg,7318
|
|
46
46
|
ngio/tables/backends/_utils.py,sha256=tJBSWN6OhO_1ybxl4vT2l3ImB028Fb6h0vaitPRcr8A,19668
|
|
47
47
|
ngio/tables/v1/__init__.py,sha256=Wr1_9RZFpaN8FYMTnxT9Yjkw4AS7y9FMWailmB_uj5g,617
|
|
48
48
|
ngio/tables/v1/_condition_table.py,sha256=T0Uq5BKkmMoEspt_Rx0U99Ow6S9GAMZDHqvUO5obCAM,1780
|
|
@@ -55,7 +55,7 @@ ngio/utils/_errors.py,sha256=pKQ12LUjQLYE1nUawemA5h7HsgznjaSvV1n2PQU33N0,759
|
|
|
55
55
|
ngio/utils/_fractal_fsspec_store.py,sha256=RdcCFOgHexRKX9zZvJV5RI-5OPc7VOPS6q_IeRxm24I,1548
|
|
56
56
|
ngio/utils/_logger.py,sha256=HIuqD_2ShfFGDswBddcouStbKfL0Vz_ah8cAIFGhbS8,888
|
|
57
57
|
ngio/utils/_zarr_utils.py,sha256=qOI-HL2HsfFLCj_yxsTR-aq4oHpSqS9KR13aEIvhGDY,13593
|
|
58
|
-
ngio-0.3.
|
|
59
|
-
ngio-0.3.
|
|
60
|
-
ngio-0.3.
|
|
61
|
-
ngio-0.3.
|
|
58
|
+
ngio-0.3.4.dist-info/METADATA,sha256=CejDvwMriZ2JvTO2bLW3AA0W3zlAGmWjU10Hw20thy8,5868
|
|
59
|
+
ngio-0.3.4.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
60
|
+
ngio-0.3.4.dist-info/licenses/LICENSE,sha256=UgN_a1QCeNh9rZWfz-wORQFxE3elQzLWPQaoK6N6fxQ,1502
|
|
61
|
+
ngio-0.3.4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|