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.0.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.0-py3-none-any.whl (24.8 MB view details)

Uploaded Python 3

File details

Details for the file scsurv-0.2.0.tar.gz.

File metadata

  • Download URL: scsurv-0.2.0.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.0.tar.gz
Algorithm Hash digest
SHA256 b395a0e380935a9d5cdc0e3e9b9c8ea13b91034fb49ec59dd22a125e3206c594
MD5 97b78f4e761ecdd14acd4941a9e0e6eb
BLAKE2b-256 314a2e82a9f62cd0aff6f71f722dbd6978492452c50ebdaa392b2490c4810ee5

See more details on using hashes here.

File details

Details for the file scsurv-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: scsurv-0.2.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 99efc8d4f50d45f829b278346a3ef1476b44bf2832b0c8358fbc1fb249fe05de
MD5 0242e77fea4873ba2d64908afda216bd
BLAKE2b-256 80b3df0046d3c3c91dceac4998bad26ab2854d7b3925be0e49a86b2ca1944add

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