Skip to content

Commit

Permalink
readers refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
quentinblampey committed Apr 8, 2024
1 parent a92d155 commit 6fa79a4
Show file tree
Hide file tree
Showing 18 changed files with 861 additions and 818 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
- Default `min_transcripts` set in snakemake configs
- Minimum number of transcripts per patch set to 4000 (#41)
- Config files refactoring (configs added or renamed)
- Readers refactoring

## [1.0.9] - 2024-04-03

Expand Down
8 changes: 8 additions & 0 deletions docs/api/io.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,11 @@
::: sopa.io.wsi
options:
show_root_heading: true

::: sopa.io.uniform
options:
show_root_heading: true

::: sopa.io.blobs
options:
show_root_heading: true
7 changes: 0 additions & 7 deletions docs/api/utils/data.md

This file was deleted.

7 changes: 3 additions & 4 deletions docs/tutorials/api_usage.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"metadata": {},
"outputs": [],
"source": [
"from sopa.utils.data import uniform\n",
"import sopa.segmentation\n",
"import sopa.io"
]
Expand Down Expand Up @@ -60,9 +59,9 @@
],
"source": [
"# The line below creates a toy dataset for this tutorial\n",
"# Instead, use sopa.io to read your own data as a SpatialData object: see https://gustaveroussy.github.io/sopa/api/io/\n",
"# For instance, if you have MERSCOPE data, you can do `sdata = sopa.io.merscope(\"/path/to/region_0\")`\n",
"sdata = uniform()\n",
"# To load your own data, such as MERSCOPE data, you can do `sdata = sopa.io.merscope(\"/path/to/region_0\")`\n",
"# For more details, see https://gustaveroussy.github.io/sopa/api/io/\n",
"sdata = sopa.io.uniform()\n",
"\n",
"sdata.write(\"tuto.zarr\", overwrite=True)\n",
"sdata"
Expand Down
1 change: 0 additions & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ nav:
- sopa.annotation.tangram: api/annotation/tangram.md
- sopa.annotation.fluorescence: api/annotation/fluorescence.md
- sopa.utils:
- sopa.utils.data: api/utils/data.md
- sopa.utils.image: api/utils/image.md
- sopa.utils.polygon_crop: api/utils/polygon_crop.md
- sopa.embedding: api/embedding.md
Expand Down
417 changes: 194 additions & 223 deletions poetry.lock

Large diffs are not rendered by default.

11 changes: 8 additions & 3 deletions sopa/io/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
from .imaging import macsima, phenocycler, hyperion, ome_tif
from .explorer import write, align
from .standardize import write_standardized
from .transcriptomics import merscope, xenium, cosmx
from .histopathology import wsi, wsi_autoscale
from .reader.cosmx import cosmx
from .reader.merscope import merscope
from .reader.xenium import xenium
from .reader.macsima import macsima
from .reader.phenocycler import phenocycler
from .reader.hyperion import hyperion
from .reader.utils import ome_tif
from .reader.wsi import wsi, wsi_autoscale
from .report import write_report

from ..utils.data import blobs, uniform
305 changes: 0 additions & 305 deletions sopa/io/imaging.py

This file was deleted.

Empty file added sopa/io/reader/__init__.py
Empty file.
Loading

0 comments on commit 6fa79a4

Please sign in to comment.