haniffalab / webatlas-pipeline

A data pipeline built in Nextflow to process spatial and single-cell experiment data for visualisation in WebAtlas
MIT License
46 stars 10 forks source link

Feat/write spatialdata #121

Closed dannda closed 1 year ago

dannda commented 1 year ago

Adds boolean param write_spatialdata to main pipeline. Process gets converted AnnData-Zarr object and tifs (including those generated from data such as Visium labels) as input. Creates a SpatialData object with AnnData as table, raw images as images and label images as labels. region_key, region and instance_key are enforced by SpatialData's TableModel parser. library_id is used as region_key, if it doesn't exist it is added.

Requires bumping anndata version and adding rioxarray to load images through xarray

codecov-commenter commented 1 year ago

Codecov Report

Attention: 56 lines in your changes are missing coverage. Please review.

Comparison is base (c5e4994) 30.91% compared to head (92f4c1a) 29.44%. Report is 23 commits behind head on dev.

Files Patch % Lines
bin/write_spatialdata.py 0.00% 50 Missing :warning:
bin/process_h5ad.py 76.47% 4 Missing :warning:
bin/process_xenium.py 0.00% 2 Missing :warning:

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## dev #121 +/- ## ========================================== - Coverage 30.91% 29.44% -1.47% ========================================== Files 15 16 +1 Lines 867 917 +50 ========================================== + Hits 268 270 +2 - Misses 599 647 +48 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.