mudata 0.3.2__tar.gz → 0.3.4__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.2/.codecov.yml → mudata-0.3.4/.codecov.yaml +3 -4
- mudata-0.3.4/.cruft.json +43 -0
- {mudata-0.3.2 → mudata-0.3.4}/.editorconfig +9 -6
- mudata-0.3.4/.github/ISSUE_TEMPLATE/bug_report.yml +93 -0
- mudata-0.3.4/.github/ISSUE_TEMPLATE/config.yml +5 -0
- mudata-0.3.4/.github/ISSUE_TEMPLATE/feature_request.yml +11 -0
- mudata-0.3.4/.github/workflows/build.yaml +30 -0
- mudata-0.3.4/.github/workflows/release.yaml +29 -0
- mudata-0.3.4/.github/workflows/test.yaml +107 -0
- mudata-0.3.4/.gitignore +27 -0
- mudata-0.3.4/.pre-commit-config.yaml +38 -0
- mudata-0.3.4/.readthedocs.yaml +16 -0
- mudata-0.3.4/CHANGELOG.md +159 -0
- mudata-0.3.4/PKG-INFO +199 -0
- mudata-0.3.4/README.md +136 -0
- mudata-0.3.4/biome.jsonc +17 -0
- mudata-0.3.4/docs/Makefile +20 -0
- mudata-0.3.4/docs/_static/img/mudata.png +0 -0
- mudata-0.3.4/docs/_static/img/mudata.svg +36 -0
- mudata-0.3.4/docs/_static/img/muon_header.png +0 -0
- mudata-0.3.4/docs/_static/img/muon_logo.png +0 -0
- mudata-0.3.4/docs/_static/img/muon_logo_coloured.png +0 -0
- mudata-0.3.4/docs/_templates/autosummary/class.rst +61 -0
- mudata-0.3.4/docs/api.md +60 -0
- mudata-0.3.4/docs/changelog.md +3 -0
- mudata-0.3.4/docs/conf.py +140 -0
- mudata-0.3.4/docs/contributing.md +338 -0
- mudata-0.3.4/docs/extensions/member_type.py +34 -0
- mudata-0.3.4/docs/extensions/typed_returns.py +32 -0
- mudata-0.3.4/docs/index.md +66 -0
- mudata-0.3.4/docs/install.md +32 -0
- mudata-0.3.4/docs/io/input.md +89 -0
- mudata-0.3.4/docs/io/mudata.md +181 -0
- mudata-0.3.4/docs/io/output.md +77 -0
- mudata-0.3.4/docs/io/spec.md +61 -0
- mudata-0.3.4/docs/notebooks/annotations_management.ipynb +2532 -0
- mudata-0.3.4/docs/notebooks/axes.ipynb +499 -0
- mudata-0.3.4/docs/notebooks/nuances.ipynb +707 -0
- mudata-0.3.4/docs/notebooks/quickstart_mudata.ipynb +845 -0
- mudata-0.3.4/docs/references.bib +26 -0
- mudata-0.3.4/docs/references.md +5 -0
- mudata-0.3.4/pyproject.toml +157 -0
- {mudata-0.3.2 → mudata-0.3.4}/src/mudata/__init__.py +8 -10
- mudata-0.3.4/src/mudata/_core/compat.py +29 -0
- {mudata-0.3.2 → mudata-0.3.4}/src/mudata/_core/config.py +4 -8
- {mudata-0.3.2 → mudata-0.3.4}/src/mudata/_core/file_backing.py +6 -27
- {mudata-0.3.2 → mudata-0.3.4}/src/mudata/_core/io.py +253 -310
- {mudata-0.3.2 → mudata-0.3.4}/src/mudata/_core/merge.py +27 -46
- {mudata-0.3.2 → mudata-0.3.4}/src/mudata/_core/mudata.py +673 -922
- {mudata-0.3.2 → mudata-0.3.4}/src/mudata/_core/repr.py +9 -28
- {mudata-0.3.2 → mudata-0.3.4}/src/mudata/_core/to_.py +20 -26
- mudata-0.3.4/src/mudata/_core/utils.py +147 -0
- {mudata-0.3.2 → mudata-0.3.4}/src/mudata/_core/views.py +4 -13
- mudata-0.3.4/src/mudata/_version.py +24 -0
- mudata-0.3.4/tests/conftest.py +68 -0
- mudata-0.3.4/tests/test_axis_-1.py +16 -0
- mudata-0.3.4/tests/test_from_to.py +30 -0
- mudata-0.3.4/tests/test_io.py +225 -0
- mudata-0.3.4/tests/test_merge.py +20 -0
- mudata-0.3.2/tests/test_repr.py → mudata-0.3.4/tests/test_nested.py +14 -14
- mudata-0.3.4/tests/test_obs_var.py +120 -0
- mudata-0.3.4/tests/test_pandas_utils.py +47 -0
- mudata-0.3.4/tests/test_pull_push.py +478 -0
- mudata-0.3.4/tests/test_repr.py +43 -0
- mudata-0.3.4/tests/test_update.py +512 -0
- mudata-0.3.4/tests/test_view_copy.py +240 -0
- mudata-0.3.2/.gitignore +0 -134
- mudata-0.3.2/.pre-commit-config.yaml +0 -6
- mudata-0.3.2/.readthedocs.yaml +0 -19
- mudata-0.3.2/CONTRIBUTING.md +0 -23
- mudata-0.3.2/MANIFEST.in +0 -1
- mudata-0.3.2/PKG-INFO +0 -149
- mudata-0.3.2/README.md +0 -115
- mudata-0.3.2/pyproject.toml +0 -103
- mudata-0.3.2/src/mudata/_core/compat.py +0 -47
- mudata-0.3.2/src/mudata/_core/utils.py +0 -212
- mudata-0.3.2/src/mudata/_version.py +0 -21
- mudata-0.3.2/tests/conftest.py +0 -26
- mudata-0.3.2/tests/test_axis_-1.py +0 -27
- mudata-0.3.2/tests/test_io.py +0 -77
- mudata-0.3.2/tests/test_merge.py +0 -47
- mudata-0.3.2/tests/test_mod_order.py +0 -55
- mudata-0.3.2/tests/test_nullable.py +0 -40
- mudata-0.3.2/tests/test_obs_var.py +0 -53
- mudata-0.3.2/tests/test_pull_push.py +0 -310
- mudata-0.3.2/tests/test_to_.py +0 -48
- mudata-0.3.2/tests/test_update.py +0 -236
- mudata-0.3.2/tests/test_update_axis_1.py +0 -222
- mudata-0.3.2/tests/test_view_copy.py +0 -223
- {mudata-0.3.2 → mudata-0.3.4}/CITATION.cff +0 -0
- {mudata-0.3.2 → mudata-0.3.4}/DESIGN.md +0 -0
- {mudata-0.3.2 → mudata-0.3.4}/LICENSE +0 -0
- /mudata-0.3.2/src/mudata/_core/__init__.py → /mudata-0.3.4/docs/_templates/.gitkeep +0 -0
- {mudata-0.3.2/tests → mudata-0.3.4/src/mudata/_core}/__init__.py +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Based on pydata/xarray
|
|
1
|
+
# Based on pydata/xarray
|
|
2
2
|
codecov:
|
|
3
3
|
require_ci_to_pass: no
|
|
4
4
|
|
|
@@ -6,12 +6,11 @@ coverage:
|
|
|
6
6
|
status:
|
|
7
7
|
project:
|
|
8
8
|
default:
|
|
9
|
-
|
|
10
|
-
target: 1
|
|
9
|
+
target: 80
|
|
11
10
|
patch: false
|
|
12
11
|
changes: false
|
|
13
12
|
|
|
14
13
|
comment:
|
|
15
|
-
layout:
|
|
14
|
+
layout: diff, flags, files
|
|
16
15
|
behavior: once
|
|
17
16
|
require_base: no
|
mudata-0.3.4/.cruft.json
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"template": "https://github.com/scverse/cookiecutter-scverse",
|
|
3
|
+
"commit": "77339226581ec535e1972984083ae70b702e7bec",
|
|
4
|
+
"checkout": null,
|
|
5
|
+
"context": {
|
|
6
|
+
"cookiecutter": {
|
|
7
|
+
"project_name": "mudata",
|
|
8
|
+
"package_name": "mudata",
|
|
9
|
+
"project_description": "Multimodal data",
|
|
10
|
+
"author_full_name": "Danila Bredikhin",
|
|
11
|
+
"author_email": "danila@stanford.edu",
|
|
12
|
+
"github_user": "scverse",
|
|
13
|
+
"github_repo": "mudata",
|
|
14
|
+
"license": "BSD 3-Clause License",
|
|
15
|
+
"ide_integration": false,
|
|
16
|
+
"_copy_without_render": [
|
|
17
|
+
".github/workflows/build.yaml",
|
|
18
|
+
".github/workflows/test.yaml",
|
|
19
|
+
"docs/_templates/autosummary/**.rst"
|
|
20
|
+
],
|
|
21
|
+
"_exclude_on_template_update": [
|
|
22
|
+
"CHANGELOG.md",
|
|
23
|
+
"LICENSE",
|
|
24
|
+
"README.md",
|
|
25
|
+
"docs/api.md",
|
|
26
|
+
"docs/index.md",
|
|
27
|
+
"docs/notebooks/example.ipynb",
|
|
28
|
+
"docs/references.bib",
|
|
29
|
+
"docs/references.md",
|
|
30
|
+
"src/**",
|
|
31
|
+
"tests/**"
|
|
32
|
+
],
|
|
33
|
+
"_render_devdocs": false,
|
|
34
|
+
"_jinja2_env_vars": {
|
|
35
|
+
"lstrip_blocks": true,
|
|
36
|
+
"trim_blocks": true
|
|
37
|
+
},
|
|
38
|
+
"_template": "https://github.com/scverse/cookiecutter-scverse",
|
|
39
|
+
"_commit": "77339226581ec535e1972984083ae70b702e7bec"
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"directory": null
|
|
43
|
+
}
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
root = true
|
|
2
2
|
|
|
3
3
|
[*]
|
|
4
|
-
|
|
4
|
+
indent_style = space
|
|
5
|
+
indent_size = 4
|
|
5
6
|
end_of_line = lf
|
|
6
|
-
|
|
7
|
+
charset = utf-8
|
|
7
8
|
trim_trailing_whitespace = true
|
|
8
|
-
|
|
9
|
+
insert_final_newline = true
|
|
9
10
|
|
|
10
|
-
[*.
|
|
11
|
-
indent_size =
|
|
12
|
-
|
|
11
|
+
[{*.{yml,yaml,toml},.cruft.json}]
|
|
12
|
+
indent_size = 2
|
|
13
|
+
|
|
14
|
+
[Makefile]
|
|
15
|
+
indent_style = tab
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
name: Bug report
|
|
2
|
+
description: Report something that is broken or incorrect
|
|
3
|
+
type: Bug
|
|
4
|
+
body:
|
|
5
|
+
- type: markdown
|
|
6
|
+
attributes:
|
|
7
|
+
value: |
|
|
8
|
+
**Note**: Please read [this guide](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports)
|
|
9
|
+
detailing how to provide the necessary information for us to reproduce your bug. In brief:
|
|
10
|
+
* Please provide exact steps how to reproduce the bug in a clean Python environment.
|
|
11
|
+
* In case it's not clear what's causing this bug, please provide the data or the data generation procedure.
|
|
12
|
+
* Replicate problems on public datasets or share data subsets when full sharing isn't possible.
|
|
13
|
+
|
|
14
|
+
- type: textarea
|
|
15
|
+
id: report
|
|
16
|
+
attributes:
|
|
17
|
+
label: Report
|
|
18
|
+
description: A clear and concise description of what the bug is.
|
|
19
|
+
validations:
|
|
20
|
+
required: true
|
|
21
|
+
|
|
22
|
+
- type: textarea
|
|
23
|
+
id: versions
|
|
24
|
+
attributes:
|
|
25
|
+
label: Versions
|
|
26
|
+
description: |
|
|
27
|
+
Which version of packages.
|
|
28
|
+
|
|
29
|
+
Please install `session-info2`, run the following command in a notebook,
|
|
30
|
+
click the “Copy as Markdown” button, then paste the results into the text box below.
|
|
31
|
+
|
|
32
|
+
```python
|
|
33
|
+
In[1]: import session_info2; session_info2.session_info(dependencies=True)
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
Alternatively, run this in a console:
|
|
37
|
+
|
|
38
|
+
```python
|
|
39
|
+
>>> import session_info2; print(session_info2.session_info(dependencies=True)._repr_mimebundle_()["text/markdown"])
|
|
40
|
+
```
|
|
41
|
+
render: python
|
|
42
|
+
placeholder: |
|
|
43
|
+
anndata 0.11.3
|
|
44
|
+
---- ----
|
|
45
|
+
charset-normalizer 3.4.1
|
|
46
|
+
coverage 7.7.0
|
|
47
|
+
psutil 7.0.0
|
|
48
|
+
dask 2024.7.1
|
|
49
|
+
jaraco.context 5.3.0
|
|
50
|
+
numcodecs 0.15.1
|
|
51
|
+
jaraco.functools 4.0.1
|
|
52
|
+
Jinja2 3.1.6
|
|
53
|
+
sphinxcontrib-jsmath 1.0.1
|
|
54
|
+
sphinxcontrib-htmlhelp 2.1.0
|
|
55
|
+
toolz 1.0.0
|
|
56
|
+
session-info2 0.1.2
|
|
57
|
+
PyYAML 6.0.2
|
|
58
|
+
llvmlite 0.44.0
|
|
59
|
+
scipy 1.15.2
|
|
60
|
+
pandas 2.2.3
|
|
61
|
+
sphinxcontrib-devhelp 2.0.0
|
|
62
|
+
h5py 3.13.0
|
|
63
|
+
tblib 3.0.0
|
|
64
|
+
setuptools-scm 8.2.0
|
|
65
|
+
more-itertools 10.3.0
|
|
66
|
+
msgpack 1.1.0
|
|
67
|
+
sparse 0.15.5
|
|
68
|
+
wrapt 1.17.2
|
|
69
|
+
jaraco.collections 5.1.0
|
|
70
|
+
numba 0.61.0
|
|
71
|
+
pyarrow 19.0.1
|
|
72
|
+
pytz 2025.1
|
|
73
|
+
MarkupSafe 3.0.2
|
|
74
|
+
crc32c 2.7.1
|
|
75
|
+
sphinxcontrib-qthelp 2.0.0
|
|
76
|
+
sphinxcontrib-serializinghtml 2.0.0
|
|
77
|
+
zarr 2.18.4
|
|
78
|
+
asciitree 0.3.3
|
|
79
|
+
six 1.17.0
|
|
80
|
+
sphinxcontrib-applehelp 2.0.0
|
|
81
|
+
numpy 2.1.3
|
|
82
|
+
cloudpickle 3.1.1
|
|
83
|
+
sphinxcontrib-bibtex 2.6.3
|
|
84
|
+
natsort 8.4.0
|
|
85
|
+
jaraco.text 3.12.1
|
|
86
|
+
setuptools 76.1.0
|
|
87
|
+
Deprecated 1.2.18
|
|
88
|
+
packaging 24.2
|
|
89
|
+
python-dateutil 2.9.0.post0
|
|
90
|
+
---- ----
|
|
91
|
+
Python 3.13.2 | packaged by conda-forge | (main, Feb 17 2025, 14:10:22) [GCC 13.3.0]
|
|
92
|
+
OS Linux-6.11.0-109019-tuxedo-x86_64-with-glibc2.39
|
|
93
|
+
Updated 2025-03-18 15:47
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
name: Feature request
|
|
2
|
+
description: Propose a new feature for mudata
|
|
3
|
+
type: Enhancement
|
|
4
|
+
body:
|
|
5
|
+
- type: textarea
|
|
6
|
+
id: description
|
|
7
|
+
attributes:
|
|
8
|
+
label: Description of feature
|
|
9
|
+
description: Please describe your suggestion for a new feature. It might help to describe a problem or use case, plus any alternatives that you have considered.
|
|
10
|
+
validations:
|
|
11
|
+
required: true
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
name: Check Build
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- main
|
|
7
|
+
- "v[0-9]+.[0-9]+.x"
|
|
8
|
+
pull_request:
|
|
9
|
+
branches:
|
|
10
|
+
- main
|
|
11
|
+
- "v[0-9]+.[0-9]+.x"
|
|
12
|
+
|
|
13
|
+
concurrency:
|
|
14
|
+
group: ${{ github.workflow }}-${{ github.ref }}
|
|
15
|
+
cancel-in-progress: true
|
|
16
|
+
|
|
17
|
+
jobs:
|
|
18
|
+
package:
|
|
19
|
+
runs-on: ubuntu-latest
|
|
20
|
+
steps:
|
|
21
|
+
- uses: actions/checkout@v6
|
|
22
|
+
with:
|
|
23
|
+
filter: blob:none
|
|
24
|
+
fetch-depth: 0
|
|
25
|
+
- name: Install uv
|
|
26
|
+
uses: astral-sh/setup-uv@v7
|
|
27
|
+
- name: Build package
|
|
28
|
+
run: uv build
|
|
29
|
+
- name: Check package
|
|
30
|
+
run: uvx twine check --strict dist/*.whl
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
name: Release
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
tags:
|
|
6
|
+
- "v?[0-9]+.[0-9]+.[0-9]+**"
|
|
7
|
+
workflow_dispatch:
|
|
8
|
+
|
|
9
|
+
# Use "trusted publishing", see https://docs.pypi.org/trusted-publishers/
|
|
10
|
+
jobs:
|
|
11
|
+
release:
|
|
12
|
+
name: Upload release to PyPI
|
|
13
|
+
runs-on: ubuntu-latest
|
|
14
|
+
environment:
|
|
15
|
+
name: pypi
|
|
16
|
+
url: https://pypi.org/p/mudata
|
|
17
|
+
permissions:
|
|
18
|
+
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
|
|
19
|
+
steps:
|
|
20
|
+
- uses: actions/checkout@v6
|
|
21
|
+
with:
|
|
22
|
+
filter: blob:none
|
|
23
|
+
fetch-depth: 0
|
|
24
|
+
- name: Install uv
|
|
25
|
+
uses: astral-sh/setup-uv@v7
|
|
26
|
+
- name: Build package
|
|
27
|
+
run: uv build
|
|
28
|
+
- name: Publish package distributions to PyPI
|
|
29
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
name: Test
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- main
|
|
7
|
+
- "v[0-9]+.[0-9]+.x"
|
|
8
|
+
pull_request:
|
|
9
|
+
branches:
|
|
10
|
+
- main
|
|
11
|
+
- "v[0-9]+.[0-9]+.x"
|
|
12
|
+
schedule:
|
|
13
|
+
- cron: "0 5 1,15 * *"
|
|
14
|
+
|
|
15
|
+
concurrency:
|
|
16
|
+
group: ${{ github.workflow }}-${{ github.ref }}
|
|
17
|
+
cancel-in-progress: true
|
|
18
|
+
|
|
19
|
+
jobs:
|
|
20
|
+
# Get the test environment from hatch as defined in pyproject.toml.
|
|
21
|
+
# This ensures that the pyproject.toml is the single point of truth for test definitions and the same tests are
|
|
22
|
+
# run locally and on continuous integration.
|
|
23
|
+
# Check [[tool.hatch.envs.hatch-test.matrix]] in pyproject.toml and https://hatch.pypa.io/latest/environment/ for
|
|
24
|
+
# more details.
|
|
25
|
+
get-environments:
|
|
26
|
+
runs-on: ubuntu-latest
|
|
27
|
+
outputs:
|
|
28
|
+
envs: ${{ steps.get-envs.outputs.envs }}
|
|
29
|
+
steps:
|
|
30
|
+
- uses: actions/checkout@v6
|
|
31
|
+
with:
|
|
32
|
+
filter: blob:none
|
|
33
|
+
fetch-depth: 0
|
|
34
|
+
- name: Install uv
|
|
35
|
+
uses: astral-sh/setup-uv@v7
|
|
36
|
+
- name: Get test environments
|
|
37
|
+
id: get-envs
|
|
38
|
+
run: |
|
|
39
|
+
ENVS_JSON=$(uvx hatch env show --json | jq -c 'to_entries
|
|
40
|
+
| map(
|
|
41
|
+
select(.key | startswith("hatch-test"))
|
|
42
|
+
| {
|
|
43
|
+
name: .key,
|
|
44
|
+
label: (if (.key | contains("pre")) then .key + " (PRE-RELEASE DEPENDENCIES)" else .key end),
|
|
45
|
+
python: .value.python
|
|
46
|
+
}
|
|
47
|
+
)')
|
|
48
|
+
echo "envs=${ENVS_JSON}" | tee $GITHUB_OUTPUT
|
|
49
|
+
|
|
50
|
+
# Run tests through hatch. Spawns a separate runner for each environment defined in the hatch matrix obtained above.
|
|
51
|
+
test:
|
|
52
|
+
needs: get-environments
|
|
53
|
+
permissions:
|
|
54
|
+
id-token: write # for codecov OIDC
|
|
55
|
+
|
|
56
|
+
strategy:
|
|
57
|
+
fail-fast: false
|
|
58
|
+
matrix:
|
|
59
|
+
os: [ubuntu-latest]
|
|
60
|
+
env: ${{ fromJSON(needs.get-environments.outputs.envs) }}
|
|
61
|
+
|
|
62
|
+
name: ${{ matrix.env.label }}
|
|
63
|
+
runs-on: ${{ matrix.os }}
|
|
64
|
+
continue-on-error: ${{ contains(matrix.env.name, 'pre') }} # make "all-green" pass even if pre-release job fails
|
|
65
|
+
|
|
66
|
+
steps:
|
|
67
|
+
- uses: actions/checkout@v6
|
|
68
|
+
with:
|
|
69
|
+
filter: blob:none
|
|
70
|
+
fetch-depth: 0
|
|
71
|
+
- name: Install uv
|
|
72
|
+
uses: astral-sh/setup-uv@v7
|
|
73
|
+
with:
|
|
74
|
+
python-version: ${{ matrix.env.python }}
|
|
75
|
+
- name: create hatch environment
|
|
76
|
+
run: uvx hatch env create ${{ matrix.env.name }}
|
|
77
|
+
- name: run tests using hatch
|
|
78
|
+
env:
|
|
79
|
+
MPLBACKEND: agg
|
|
80
|
+
PLATFORM: ${{ matrix.os }}
|
|
81
|
+
DISPLAY: :42
|
|
82
|
+
run: uvx hatch run ${{ matrix.env.name }}:run-cov -v --color=yes -n auto
|
|
83
|
+
- name: generate coverage report
|
|
84
|
+
run: |
|
|
85
|
+
# See https://coverage.readthedocs.io/en/latest/config.html#run-patch
|
|
86
|
+
test -f .coverage || uvx hatch run ${{ matrix.env.name }}:cov-combine
|
|
87
|
+
uvx hatch run ${{ matrix.env.name }}:cov-report # report visibly
|
|
88
|
+
uvx hatch run ${{ matrix.env.name }}:coverage xml # create report for upload
|
|
89
|
+
- name: Upload coverage
|
|
90
|
+
uses: codecov/codecov-action@v5
|
|
91
|
+
with:
|
|
92
|
+
fail_ci_if_error: true
|
|
93
|
+
use_oidc: true
|
|
94
|
+
|
|
95
|
+
# Check that all tests defined above pass. This makes it easy to set a single "required" test in branch
|
|
96
|
+
# protection instead of having to update it frequently. See https://github.com/re-actors/alls-green#why.
|
|
97
|
+
check:
|
|
98
|
+
name: Tests pass in all hatch environments
|
|
99
|
+
if: always()
|
|
100
|
+
needs:
|
|
101
|
+
- get-environments
|
|
102
|
+
- test
|
|
103
|
+
runs-on: ubuntu-latest
|
|
104
|
+
steps:
|
|
105
|
+
- uses: re-actors/alls-green@release/v1
|
|
106
|
+
with:
|
|
107
|
+
jobs: ${{ toJSON(needs) }}
|
mudata-0.3.4/.gitignore
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Temp files
|
|
2
|
+
.DS_Store
|
|
3
|
+
*~
|
|
4
|
+
buck-out/
|
|
5
|
+
.ipynb_checkpoints
|
|
6
|
+
|
|
7
|
+
# IDEs
|
|
8
|
+
/.idea/
|
|
9
|
+
/.vscode/
|
|
10
|
+
|
|
11
|
+
# Compiled files
|
|
12
|
+
.venv/
|
|
13
|
+
__pycache__/
|
|
14
|
+
.*cache/
|
|
15
|
+
/src/mudata/_version.py
|
|
16
|
+
|
|
17
|
+
# Distribution / packaging
|
|
18
|
+
/dist/
|
|
19
|
+
|
|
20
|
+
# Tests and coverage
|
|
21
|
+
/data/
|
|
22
|
+
/node_modules/
|
|
23
|
+
/.coverage*
|
|
24
|
+
|
|
25
|
+
# docs
|
|
26
|
+
/docs/generated/
|
|
27
|
+
/docs/_build/
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
fail_fast: false
|
|
2
|
+
default_language_version:
|
|
3
|
+
python: python3
|
|
4
|
+
default_stages:
|
|
5
|
+
- pre-commit
|
|
6
|
+
- pre-push
|
|
7
|
+
minimum_pre_commit_version: 2.16.0
|
|
8
|
+
repos:
|
|
9
|
+
- repo: https://github.com/biomejs/pre-commit
|
|
10
|
+
rev: v2.4.10
|
|
11
|
+
hooks:
|
|
12
|
+
- id: biome-format
|
|
13
|
+
exclude: ^\.cruft\.json$ # inconsistent indentation with cruft - file never to be modified manually.
|
|
14
|
+
- repo: https://github.com/tox-dev/pyproject-fmt
|
|
15
|
+
rev: v2.21.0
|
|
16
|
+
hooks:
|
|
17
|
+
- id: pyproject-fmt
|
|
18
|
+
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
19
|
+
rev: v0.15.9
|
|
20
|
+
hooks:
|
|
21
|
+
- id: ruff-check
|
|
22
|
+
types_or: [python, pyi, jupyter]
|
|
23
|
+
args: [--fix, --exit-non-zero-on-fix]
|
|
24
|
+
- id: ruff-format
|
|
25
|
+
types_or: [python, pyi, jupyter]
|
|
26
|
+
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
27
|
+
rev: v6.0.0
|
|
28
|
+
hooks:
|
|
29
|
+
- id: detect-private-key
|
|
30
|
+
- id: check-ast
|
|
31
|
+
- id: end-of-file-fixer
|
|
32
|
+
- id: mixed-line-ending
|
|
33
|
+
args: [--fix=lf]
|
|
34
|
+
- id: trailing-whitespace
|
|
35
|
+
- id: check-case-conflict
|
|
36
|
+
# Check that there are no merge conflicts (could be generated by template sync)
|
|
37
|
+
- id: check-merge-conflict
|
|
38
|
+
args: [--assume-in-merge]
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# https://docs.readthedocs.io/en/stable/config-file/v2.html
|
|
2
|
+
version: 2
|
|
3
|
+
build:
|
|
4
|
+
os: ubuntu-24.04
|
|
5
|
+
tools:
|
|
6
|
+
python: "3.14"
|
|
7
|
+
nodejs: latest
|
|
8
|
+
jobs:
|
|
9
|
+
create_environment:
|
|
10
|
+
- asdf plugin add uv
|
|
11
|
+
- asdf install uv latest
|
|
12
|
+
- asdf global uv latest
|
|
13
|
+
build:
|
|
14
|
+
html:
|
|
15
|
+
- uvx hatch run docs:build
|
|
16
|
+
- mv docs/_build $READTHEDOCS_OUTPUT
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog][],
|
|
6
|
+
and this project adheres to [Semantic Versioning][].
|
|
7
|
+
|
|
8
|
+
[keep a changelog]: https://keepachangelog.com/en/1.1.0/
|
|
9
|
+
[semantic versioning]: https://semver.org/spec/v2.0.0.html
|
|
10
|
+
|
|
11
|
+
## [0.3.4]
|
|
12
|
+
|
|
13
|
+
### Added
|
|
14
|
+
|
|
15
|
+
- `mudata.register_mudata_namespace()` functionality for adding custom functionality to `MuData` objects.
|
|
16
|
+
|
|
17
|
+
### Fixed
|
|
18
|
+
|
|
19
|
+
- `update()`, `push_obs()`, `push_var()`, `pull_obs()`, and `pull_var()` now try harder to preserve the dtype of the dataframe columns
|
|
20
|
+
|
|
21
|
+
### Deprecated
|
|
22
|
+
|
|
23
|
+
- `MuData.mod_names`, `MuData.obs_keys`, `MuData.var_keys`, `MuData.obsm_keys`, `MuData.varm_keys`, `MuData.uns_keys`, `MuData.obs_vector`, `MuData.var_vector`.
|
|
24
|
+
Their analogs in AnnData will be deprecated in AnnData 0.13.
|
|
25
|
+
|
|
26
|
+
## [0.3.3]
|
|
27
|
+
|
|
28
|
+
### Fixed
|
|
29
|
+
|
|
30
|
+
- Fixed an [issue](https://github.com/scverse/mudata/issues/103) in `update()` with duplicate obs_names and dataframes in obsm.
|
|
31
|
+
- Fixed an [issue](https://github.com/scverse/mudata/issues/109) with column ordering in `push_obs()`.
|
|
32
|
+
- Fixed an [issue](https://github.com/scverse/mudata/issues/107) in `update()` when there are more than 255 duplicates of an obs_name or var_name.
|
|
33
|
+
- Fixed an [issue](https://github.com/scverse/mudata/issues/112) where setting global `obs_names` or `var_names` would reorder modality-specific names
|
|
34
|
+
- Pandas 3 compatibility.
|
|
35
|
+
|
|
36
|
+
## [0.3.2]
|
|
37
|
+
|
|
38
|
+
### Fixed
|
|
39
|
+
|
|
40
|
+
- Fixed an [issue](https://github.com/scverse/mudata/issues/99) in `update()`
|
|
41
|
+
|
|
42
|
+
## [0.3.1]
|
|
43
|
+
|
|
44
|
+
### Fixed
|
|
45
|
+
|
|
46
|
+
- compatibility with anndata 0.10.9
|
|
47
|
+
|
|
48
|
+
## [0.3.0]
|
|
49
|
+
|
|
50
|
+
### Added
|
|
51
|
+
|
|
52
|
+
- Pull/push interface for annotations: `pull_obs()`, `pull_var()`, `push_obs()`, `push_var()`
|
|
53
|
+
- Conversion functions: `to_anndata()`, `to_mudata()`
|
|
54
|
+
- Concatenation of MuData objects
|
|
55
|
+
- `MuData.mod_names` attribute
|
|
56
|
+
- Pretty-printing for `MuData.mod`
|
|
57
|
+
- `fsspec` support for readers.
|
|
58
|
+
|
|
59
|
+
### Fixed
|
|
60
|
+
|
|
61
|
+
- Improved performance and behavior of `update()`.
|
|
62
|
+
For compatibility reasons, this release keeps the old behaviour of pulling annotations on read/update as default.
|
|
63
|
+
- `read_zarr()` now supports `mod-order`
|
|
64
|
+
- Correct handling of the `uns` attribute by views.
|
|
65
|
+
|
|
66
|
+
### Note
|
|
67
|
+
|
|
68
|
+
If you want to adopt the new update behaviour, set `mudata.set_options(pull_on_update=False)`.
|
|
69
|
+
This will be the default behaviour in the next release.
|
|
70
|
+
With it, the annotations will not be copied from the modalities on `update()` implicitly.
|
|
71
|
+
|
|
72
|
+
To copy the annotations explicitly, you will need to use `pull_obs()` and/or `pull_var()`.
|
|
73
|
+
|
|
74
|
+
## [0.2.4]
|
|
75
|
+
|
|
76
|
+
### Changed
|
|
77
|
+
|
|
78
|
+
- Requires anndata 0.10.8 or newer.
|
|
79
|
+
|
|
80
|
+
### Fixed
|
|
81
|
+
|
|
82
|
+
- Compatibility with numpy 2.0
|
|
83
|
+
- Compatibility with anndata 0.11
|
|
84
|
+
|
|
85
|
+
## [0.2.3]
|
|
86
|
+
|
|
87
|
+
### Fixed
|
|
88
|
+
|
|
89
|
+
- Fixes and improvements for backed objects, views, nested MuData objects, I/O and HTML representation.
|
|
90
|
+
- Pandas 2.0 compatibility
|
|
91
|
+
|
|
92
|
+
## [0.2.2]
|
|
93
|
+
|
|
94
|
+
### Fixed
|
|
95
|
+
|
|
96
|
+
- `Path` objects now work in `mudata.read()`
|
|
97
|
+
|
|
98
|
+
## [0.2.1]
|
|
99
|
+
|
|
100
|
+
### Added
|
|
101
|
+
|
|
102
|
+
- `MuData.__len__`.
|
|
103
|
+
This should make it easier to build MuData into workflows that operate on data containers with length.
|
|
104
|
+
In practice using `n_obs` should be preferred.
|
|
105
|
+
|
|
106
|
+
### Changed
|
|
107
|
+
|
|
108
|
+
- Default `dict` has replaced `OrderedDict`, e.g. in the `uns` slot, to improve compatibility with new serialisation versions.
|
|
109
|
+
As of Python 3.6, dictionaries are insertion-ordered.
|
|
110
|
+
|
|
111
|
+
### Fixed
|
|
112
|
+
|
|
113
|
+
- Improvements and optimizations to `update()`
|
|
114
|
+
|
|
115
|
+
## [0.2.0]
|
|
116
|
+
|
|
117
|
+
### Added
|
|
118
|
+
|
|
119
|
+
- [new axes interface](https://github.com/scverse/mudata/blob/master/docs/source/notebooks/axes.ipynb) that allows to use MuData objects as containers with different shared dimensions.
|
|
120
|
+
|
|
121
|
+
### Changed
|
|
122
|
+
|
|
123
|
+
- new I/O serialisation of [AnnData v0.8](https://anndata.readthedocs.io/en/latest/release-notes/index.html#th-march-2022).
|
|
124
|
+
|
|
125
|
+
### Fixed
|
|
126
|
+
|
|
127
|
+
- Updating a MuData object with `MuData.update()` is even faster in many use cases.
|
|
128
|
+
|
|
129
|
+
## [0.1.2]
|
|
130
|
+
|
|
131
|
+
### Changed
|
|
132
|
+
|
|
133
|
+
- Improved documentation, including a new page describing the sharp bits.
|
|
134
|
+
|
|
135
|
+
### Fixed
|
|
136
|
+
|
|
137
|
+
- Updating a MuData object with `update()` is now much faster.
|
|
138
|
+
|
|
139
|
+
## [0.1.1]
|
|
140
|
+
|
|
141
|
+
- Various stability and bug fixes
|
|
142
|
+
|
|
143
|
+
## [0.1.0]
|
|
144
|
+
|
|
145
|
+
Initial `mudata` release with `MuData`, previously a part of the `muon` framework.
|
|
146
|
+
|
|
147
|
+
[0.3.4]: https://github.com/scverse/mudata/releases/tag/v0.3.4
|
|
148
|
+
[0.3.3]: https://github.com/scverse/mudata/releases/tag/v0.3.3
|
|
149
|
+
[0.3.2]: https://github.com/scverse/mudata/releases/tag/v0.3.2
|
|
150
|
+
[0.3.1]: https://github.com/scverse/mudata/releases/tag/v0.3.1
|
|
151
|
+
[0.3.0]: https://github.com/scverse/mudata/releases/tag/v0.3.0
|
|
152
|
+
[0.2.4]: https://github.com/scverse/mudata/releases/tag/v0.2.4
|
|
153
|
+
[0.2.3]: https://github.com/scverse/mudata/releases/tag/v0.2.3
|
|
154
|
+
[0.2.2]: https://github.com/scverse/mudata/releases/tag/v0.2.2
|
|
155
|
+
[0.2.1]: https://github.com/scverse/mudata/releases/tag/v0.2.1
|
|
156
|
+
[0.2.0]: https://github.com/scverse/mudata/releases/tag/v0.2.0
|
|
157
|
+
[0.1.2]: https://github.com/scverse/mudata/releases/tag/v0.1.2
|
|
158
|
+
[0.1.1]: https://github.com/scverse/mudata/releases/tag/v0.1.1
|
|
159
|
+
[0.1.0]: https://github.com/scverse/mudata/releases/tag/v0.1.0
|