Skip to main content

Provides methods for cellular composition, hidden background and gene regulation estimation of omics bulk mixtures.

Project description

Deconomix

Overview

Deconomix is a Python library aimed at the bioinformatics community, offering methods to estimate cell type compositions, hidden background contributions and gene regulation factors 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.

Updates

This package will eventually be updated with our recent developments. The version provided for the biorXiv preprint is tagged accordingly. The version at first submission will be tagged and released as version 1.0.0.

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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

deconomix-1.0.2.tar.gz (37.1 kB view details)

Uploaded Source

Built Distribution

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

deconomix-1.0.2-py3-none-any.whl (37.0 kB view details)

Uploaded Python 3

File details

Details for the file deconomix-1.0.2.tar.gz.

File metadata

  • Download URL: deconomix-1.0.2.tar.gz
  • Upload date:
  • Size: 37.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.2

File hashes

Hashes for deconomix-1.0.2.tar.gz
Algorithm Hash digest
SHA256 3412f1ccaa313e39fd2a15fac25ebbdfc8f98117f90a1449ab7b144df1ab9a9f
MD5 46bfe41c5d5fd52357e47dd1eb56f400
BLAKE2b-256 dcbebcc8f91e873aae79261839e62eb42502ee5721873a37261522ed26114689

See more details on using hashes here.

File details

Details for the file deconomix-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: deconomix-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 37.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.2

File hashes

Hashes for deconomix-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e93abbe9644c076ab16b9990c41e2a066ab89389101e94591d251ab566677834
MD5 1e526175f1d37d44f32436ee65feab23
BLAKE2b-256 66d1132785b4caaf7c2756f6e2c038f37d44fe4ca304bc5bfa7bb41797e5abdc

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