mudata 0.3.4__tar.gz → 0.3.6__tar.gz
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.
- {mudata-0.3.4 → mudata-0.3.6}/CHANGELOG.md +14 -0
- {mudata-0.3.4 → mudata-0.3.6}/PKG-INFO +1 -1
- {mudata-0.3.4 → mudata-0.3.6}/src/mudata/_core/io.py +5 -3
- {mudata-0.3.4 → mudata-0.3.6}/src/mudata/_core/mudata.py +2 -2
- {mudata-0.3.4 → mudata-0.3.6}/src/mudata/_version.py +2 -2
- {mudata-0.3.4 → mudata-0.3.6}/tests/test_obs_var.py +8 -0
- {mudata-0.3.4 → mudata-0.3.6}/.codecov.yaml +0 -0
- {mudata-0.3.4 → mudata-0.3.6}/.cruft.json +0 -0
- {mudata-0.3.4 → mudata-0.3.6}/.editorconfig +0 -0
- {mudata-0.3.4 → mudata-0.3.6}/.github/ISSUE_TEMPLATE/bug_report.yml +0 -0
- {mudata-0.3.4 → mudata-0.3.6}/.github/ISSUE_TEMPLATE/config.yml +0 -0
- {mudata-0.3.4 → mudata-0.3.6}/.github/ISSUE_TEMPLATE/feature_request.yml +0 -0
- {mudata-0.3.4 → mudata-0.3.6}/.github/workflows/build.yaml +0 -0
- {mudata-0.3.4 → mudata-0.3.6}/.github/workflows/release.yaml +0 -0
- {mudata-0.3.4 → mudata-0.3.6}/.github/workflows/test.yaml +0 -0
- {mudata-0.3.4 → mudata-0.3.6}/.gitignore +0 -0
- {mudata-0.3.4 → mudata-0.3.6}/.pre-commit-config.yaml +0 -0
- {mudata-0.3.4 → mudata-0.3.6}/.readthedocs.yaml +0 -0
- {mudata-0.3.4 → mudata-0.3.6}/CITATION.cff +0 -0
- {mudata-0.3.4 → mudata-0.3.6}/DESIGN.md +0 -0
- {mudata-0.3.4 → mudata-0.3.6}/LICENSE +0 -0
- {mudata-0.3.4 → mudata-0.3.6}/README.md +0 -0
- {mudata-0.3.4 → mudata-0.3.6}/biome.jsonc +0 -0
- {mudata-0.3.4 → mudata-0.3.6}/docs/Makefile +0 -0
- {mudata-0.3.4 → mudata-0.3.6}/docs/_static/img/mudata.png +0 -0
- {mudata-0.3.4 → mudata-0.3.6}/docs/_static/img/mudata.svg +0 -0
- {mudata-0.3.4 → mudata-0.3.6}/docs/_static/img/muon_header.png +0 -0
- {mudata-0.3.4 → mudata-0.3.6}/docs/_static/img/muon_logo.png +0 -0
- {mudata-0.3.4 → mudata-0.3.6}/docs/_static/img/muon_logo_coloured.png +0 -0
- {mudata-0.3.4 → mudata-0.3.6}/docs/_templates/.gitkeep +0 -0
- {mudata-0.3.4 → mudata-0.3.6}/docs/_templates/autosummary/class.rst +0 -0
- {mudata-0.3.4 → mudata-0.3.6}/docs/api.md +0 -0
- {mudata-0.3.4 → mudata-0.3.6}/docs/changelog.md +0 -0
- {mudata-0.3.4 → mudata-0.3.6}/docs/conf.py +0 -0
- {mudata-0.3.4 → mudata-0.3.6}/docs/contributing.md +0 -0
- {mudata-0.3.4 → mudata-0.3.6}/docs/extensions/member_type.py +0 -0
- {mudata-0.3.4 → mudata-0.3.6}/docs/extensions/typed_returns.py +0 -0
- {mudata-0.3.4 → mudata-0.3.6}/docs/index.md +0 -0
- {mudata-0.3.4 → mudata-0.3.6}/docs/install.md +0 -0
- {mudata-0.3.4 → mudata-0.3.6}/docs/io/input.md +0 -0
- {mudata-0.3.4 → mudata-0.3.6}/docs/io/mudata.md +0 -0
- {mudata-0.3.4 → mudata-0.3.6}/docs/io/output.md +0 -0
- {mudata-0.3.4 → mudata-0.3.6}/docs/io/spec.md +0 -0
- {mudata-0.3.4 → mudata-0.3.6}/docs/notebooks/annotations_management.ipynb +0 -0
- {mudata-0.3.4 → mudata-0.3.6}/docs/notebooks/axes.ipynb +0 -0
- {mudata-0.3.4 → mudata-0.3.6}/docs/notebooks/nuances.ipynb +0 -0
- {mudata-0.3.4 → mudata-0.3.6}/docs/notebooks/quickstart_mudata.ipynb +0 -0
- {mudata-0.3.4 → mudata-0.3.6}/docs/references.bib +0 -0
- {mudata-0.3.4 → mudata-0.3.6}/docs/references.md +0 -0
- {mudata-0.3.4 → mudata-0.3.6}/pyproject.toml +0 -0
- {mudata-0.3.4 → mudata-0.3.6}/src/mudata/__init__.py +0 -0
- {mudata-0.3.4 → mudata-0.3.6}/src/mudata/_core/__init__.py +0 -0
- {mudata-0.3.4 → mudata-0.3.6}/src/mudata/_core/compat.py +0 -0
- {mudata-0.3.4 → mudata-0.3.6}/src/mudata/_core/config.py +0 -0
- {mudata-0.3.4 → mudata-0.3.6}/src/mudata/_core/file_backing.py +0 -0
- {mudata-0.3.4 → mudata-0.3.6}/src/mudata/_core/merge.py +0 -0
- {mudata-0.3.4 → mudata-0.3.6}/src/mudata/_core/repr.py +0 -0
- {mudata-0.3.4 → mudata-0.3.6}/src/mudata/_core/to_.py +0 -0
- {mudata-0.3.4 → mudata-0.3.6}/src/mudata/_core/utils.py +0 -0
- {mudata-0.3.4 → mudata-0.3.6}/src/mudata/_core/views.py +0 -0
- {mudata-0.3.4 → mudata-0.3.6}/tests/conftest.py +0 -0
- {mudata-0.3.4 → mudata-0.3.6}/tests/test_axis_-1.py +0 -0
- {mudata-0.3.4 → mudata-0.3.6}/tests/test_from_to.py +0 -0
- {mudata-0.3.4 → mudata-0.3.6}/tests/test_io.py +0 -0
- {mudata-0.3.4 → mudata-0.3.6}/tests/test_merge.py +0 -0
- {mudata-0.3.4 → mudata-0.3.6}/tests/test_nested.py +0 -0
- {mudata-0.3.4 → mudata-0.3.6}/tests/test_pandas_utils.py +0 -0
- {mudata-0.3.4 → mudata-0.3.6}/tests/test_pull_push.py +0 -0
- {mudata-0.3.4 → mudata-0.3.6}/tests/test_repr.py +0 -0
- {mudata-0.3.4 → mudata-0.3.6}/tests/test_update.py +0 -0
- {mudata-0.3.4 → mudata-0.3.6}/tests/test_view_copy.py +0 -0
|
@@ -8,6 +8,18 @@ and this project adheres to [Semantic Versioning][].
|
|
|
8
8
|
[keep a changelog]: https://keepachangelog.com/en/1.1.0/
|
|
9
9
|
[semantic versioning]: https://semver.org/spec/v2.0.0.html
|
|
10
10
|
|
|
11
|
+
## [0.3.6]
|
|
12
|
+
|
|
13
|
+
### Fixed
|
|
14
|
+
|
|
15
|
+
- `.obsmap` and `.varmap` are once again writeable
|
|
16
|
+
|
|
17
|
+
## [0.3.5]
|
|
18
|
+
|
|
19
|
+
### Fixed
|
|
20
|
+
|
|
21
|
+
- `zarr` is once again an optional dependency
|
|
22
|
+
|
|
11
23
|
## [0.3.4]
|
|
12
24
|
|
|
13
25
|
### Added
|
|
@@ -144,6 +156,8 @@ To copy the annotations explicitly, you will need to use `pull_obs()` and/or `pu
|
|
|
144
156
|
|
|
145
157
|
Initial `mudata` release with `MuData`, previously a part of the `muon` framework.
|
|
146
158
|
|
|
159
|
+
[0.3.6]: https://github.com/scverse/mudata/releases/tag/v0.3.6
|
|
160
|
+
[0.3.5]: https://github.com/scverse/mudata/releases/tag/v0.3.5
|
|
147
161
|
[0.3.4]: https://github.com/scverse/mudata/releases/tag/v0.3.4
|
|
148
162
|
[0.3.3]: https://github.com/scverse/mudata/releases/tag/v0.3.3
|
|
149
163
|
[0.3.2]: https://github.com/scverse/mudata/releases/tag/v0.3.2
|
|
@@ -22,9 +22,6 @@ from anndata import AnnData
|
|
|
22
22
|
from anndata._io.h5ad import _read_raw
|
|
23
23
|
from anndata._io.h5ad import read_dataframe as read_h5ad_dataframe
|
|
24
24
|
from anndata._io.specs.registry import read_elem, write_elem
|
|
25
|
-
from anndata._io.zarr import _read_legacy_raw
|
|
26
|
-
from anndata._io.zarr import read_dataframe as read_zarr_dataframe
|
|
27
|
-
from anndata._io.zarr import write_zarr as anndata_write_zarr
|
|
28
25
|
from anndata.compat import _read_attr
|
|
29
26
|
from scipy import sparse
|
|
30
27
|
|
|
@@ -139,6 +136,7 @@ def write_zarr(
|
|
|
139
136
|
Additional arguments to :func:`zarr.create_array`.
|
|
140
137
|
"""
|
|
141
138
|
import zarr
|
|
139
|
+
from anndata._io.zarr import write_zarr as anndata_write_zarr
|
|
142
140
|
|
|
143
141
|
from .. import __anndataversion__, __mudataversion__, __version__
|
|
144
142
|
|
|
@@ -478,6 +476,7 @@ def read_zarr(store: str | PathLike | MutableMapping | zarr.Group | zarr.abc.sto
|
|
|
478
476
|
The file name or a Zarr store.
|
|
479
477
|
"""
|
|
480
478
|
import zarr
|
|
479
|
+
from anndata._io.zarr import read_dataframe as read_zarr_dataframe
|
|
481
480
|
|
|
482
481
|
if isinstance(store, Path):
|
|
483
482
|
store = str(store)
|
|
@@ -514,6 +513,9 @@ def read_zarr(store: str | PathLike | MutableMapping | zarr.Group | zarr.abc.sto
|
|
|
514
513
|
|
|
515
514
|
|
|
516
515
|
def _read_zarr_mod(g: zarr.Group, manager: MuDataFileManager = None, backed: bool = False) -> dict:
|
|
516
|
+
from anndata._io.zarr import _read_legacy_raw
|
|
517
|
+
from anndata._io.zarr import read_dataframe as read_zarr_dataframe
|
|
518
|
+
|
|
517
519
|
d = {}
|
|
518
520
|
|
|
519
521
|
for k in g.keys():
|
|
@@ -1482,7 +1482,7 @@ class MuData:
|
|
|
1482
1482
|
in the array contains the numerical index of the observation in the respective modality corresponding to the :class:`MuData`
|
|
1483
1483
|
observation in that position. The index is 1-based, 0 indicates that the observation is missing in the modality.
|
|
1484
1484
|
"""
|
|
1485
|
-
return
|
|
1485
|
+
return self._obsmap
|
|
1486
1486
|
|
|
1487
1487
|
@property
|
|
1488
1488
|
def varm(self) -> MutableMapping[str]:
|
|
@@ -1532,7 +1532,7 @@ class MuData:
|
|
|
1532
1532
|
in the array contains the numerical index of the feature in the respective modality corresponding to the :class:`MuData`
|
|
1533
1533
|
feature in that position. The index is 1-based, 0 indicates that the feature is missing in the modality.
|
|
1534
1534
|
"""
|
|
1535
|
-
return
|
|
1535
|
+
return self._varmap
|
|
1536
1536
|
|
|
1537
1537
|
# Unstructured annotations
|
|
1538
1538
|
|
|
@@ -18,7 +18,7 @@ version_tuple: tuple[int | str, ...]
|
|
|
18
18
|
commit_id: str | None
|
|
19
19
|
__commit_id__: str | None
|
|
20
20
|
|
|
21
|
-
__version__ = version = '0.3.
|
|
22
|
-
__version_tuple__ = version_tuple = (0, 3,
|
|
21
|
+
__version__ = version = '0.3.6'
|
|
22
|
+
__version_tuple__ = version_tuple = (0, 3, 6)
|
|
23
23
|
|
|
24
24
|
__commit_id__ = commit_id = None
|
|
@@ -44,6 +44,10 @@ def test_obs_vector(mdata: md.MuData):
|
|
|
44
44
|
mdata.obs_vector("foo")
|
|
45
45
|
|
|
46
46
|
|
|
47
|
+
def test_obsmap_writeable(mdata: md.MuData):
|
|
48
|
+
mdata.obsmap["test_writeable"] = np.arange(mdata.n_obs)
|
|
49
|
+
|
|
50
|
+
|
|
47
51
|
@pytest.mark.parametrize("mdata", (0, 1), indirect=True)
|
|
48
52
|
def test_var_global_columns(mdata: md.MuData, filepath_h5mu: str | Path):
|
|
49
53
|
mdata.var.drop(columns=mdata.var.columns, inplace=True)
|
|
@@ -89,6 +93,10 @@ def test_var_vector(rng: np.random.Generator, mdata: md.MuData):
|
|
|
89
93
|
mdata.var_vector("assert-boolean-1")
|
|
90
94
|
|
|
91
95
|
|
|
96
|
+
def test_varmap_writeable(mdata: md.MuData):
|
|
97
|
+
mdata.varmap["test_writeable"] = np.arange(mdata.n_vars)
|
|
98
|
+
|
|
99
|
+
|
|
92
100
|
@pytest.mark.parametrize("mdata", (0, 1), indirect=True)
|
|
93
101
|
def test_names_make_unique(mdata: md.MuData):
|
|
94
102
|
attr = "obs" if mdata.axis == 0 else "var"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|