Published January 20, 2025
| Version v2.0.0
Software
Open
gustaveroussy/sopa: v2.0.0
Authors/Creators
- 1. Cure51 and Gustave Roussy Institute
- 2. CentraleSupélec
Description
Sopa version 2.0.0
This version introduces many new API features but also some breaking changes; check our migration guide to smoothly update your code base.
Added
- Full Visium HD support (including, notably, bins aggregation)
- Dask parallelization backend for faster segmentation (useful for API users). This can be done via
sopa.settings.parallelization_backend = 'dask'. More details in the FAQ. - Support for one-line segmentation, e.g.
sopa.segmentation.cellpose(sdata, ...)orsopa.segmentation.baysor(sdata, ...). This will implicitly use the selected parallelization backend. - Spatial elements keys are saved in
sdata.attrsso that Sopa knows automatically which element should be used in which function. It is still possible to preciseimage_key/points_key/shapes_keyif needed. More details in the FAQ. - Allows changing the auto-save settings (i.e. decide if spatial elements are saved on-disk automatically or not). This can be done via
sopa.settings.auto_save_on_disk = False. - Can recover a failed/stopped segmentation when using the API (and also
forcea segmentation, for Baysor) - Better cache handling (invisible to API users)
- New tissue segmentation for non-H&E data (
sopa.segmentation.tissue) - Full support for
baysor>=0.7.0 - Added
Stardistsegmentation (mainly used for H&E data) - Added support for Python 3.12
Changes
- The
sopa.io.uniformdataset is now deprecated (usesopa.io.toy_datasetinstead) - API: The image patches are now called
sdata["image_patches"]instead ofsdata["sopa_patches"]
Breaking changes
- Drop support for Python 3.9
- API:
sopa.segmentation.Patches2Dis deprecated. Instead, use the functionssopa.make_image_patchesorsopa.make_transcript_patches - API: Use
sopa.overlay_segmentationinstead ofsopa.segmentation.overlay_segmentation - API: The
Aggregatorclass has been replaced by a simple function wrapper:sopa.aggregate - API: The annotations methods are moved to the utils. For instance, use
sopa.utils.higher_z_scoreinstead ofsopa.annotation.higher_z_score - CLI:
sopa readhas been renamedsopa convertto avoid confusion. - CLI: during segmentation, use
--cache-dir-nameinstead of--patch-dir - Drop support for Python 3.9
Fixes
- Snakemake path issue on Windows (#64)
- Issues related to incompatible versions of Baysor
Files
gustaveroussy/sopa-v2.0.0.zip
Files
(16.7 MB)
| Name | Size | Download all |
|---|---|---|
|
md5:80cead0a4ffcf86cf364c6f577acdcf8
|
16.7 MB | Preview Download |
Additional details
Related works
- Is supplement to
- Software: https://github.com/gustaveroussy/sopa/tree/v2.0.0 (URL)
Software
- Repository URL
- https://github.com/gustaveroussy/sopa