No project description provided
Project description
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
Project details
Release history Release notifications | RSS feed
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
File details
Details for the file spann-0.0.5.tar.gz
.
File metadata
- Download URL: spann-0.0.5.tar.gz
- Upload date:
- Size: 21.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.0 CPython/3.10.12 Linux/6.2.0-36-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c7ee7c66ad675a275e5026ca33534ed3aed5442a1e5e20d3dafb09df8fd84833 |
|
MD5 | 06fed8e8e6a21b67fc469308b550b94d |
|
BLAKE2b-256 | c3b3dfc4c48afc9ddddcd3a03a7b568b09fd5b1dce4a8c1a6b5a30e497af408f |
File details
Details for the file spann-0.0.5-py3-none-any.whl
.
File metadata
- Download URL: spann-0.0.5-py3-none-any.whl
- Upload date:
- Size: 20.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.0 CPython/3.10.12 Linux/6.2.0-36-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | abc018b389225bf956ad88a7477a4deff43c99a68cef90b64f4018edfa139735 |
|
MD5 | 380bc95f37312ea1cc6ac73120e6e3a5 |
|
BLAKE2b-256 | eb64b1f06aed595817085d4606385823e6141f772dc49d039834f4e4de5d866c |