SPANN
jupyter notebooks for bioinformatics paper "SPANN: Annotating single-cell resolution spatial transcriptome data with scRNA-seq data" (under peer-review)
Install
pip install spann
readthedocs page at https://ddb-qiwang.github.io/SPANN-torch/
File Descriptions and data requirement
SPANN is a single-cell resolution spatial transcriptome data annotator. With a well-annotated reference scRNA-seq data, one can accurately identify cell identifications as well as discover novel cells.
There are 2 tutorials in the repository. Tutorial 1 annotates spatial transcriptome data without validation. If you do not have cell type labels for spatial data, you can follow tutorial 1 to annotate the spatial data with scRNA-seq reference. Tutorial 2 annotates spatial transcriptome data and evaluate the annotation performance with ground truth cell type labels. If you want to validate the annotation performance of SPANN or compare SPANN to other methods on benchmark datasets, you can follow tutorial 2.
The Mouse Embryo seqFISH-scRNA datasets used in the tutorials can be downloaded from https://drive.google.com/drive/folders/1kEHvid7F43sZAWh4xB-P0gLgYEnXVnNS?usp=sharing
We also uploaded the notebooks applying SPANN on all datasets mentioned in our paper.
Hyper-parameters and recommended settings
lambda_recon: default 2000, the strength of reconstruction loss
lambda_kl: default 0.5, the strength of KL-divergence loss
lambda_cd: default 0.01, the strength of cell-type-level domain alignment loss, we recommend to set it higher(=0.1) when the gap between scRNA-seq data and spatial data is big, and to set it lower(=0.001) when the gap between datasets is small.
lambda_spa: default 0.1, the strength of spatial-representation adjacency loss, we recommend to set it lower(=0.1) when the spatial pattern is not clear(when the spatial distribution is chaotic), and recommend to set it higher(=0.5) when the spatial pattern is clear.
lambda_nb: default 10, the strength of neighbor loss, we recommend to set it lower(=1) when the spatial pattern is not clear(when the spatial distribution is chaotic), and recommend to set it higher(=50) when the spatial pattern is clear.
mu: default 0.6, the update speeed of beta (from 0.0-1.0). beta is the estimate of target cell type distribution.
temp: default 0.1, the temperature paremeter for spatial-representation adjacency loss
Metadata
Release files for spann 0.0.5
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 |
|---|---|---|---|---|
| spann-0.0.5.tar.gz | 21.7 kB | Without provenance | Details for spann-0.0.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| spann-0.0.5-py3-none-any.whl | Python 3 | none | any | Details for spann-0.0.5-py3-none-any.whl |
Total release size: 42.4 kB
Release files / spann-0.0.5.tar.gz
| Download URL | spann-0.0.5.tar.gz |
|---|---|
| Size | 21.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c7ee7c66ad675a275e5026ca33534ed3aed5442a1e5e20d3dafb09df8fd84833
|
|
BLAKE2b-256 checksum How to use checksums |
c3b3dfc4c48afc9ddddcd3a03a7b568b09fd5b1dce4a8c1a6b5a30e497af408f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.0 CPython/3.10.12 Linux/6.2.0-36-generic
|
Release files / spann-0.0.5-py3-none-any.whl
| Download URL | spann-0.0.5-py3-none-any.whl |
|---|---|
| Size | 20.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
abc018b389225bf956ad88a7477a4deff43c99a68cef90b64f4018edfa139735
|
|
BLAKE2b-256 checksum How to use checksums |
eb64b1f06aed595817085d4606385823e6141f772dc49d039834f4e4de5d866c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.0 CPython/3.10.12 Linux/6.2.0-36-generic
|
Security for spann 0.0.5
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.