Multi-omics dependency network analysis under two conditions
Project description
iDDN
We developed an efficient and accurate multi-omics differential network analysis tool – integrative Differential Dependency Networks (iDDN). iDDN is capable of jointly learning sparse common and rewired network structures, which is especially useful for genomics, proteomics, and other biomedical studies. This repository provides the source code and examples of using iDDN.
Installation
Option 1: install from PyPI
iDDN can then be installed with the following command.
pip install iddn
If you meet any issue, one way is to install iDDN into a new Conda environment.
To create and activate an environment named iddn
, run this:
conda create -n iddn python=3.11
conda activate iddn
Then run pip install iddn
.
Option 2: install the development version
Alternatively, you can clone the repository, or just download or unzip it. Then we can install DDN 3.0.
$ pip install ./
Or you may want to install it in development mode.
$ pip install -e ./
Usage
This toy example applies iDDN on a synthetic data. More details can be found in the first tutorial.
from iddn import tools # Run iDDN algorithm and process the output
from iddn_data import load_data # Load example data and images
example = load_data.load_example("example.npz")
dat1 = example["dat1"]
dat2 = example["dat2"]
dep_mat = example["dep_mat"]
result = tools.iddn_basic_pipeline(dat1, dat2, dep_mat, lambda1=0.15, lambda2=0.05)
For more details and examples, check the documentation,
which includes four tutorials and the API reference.
The tutorials can also be found in the docs/notebooks
folder.
For details about the code to run simulations and make figures in the paper, check out the repository here.
Tests
To run tests, go to the folder of DDN3 source code, then run pytest
.
pytest tests
It will compare output of DDN with reference values. It tests iDDN with two acceleration strategies.
Contributing
Please report bugs in the issues or email Yizhi Wang (yzwang@vt.edu). If you are interested in adding features or fixing bug, feel free to contact us.
License
The iddn
package is licensed under the terms of the MIT license.
Citations
[1] Yizhi Wang, Yi Fu, et al. "iDDN: Determining trans-omics network structure and rewiring with integrative differential dependency networks".
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
Built Distribution
File details
Details for the file iddn-0.2.1.tar.gz
.
File metadata
- Download URL: iddn-0.2.1.tar.gz
- Upload date:
- Size: 1.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.10.12 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 698a09207968db063a266c14bd47d5569f6559cde0b00fec3caae7bd5d6100cf |
|
MD5 | 1a79b0c4436bbd0f0c27184c23569e77 |
|
BLAKE2b-256 | d590bc404195a77c7cdd769ab9366bb393ca01f8c0b261b98d74e7b7cefee83a |
File details
Details for the file iddn-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: iddn-0.2.1-py3-none-any.whl
- Upload date:
- Size: 1.5 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.10.12 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0bd1729b762b449329979eac3185f0af07d2867cadda2cc1f6db798f01c17880 |
|
MD5 | a409d59717fb5e5090fcca88cce30192 |
|
BLAKE2b-256 | 2d252975674fbbb6913320faa28d7a133fecdbb31a78382f36b71d6c3d774d2a |