Network Oriented Repurposing of Drugs (NORDic): network identification and master regulator detection
Project description
Network Oriented Repurposing of Drugs (NORDic) package
(c) Clémence Réda, 2022.
Due to the presence of copyrighted databases, the license for this code is Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0).
Environment
pip install NORDic
git clone https://github.com/cmap/cmapPy
sed -i 's/temp_array = temp_array.astype(\"str\")/temp_array = np.core.defchararray.decode(temp_array, \"utf8\") # <- introduced for Python3 compatibility/' cmapPy/cmapPy/pandasGEXpress/parse_gctx.py
python3 -m pip install cmapPy/
rm -rf cmapPy/
python3 -m pip install git+https://github.com/bnediction/mpbn-sim.git@5f919c5c62e111628136d62357902966404b988e
Using the "refractory epilepsy" application
Import the initial states from Mirza et al., 2017 and the M30 genes from Delahaye-Duriez et al., 2016
conda activate NORDic_env
python3 download_Refractory_Epilepsy_Data.py
conda deactivate
Building a Boolean network
You need to register to the LINCS L1000 database and the DisGeNet database and write up the corresponding credentials and API keys to files
from NORDic.NORDic_NI.functions import network_identification
solution = network_identification(file_folder, taxon_id, path_to_genes, ...)
The final network solution is written to <file_folder>solution.bnet.
Detection of master regulators
Using the filename in .bnet "network_name", the size k of the set of master regulators and the set of initial states states
from NORDic.NORDic_PMR.functions import greedy
S, spreads = greedy(network_name, k, states, ...)
The result file is named application_regulators.csv.
Network analysis with Cytoscape
Network analyses are performed with Cytoscape 3.8.0. You need to download the module CytoCtrlAnalyser (version 1.0.0). Then run
from NORDic.NORDic_NI.functions import solution2cytoscape
solution2cytoscape(solution, file_folder+"solution_minimal_cytoscape")
which will create a style file (in .xml) and a network file readable by Cytoscape (in .sif).
Pull requests, issues, suggestions?
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file NORDic-1.0.4.tar.gz.
File metadata
- Download URL: NORDic-1.0.4.tar.gz
- Upload date:
- Size: 42.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b7163964187a6cfb602113a0e1d0fabc32222f3cd6144a914215b9416c8418b8
|
|
| MD5 |
4db980084068704c07d87cb09af655de
|
|
| BLAKE2b-256 |
e6ebef282f765a5252d5a22cb7f8289901af7d0a10f981beac30c73571a9a77d
|
File details
Details for the file NORDic-1.0.4-py3-none-any.whl.
File metadata
- Download URL: NORDic-1.0.4-py3-none-any.whl
- Upload date:
- Size: 47.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d34c8cfeb592b5fe6a7e0c69d0bf3f7b8e51590186c572d30820125f8dcc9487
|
|
| MD5 |
2b37f93ced4a503c9e64f77701f16cb2
|
|
| BLAKE2b-256 |
a5dbe4e1fe9118e6d40e18e612d395cc8b05c2ccd8c4d3ac8c48a2b417fd16b5
|