a deep generative model for single-cell survival analysis
Project description
scSurv (a deep generative model for single-cell survival analysis)
scSurv is a novel method for single-cell survival analysis.
Teppei Shimamura's lab, Institute of Science Tokyo at Tokyo and Nagoya University at Nagoya
Yasuhiro Kojima's lab, National Cancer Center Research Institute at Tokyo
Developed by Chikara Mizukoshi
Instalation
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
Usage
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.
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.1.0.tar.gz.
File metadata
- Download URL: scsurv-0.1.0.tar.gz
- Upload date:
- Size: 16.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
376e0a7e9d115ed866a0c8b919e8fbd262367e1ee0d8e68e0ce04b59ec7a3e43
|
|
| MD5 |
a50870fc7e227e60fd4e5b821c4bb6ea
|
|
| BLAKE2b-256 |
16be056461380f90ae5fc1d18559fa3619142f9b5922964e336a973450cecb62
|
File details
Details for the file scsurv-0.1.0-py3-none-any.whl.
File metadata
- Download URL: scsurv-0.1.0-py3-none-any.whl
- Upload date:
- Size: 16.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9d5df3953bb72d3e695827606e3cd31b727e9ea543a377a03f67f336be83cd1c
|
|
| MD5 |
308b35f1e1912cb554b1209fbae95f42
|
|
| BLAKE2b-256 |
1778c3cc47fe2a63ad89b4c52f6b2a07836cdbc0c770c490c11d1d9ba4676596
|