From 25b843f6bbacb1937bdb960777b73acbece64115 Mon Sep 17 00:00:00 2001 From: ziejd2 Date: Wed, 24 Feb 2021 14:36:59 -0600 Subject: GENENET8 update --- sourcecodes/.violin_plotly.py.swp | Bin 0 -> 16384 bytes sourcecodes/BNW_overview_new.PNG | Bin 0 -> 1114695 bytes sourcecodes/BNW_workflow_1.htm | 645 - sourcecodes/BNW_workflow_2.htm | 731 - sourcecodes/BNW_workflow_net1.htm | 49 +- sourcecodes/BNW_workflow_sci.htm | 36 +- .../8node_best_structure.jpg | Bin 73502 -> 0 bytes .../BNW_workflow_test_files/8node_file_upload.jpg | Bin 66635 -> 0 bytes .../8node_file_upload_new.png | Bin 0 -> 129970 bytes .../BNW_workflow_test_files/8node_geno1_2.jpg | Bin 81853 -> 0 bytes .../BNW_workflow_test_files/8node_geno1_2_new.png | Bin 0 -> 98634 bytes .../8node_global_settings.jpg | Bin 24453 -> 0 bytes .../BNW_workflow_test_files/8node_matrix.jpg | Bin 107678 -> 0 bytes .../8node_model_avg_struct.jpg | Bin 77206 -> 0 bytes .../8node_model_avg_struct_new.png | Bin 0 -> 37141 bytes .../BNW_workflow_test_files/8node_no_weight.png | Bin 0 -> 50297 bytes .../BNW_workflow_test_files/8node_trait2_15.jpg | Bin 76253 -> 0 bytes .../8node_trait2_15_new.png | Bin 0 -> 85384 bytes .../BNW_workflow_test_files/8node_with_weights.png | Bin 0 -> 43854 bytes .../BNW_workflow_test_files/add_remove_MAS.png | Bin 0 -> 56401 bytes .../BNW_workflow_test_files/add_remove_Weight.png | Bin 0 -> 57758 bytes .../BNW_workflow_test_files/add_remove_filter.png | Bin 0 -> 49987 bytes .../BNW_workflow_test_files/add_remove_final.png | Bin 0 -> 77282 bytes .../add_remove_new_edge.png | Bin 0 -> 56941 bytes .../add_remove_original_interface.png | Bin 0 -> 54516 bytes .../add_remove_original_network.png | Bin 0 -> 194538 bytes .../add_remove_red_edge.png | Bin 0 -> 57077 bytes .../BNW_workflow_test_files/add_remove_removed.png | Bin 0 -> 55849 bytes sourcecodes/BNW_workflow_test_files/image2_4.png | Bin 0 -> 31431 bytes sourcecodes/BNW_workflow_test_files/image2_5.png | Bin 0 -> 89918 bytes .../BNW_workflow_test_files/sci_5node_network1.png | Bin 0 -> 106300 bytes .../BNW_workflow_test_files/sci_5node_part1.png | Bin 0 -> 60172 bytes .../BNW_workflow_test_files/sci_5node_part2.png | Bin 0 -> 45388 bytes .../BNW_workflow_test_files/sci_5node_part3.png | Bin 0 -> 84739 bytes .../BNW_workflow_test_files/sci_5node_upload.png | Bin 0 -> 93545 bytes sourcecodes/about_this_page.php | 180 + sourcecodes/add_evd.php | 8 +- sourcecodes/add_evd_example.php | 195 - sourcecodes/add_inv.php | 13 +- sourcecodes/add_inv_example.php | 254 - sourcecodes/add_remove_howto.htm | 359 + sourcecodes/bn_after_upload_gom.php | 147 +- sourcecodes/bn_file_load_gom.php | 154 +- sourcecodes/clear.php | 1 - sourcecodes/clear_cv_pred.php | 9 + sourcecodes/clear_example.php | 25 - sourcecodes/create_tiers_gom.php | 1046 -- sourcecodes/create_tiers_gom_part1.php | 196 + sourcecodes/create_tiers_gom_part2.php | 909 + sourcecodes/cross_valid.php | 106 +- sourcecodes/cross_valid_example.php | 125 - sourcecodes/cv_plotly.py | 90 +- sourcecodes/cv_predictions.php | 47 +- sourcecodes/cv_predictions_example.php | 94 - sourcecodes/data/LRlnetwork.json | 10 + sourcecodes/data/example2_test/exAban.txt | 1 + .../data/example2_test/exAcontinuous_input.txt | 203 + .../example2_test/exAcontinuous_input_orig.txt | 201 + sourcecodes/data/example2_test/exAk.txt | 1 + sourcecodes/data/example2_test/exAparent.txt | 1 + .../data/example2_test/exAstructure_input.txt | 9 + .../data/example2_test/exAstructure_input_temp.txt | 9 + sourcecodes/data/example2_test/exAthr.txt | 1 + sourcecodes/data/example2_test/exAwhite.txt | 1 + .../data/example_chl/bWRcontinuous_input.txt | 44 - sourcecodes/data/example_chl/bWRgraphviz.txt | 11 - sourcecodes/data/example_chl/bWRmap.txt | 5 - sourcecodes/data/example_chl/bWRmapdata.txt | 1 - sourcecodes/data/example_chl/bWRname.txt | 1 - sourcecodes/data/example_chl/bWRnet_figure.txt | 433 - sourcecodes/data/example_chl/bWRnet_figure_new.txt | 433 - sourcecodes/data/example_chl/bWRnlevels.txt | 2 - sourcecodes/data/example_chl/bWRnnode.txt | 1 - sourcecodes/data/example_chl/bWRparameters.txt | 21 - .../data/example_chl/bWRstructure_input.txt | 13 +- .../data/example_chl/bWRstructure_input_temp.txt | 6 + sourcecodes/data/example_chl/bWRstructure_old.txt | 5 - sourcecodes/data/example_chl/bWRtype.txt | 2 - sourcecodes/data/example_chl/bWRvar.txt | 1 - sourcecodes/data/example_chl/bWRvardata.txt | 1 - sourcecodes/data/example_chl/bWRvarname.txt | 1 - .../example_chl/old_gn/bWRcontinuous_input.txt | 44 + .../old_gn/bWRcontinuous_input_orig.txt | 42 + .../data/example_chl/old_gn/bWRgraphviz.txt | 11 + sourcecodes/data/example_chl/old_gn/bWRmap.txt | 5 + sourcecodes/data/example_chl/old_gn/bWRmapdata.txt | 1 + sourcecodes/data/example_chl/old_gn/bWRname.txt | 1 + .../data/example_chl/old_gn/bWRnet_figure.txt | 433 + .../data/example_chl/old_gn/bWRnet_figure_new.txt | 433 + sourcecodes/data/example_chl/old_gn/bWRnlevels.txt | 2 + sourcecodes/data/example_chl/old_gn/bWRnnode.txt | 1 + .../data/example_chl/old_gn/bWRparameters.txt | 21 + .../data/example_chl/old_gn/bWRstructure_input.txt | 7 + .../data/example_chl/old_gn/bWRstructure_old.txt | 5 + sourcecodes/data/example_chl/old_gn/bWRtype.txt | 2 + sourcecodes/data/example_chl/old_gn/bWRvar.txt | 1 + sourcecodes/data/example_chl/old_gn/bWRvardata.txt | 1 + sourcecodes/data/example_chl/old_gn/bWRvarname.txt | 1 + sourcecodes/data/example_sample/sample_input.txt | 42 + sourcecodes/data/example_sample/sample_input.txt~ | 42 + sourcecodes/data/sample_input.txt | 42 + sourcecodes/delete_cv_pred.sh | 22 + sourcecodes/enter_netID.php | 14 +- sourcecodes/enter_netID.php~ | 74 + sourcecodes/example.php | 68 +- sourcecodes/examplefilecopy.sh | 6 +- sourcecodes/examples/cardiagnosis.php | 4 +- sourcecodes/examples/chl_example.php | 4 +- sourcecodes/examples/my_new_style.css | 478 +- sourcecodes/examples/spleen_immune_example.php | 4 +- sourcecodes/examples/synthetic_example2.php | 4 +- sourcecodes/examples/synthetic_example3.php | 4 +- sourcecodes/execute_bn_gom.php | 16 +- sourcecodes/executionprogress.php | 10 +- sourcecodes/executionprogress_default.php | 79 + sourcecodes/faq.php | 28 +- sourcecodes/filecopy.sh | 18 +- sourcecodes/getting_started.php | 29 +- sourcecodes/graph-creator.js | 275 - sourcecodes/graphviz_structure.php | 31 +- sourcecodes/header_batchsearch.inc | 6 +- sourcecodes/header_new.inc | 6 +- sourcecodes/help.php | 131 +- sourcecodes/home.php | 76 +- sourcecodes/home_upload.php | 11 +- sourcecodes/input_check.php | 86 +- sourcecodes/js-graph-it.css | 24 - sourcecodes/js-graph-it.js | 1802 -- sourcecodes/kfold_cv.php | 115 +- sourcecodes/kfold_cv_example.php | 150 - sourcecodes/kfold_plotly.py | 86 +- sourcecodes/layout.php | 79 +- sourcecodes/layout_cyto.php | 93 +- sourcecodes/layout_cyto.php~ | 402 + sourcecodes/layout_example.php | 122 - sourcecodes/layout_svg_no.php | 155 +- sourcecodes/layout_svg_wt.php | 140 +- sourcecodes/mat_structure.php | 6 +- sourcecodes/matrix.php | 3 +- sourcecodes/matrix_new.php | 84 + sourcecodes/modified_network.php | 4 +- sourcecodes/modify_structure_learning.php | 7 +- sourcecodes/my_new_style.css | 514 +- sourcecodes/net_structure.php | 175 +- sourcecodes/net_structure.php.bk | 132 + sourcecodes/net_structure.php~ | 136 + sourcecodes/network_layout_evd.php | 31 +- sourcecodes/network_layout_evd_2.php | 17 +- sourcecodes/network_layout_evd_2_example.php | 956 -- sourcecodes/network_layout_evd_example.php | 634 - sourcecodes/network_layout_inv.php | 17 +- sourcecodes/network_layout_inv_2.php | 17 +- sourcecodes/network_layout_inv_2_example.php | 1152 -- sourcecodes/network_layout_inv_example.php | 666 - sourcecodes/parameter_display.php | 127 +- sourcecodes/parameter_display.php.bk | 19 + sourcecodes/parameter_learning/Predictmultiple.m | 2 +- .../Predictmultipleintervention.m | 2 +- .../code_backup/Predictmultiple.m | 72 - .../code_backup/Predictmultipleintrvention.m | 95 - .../code_backup/checkDiscreteNodes.m | 37 - .../code_backup/checkStructure.m | 78 - .../parameter_learning/code_backup/drawFigure.m | 390 - .../parameter_learning/code_backup/drawFigure.m~ | 388 - .../parameter_learning/code_backup/drawFigureM.m | 230 - .../parameter_learning/code_backup/getParams.m | 22 - .../parameter_learning/code_backup/looCrossValid.m | 241 - .../code_backup/parameterLearning.m | 17 - .../parameter_learning/code_backup/prepareInput.m | 294 - .../parameter_learning/code_backup/prepareInput.m~ | 294 - .../parameter_learning/code_backup/readInput.m | 63 - .../parameter_learning/code_backup/readInputData.m | 75 - .../code_backup/readInputStructure.m | 72 - .../parameter_learning/code_backup/runBN_initial.m | 57 - .../code_backup/standardizeData.m | 25 - .../code_backup/writeParameters.m | 106 - .../code_backup/writeParameters_ev.m | 151 - .../code_backup/writeParameters_int.m | 186 - sourcecodes/parameter_learning/createJSON.m | 13 +- sourcecodes/parameter_learning/createSVG.m | 28 +- sourcecodes/parameter_learning/drawFigure.m | 73 +- sourcecodes/parameter_learning/drawFigureM.m | 25 +- sourcecodes/parameter_learning/kfoldCrossValid.m | 21 +- sourcecodes/parameter_learning/looCrossValid.m | 18 +- sourcecodes/parameter_learning/modifyEdges.m | 179 +- sourcecodes/parameter_learning/normpdf.m | 50 + sourcecodes/parameter_learning/normrnd.m | 130 + sourcecodes/parameter_learning/prepareInput.m | 84 +- sourcecodes/parameter_learning/removeNodes.m | 39 +- sourcecodes/parameter_learning/runBN_initial.m | 2 +- .../parameter_learning/testSetPredictions.m | 32 +- sourcecodes/parameter_learning/writeParameters.m | 34 +- .../parameter_learning/writeParameters_ev.m | 28 +- .../parameter_learning/writeParameters_int.m | 29 +- sourcecodes/parameter_learning/writeSettings.m | 200 + sourcecodes/print_structure/index.html | 6 - sourcecodes/print_structure/structure.c | 97 - sourcecodes/remove_variables.php | 84 +- sourcecodes/remove_variables_processing.php | 16 +- .../remove_variables_processing_default.php | 14 +- sourcecodes/reroute.php | 21 + sourcecodes/restructuremap.php | 42 - sourcecodes/review_settings.php | 84 + sourcecodes/run.sh | 24 +- sourcecodes/run_scripts/#run_octave# | 15 - sourcecodes/run_scripts/BNW_workflow_sci.htm | 381 + sourcecodes/run_scripts/path_cd.m | 5 + sourcecodes/run_scripts/run_del_var | 7 +- sourcecodes/run_scripts/run_kfold | 15 +- sourcecodes/run_scripts/run_loo | 12 +- sourcecodes/run_scripts/run_mod_edges | 19 +- sourcecodes/run_scripts/run_mod_edges.bk | 24 - sourcecodes/run_scripts/run_mod_edges~ | 45 - sourcecodes/run_scripts/run_mod_str | 7 +- sourcecodes/run_scripts/run_mod_str~ | 24 - sourcecodes/run_scripts/run_octave | 15 +- sourcecodes/run_scripts/run_octave_evd | 9 +- sourcecodes/run_scripts/run_octave_inv | 9 +- sourcecodes/run_scripts/run_octave_test~ | 7 - sourcecodes/run_scripts/run_octave~ | 14 - sourcecodes/run_scripts/run_prep_input | 7 +- sourcecodes/run_scripts/run_settings | 4 + sourcecodes/run_scripts/run_test_set | 12 +- sourcecodes/run_scripts/run_violin | 11 + sourcecodes/run_scripts/test | 7 - sourcecodes/run_scripts/test~ | 15 - sourcecodes/runtime_check.php | 6 +- sourcecodes/sample_input.php | 45 + sourcecodes/scripts/FileSaver.min.js | 1 + sourcecodes/scripts/accordion.js | 31 + sourcecodes/scripts/accordion.js~ | 31 + sourcecodes/scripts/canvas-toBlob.js | 125 + sourcecodes/scripts/create_table.js | 84 + sourcecodes/scripts/create_table.js~ | 82 + sourcecodes/scripts/cytoscape-dagre.min.js | 8 + sourcecodes/scripts/cytoscape-panzoom.js | 587 + sourcecodes/scripts/cytoscape.js-panzoom.css | 220 + sourcecodes/scripts/cytoscape.min.js | 23 + sourcecodes/scripts/d3-selection-multi.v1.js | 94 + sourcecodes/scripts/d3.v4.min.js | 2 + sourcecodes/scripts/dagre.js | 16396 ++++++++++++++++++ sourcecodes/scripts/font-awesome.css | 821 + sourcecodes/scripts/font-awesome.css~ | 821 + sourcecodes/scripts/fontawesome-webfont.eot | Bin 0 -> 38205 bytes sourcecodes/scripts/fontawesome-webfont.svg | 63 + sourcecodes/scripts/fontawesome-webfont.ttf | Bin 0 -> 80652 bytes sourcecodes/scripts/fontawesome-webfont.woff | Bin 0 -> 44432 bytes sourcecodes/scripts/jquery.min.js | 4 + sourcecodes/scripts/lodash.js | 17105 +++++++++++++++++++ sourcecodes/scripts/table.css | 42 + sourcecodes/scripts/table.css~ | 42 + sourcecodes/test_set_predictions.php | 140 +- sourcecodes/test_set_predictions_example.php | 158 - sourcecodes/tier_description_processing_gom.php | 52 +- sourcecodes/ts_plotly.py | 89 +- sourcecodes/upload_structure_file.php | 97 +- sourcecodes/view_distributions.php | 94 + sourcecodes/view_input_data.php | 203 + sourcecodes/view_input_data_text.php | 62 + sourcecodes/violin.php | 57 + sourcecodes/violin_ev_plotly.py | 137 + sourcecodes/violin_int_plotly.py | 149 + sourcecodes/violin_plotly.py | 123 + sourcecodes/workflow.php | 14 +- 264 files changed, 45650 insertions(+), 14615 deletions(-) create mode 100644 sourcecodes/.violin_plotly.py.swp create mode 100644 sourcecodes/BNW_overview_new.PNG delete mode 100644 sourcecodes/BNW_workflow_1.htm delete mode 100644 sourcecodes/BNW_workflow_2.htm delete mode 100644 sourcecodes/BNW_workflow_test_files/8node_best_structure.jpg delete mode 100644 sourcecodes/BNW_workflow_test_files/8node_file_upload.jpg create mode 100644 sourcecodes/BNW_workflow_test_files/8node_file_upload_new.png delete mode 100644 sourcecodes/BNW_workflow_test_files/8node_geno1_2.jpg create mode 100644 sourcecodes/BNW_workflow_test_files/8node_geno1_2_new.png delete mode 100644 sourcecodes/BNW_workflow_test_files/8node_global_settings.jpg delete mode 100644 sourcecodes/BNW_workflow_test_files/8node_matrix.jpg delete mode 100644 sourcecodes/BNW_workflow_test_files/8node_model_avg_struct.jpg create mode 100644 sourcecodes/BNW_workflow_test_files/8node_model_avg_struct_new.png create mode 100644 sourcecodes/BNW_workflow_test_files/8node_no_weight.png delete mode 100644 sourcecodes/BNW_workflow_test_files/8node_trait2_15.jpg create mode 100644 sourcecodes/BNW_workflow_test_files/8node_trait2_15_new.png create mode 100644 sourcecodes/BNW_workflow_test_files/8node_with_weights.png create mode 100644 sourcecodes/BNW_workflow_test_files/add_remove_MAS.png create mode 100644 sourcecodes/BNW_workflow_test_files/add_remove_Weight.png create mode 100644 sourcecodes/BNW_workflow_test_files/add_remove_filter.png create mode 100644 sourcecodes/BNW_workflow_test_files/add_remove_final.png create mode 100644 sourcecodes/BNW_workflow_test_files/add_remove_new_edge.png create mode 100644 sourcecodes/BNW_workflow_test_files/add_remove_original_interface.png create mode 100644 sourcecodes/BNW_workflow_test_files/add_remove_original_network.png create mode 100644 sourcecodes/BNW_workflow_test_files/add_remove_red_edge.png create mode 100644 sourcecodes/BNW_workflow_test_files/add_remove_removed.png create mode 100644 sourcecodes/BNW_workflow_test_files/image2_4.png create mode 100644 sourcecodes/BNW_workflow_test_files/image2_5.png create mode 100644 sourcecodes/BNW_workflow_test_files/sci_5node_network1.png create mode 100644 sourcecodes/BNW_workflow_test_files/sci_5node_part1.png create mode 100644 sourcecodes/BNW_workflow_test_files/sci_5node_part2.png create mode 100644 sourcecodes/BNW_workflow_test_files/sci_5node_part3.png create mode 100644 sourcecodes/BNW_workflow_test_files/sci_5node_upload.png create mode 100644 sourcecodes/about_this_page.php delete mode 100644 sourcecodes/add_evd_example.php delete mode 100644 sourcecodes/add_inv_example.php create mode 100644 sourcecodes/add_remove_howto.htm create mode 100644 sourcecodes/clear_cv_pred.php delete mode 100644 sourcecodes/clear_example.php delete mode 100644 sourcecodes/create_tiers_gom.php create mode 100644 sourcecodes/create_tiers_gom_part1.php create mode 100644 sourcecodes/create_tiers_gom_part2.php delete mode 100644 sourcecodes/cross_valid_example.php delete mode 100644 sourcecodes/cv_predictions_example.php create mode 100644 sourcecodes/data/LRlnetwork.json create mode 100644 sourcecodes/data/example2_test/exAban.txt create mode 100644 sourcecodes/data/example2_test/exAcontinuous_input.txt create mode 100644 sourcecodes/data/example2_test/exAcontinuous_input_orig.txt create mode 100644 sourcecodes/data/example2_test/exAk.txt create mode 100644 sourcecodes/data/example2_test/exAparent.txt create mode 100644 sourcecodes/data/example2_test/exAstructure_input.txt create mode 100644 sourcecodes/data/example2_test/exAstructure_input_temp.txt create mode 100644 sourcecodes/data/example2_test/exAthr.txt create mode 100644 sourcecodes/data/example2_test/exAwhite.txt delete mode 100644 sourcecodes/data/example_chl/bWRcontinuous_input.txt delete mode 100644 sourcecodes/data/example_chl/bWRgraphviz.txt delete mode 100644 sourcecodes/data/example_chl/bWRmap.txt delete mode 100644 sourcecodes/data/example_chl/bWRmapdata.txt delete mode 100644 sourcecodes/data/example_chl/bWRname.txt delete mode 100644 sourcecodes/data/example_chl/bWRnet_figure.txt delete mode 100644 sourcecodes/data/example_chl/bWRnet_figure_new.txt delete mode 100644 sourcecodes/data/example_chl/bWRnlevels.txt delete mode 100644 sourcecodes/data/example_chl/bWRnnode.txt delete mode 100644 sourcecodes/data/example_chl/bWRparameters.txt create mode 100644 sourcecodes/data/example_chl/bWRstructure_input_temp.txt delete mode 100644 sourcecodes/data/example_chl/bWRstructure_old.txt delete mode 100644 sourcecodes/data/example_chl/bWRtype.txt delete mode 100644 sourcecodes/data/example_chl/bWRvar.txt delete mode 100644 sourcecodes/data/example_chl/bWRvardata.txt delete mode 100644 sourcecodes/data/example_chl/bWRvarname.txt create mode 100644 sourcecodes/data/example_chl/old_gn/bWRcontinuous_input.txt create mode 100644 sourcecodes/data/example_chl/old_gn/bWRcontinuous_input_orig.txt create mode 100644 sourcecodes/data/example_chl/old_gn/bWRgraphviz.txt create mode 100644 sourcecodes/data/example_chl/old_gn/bWRmap.txt create mode 100644 sourcecodes/data/example_chl/old_gn/bWRmapdata.txt create mode 100644 sourcecodes/data/example_chl/old_gn/bWRname.txt create mode 100644 sourcecodes/data/example_chl/old_gn/bWRnet_figure.txt create mode 100644 sourcecodes/data/example_chl/old_gn/bWRnet_figure_new.txt create mode 100644 sourcecodes/data/example_chl/old_gn/bWRnlevels.txt create mode 100644 sourcecodes/data/example_chl/old_gn/bWRnnode.txt create mode 100644 sourcecodes/data/example_chl/old_gn/bWRparameters.txt create mode 100644 sourcecodes/data/example_chl/old_gn/bWRstructure_input.txt create mode 100644 sourcecodes/data/example_chl/old_gn/bWRstructure_old.txt create mode 100644 sourcecodes/data/example_chl/old_gn/bWRtype.txt create mode 100644 sourcecodes/data/example_chl/old_gn/bWRvar.txt create mode 100644 sourcecodes/data/example_chl/old_gn/bWRvardata.txt create mode 100644 sourcecodes/data/example_chl/old_gn/bWRvarname.txt create mode 100644 sourcecodes/data/example_sample/sample_input.txt create mode 100644 sourcecodes/data/example_sample/sample_input.txt~ create mode 100644 sourcecodes/data/sample_input.txt create mode 100644 sourcecodes/delete_cv_pred.sh create mode 100644 sourcecodes/enter_netID.php~ create mode 100644 sourcecodes/executionprogress_default.php delete mode 100644 sourcecodes/graph-creator.js delete mode 100644 sourcecodes/js-graph-it.css delete mode 100644 sourcecodes/js-graph-it.js delete mode 100644 sourcecodes/kfold_cv_example.php create mode 100644 sourcecodes/layout_cyto.php~ delete mode 100644 sourcecodes/layout_example.php create mode 100644 sourcecodes/matrix_new.php create mode 100644 sourcecodes/net_structure.php.bk create mode 100644 sourcecodes/net_structure.php~ delete mode 100644 sourcecodes/network_layout_evd_2_example.php delete mode 100644 sourcecodes/network_layout_evd_example.php delete mode 100644 sourcecodes/network_layout_inv_2_example.php delete mode 100644 sourcecodes/network_layout_inv_example.php create mode 100644 sourcecodes/parameter_display.php.bk delete mode 100644 sourcecodes/parameter_learning/code_backup/Predictmultiple.m delete mode 100644 sourcecodes/parameter_learning/code_backup/Predictmultipleintrvention.m delete mode 100644 sourcecodes/parameter_learning/code_backup/checkDiscreteNodes.m delete mode 100644 sourcecodes/parameter_learning/code_backup/checkStructure.m delete mode 100644 sourcecodes/parameter_learning/code_backup/drawFigure.m delete mode 100644 sourcecodes/parameter_learning/code_backup/drawFigure.m~ delete mode 100644 sourcecodes/parameter_learning/code_backup/drawFigureM.m delete mode 100644 sourcecodes/parameter_learning/code_backup/getParams.m delete mode 100644 sourcecodes/parameter_learning/code_backup/looCrossValid.m delete mode 100644 sourcecodes/parameter_learning/code_backup/parameterLearning.m delete mode 100644 sourcecodes/parameter_learning/code_backup/prepareInput.m delete mode 100644 sourcecodes/parameter_learning/code_backup/prepareInput.m~ delete mode 100644 sourcecodes/parameter_learning/code_backup/readInput.m delete mode 100644 sourcecodes/parameter_learning/code_backup/readInputData.m delete mode 100644 sourcecodes/parameter_learning/code_backup/readInputStructure.m delete mode 100644 sourcecodes/parameter_learning/code_backup/runBN_initial.m delete mode 100644 sourcecodes/parameter_learning/code_backup/standardizeData.m delete mode 100644 sourcecodes/parameter_learning/code_backup/writeParameters.m delete mode 100644 sourcecodes/parameter_learning/code_backup/writeParameters_ev.m delete mode 100644 sourcecodes/parameter_learning/code_backup/writeParameters_int.m create mode 100644 sourcecodes/parameter_learning/normpdf.m create mode 100644 sourcecodes/parameter_learning/normrnd.m create mode 100644 sourcecodes/parameter_learning/writeSettings.m delete mode 100644 sourcecodes/print_structure/index.html delete mode 100644 sourcecodes/print_structure/structure.c create mode 100644 sourcecodes/reroute.php delete mode 100644 sourcecodes/restructuremap.php create mode 100644 sourcecodes/review_settings.php delete mode 100644 sourcecodes/run_scripts/#run_octave# create mode 100644 sourcecodes/run_scripts/BNW_workflow_sci.htm create mode 100644 sourcecodes/run_scripts/path_cd.m delete mode 100644 sourcecodes/run_scripts/run_mod_edges.bk delete mode 100644 sourcecodes/run_scripts/run_mod_edges~ delete mode 100644 sourcecodes/run_scripts/run_mod_str~ delete mode 100644 sourcecodes/run_scripts/run_octave_test~ delete mode 100644 sourcecodes/run_scripts/run_octave~ create mode 100644 sourcecodes/run_scripts/run_settings create mode 100644 sourcecodes/run_scripts/run_violin delete mode 100644 sourcecodes/run_scripts/test delete mode 100644 sourcecodes/run_scripts/test~ create mode 100644 sourcecodes/sample_input.php create mode 100644 sourcecodes/scripts/FileSaver.min.js create mode 100644 sourcecodes/scripts/accordion.js create mode 100644 sourcecodes/scripts/accordion.js~ create mode 100644 sourcecodes/scripts/canvas-toBlob.js create mode 100644 sourcecodes/scripts/create_table.js create mode 100644 sourcecodes/scripts/create_table.js~ create mode 100644 sourcecodes/scripts/cytoscape-dagre.min.js create mode 100644 sourcecodes/scripts/cytoscape-panzoom.js create mode 100644 sourcecodes/scripts/cytoscape.js-panzoom.css create mode 100644 sourcecodes/scripts/cytoscape.min.js create mode 100644 sourcecodes/scripts/d3-selection-multi.v1.js create mode 100644 sourcecodes/scripts/d3.v4.min.js create mode 100644 sourcecodes/scripts/dagre.js create mode 100644 sourcecodes/scripts/font-awesome.css create mode 100644 sourcecodes/scripts/font-awesome.css~ create mode 100644 sourcecodes/scripts/fontawesome-webfont.eot create mode 100644 sourcecodes/scripts/fontawesome-webfont.svg create mode 100644 sourcecodes/scripts/fontawesome-webfont.ttf create mode 100644 sourcecodes/scripts/fontawesome-webfont.woff create mode 100644 sourcecodes/scripts/jquery.min.js create mode 100644 sourcecodes/scripts/lodash.js create mode 100644 sourcecodes/scripts/table.css create mode 100644 sourcecodes/scripts/table.css~ delete mode 100644 sourcecodes/test_set_predictions_example.php create mode 100644 sourcecodes/view_distributions.php create mode 100644 sourcecodes/view_input_data.php create mode 100644 sourcecodes/view_input_data_text.php create mode 100644 sourcecodes/violin.php create mode 100644 sourcecodes/violin_ev_plotly.py create mode 100644 sourcecodes/violin_int_plotly.py create mode 100644 sourcecodes/violin_plotly.py (limited to 'sourcecodes') diff --git a/sourcecodes/.violin_plotly.py.swp b/sourcecodes/.violin_plotly.py.swp new file mode 100644 index 00000000..ccadb5a6 Binary files /dev/null and b/sourcecodes/.violin_plotly.py.swp differ diff --git a/sourcecodes/BNW_overview_new.PNG b/sourcecodes/BNW_overview_new.PNG new file mode 100644 index 00000000..7355e3b0 Binary files /dev/null and b/sourcecodes/BNW_overview_new.PNG differ diff --git a/sourcecodes/BNW_workflow_1.htm b/sourcecodes/BNW_workflow_1.htm deleted file mode 100644 index 603ad8d8..00000000 --- a/sourcecodes/BNW_workflow_1.htm +++ /dev/null @@ -1,645 +0,0 @@ - - -
- - - - - - - - - - - - - - -This workflow will provide
-an overview of how to use BNW to:
1) Select
-a structure learning method and upload data into BNW
2) Use
-the BNW structural restraint interface
3) Make
-predictions with the network structure
1.
-Select structure learning method and uploading data into BNW
For this workflow, we are
-creating a network using a biological data set containing both continuous and
-discrete variables. The variables are a genotype (the discrete variable), three
-gene expression traits (Gene1, Gene2, Gene3), and a phenotype.
We do not know the network
-structure for this dataset, so we will first use BNW to learn the structure. Selecting
-Learn a network model from data on the BNW home page presents a list of the
-three structure learning methods that are currently implemented in BNW.
Because the network contains
-only 5 variables, we can use any of these structure learning methods. If more
-than 6 variables are present, using the global optimal search method would likely be necessary.
-We will use the exhaustive search with model averaging method in this workflow.
-More information about the structure learning methods can be found on the BNW
-help page.
After selecting the
-Exhaustive Search button, we are prompted to upload a file containing the data.
-
-
The figure
-below shows BNW after we have uploaded the data file. The first line of the
-data contains the names of the variables included in the network, while the
-remaining lines are the variable values for individual samples. A description
-of how to format data files for use in BNW can be found on the BNW help page and can be accessed by the the Data formatting guidelines option in the left menu. Additionally, two additional options, Select additional constraints or Perform Bayesian network modeling with no restraints, appear in the left menu after loading the data file.
-
2.
-Use the structural constraint interface
Here, we will use the
-structural constraint interface to help identify biologically meaningful
-network structures. Specifically, we want to investigate how the genotype
-impacts gene expression which then impacts the phenotype.
The first
-section of the structural constraint interface allows users to assign the variables
-(nodes) in the network to tiers. By default, three tiers are shown, but this
-can be changed by selecting a different number in the drop-down menu. The
-leftmost box of this section contains draggable boxes with the names of the
-variables in the network.
-
For this
-network, we want to assign Genotype to Tier1, the gene expression traits to
-Tier2, and the Phenotype to Tier3.
-
The second
-section in the structural constraint interface allows users to specify the
-types of interactions that are allowed both between and within tiers. In this
-case, we will keep the default settings, which will allow there to be edges
-between nodes within a tier, prevent nodes in Tier1 from being the child of
-Tier2 and Tier3 nodes, and prevent nodes in Tier2 from being the child of Tier2
-nodes.
The final
-section of the structural constraint interface would allow for the
-specification of particular edges that should be banned from the network or
-required to be in the network. Users can identify these edges by dragging the
-nodes to appropriate boxes. In this case, we do not want to ban or require any
-specific edges.
-
After
-entering the structural constraints, BNW will perform structure learning from
-the data after clicking Perform Bayesin network modeling on the left menu and
-present the structure of the network as shown below. Genotype, the discrete
-node, is shown as a bar chart with the bars showing the fraction of samples
-with each genotype in the data, while the other nodes are shown as lines with
-the Gaussian distributions that best fit the data.
To further
-investigate the structure of the network, users can select Display Structure
-Matrix in the left menu. This will bring up a popup windoe containing a table
-showing the confidence of each directed edge in the network after model
-averaging. For this network, all of the nodes included in the network were
-present in almost all high scoring networks, as the values of the edges are all
-near 1. BNW displays all edges with a confidence greater than 0.5 in the
-network structure. A second table in the window shows the structure matrix with
-a 1 for edges included in the structure and 0 for edges that are not included. These
-tables can be downloaded by clicking the download link.
3) Make
-predictions with the network structure
BNW can be used to both
-predict the values of variables in a network given known evidence and to
-investigate how the network might change in response to interventions. Users
-can switch between evidence and intervention modes by selecting the proper
-button on the top of the page containing the network structure.
For example,
-suppose we want to use the model to make predictions for a new sample that was
-not in the original dataset. We know that this sample was from an individual
-with Genotype=2 and want to predict the values of the genes and phenotype for
-the individual. To enter this evidence in the network, we simply click on the
-Genotype node in the network and enter 2 in the popup window.
The figure below shows the
-changes in the network after entering this evidence.The node for which evidence was entered now contains a red outline and all of the nodes in the network now contain both blue and red lines. The blue lines show the original values of the distributions, while the red lines shown the predicted values given the
-evidence. In this case, knowing that the individual had Genotype=2 would cause
-us to predict that the expression of Gene1 and the value of the phenotype would
-be above average, while the expression of Gene2 and Gene3 would be decreases.
-The specific changes in the predicted values can be investigated by hovering
-over the nodes and observing the values at the peaks of the distribution.
Evidence
-can be entered in more than one node in the network. For example, the figure
-below shows predicted values for the network after entering evidence for both
-Genotype and Gene1.
To use the
-network to predict the results of intervention, select the proper button on the
-top of the window to enter intervention mode. While evidence simply changes the
-predicted values of the other nodes in the network, intervention has a larger
-effect, as it removes the dependence of the intervened network on its parents
-and changes the network structure.
The figure
-below shows the changes in the network in BNW after intervention on Gene1 that
-results Gene1 having a low value. The predictions of the network after this
-intervention could be compared with experiments that prevent Gene1 from being
-expressed. Intervention that decreases Gene1 is predicted to result in an increase
-in Gene2 and a decrease in the phenotype. Note that Genotype and Gene3, which
-are not descendents of Gene1, are not affected by the intervention.
This workflow contains examples of using the BNW structural constraint interface to help identify biologically meaningful genetic network models for two cases:
1) A genetic network linking genotype and phenotype
2) A genetic network with multiple genotypes and cis- and trans-regulated genes
1.
-A genetic network linking genotype and phenotype
In this example, we will use the structural constraint interface to create a genetic network linking a genotype with intermediated phenotypes (i.e., gene expression or other cellular level traits) and a higher-order phenotype. The figure below shows a screenshot of BNW after loading the data file and selecting Go to structure learning settings and the BNW structural constraint interface. There are 5 nodes in the network, Genotype, Int1, Int2, Int3, and a Phenotype.
We want to assign the nodes to three tiers in this example, so we will keep the number of tiers at the default setting, and drag the nodes to the proper tiers.
In this example, we do not want the genotype to be the direct parent of the phenotype, so we made some changes to the Define interactions allowed between tiers section of the structural constraint interface. Specifically, we have unchecked two boxes that are different from the default settings: (1) we have unchecked the box that allows the node(s) in Tier1 from being the parents of the node(s) in Tier3 and (2) we have unchecked the box that allows the node(s) in Tier3 from being the children of the node(s) in Tier1. Actually, unchecking either of these boxes would have been sufficient in preventing direct interactions between Genotype and Phenotype, but, there is no harm in unchecking both boxes. There are no additional specific edges that we want to ban or require in the network, so we do not have to add any edges to the Specify additional constraint section and we can proceed with structure learning.
2.
-A genetic network with multiple genotypes and cis- and trans-regulated genes.
In this example, we will add restrictions to a network containing 8 nodes: 2 genotype nodes (Geno1 and Geno2), 3 cis-regulated gene expression traits (cisGene1, cisGene2, and cisGene3), 2 trans-regulated gene expression traits (transGene1 and transGene2), and a phenotype (Pheno). We have four tiers of nodes (genotypes, cis-regulated genes, trans-regulated genes, and phenotype), so we have selected 4 from the dropdown menu at the top of the page and assigned the nodes to the correct tiers. We could make a more complex system of tiers that would allow us to specify which genes are regulated by which genotypes (for example, Geno1 regulates cisGene1 and transGene1, while Geno2 regulates cisGene2, cisGene3, and transGene2), but, for this example, we will use a simpler system of 4 tiers.
-
We have made one change to the default setting in the Define interactions allowed between tiers section. For Tier1, which contains the genotypes, we have selected "No" for the "Are within tier interactions allowed?", as it does not make biological sense for one genotype variation to cause the variation in another genotype in this examples.
-
Assume that a known regulatory relationship between cisGene1 and transGene1 has been established from previous experiments. We can require that this relationship is included in the network by adding the edge list of required edges in the Specify additional constraints section.
-
1. Structure learning using default options
Clicking on the View uploaded variables and data on the left menu will bring up a pop-up window that displays the uploaded data file or information about the data set, such whether variables were classified as discrete or continuous. This information can be used to ensure that the input file was uploaded and properly interpreted in BNW.
-
Other options on the left menu will continue with structure learning. Initially, we will perform structure learning using default options in BNW and click on the Perform Bayesian network modeling using default settings button. By default, BNW limits the maximum number of parents for any node in the network to 4 and presents the structure of the single highest scoring network. Structure learning can take a significant amount of time for larger networks. For this dataset, structure learning should take only a few seconds, and the structure below will soon be displayed. The network can be also be accessed here.
+line-height:115%;font-family:"Arial","sans-serif"'>The buttons on the top of the page allow you to perform Bayesian network modeling using default settings; modify structure learning settings and add structural constraints; or remove variables from the data set. Under these buttons, a description of the loaded data set is provided, including if BNW classified the variables as discrete or continuous. In this case, the uploaded data file contained 8 variables and had 200 cases. Two variables (Geno1 and Geno2) were determined to be discrete variables because they had only 2 different values in the input data file. The other six variables were continuous variables with the means and standard deviations shown in the table.
Initially, we will perform structure learning using default options in BNW and click on the Perform Bayesian network modeling using default settings button. By default, BNW limits the maximum number of parents for any node in the network to 4 and presents the structure of the single highest scoring network. Structure learning can take a significant amount of time for larger networks. For this dataset, structure learning should take only a few seconds, and the structure below will soon be displayed. The network can be also be accessed here.
In order to test if edges present the single best scoring network are conserved across high scoring networks. We can modify the structure learning settings to get identify the structures of many high scoring networks and perform model averaging over these structures. To do this, return to the BNW home page, select Learn a network model from data, and upload the data file. Instead of using the default settings, select Go to structure learning settings and the BNW structural constraint interface. A more detailed overview of use of the structural constraint interface is provided in another tutorial, but, here, we will investigate the impact of modifying some of the structure learning settings shown below:
-
Change the Number of networks to include in model averaging to 100 and select Perform Bayesian network modeling. Now, instead of displaying the single highest scoring network, BNW will determine the 100 highest scoring networks, perform model averaing over these networks, and display the structure after model averaging that includes all features with a Model averaging edge selection threshold greater than 0.5. Model averaging over the 100 highest scoring structures has resulted in a change in the network structure as shown below and is available here.
-
Specifically, the single best model network contains a directed edge linking Trait6 with Trait3, while this edge is absent from the structure after model averaging over the 100 best scoring networks. Clicking Display structure matrix displays the model averaging scores as well as the structure matrix. The structure matrix file can be downloaded and used in return sessions to BNW, allowing users to skip structure learning and more quickly use the model to make predictions.
-
In the model averaging scores, we can observe that most of the network edges in the model average network were found in all or nearly all of the 100 highest scoring networks. For example, edges from Geno2 to Traits 3 and 4 have posterior probabilities of 1. Also, the edge from Trait6 to Trait3 that was observed in the single highest scoring network has a posterior probability of 0.46, and it, therefore, falls just short of being included in the model averaged network structure.
3. Using the network structure to make predictions
To make predictions with the network, we will use the structure learned after model averaging of the top 100 highest scoring networks. First, we will use the model to compare the expected values for nodes in the network based on observed genotypes. For these predictions, we will use evidence mode when making predictions, which is the default behavior in BNW. The difference between evidence and intervention modes is discussed in the BNW FAQ page. To use the model to make predictions based on Geno1, click on one of the blue bars in the Geno1 node and enter 1 or 2 to indicate which genotype value should be used to predict the values of the other network nodes. In the figure below, Geno1 is outlined in red and state 2 has a 100% probability, indicating that the value of this node has been entered as evidence. The red lines in the figure show the predicted distributions of the nodes after this evidence is known and can be compared with the blue lines which show the distributions for variables using the original data.
-
If Geno1 has genotype 2, the value of Traits 1, 2, and 4 are expected to increase compared with the distribution for all data. Specifically, the mean value of Trait2 is expected to be near 1 for Geno1=2 data, while it is close to 0 when this evidence is not known. Traits 1 and 4 are also expected to increase, but the magnitude of this increase is not expected to be as large. Predicted distributions for the other nodes in the network, which are not descendants of Geno1, are expected to be close to the same as their original distributions, and, the red line covers the blue line for some nodes.
-To quantitatively assess the impact of this evidence on the network predictions, the View parameters button on the left menu can be selected. Clicking this button brings up a pop-up window with the network parameters (i.e., the probability distributions of the states of discrete nodes and the means and standard deviations of the Gaussian distributions for continuous nodes) for both the original data set and the data when considering the entered evidence.
+line-height:115%;font-family:"Arial","sans-serif";mso-no-proof:yes'>
If Geno1 has genotype 2, the value of Traits 1, 2, and 4 are expected to increase compared with the distribution for all data. Specifically, the mean value of Trait2 is expected to be near 1 for Geno1=2 data, while it is close to 0 when this evidence is not known. Traits 1 and 4 are also expected to increase, but the magnitude of this increase is not expected to be as large.
+To quantitatively assess the impact of this evidence on the network predictions, the View parameters button within the More about network parameters and structure menu can be selected. Clicking this button brings up a pop-up window with the network parameters (i.e., the probability distributions of the states of discrete nodes and the means and standard deviations of the Gaussian distributions for continuous nodes) for both the original data set and the data when considering the entered evidence.
Evidence for multiple nodes can be considered at the same time by clicking on a new node in the network and entering a value. Alternatively, users can select Clear evidence to reset the network to show the orignial distributions in a new tab.
Next, we will make predictions using the intervention mode. To use the prediction mode, click the button next to Intervention at the top of the page. The Selected mode tab on the left of the screan should now display Intervention. The effects of experimental intervention on Trait2 can be predicted by clicking on the blue line in the Trait2 node and entering a value for the variable. The figure below shows the network after setting Trait2 to a value of 1.5.
-
In this example, we will use the structural constraint interface to create a genetic network linking a genotype with gene expression traits and a higher-order phenotype. There are 5 nodes in the network: Genotype, Gene1, Gene2, Gene3, and Phenotype. The input data file is available here. To begin, select Learn a network model from data on the BNW homepage and load the data file, displaying what is shown below:
+
We now have the option of either learning performing structure learning using the default BNW settings and no additional structural constraints or we can use modify settings and add structural constraints. Here, we will select Go to structure learning settings and the BNW structural constraint interface to select the latter option. The BNW structural constraint interface is described in our Help page. At shown in the figure below, the top of the page has several settings for global features of the structure search. We have kept the default settings, except we have changed the Number of networks to include in model averaging to 1000. As this is a small network with only 5 nodes, including many high scoring networks had little effect on the estimated time required to perform structure learning, and the estimated run time increased from 12 to 13 seconds. We also could increase the Maximum number of parents for any node to any value without significantly changing the run time for a network of this size. For larger networks with more than approximately 10 nodes, changing these settings can have a major impact on estimated run times.
+
In the next section of the structural constraint interface, we assign nodes to tiers which will can be used to focus network searches on biologically meaningful networks. Our dataset contains a genotype, three gene expression traits, and a higher order phenotype. Instead of considering all possible network models for this dataset, we may want to focus on models relevant to a questions such as: How does variation in genotype and gene expression explain the variation observed in the phenotype? To address this question, we assign the network nodes to three tiers: Tier1 contains the genotype, Tier2 contains the gene expression traits, and Tier3 contains the phenotype.
+
The third section of the BNW structural constraint interface allows users to specify the interactions that are allowed within and between tiers. By default, within tier interactions (i.e., nodes in TierX can be parents or children of other nodes in TierX) are allowed, but users may want to prevent within tier interactions for some cases. For example, it may be advantageous to prevent interactions between a tier that contained a set of some demographic variables (e.g., age, sex, and race), as these variables are not likely to be causal factor that influence other factors in the tier. In this case, within tier interactions only apply to Tier2, and we do not have any prior knowledge that indicates that between gene interactions should not be allowed, so we will keep the default setting and allow within tier interactions.
The default settings for between tier interactions allow nodes within a tier to be the parents of all nodes in lower ranking tiers. Here, the Genotype node in Tier1 can be parents of the gene nodes in Tier2 and the Phenotype node in Tier3, the gene nodes in Tier2 can be the parents of the Tier3 Phenotype node, and the Tier3 Phenotype node cannot be the parents of nodes in any other tier. Therefore, by default, the Genotype node can be the direct parent of the Phenotype node. We may want to allow this interaction, as the genotype may influence genotype through genes or other factors that are not explicitly included as variables in the network. If users do not want to allow this direct Genotype-Phenotype interaction, they can unclick the Tier3 box in the Which tiers contain nodes that can be the children of this tier? for Tier1. In this case, we have maintained the default settings which are shown below.
+
In this example, we will not specify any additional constraints in the fourth section of the structural constraint interface, and we can click Perform Bayesian network modeling on the upper left corner of the page. The figure below shows the network with the model average network of the 1000 highest scoring networks and this network is available here. Genotype directly influences two of the genes (Gene1 and Gene3), and two of the genes (Gene2 and Gene3) directly influence the Phenotype. In this case, although we did not prevent the Genotype from directly influencing the Phenotype, the highest scoring networks did not include this directed edge. The right side of the figure shows the predictions of the network with Genotype=1 used as evidence. If Genotype is known to be in state 1, the values of all other variables in the network are expected to decrease compared to the distributions learned using all phenotypes. A more complete description of using BNW to make predictions with network models can be found in a separate tutorial.
+
In this exa
-
We have made one change to the default setting in the Define interactions allowed between tiers section. For Tier1, which contains the genotypes, we have selected "No" for the "Are within tier interactions allowed?", as it does not make biological sense for one genotype variation to cause the variation in another genotype in this example.
-
Assume that a known regulatory relationship between cisGene1 and transGene1 has been established from previous experiments. We can require that this relationship is included in the network by adding the edge list of required edges in the Specify additional constraints section.
-