Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add function to export spatialdata to legacy anndata format #102

Merged
merged 30 commits into from
Mar 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
bde0314
Add function to export spatialdata to legacy anndata format
grst Jan 25, 2024
560fe96
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 25, 2024
2d59529
tiny fix docstring
LucaMarconato Jan 25, 2024
aa0eb45
Merge branch 'main' into feat/to_legacy_anndata
LucaMarconato Jan 25, 2024
47e9dc2
added from_legacy_anndata()
LucaMarconato Jan 25, 2024
32bd148
fix docs
LucaMarconato Jan 25, 2024
3907397
wip
LucaMarconato Jan 26, 2024
4092f84
Merge branch 'main' into feat/to_legacy_anndata
LucaMarconato Feb 22, 2024
ec0abc8
wip
LucaMarconato Feb 23, 2024
8268cf6
done to_legacy_anndata() for shapes, labels and points; wip images
LucaMarconato Feb 25, 2024
a6921f5
fixed non-image tests, skipped image tests
LucaMarconato Feb 26, 2024
307c923
fix
LucaMarconato Mar 8, 2024
5f9d905
fix coordinate system
LucaMarconato Mar 18, 2024
849b17f
created experimental submodule
LucaMarconato Mar 18, 2024
8a1430f
fix docs
LucaMarconato Mar 18, 2024
afff8e5
Merge branch 'main' into feat/to_legacy_anndata
LucaMarconato Mar 18, 2024
e8c8828
attempt fix tests
LucaMarconato Mar 18, 2024
41313ac
removed old comments
LucaMarconato Mar 18, 2024
ddc0cdd
removed old workaround
LucaMarconato Mar 18, 2024
b314619
Merge branch 'main' into feat/to_legacy_anndata
LucaMarconato Mar 20, 2024
51c738d
attempt fix docs
LucaMarconato Mar 20, 2024
27fbd6b
Update test_and_deploy.yaml
LucaMarconato Mar 20, 2024
002cf1d
Merge branch 'LucaMarconato-patch-1' into feat/to_legacy_anndata
LucaMarconato Mar 20, 2024
a9e348f
test against pre-release
LucaMarconato Mar 20, 2024
2d32017
fix
LucaMarconato Mar 20, 2024
53b30e8
building docs against pre-release
LucaMarconato Mar 20, 2024
3a4f87a
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Mar 20, 2024
f895c47
attemp docs from pre-released spatialdata
LucaMarconato Mar 20, 2024
b41ea18
fix
LucaMarconato Mar 20, 2024
e4f7f81
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Mar 20, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test_and_deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
pip install pytest-cov
- name: Install dependencies
run: |
pip install -e ".[dev,test]"
pip install --pre -e ".[dev,test]"
- name: Test
env:
MPLBACKEND: agg
Expand Down
1 change: 1 addition & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ python:
path: .
extra_requirements:
- doc
- pre
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ and this project adheres to [Semantic Versioning][].
- (MCMICRO) support for TMAs (such as the data of exemplar-002)
- (Xenium) support for post-xenium aligned images (IF, HE)
- (Xenium) reader for the selection coordinates file from the Xenium Explorer
- DBiT-seq reader
- (DBiT-seq) reader
- converter functions `experimental.to_legacy_anndata()` and `experimental.from_legacy_anndata()`
- (Visium) support for raw reads (capture locations not under tissue)

### Fixed
Expand Down
16 changes: 16 additions & 0 deletions docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ I/O for the `spatialdata` project.
dbit
```

### Conversion functions

### Utility functions

```{eval-rst}
Expand All @@ -34,3 +36,17 @@ I/O for the `spatialdata` project.
xenium_aligned_image
xenium_explorer_selection
```

### Experimental readers

### Experimental conversion functions

```{eval-rst}
.. currentmodule:: spatialdata_io.experimental

.. autosummary::
:toctree: generated

from_legacy_anndata
to_legacy_anndata
```
3 changes: 3 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
from datetime import datetime
from importlib.metadata import metadata
from pathlib import Path
import spatialdata_io.experimental

_ = spatialdata_io.experimental

HERE = Path(__file__).parent
sys.path.insert(0, str(HERE / "extensions"))
Expand Down
6 changes: 6 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ urls.Documentation = "https://spatialdata-io.readthedocs.io/"
urls.Source = "https://github.com/scverse/spatialdata-io"
urls.Home-page = "https://github.com/scverse/spatialdata-io"
dependencies = [
"anndata",
"numpy",
"spatialdata",
"scikit-image",
"h5py",
Expand Down Expand Up @@ -53,6 +55,10 @@ test = [
"pytest",
"pytest-cov",
]
# this will be used by readthedocs and will make pip also look for pre-releases, generally installing the latest available version
pre = [
"spatialdata>=0.1.0-pre0"
]

[tool.coverage.run]
source = ["spatialdata_io"]
Expand Down
Empty file.
Loading
Loading