Skip to main content

Deep-learning-based DEconvolution of Tissue profiles with Accurate Interpretation of Locus-specific Signals

Project description

DeepDETAILS: Deep-learning-based DEconvolution of Tissue profiles with Accurate Interpretation of Locus-specific Signals


Supported platforms Supported Python versions PyPI DeepDETAILS compendium

Installation

DeepDETAILS can be installed via conda:

conda install -c bioconda -c conda-forge "pytorch=2.6.0=cuda*" deepdetails

DeepDETAILS can also be installed via pip:

pip install DeepDETAILS

If you prefer to install DeepDETAILS using pip, please make sure you have bedGraphToBigWig and bedtools installed. DeepDETAILS use these tools to export the deconvolved results to bigWig files.

Get started

Step 1: Prepare datasets for deconvolution

DeepDETAILS requires the following input files:

  • Strand-specific signals for the bulk library (bigWig format)
  • Region of interests (e.g. peaks) in the bulk library (bed format)
  • Aligned fragments from the reference sc/snATAC-seq (bed-like tabular format, required columns: chrom, chromStart, chromEnd, barcode, and readSupport). Example
  • Cell type annotation for each cell barcode (tabular format, required columns: barcode and cell type annotation).
  • Reference genome sequence (fasta format).
  • Chromosome size.
deepdetails prep-data \
    --bulk-pl bulk.pl.bw \
    --bulk-mn bulk.mn.bw \
    --regions bulk.peaks.bed \
    --fragments fragments.tsv.gz \
    --barcodes barcodes.tsv \
    --accessible-regions atac_peaks.bed \
    --save-to ./dataset \
    --genome-fa GRCh38_no_alt_analysis_set_GCA_000001405.15.fasta \
    --chrom-size chrNameLength.txt

Step 2: Deconvolution

After building the dataset folder, you can run the deconvolution process (requires GPU):

deepdetails deconv \
    --dataset ./dataset \
    --save-to . \
    --study-name sample-a

The outputs from a successful deconvolution process look like the following:

.
├── sample-a
│   └── 250212144109: The folder containing deconvolution results (name changes according to the time).
│       ├── epoch=0-step=2538.ckpt: Trained model
│       ├── hparams.yaml: Hyperparamters
│       ├── metrics.csv: Training log
...
│       └── preview972.0.131072.0000.s21250212144109.png: Preview genome browser views
├── sample-a.counts.csv.gz: Deconvolved read counts (1-kb resolution) for each cell type
└── sample-a.predictions.h5: Deconvolved signal (1-bp resolution) for each cell type

Step 3: Visualize the results (optional)

This step exports deconvolved signal tracks (bigWig) to visualize the signals in each cell type, and it's optional. You need to locate the exported predictions from the previous step by looking for files like sample-name.predictions.h5. After you get the file, you can run the following command:

deepdetails build-bw \
    -p sample-name.predictions.h5 \
    --save-to . \
    --chrom-size chrNameLength.txt

You should be able to see deconvolved signal tracks for each cell type (named like cell_type.pl.bw / cell_type.mn.bw) in the output directory after the command finishes.

Step 4: Visualize sequence attributions (optional)

This step exports sequence attribution tracks from trained DeepDETAILS models (using Input X Gradient):

deepdetails attr \
  -m sample-a/250212144109/epoch=0-step=2538.ckpt \
  --dataset ./dataset \
  --chrom-size chrNameLength.txt

Reference

Yao, L. et al. High-resolution reconstruction of cell-type specific transcriptional regulatory processes from bulk sequencing samples. Preprint at bioRxiv (2025).

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

deepdetails-0.1.0rc1.tar.gz (23.8 MB view details)

Uploaded Source

Built Distribution

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

deepdetails-0.1.0rc1-py3-none-any.whl (65.1 kB view details)

Uploaded Python 3

File details

Details for the file deepdetails-0.1.0rc1.tar.gz.

File metadata

  • Download URL: deepdetails-0.1.0rc1.tar.gz
  • Upload date:
  • Size: 23.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Hatch/1.16.2 cpython/3.11.14 HTTPX/0.28.1

File hashes

Hashes for deepdetails-0.1.0rc1.tar.gz
Algorithm Hash digest
SHA256 37e424a49aa94e4ecddee0ed6df80a592237e27f31c9a7bb34852dd82aaccabb
MD5 fe81481f930e566566bcf9489415ba2c
BLAKE2b-256 2982c61364868f185a90148b72c4594c0ac0d00c19278ce980a331b02d33edad

See more details on using hashes here.

File details

Details for the file deepdetails-0.1.0rc1-py3-none-any.whl.

File metadata

  • Download URL: deepdetails-0.1.0rc1-py3-none-any.whl
  • Upload date:
  • Size: 65.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Hatch/1.16.2 cpython/3.11.14 HTTPX/0.28.1

File hashes

Hashes for deepdetails-0.1.0rc1-py3-none-any.whl
Algorithm Hash digest
SHA256 a966da98609441b94809bf1ae185b5f94ef34fa2b86af0a0e11b2a27e4f54a28
MD5 c0f8bce24b04d4690eed9d52f4b9455e
BLAKE2b-256 8e0bc799cc6583bdda8d8d1004b9d3a1f8633bdda88e8b32960e7620a3c7a8ab

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