Spatialsnake is a command-line tool for analysing processed spatial transcriptomics data across sequencing- and imaging-based platforms. Built on SpatialData and Snakemake, it supports core analysis, focused analysis, further analyses and optional data operations.
Key features
- Core analysis: ingest supported platform outputs, review QC and dimensionality diagnostics, cluster observations, inspect markers or reference-based estimates, and store reviewed annotations. Compatible samples can share the core workflow while retaining sample and group identities.
- Focused analysis: select populations, ROIs or physical-distance neighborhoods; recluster selected observations and return refined labels to the parent object. Prepared subsets can proceed to downstream analyses.
- Further analyses: use BANKSY or CellCharter for spatial domains, CellPhoneDB/LIANA/CellChat for communication, and pySCENIC for regulatory programs. Comparison modules support sample-level pseudobulk differential expression analysis and descriptive comparisons of CellChat networks. Supported communication plots can be regenerated from saved inference results.
- Optional data operations: split or merge compatible objects, import AnnData, and export AnnData or Seurat objects through the CLI. Saved stage inputs allow selected analyses to be revised without repeating unrelated preparation.
Supported platforms
The TYPE values below are case-sensitive documented spellings. Platform-specific selectors determine the representation loaded for analysis.
| Platform / representation | CLI TYPE |
Input |
|---|---|---|
| Visium | visium |
Processed expression matrix and spatial files |
| Visium HD | visium_HD |
Space Ranger binned outputs; choose bin_size in the core sample table |
| Segmented Visium | visium_segment |
Supported Space Ranger segmentation outputs |
| Stereo-seq | stereoseq |
Supported SAW outputs; choose bin, cellbin or adjusted cellbin with input_spec |
| Xenium | xenium |
Processed expression/transcript data and available images or cell geometries |
| MERFISH / MERSCOPE | Merfish |
Supported Vizgen expression, transcript, boundary and image outputs |
Availability of images, transcripts and geometries depends on the platform files and loading settings. See the input documentation below for file requirements and resolution selection.
Installation
For a basic installation on Linux with Conda:
conda create -n spatialsnake_env --override-channels -c conda-forge -c bioconda spatialsnake -y
conda activate spatialsnake_env
spatialsnake install-packages
The command installs the latest compatible release available on Bioconda.
See the installation guide for PyPI and source installation, environment requirements, and optional analysis dependencies, including CPU/GPU choices.
Command reference
spatialsnake single_analysis <INPUT_FILE> <TYPE> [options]
spatialsnake compare_analysis <INPUT_FILE> <TYPE> [options]
spatialsnake useful_tool [--option=<operation>] <INPUT>... [options]
spatialsnake produce-file --option=<analysis_option>
spatialsnake install-packages
spatialsnake --help
Use spatialsnake --help for available commands and parameters. Important parameters can be set directly on the command line; --configfile supplies additional YAML settings, with explicitly provided CLI values taking precedence. See the command-line guide and configuration reference for details.
Documentation and support
- Input preparation and supported representations.
- Core analysis and multi-sample data assembly.
- Focused analysis.
- Optional data operations.
- Further analyses.
- Problems or feature requests: GitHub issues. Include the software version, installation route, exact command, relevant YAML/sample table and error log. Omit credentials and private data.
Citation
Report the Spatialsnake version and source revision used in your analysis. Please also cite the underlying SpatialData framework and Snakemake workflow engine:
- Marconato L, Palla G, Yamauchi KA, et al. SpatialData: an open and universal data framework for spatial omics. Nature Methods. 2025;22:58–62. doi:10.1038/s41592-024-02212-x.
- Mölder F, Jablonski KP, Letcher B, et al. Sustainable data analysis with Snakemake. F1000Research. 2021;10:33. doi:10.12688/f1000research.29032.2.
For individual analytical methods, cite the corresponding original publications listed in the module documentation.
License
Spatialsnake is distributed under the MIT license.
Metadata
Release files for spatialsnake 0.0.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| spatialsnake-0.0.7.tar.gz | 271.3 kB | Without provenance | Details for spatialsnake-0.0.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| spatialsnake-0.0.7-py3-none-any.whl | Python 3 | none | any | Details for spatialsnake-0.0.7-py3-none-any.whl |
Total release size: 584.4 kB
Release files / spatialsnake-0.0.7.tar.gz
| Download URL | spatialsnake-0.0.7.tar.gz |
|---|---|
| Size | 271.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c0baa625c6a93b06ddc6225bfebb5a68f956dfbadeecaa6bf6bcaa4aa5bf2c4f
|
|
BLAKE2b-256 checksum How to use checksums |
b03f7a19ae5964d3c6fa3dd2e069c3dc30b9981a8deb293e93ccc9256a0920ac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.11
|
Release files / spatialsnake-0.0.7-py3-none-any.whl
| Download URL | spatialsnake-0.0.7-py3-none-any.whl |
|---|---|
| Size | 313.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c435ca61f5575923c2ddec517e4562e3333d5fff711f9817d93e2a56c211d08c
|
|
BLAKE2b-256 checksum How to use checksums |
055acd828d0fdc288fc9bff33741712368416a9bd4d4a5145af87b99279a048f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.11
|
Security for spatialsnake 0.0.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.