Skip to content

Commit ecd7e35

Browse files
Adding simulation functions; creating networks from OmniPath
1 parent 95c2f66 commit ecd7e35

7 files changed

+18348
-19959
lines changed

notebooks/NORDic Drug Repurposing (DR).ipynb

Lines changed: 316 additions & 317 deletions
Large diffs are not rendered by default.

notebooks/NORDic Drug Simulation (DS).ipynb

Lines changed: 210 additions & 215 deletions
Large diffs are not rendered by default.

notebooks/NORDic Network Identification (NI) Part I.ipynb

Lines changed: 3 additions & 121 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"name": "stdout",
3535
"output_type": "stream",
3636
"text": [
37-
"NORDic==2.2.7\r\n"
37+
"NORDic==2.3.0\r\n"
3838
]
3939
}
4040
],
@@ -606,129 +606,11 @@
606606
"name": "stdout",
607607
"output_type": "stream",
608608
"text": [
609-
"--- DATA IMPORT ---\n",
610-
"1. Import gene set from DisGeNET... <DISGENET> Retrieving genes... 1/1\n",
611-
"... 7 genes imported.\n",
612-
"2. Import network from STRING... ... 15 edges in model (including 0 directed edges) with a total of 6 non-isolated genes\n",
613-
"3. Import experiments from LINCS L1000... \n",
614-
"\t2 cell lines are considered (['NPC', 'SHSY5Y'])\n",
615-
"\t6 genes available (convertable to EntrezIDs)\n",
616-
"\t\t6/6 genes retrieved in LINCS L1000\n",
617-
"<UTILS_EXP> Gene 1/6 Cell 1/2 Type 1/3\n",
618-
"<UTILS_EXP> Gene 2/6 Cell 1/2 Type 1/3\n",
619-
"<UTILS_EXP> Gene 3/6 Cell 1/2 Type 1/3\n",
620-
"<UTILS_EXP> Gene 4/6 Cell 1/2 Type 1/3\n",
621-
"<UTILS_EXP> Gene 5/6 Cell 1/2 Type 1/3\n",
622-
"<UTILS_EXP> Gene 6/6 Cell 1/2 Type 1/3\n",
623-
"<UTILS_EXP> Gene 1/6 Cell 1/2 Type 2/3\n",
624-
"<UTILS_EXP> Gene 2/6 Cell 1/2 Type 2/3\n",
625-
"<UTILS_EXP> Gene 3/6 Cell 1/2 Type 2/3\n",
626-
"<UTILS_EXP> Gene 4/6 Cell 1/2 Type 2/3\n",
627-
"<UTILS_EXP> Gene 5/6 Cell 1/2 Type 2/3\n",
628-
"<UTILS_EXP> Gene 6/6 Cell 1/2 Type 2/3\n",
629-
"<UTILS_EXP> Gene 1/6 Cell 1/2 Type 3/3\n",
630-
"<UTILS_EXP> Gene 2/6 Cell 1/2 Type 3/3\n",
631-
"<UTILS_EXP> Gene 3/6 Cell 1/2 Type 3/3\n",
632-
"<UTILS_EXP> Gene 4/6 Cell 1/2 Type 3/3\n",
633-
"<UTILS_EXP> Gene 5/6 Cell 1/2 Type 3/3\n",
634-
"<UTILS_EXP> Gene 6/6 Cell 1/2 Type 3/3\n",
635-
"<UTILS_EXP> Gene 1/6 Cell 2/2 Type 1/3\n",
636-
"<UTILS_EXP> Gene 2/6 Cell 2/2 Type 1/3\n",
637-
"\t<UTILS_EXP> (BDNF,SHSY5Y,trt_sh): 2\n",
638-
"<UTILS_EXP> Gene 3/6 Cell 2/2 Type 1/3\n",
639-
"<UTILS_EXP> Gene 4/6 Cell 2/2 Type 1/3\n",
640-
"<UTILS_EXP> Gene 5/6 Cell 2/2 Type 1/3\n",
641-
"<UTILS_EXP> Gene 6/6 Cell 2/2 Type 1/3\n",
642-
"<UTILS_EXP> 0 experiments so far\n",
643-
"\t<UTILS_EXP> Treatment BDNF (entrez_id 627)... <BioDBNet> 1/1\n",
644-
"<LINCS> 2 TREATED experiments ('brew_prefix') (3 profiles 'distil_id' in average)\n",
645-
"<LINCS> Selected distil_ss = 3.76598\n",
646-
"<LINCS> 3 same-plate profiles\n",
647-
"<LINCS> 18 CONTROL experiments ('brew_prefix') (5 profiles 'distil_id' in average)\n",
648-
"<LINCS> Selected distil_ss = 3.75211\n",
649-
"<LINCS> 3 same-plate profiles\n",
650-
"<INTERFERENCE SCALE> KD Perturbed 627 = 1.01391 || Most stable control 7846 = 1.00000\n",
651-
"<INTERFERENCE SCALE> -0.01391\n",
652-
"... 5 genes, 6 profiles\n",
653-
"<UTILS_EXP> 1 experiments so far\n",
654-
"\t<UTILS_EXP> Duplicated treatment:BDNF, cell:SHSY5Y, type:trt_sh\n",
655-
"<UTILS_EXP> Gene 1/6 Cell 2/2 Type 2/3\n",
656-
"<UTILS_EXP> Gene 2/6 Cell 2/2 Type 2/3\n",
657-
"<UTILS_EXP> Gene 3/6 Cell 2/2 Type 2/3\n",
658-
"<UTILS_EXP> Gene 4/6 Cell 2/2 Type 2/3\n",
659-
"<UTILS_EXP> Gene 5/6 Cell 2/2 Type 2/3\n",
660-
"<UTILS_EXP> Gene 6/6 Cell 2/2 Type 2/3\n",
661-
"<UTILS_EXP> Gene 1/6 Cell 2/2 Type 3/3\n",
662-
"<UTILS_EXP> Gene 2/6 Cell 2/2 Type 3/3\n",
663-
"<UTILS_EXP> Gene 3/6 Cell 2/2 Type 3/3\n",
664-
"<UTILS_EXP> Gene 4/6 Cell 2/2 Type 3/3\n",
665-
"<UTILS_EXP> Gene 5/6 Cell 2/2 Type 3/3\n",
666-
"<UTILS_EXP> Gene 6/6 Cell 2/2 Type 3/3\n",
667-
"\t\t1 unique experiments (including 1 with criterion thres_iscale > None, min_value None)\n",
668-
"... 6 genes in 6 profiles (1 experiments)\n",
669-
"\n",
670-
"--- CONSTRAINT BUILDING ---\n",
671-
"1. Filtering out edges by minimum set of edges with highest score which preserve connectivity... ... 15 unique edges involving genes both in experiments (6 genes in total)\n",
672-
"... score_STRING 0.000000\t6 genes (non isolated in PPI)\t60 edges in PPI\n",
673-
"2. Build topological constraints from filtered edges using gene expression data... ...... 14 negative, 16 positive undirected interactions (30 edges in total), 6 non isolated genes in experiments\n",
674-
"3. Build dynamical constraints by binarization of experimental profiles... ...<UTILS_EXP> Cell SHSY5Y (1/1)... <UTILS_EXP> 303 (good) profiles | 50 (best) profiles (capped at 50 or min>=4) (distil_ss max=6.206, min=4.141)\n",
675-
"... 1 experiments on 1 cell lines and 6/6 genes (Frobenius norm signature matrix: 3.464, 5 possibly constant genes: 83.3%, 0 genes with undetermined status\n",
676-
"\n",
677-
"--- INFER BOOLEAN NETWORK ---\n",
678-
"1. Generate solutions from topological & dynamical constraints... ...<UTILS_GRN> Maximum possible #activators=5\n",
679-
"<BONESIS> 30 interactions (maximum # of clauses = 3)\n",
680-
"\n",
681-
"<UTILS_GRN> 1 experiments\n",
682-
" PHOX2B EDN3 RET GDNF BDNF ASCL1\n",
683-
"Exp1_init 1 1 1 1 0 0\n",
684-
"Exp1_final 1 1 1 0 0 0\n"
685-
]
686-
},
687-
{
688-
"name": "stderr",
689-
"output_type": "stream",
690-
"text": [
691-
"\r",
692-
" 0%| | 0/1 [00:00<?, ?it/s]"
693-
]
694-
},
695-
{
696-
"name": "stdout",
697-
"output_type": "stream",
698-
"text": [
699-
"Grounding...done in 0.0s\n",
700-
"Found 1 solutions in 0.0s (first in 0.0s; rate 0.0s)"
701-
]
702-
},
703-
{
704-
"name": "stderr",
705-
"output_type": "stream",
706-
"text": [
707-
"\r",
708-
"100%|████████████████████████████████████████████████████████████████████████| 1/1 [00:00<00:00, 36.56it/s]"
709-
]
710-
},
711-
{
712-
"name": "stdout",
713-
"output_type": "stream",
714-
"text": [
609+
"1 solutions are already generated, and saved at MODELS/Ondine/SOLUTIONS-1_binthres=0.500_thresiscale=None_score=0.00_maxclause=3_{1,...1}.zip\n",
715610
"--- SELECTION OF OPTIMAL MODEL ---\n",
716611
"A. Select an optimal model based on a topological criteria... ...1 solutions (1 unique solutions)\n",
717612
"... 1 solutions (0/7 constant genes in average)\n",
718-
"<MODEL VISUALIZATION> Minimal solution: 30 edges\n"
719-
]
720-
},
721-
{
722-
"name": "stderr",
723-
"output_type": "stream",
724-
"text": [
725-
"\n"
726-
]
727-
},
728-
{
729-
"name": "stdout",
730-
"output_type": "stream",
731-
"text": [
613+
"<MODEL VISUALIZATION> Minimal solution: 30 edges\n",
732614
"<MODEL VISUALIZATION> Maximal solution: 30 edges\n",
733615
" 1\n",
734616
"GTP 0.858009\n",

0 commit comments

Comments
 (0)