Skip to main content

Package to preprocess ontologies, train OntoVAE and COBRA models and obtain TF and pathway activities.

Project description

drawing

COBRA extends our previously published OntoVAE model (https://doi.org/10.1093/bioinformatics/btad387) with an adversarial approach that allows decoupling of covariates in the latent space. Thus, users can obtain TF or pathway activities that depend on a specific covariate from the interpretable decoder of the model. The code for the original OntoVAE model has undergone some major improvements and is now also hosted in this repository.

Installation

conda create -n cobra python=3.10
conda activate cobra
pip install cobra-ai

Usage

In python, import neccessary modules

from cobra_ai.module.ontobj import *
from cobra_ai.module.utils import *

For COBRA

from cobra_ai.model.cobra import *

For OntoVAE

from cobra_ai.model.onto_vae import *

Examples on how to initialize an ontobj and train a model can be found in the vignette folder. This documentation is still work-in-progress and will be updated soon.

Citation

If you use COBRA for your research, please cite:

Daria Doncevic, Carlos Ramirez Alvarez, Albert Li, Youcheng Zhang, Anna von Bachmann, Kasimir Noack, and Carl Herrmann: Prediction of context-specific regulatory programs and pathways using interpretable deep learning

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

cobra_ai-0.1.0.tar.gz (55.8 kB view details)

Uploaded Source

Built Distribution

cobra_ai-0.1.0-py3-none-any.whl (67.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cobra_ai-0.1.0.tar.gz
  • Upload date:
  • Size: 55.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.10.8 Linux/5.4.0-170-generic

File hashes

Hashes for cobra_ai-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e3dcd6556d05d89ffe04404a74b7e68a5149043cc0f8a8c9c32fb528be332e14
MD5 82b9703e7287ec90d874c1722dc47b6e
BLAKE2b-256 ad7b684ad07dbb3ae78e5bc96221d34cb114496d344c03ef791590b7b5674c25

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cobra_ai-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 67.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.10.8 Linux/5.4.0-170-generic

File hashes

Hashes for cobra_ai-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ebf0e93bdac60f02d616ca882cad99733a88bab1677b0ce5671d6fe04645e302
MD5 5c6a9e8c6dc083063c391990dba5aba6
BLAKE2b-256 d8d8306895e329b20fc4e207dbddae8aa0d8a5224f824b29dcaa6d97c3cc9811

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page