a deep generative model for single-cell survival analysis
Project description
scSurv
Description
scSurv is a novel method for single-cell survival analysis. This model offers three main analyses:
- Quantification of individual cells' contributions to clinical outcomes
- Identification of prognosis-associated gene sets
- Mapping of spatial hazard distributions using spatial transcriptome data
Through these applications, scSurv provides a comprehensive and interpretable framework that reveals heterogeneity in the clinical significance of cells. This framework enables the identification of novel cell populations and genes involved in the prognosis.
Teppei Shimamura's lab, Institute of Science Tokyo, Tokyo, Japan
Yasuhiro Kojima's lab, National Cancer Center Research Institute, Tokyo, Japan
The scSurv framework
- The VAE compresses raw gene expression into low-dimensional latent cell representations
- Deconvolution of bulk data
- Estimation of regression coefficients in hazard functions for each cell using the extended Cox proportional hazards model
Installation
You can install scSurv using pip command.
!pip install scsurv
You can use the latest development version from GitHub.
!git clone https://github.com/3254c/scSurv.git
Dependencies
Python >= 3.8.16
torch >= 1.13.1
lifelines >= 0.27.8
scanpy >= 1.9.5
pandas >= 1.5.3
numpy >= 1.23.5
matplotlib >= 3.7.2
scipy >= 1.10.1
Minimal example
Preparing scRNA-seq data and bulk RNA-seq data
You need to prepare reference scRNA-seq data and bulk RNA-seq data linked to clinical outcome. For instance, TCGA bulk RNA-seq data is available from the Genomic Data Commons (GDC) Data Portal (https://portal.gdc.cancer.gov/). For examples of reference scRNA-seq data, please refer to our paper.
Run scSurv
In the tutorial, we demonstrate the usage of scSurv using simulated data. The bulk_adata.obs must contain the survival outcome data and the event indicators (censoring status). The scRNA-seq and bulk RNA-seq data must be raw counts. Please specify the batch_key parameter to indicate the sample origin annotation for each cell.
batch_key = 'orig.ident'
exp_name = 'tutolial_simulation.pt'
epoch = 10000
sc_adata, bulk_adata, model_params_dict, spatial_adata, scsurv_exp = workflow.run_scSurv(sc_adata, bulk_adata, exp_name, epoch, batch_key)
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
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 scsurv-0.2.1.tar.gz.
File metadata
- Download URL: scsurv-0.2.1.tar.gz
- Upload date:
- Size: 23.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5d07354d9e35f0ce9cfe73b5d2d1620da6266cce956ba1ceb160bd85c5004227
|
|
| MD5 |
c7df5ac3cbc9dc9636295cf3347e84d7
|
|
| BLAKE2b-256 |
512f0d938d041f50af74d670775f738132d4062e1ab55af9f8322f28bb112131
|
File details
Details for the file scsurv-0.2.1-py3-none-any.whl.
File metadata
- Download URL: scsurv-0.2.1-py3-none-any.whl
- Upload date:
- Size: 24.8 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
01b04c5857147deba4b61c164ba8cf4adb3ce58a73c26c636ce3538dd59518de
|
|
| MD5 |
823e302b8fcbd925edf3e594ff9b3363
|
|
| BLAKE2b-256 |
850617bb3945619938651785fdccb75d01e7ad36b6f352061ffcf3513f4aede3
|