Skip to main content

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:

  1. Quantification of individual cells' contributions to clinical outcomes
  2. Identification of prognosis-associated gene sets
  3. 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

scSurv

The scSurv framework

  1. The VAE compresses raw gene expression into low-dimensional latent cell representations
  2. Deconvolution of bulk data
  3. 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)

visualization celltype annotation visualization setting and estimated contribution

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

scsurv-0.2.1.tar.gz (23.5 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

scsurv-0.2.1-py3-none-any.whl (24.8 MB view details)

Uploaded Python 3

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

Hashes for scsurv-0.2.1.tar.gz
Algorithm Hash digest
SHA256 5d07354d9e35f0ce9cfe73b5d2d1620da6266cce956ba1ceb160bd85c5004227
MD5 c7df5ac3cbc9dc9636295cf3347e84d7
BLAKE2b-256 512f0d938d041f50af74d670775f738132d4062e1ab55af9f8322f28bb112131

See more details on using hashes here.

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

Hashes for scsurv-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 01b04c5857147deba4b61c164ba8cf4adb3ce58a73c26c636ce3538dd59518de
MD5 823e302b8fcbd925edf3e594ff9b3363
BLAKE2b-256 850617bb3945619938651785fdccb75d01e7ad36b6f352061ffcf3513f4aede3

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