Skip to main content

Deconomix

Overview

Deconomix is a Python library aimed at the bioinformatics community, offering methods to estimate cell type compositions, hidden background contributions and cell-type-specific relative gene expression changes of bulk RNA mixtures. Visit the documentation here.

Features

  • Data Simulation: Generate artificial bulk mixtures from single-cell data in an efficient way to provide training data for your models.

  • Gene Weighting: Learn gene weights from artifical bulk mixtures to optimize the cellular composition estimation of real bulk RNA mixtures.

  • Cellular Composition: Estimate the cellular composition of your bulk RNA profiles or Spatial Transcriptomics spots.

  • Background Estimation: Refine the composition estimation by estimate a hidden background contribution and profile, which cannot be explained by the cell types featured in the reference.

  • Gene Regulation: Find out, how cell types in your bulk data is regulated in relation to your reference profiles, for instance in a disease context.

  • Visualization: Visualize your results with predefined functions.

  • Evaluation: Perform basic enrichment analysis for the estimated gene regulatory factors.

Installation

Deconomix is added to the official PyPI repositories and can be installed from there directly:

pip install deconomix

Alternatively, this git repository can be cloned to install the latest version:

pip install git+https://gitlab.gwdg.de/MedBioinf/MedicalDataScience/Deconomix/Deconomix

Deconomix does not utilize GPUs -- to keep your installation lightweight, you can install a cpu-only torch version beforehand (180MB vs 3GB size)

pip install torch --index-url https://download.pytorch.org/whl/cpu

Getting Started

Upon successful installation, users are encouraged to explore the curated examples provided in this repository. The examples directory contains Jupyter notebooks showcasing various example workflows. Start out with Getting_started.ipynb to get an introduction on how you can apply Deconomix models in the simplest way with the package. Continue with Hyperparameter_Gridsearch.ipynb to learn how to conduct a hyperparameter search for our advanced models. In Plots_for_Tech_Note.ipynb you can find some visualizations which are featured in the overview figure for the article.

Advanced Users

If you want to build a custom deconvolution pipeline with out package from scratch, you can take a look at Advanced_Workflow.ipynb. Get a full overview of the available functions from the documentation. Check out the breast cancer case study from the article as well. If further questions arise, do not hesitate to contact us!

GUI Application

For easier usage, we also distribute a graphical user interface for our package, available for all common operating systems. It is an application built with Dash/Plotly and can be ran locally or on a webserver. Check out the corresponding repository of Deconomix GUI.

For Developers

For feature requests and bug reports do not hesitate to contact us via an issue or email.

If you want to generate or update the html documentation yourself, follow these steps:

Install sphinx and sphinx-rtd-theme:

pip install sphinx
pip install sphinx-rtd-theme

Then move into the docs directory and execute the make command:

make html

Metadata

Release files for deconomix 1.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for deconomix 1.0.3
File Size Uploaded Provenance Actions
deconomix-1.0.3.tar.gz 36.2 kB Without provenance Details for deconomix-1.0.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for deconomix 1.0.3
File Interpreter ABI Platform Actions
deconomix-1.0.3-py3-none-any.whl Python 3 none any Details for deconomix-1.0.3-py3-none-any.whl

Total release size: 51.7 kB

Release files / deconomix-1.0.3.tar.gz

Download URL deconomix-1.0.3.tar.gz
Size 36.2 kB
Tags Source
SHA-256 checksum
How to use checksums
273a34b8ec6b355eaf6b3e7b0bbf2b2f079e161318fd665c5523a055fa445cf1
BLAKE2b-256 checksum
How to use checksums
e9f39428435f3560f8191dcffff1bd037caf1e0a7a1086a86257101cb417c960
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.11.2

Release files / deconomix-1.0.3-py3-none-any.whl

Download URL deconomix-1.0.3-py3-none-any.whl
Size 15.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e274b6a68666d1fee4497cab51d636283432b3936ed05d71c6d055ef8e57a0e8
BLAKE2b-256 checksum
How to use checksums
4d93e185611e85b44f02985d7dfc3953d20da6b5f0a288ccdceb98de97cf69b2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.11.2

Security for deconomix 1.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page