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.3.tar.gz
.
File metadata
- Download URL: iddn-0.2.3.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 | 1fabf7db647809d669757a3535efa3491469c85efd3b407342c3ddf7e6c12f36 |
|
MD5 | a4357b44e2ee461ff144af935f3cafee |
|
BLAKE2b-256 | 2d35a8ed7f5a8e0db502a6f015daaba797d09441437444ea0c04070b6e2fff36 |
File details
Details for the file iddn-0.2.3-py3-none-any.whl
.
File metadata
- Download URL: iddn-0.2.3-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 | 6cb84d596064b4b8c6cddedc61f3e221172867c9a6bccc1680015e22d371944a |
|
MD5 | 972ff519a2c1668933b1b33ba2ccf06b |
|
BLAKE2b-256 | 423ced08509f548d2855981e9c98c7fcaaa798cf0bcbff0ac40633946d488381 |