Skip to main content

Spatial Neighborhood Variably Expressed Genes (Spanve) is a method for detecting spatial variably expressed genes in spatial transcriptomics data.

Project description

Spanve: A Statistical Method for Detecting Downstream-friendly Spatially Variable Genes in Large-scale Spatial Transcriptomics Data

Citation

@preprint{b.23.SpanveStatistical,
  title = {Spanve: An {{Statistical Method}} to {{Detect Clustering-friendly Spatially Variable Genes}} in {{Large-scale Spatial Transcriptomics Data}}},
  author = {{Guoxin Cai} and {Yichang Chen} and {Shuqing Chen} and {Xun Gu} and {Zhan Zhou}},
  date = {2023-01-01},
  journaltitle = {bioRxiv},
  pages = {2023.02.08.527623},
  doi = {10.1101/2023.02.08.527623},
  url = {http://biorxiv.org/content/early/2023/03/08/2023.02.08.527623.abstract},
}

Analysis code for the paper is available at Evaluate directory.

Installation

  • Install by pip (recommend):
pip install Spanve
  • no install usage:
# install required packages
cd Evaluate/Softs
pip install spanve_requirements.txt
cp Spanve.py $your_path

Usage

cli usage

spanve --help
Usage: Spanve [OPTIONS]

Options:
  -i, --input_file PATH       input anndata file(h5ad file.)
  -r, --running_mode TEXT     running mode, default is f(c:cluster;
                              i:imputation; f:fitting)
  -s, --save_path PATH        save path
  -v, --verbose BOOLEAN       verbose
  -n, --njobs INTEGER
  -p, --preprocessed BOOLEAN  int preprocessed or not.
  --help                      Show this message and exit.****

command line usage can only run in a standard h5ad file, where there is a anndata.AnnData.obsm key named 'spatial'.

python usage

Quick Start

from Spanve import Spanve
adata = sc.read_h5ad('data.h5ad')
spanve = Spanve(adata)
# -- fitting for spatial genes
spanve.fit()
spanve.save('result.csv')
# -- spatial imputation
X = adata_preprocess(adata)
X_ = spanve.impute_from_graph(X[:,spanve.rejects])

Details

see tutorial notebook or html page.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Spanve-0.1.5.tar.gz (20.1 kB view details)

Uploaded Source

File details

Details for the file Spanve-0.1.5.tar.gz.

File metadata

  • Download URL: Spanve-0.1.5.tar.gz
  • Upload date:
  • Size: 20.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.10

File hashes

Hashes for Spanve-0.1.5.tar.gz
Algorithm Hash digest
SHA256 5428400e43056ffc2970179e29312c9e63a28c0bf5841bf8474b95adb5f8be1e
MD5 897432f08f2c3eef649447bf8f0c4d6d
BLAKE2b-256 380e62360ddabcd4dccfeb84bc13a432aef535fdbe5e9838080173cd4f82aebf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page