ngio 0.3.3__py3-none-any.whl → 0.3.5__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.
@@ -21,21 +21,12 @@ from ngio.utils import NgioValueError, ngio_logger
21
21
 
22
22
  def path_in_well_validation(path: str) -> str:
23
23
  """Validate the path in the well."""
24
- if path.find("_") != -1:
25
- # Remove underscores from the path
26
- # This is a custom serialization step
27
- old_value = path
28
- path = path.replace("_", "")
29
- ngio_logger.warning(
30
- f"Underscores in well-paths are not allowed. "
31
- f"Path '{old_value}' was changed to '{path}'"
32
- f" to comply with the specification."
33
- )
34
24
  # Check if the value contains only alphanumeric characters
35
25
  if not path.isalnum():
36
- raise NgioValueError(
26
+ ngio_logger.warning(
37
27
  f"Path '{path}' contains non-alphanumeric characters. "
38
- f"Only alphanumeric characters are allowed."
28
+ "This may cause issues with some tools. "
29
+ "Consider using only alphanumeric characters in the path."
39
30
  )
40
31
  return path
41
32
 
@@ -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",
@@ -75,3 +75,12 @@ class AnnDataBackend(AbstractTableBackend):
75
75
  index_key=self.index_key,
76
76
  )
77
77
  self.write_from_anndata(anndata)
78
+
79
+
80
+ class AnnDataBackendV1(AnnDataBackend):
81
+ """A wrapper for the AnnData backend that for backwards compatibility."""
82
+
83
+ @staticmethod
84
+ def backend_name() -> str:
85
+ """Return the name of the backend."""
86
+ 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, aliases=["anndata_v1"])
216
+ ImplementedTableBackends().add_backend(AnnDataBackend)
217
+ ImplementedTableBackends().add_backend(AnnDataBackendV1)
217
218
  ImplementedTableBackends().add_backend(
218
219
  JsonTableBackend, aliases=["experimental_json_v1"]
219
220
  )
@@ -1,9 +1,9 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ngio
3
- Version: 0.3.3
3
+ Version: 0.3.5
4
4
  Summary: Next Generation file format IO
5
- Project-URL: homepage, https://github.com/fractal-analytics-platform/ngio
6
- Project-URL: repository, https://github.com/fractal-analytics-platform/ngio
5
+ Project-URL: homepage, https://github.com/BioVisionCenter/ngio
6
+ Project-URL: repository, https://github.com/BioVisionCenter/ngio
7
7
  Author-email: Lorenzo Cerrone <lorenzo.cerrone@uzh.ch>
8
8
  License: BSD-3-Clause
9
9
  License-File: LICENSE
@@ -16,7 +16,7 @@ Classifier: Programming Language :: Python :: 3.13
16
16
  Classifier: Typing :: Typed
17
17
  Requires-Python: <3.14,>=3.11
18
18
  Requires-Dist: aiohttp
19
- Requires-Dist: anndata>=0.8.0
19
+ Requires-Dist: anndata<0.11.4,>=0.8.0
20
20
  Requires-Dist: dask[array]
21
21
  Requires-Dist: dask[distributed]
22
22
  Requires-Dist: filelock
@@ -65,11 +65,11 @@ Description-Content-Type: text/markdown
65
65
 
66
66
  # Ngio - Next Generation file format IO
67
67
 
