Skip to main content

scTREND: An annotation-free single-cell time-resolved and condition-dependent hazard model

Project description

scTREND

Description

scTREND (single-cell time-resolved and condition-dependent hazard model) is a novel deep generative framework that integrates single-cell latent representations from a VAE with bulk-level cell-type proportions and hazard coefficients. This enables the computation of patient-level risk scores and the identification of cell populations whose prognostic impact dynamically changes across time and clinical conditions.

Teppei Shimamura's lab, Institute of Science Tokyo, Tokyo, Japan

Overview of the scTCHM framework

Model architecture

The model comprises three main components: VAE for latent representation of single cells, bulk deconvolution based on DeepCOLOR, and a conditional piecewise constant hazard model for time- and condition-dependent risk estimation.

Requirements

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

Application example

In this tutorial, we present an application of scTREND using a melanoma single-cell RNA-seq dataset (GSE115978) together with a bulk RNA-seq dataset from TCGA-SKCM. BRAF mutation status is incorporated as a driver condition, and the survival time axis is discretized into four time intervals. Under this setting, both the coefficients shared across all patients and the coefficients specific to BRAF-mutant patients can be visualized as shown below.

driver_genes = ["BRAF"]
edges = [...]  # time bin edges used in training
sc_adata, bulk_adata = workflow.scTREND_preprocess(sc_adata, bulk_adata,
     per=0.01, n_top_genes=5000, highly_variable="bulk", driver_genes=driver_genes)
driver_bulk_adata = bulk_adata[:, bulk_adata.var_names.isin(driver_genes)]
driver_bulk_adata.layers["SNV"] = ...  # samples × driver_genes (0:wild-type 1:mutated)
sc_adata, bulk_adata, model_params_dict, spatial_adata, exp = workflow.run_scTREND(
     sc_adata, bulk_adata,
     param_save_path="scTREND.pt",
     epoch=10000,
     batch_key="samples",
     driver_genes=driver_genes,
     driver_bulk_adata=driver_bulk_adata,
     edges=edges
)

Cell type

Baseline contribution (beta)

BRAF-specific contribution (gamma)

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

sctrend-0.1.0.tar.gz (17.1 kB view details)

Uploaded Source

Built Distribution

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

sctrend-0.1.0-py3-none-any.whl (17.6 kB view details)

Uploaded Python 3

File details

Details for the file sctrend-0.1.0.tar.gz.

File metadata

  • Download URL: sctrend-0.1.0.tar.gz
  • Upload date:
  • Size: 17.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for sctrend-0.1.0.tar.gz
Algorithm Hash digest
SHA256 74541f006ad135746927f412b2b3f9416f25943f97fcc2de8767eeccf4253ed7
MD5 f6a2e553e845c033e2ab1bb4c812c3fa
BLAKE2b-256 6a14130c53ef0fb405debea8d0311c92bf33c632fd72665815c04cd76d9aec0d

See more details on using hashes here.

Provenance

The following attestation bundles were made for sctrend-0.1.0.tar.gz:

Publisher: publish-pypi.yml on R301Carbine/scTREND

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sctrend-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: sctrend-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 17.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for sctrend-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9461539f4224d19f5588f7d61c0216ccd63444e0e639dd12702037bccb2b4db5
MD5 79fc342cf36ccf170f115972929f3366
BLAKE2b-256 f5e4d7acbd106336e319f0d81cf0d0c6142afe6dd52100813e4f8a44154a4c9c

See more details on using hashes here.

Provenance

The following attestation bundles were made for sctrend-0.1.0-py3-none-any.whl:

Publisher: publish-pypi.yml on R301Carbine/scTREND

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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