Package to preprocess ontologies, train OntoVAE and COBRA models and obtain TF and pathway activities.
Project description
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3dcd6556d05d89ffe04404a74b7e68a5149043cc0f8a8c9c32fb528be332e14 |
|
MD5 | 82b9703e7287ec90d874c1722dc47b6e |
|
BLAKE2b-256 | ad7b684ad07dbb3ae78e5bc96221d34cb114496d344c03ef791590b7b5674c25 |
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | ebf0e93bdac60f02d616ca882cad99733a88bab1677b0ce5671d6fe04645e302 |
|
MD5 | 5c6a9e8c6dc083063c391990dba5aba6 |
|
BLAKE2b-256 | d8d8306895e329b20fc4e207dbddae8aa0d8a5224f824b29dcaa6d97c3cc9811 |