68
- [![License](https://img.shields.io/pypi/l/ngio.svg?color=green)](https://github.com/lorenzocerrone/ngio/raw/main/LICENSE)
68
+ [![License](https://img.shields.io/pypi/l/ngio.svg?color=green)](https://github.com/BioVisionCenter/ngio/raw/main/LICENSE)
69
69
  [![PyPI](https://img.shields.io/pypi/v/ngio.svg?color=green)](https://pypi.org/project/ngio)
70
70
  [![Python Version](https://img.shields.io/pypi/pyversions/ngio.svg?color=green)](https://python.org)
71
- [![CI](https://github.com/fractal-analytics-platform/ngio/actions/workflows/ci.yml/badge.svg)](https://github.com/fractal-analytics-platform/ngio/actions/workflows/ci.yml)
72
- [![codecov](https://codecov.io/gh/fractal-analytics-platform/ngio/graph/badge.svg?token=FkmF26FZki)](https://codecov.io/gh/fractal-analytics-platform/ngio)
71
+ [![CI](https://github.com/BioVisionCenter/ngio/actions/workflows/ci.yml/badge.svg)](https://github.com/BioVisionCenter/ngio/actions/workflows/ci.yml)
72
+ [![codecov](https://codecov.io/gh/BioVisionCenter/ngio/graph/badge.svg?token=FkmF26FZki)](https://codecov.io/gh/BioVisionCenter/ngio)
73
73
 
74
74
  ngio is a Python library designed to simplify bioimage analysis workflows, offering an intuitive interface for working with OME-Zarr files.
75
75
 
@@ -89,7 +89,7 @@ Ngio's mission is to streamline working with OME-Zarr files by providing a simpl
89
89
  ### 🔍 Rich Tables and Regions of Interest (ROI) Support
90
90
 
91
91
  - Extract and analyze specific regions of interest
92
- - Tight integration with [Tabular Data](https://fractal-analytics-platform.github.io/ngio/stable/table_specs/overview/)
92
+ - Tight integration with [Tabular Data](https://BioVisionCenter.github.io/ngio/stable/table_specs/overview/)
93
93
 
94
94
  ### 🔄 Scalable Data Processing (Coming Soon)
95
95
 
@@ -104,7 +104,7 @@ You can install ngio via pip:
104
104
  pip install ngio
105
105
  ```
106
106
 
107
- To get started check out the [Quickstart Guide](https://fractal-analytics-platform.github.io/ngio/stable/getting_started/0_quickstart/).
107
+ To get started check out the [Quickstart Guide](https://BioVisionCenter.github.io/ngio/stable/getting_started/0_quickstart/).
108
108
 
109
109
  ## Supported OME-Zarr versions
110
110
 
@@ -136,4 +136,4 @@ Ngio is developed at the [BioVisionCenter](https://www.biovisioncenter.uzh.ch/en
136
136
 
137
137
  ## License
138
138
 
139
- Ngio is released under the BSD-3-Clause License. See [LICENSE](https://github.com/fractal-analytics-platform/ngio/blob/main/LICENSE) for details.
139
+ Ngio is released under the BSD-3-Clause License. See [LICENSE](https://github.com/BioVisionCenter/ngio/blob/main/LICENSE) for details.
@@ -25,7 +25,7 @@ ngio/ome_zarr_meta/ngio_specs/__init__.py,sha256=05NQukZG0nNvjzf8AKWGu7PhjhQcImG
25
25
  ngio/ome_zarr_meta/ngio_specs/_axes.py,sha256=tHtx6NfBgDcCgDk9CosjIjw1KZJ2qi0i_eoLgrdiEWw,16681
26
26
  ngio/ome_zarr_meta/ngio_specs/_channels.py,sha256=Jwys1yYC8q6_gIaJ52KcKcTP7hzqVjBE-VlVQvJurCs,15394
27
27
  ngio/ome_zarr_meta/ngio_specs/_dataset.py,sha256=hY8ogPPxvCgVg6k02t3zUr24lasYrvnxBd1iPEigdG4,5892
28
- ngio/ome_zarr_meta/ngio_specs/_ngio_hcs.py,sha256=uh345KQmEQtslIyMmLK9sB-NbjPYxi0Y9FuYIFhd3Rc,17465
28
+ ngio/ome_zarr_meta/ngio_specs/_ngio_hcs.py,sha256=R8F7Wkhpo1YqG2gWWwGUJflILo6gsowJg8eVXYdMxdw,17146
29
29
  ngio/ome_zarr_meta/ngio_specs/_ngio_image.py,sha256=8E38Mgw-l0Ff1nkmCJIzo64G_paAVhM8xktUS_V5egY,17960
30
30
  ngio/ome_zarr_meta/ngio_specs/_pixel_size.py,sha256=5TT8250XdCKUnk3OwZeyXIMNFKOg_jx4NnoCo9RLsXI,4079
31
31
  ngio/ome_zarr_meta/v04/__init__.py,sha256=dJRzzxyYc81kf-0Hip_bqvbdManaM8XTdQX2meWyCSs,583
@@ -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=nQZVazwTL1IHU08gL-BZcFZd7Cehhbc_AsJ3t3XSps0,1577
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=8RX2NO15CLxys3p6gw54Nd-_0WATU4WBlNndX06wvzI,2587
39
+ ngio/tables/backends/_anndata.py,sha256=0r6zOP9Nm9VVpKLB1-xZTId-e7VFJ6EGYhFSoAIylik,2831
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=QUS59VU395966AEul2SNJQAzklSitvISL0wnZTKWZa0,7267
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.3.dist-info/METADATA,sha256=R88An5Xll3DjctQyVOwJKH7Z0DaNpefeehYOqH79FoE,5868
59
- ngio-0.3.3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
60
- ngio-0.3.3.dist-info/licenses/LICENSE,sha256=UgN_a1QCeNh9rZWfz-wORQFxE3elQzLWPQaoK6N6fxQ,1502
61
- ngio-0.3.3.dist-info/RECORD,,
58
+ ngio-0.3.5.dist-info/METADATA,sha256=hOkz1FyqV41g-YgwZrtgDSZ18HxApONqsl1aoSxrZGM,5778
59
+ ngio-0.3.5.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
60
+ ngio-0.3.5.dist-info/licenses/LICENSE,sha256=UgN_a1QCeNh9rZWfz-wORQFxE3elQzLWPQaoK6N6fxQ,1502
61
+ ngio-0.3.5.dist-info/RECORD,,
File without changes