This release is a pre-release and may not be stable for production use.
Snakemake workflow: dvp-imaging-pipeline
A Snakemake workflow for Scalable processing of DVP imaging data with snakemake.
Usage
Detailed information about input data and workflow configuration can also be found in the workflow/config/README.md.
Deployment options
- Clone this repository or download it via (
Code > Download ZIP)
git clone https://github.com/lucas-diedrich/dvp-imaging-pipeline.git
- Change your working directory into the repository
cd path/to/dvp-imaging-pipeline
- Create and activate the environment that provides snakemake. The environment is named
snakemakebyenvironment.yaml.
conda env create -n snakemake --file environment.yaml && conda activate snakemake
- Test your setup on a small artificial dataset before running the workflow on your own data
snakemake --cores 2 --sdm conda --directory workflow --configfile tests/integration/config/config.yaml
Results (spatialdata objects, logs, and plots) are written to tests/integration/results.
- Adapt the configuration files
Adjust options in the config file workflow/config/config.yaml. Use the test file tests/integration/config/config.yaml as template.
- Run the workflow
Run the workflow locally (not recommended for large datasets).
snakemake --cores all --sdm conda --directory workflow --configfile workflow/config/config.yaml
For large datasets, submit the workflow to a SLURM cluster instead, see HPC below.
HPC
You can run this workflow on a high-performance computing cluster.
On the cluster, create the snakemake base environment:
conda env create --file environment.yaml
Then submit the provided workflow script on a cluster. Please check the script and the official snakemake slurm plugin documentation to learn about relevant flags and settings.
cd workflow
sbatch snakemake.sbatch
Logging
Monitor the progress of the workflow in the workflow directory with snkmt, see also the documentation.
The snkmt logger is not part of environment.yaml and has to be installed into the snakemake environment separately:
pip install snakemake-logger-plugin-snkmt
Add --logger snkmt to the snakemake calls above, then follow the run from the workflow directory:
snkmt console
Install utility functions
The utility functions used by the workflow (source in src/) are published as the python package dvpimg.
conda create -n dvpimg python=3.12 -y && conda activate dvpimg
# only pre-releases are available so far
pip install --pre dvpimg
To install the version in this repository instead, run pip install . from the repository root.
Components
See the documentation for more information on the individual components and detailed instructions on their configuration.
References
(alphabetical order)
dvp-io: MannLabs/dvp-io. Lucas Diedrich (2025). https://github.com/MannLabs/dvp-io.git
Harpy: saeyslab/harpy. Saeys Lab (2025). https://github.com/saeyslab/harpy.git
Lazyslide: Zheng, Y., Abila, E., Chrenková, E., Winkler, J. & Rendeiro, A. F. LazySlide: accessible and interoperable whole slide image analysis. 2025.05.28.656548 Preprint at https://doi.org/10.1101/2025.05.28.656548 (2025).
Snakemake Köster, J., Mölder, F., Jablonski, K. P., Letcher, B., Hall, M. B., Tomkins-Tinch, C. H., Sochat, V., Forster, J., Lee, S., Twardziok, S. O., Kanitz, A., Wilm, A., Holtgrewe, M., Rahmann, S., & Nahnsen, S. Sustainable data analysis with Snakemake. F1000Research, 10:33, 10, 33, 2021. https://doi.org/10.12688/f1000research.29032.2.
Spatialdata: Marconato, L. et al. SpatialData: an open and universal data framework for spatial omics. Nat Methods 1–5 (2024) doi:10.1038/s41592-024-02212-x.
Citation
If you use this workflow in a paper, don't forget to give credits to the authors by citing the URL of this repository or its DOI.
DVP-Imaging-Pipeline [Computer software]. https://github.com/lucas-diedrich/dvp-imaging-pipeline.git
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dvpimg-0.0.1a42.tar.gz.
File metadata
- Download URL: dvpimg-0.0.1a42.tar.gz
- Upload date:
- Size: 661.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4b2d544a5302d68368ab95daa8de012e8686ccd4477d15af722389add88745e8
|
|
| MD5 |
b94686e9a6d01b74bd172e4c379c9a7e
|
|
| BLAKE2b-256 |
ead2a191dcd91a02d1a1b1819401b4f22826f91c352fcb15bec0a163a1d1af38
|
Provenance
The following attestation bundles were made for dvpimg-0.0.1a42.tar.gz:
Publisher:
release-pypi.yaml on MannLabs/dvp-imaging-pipeline
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dvpimg-0.0.1a42.tar.gz -
Subject digest:
4b2d544a5302d68368ab95daa8de012e8686ccd4477d15af722389add88745e8 - Sigstore transparency entry: 2359104460
- Sigstore integration time:
-
Permalink:
MannLabs/dvp-imaging-pipeline@a35c9487f5691ade5767712718fafc9180ce41ad -
Branch / Tag:
refs/tags/v0.0.1-alpha42 - Owner: https://github.com/MannLabs
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-pypi.yaml@a35c9487f5691ade5767712718fafc9180ce41ad -
Trigger Event:
release
-
Statement type:
File details
Details for the file dvpimg-0.0.1a42-py3-none-any.whl.
File metadata
- Download URL: dvpimg-0.0.1a42-py3-none-any.whl
- Upload date:
- Size: 78.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e983dcfe45b9ce692cd797ce95a9afb18d855263e8b176a4ae3cf4f602b416d3
|
|
| MD5 |
d9da447c1c1b8d5b74919b42ed91b541
|
|
| BLAKE2b-256 |
884ced5fa9d636ef0790914fdf534d764fdf80cb4b728f749830d6427d6018b6
|
Provenance
The following attestation bundles were made for dvpimg-0.0.1a42-py3-none-any.whl:
Publisher:
release-pypi.yaml on MannLabs/dvp-imaging-pipeline
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dvpimg-0.0.1a42-py3-none-any.whl -
Subject digest:
e983dcfe45b9ce692cd797ce95a9afb18d855263e8b176a4ae3cf4f602b416d3 - Sigstore transparency entry: 2359104562
- Sigstore integration time:
-
Permalink:
MannLabs/dvp-imaging-pipeline@a35c9487f5691ade5767712718fafc9180ce41ad -
Branch / Tag:
refs/tags/v0.0.1-alpha42 - Owner: https://github.com/MannLabs
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-pypi.yaml@a35c9487f5691ade5767712718fafc9180ce41ad -
Trigger Event:
release
-
Statement type: