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.

- -

- -

 

- -

 

- -
- - - - diff --git a/sourcecodes/BNW_workflow_2.htm b/sourcecodes/BNW_workflow_2.htm deleted file mode 100644 index 577a388e..00000000 --- a/sourcecodes/BNW_workflow_2.htm +++ /dev/null @@ -1,731 +0,0 @@ - - - - - - - - - - - - - - - - - - - -
- -

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.

- -

-

-
- - - - diff --git a/sourcecodes/BNW_workflow_net1.htm b/sourcecodes/BNW_workflow_net1.htm index aafab31f..3ad19201 100644 --- a/sourcecodes/BNW_workflow_net1.htm +++ b/sourcecodes/BNW_workflow_net1.htm @@ -294,7 +294,7 @@ ul line-height:115%;font-family:"Arial","sans-serif"'>
This tutorial provides -an overview of using BNW to build a Bayesian network model from a dataset and use the network to make predictions. The dataset used in this tutorial is a synthetic example of a genetic dataset that has a total of 8 variables. Two of the variables are genotypes labeled Geno1 and Geno2, and the remaining 6 variables are gene expression levels or other quantitative traits that are labeled Trait1 to Trait6. The dataset is available here.

The data file is formatted according to the guidelines on the BNW help page. The first row of the file contains the names of the variables and the remaining rows contain the data for each sample of the dataset. The genotypes (Geno1 and Geno2), which have two possible states (1 and 2), are the only discrete variables in the network and are the leftmost variables in the input file. The quantitative traits are continuous variables.

+an overview of using BNW to build a Bayesian network model from a dataset and use the network to make predictions. The dataset used in this tutorial is a synthetic example of a genetic dataset that has a total of 8 variables. Two of the variables are genotypes labeled Geno1 and Geno2, and the remaining 6 variables are gene expression levels or other quantitative traits that are labeled Trait1 to Trait6. The dataset is available here.

The data file is formatted according to the guidelines on the BNW help page. The first row of the file contains the names of the variables and the remaining rows contain the data for each sample of the dataset. The genotypes (Geno1 and Geno2), which have two possible states (1 and 2), are the only discrete variables in the network. The quantitative traits are continuous variables.

1. Structure learning using default options

@@ -303,17 +303,17 @@ normal'>We do not know the network structure that underlies the relationships between the variables in this dataset, so we will use BNW to learn the structure that best explains the data. To begin, select Learn a network model from data from the BNW home page. Next, click Choose File at the top of the file upload page, navigate to and select the data file, and click Upload. A screen similar to image shown below should be displayed.

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:


+line-height:115%;font-family:"Arial","sans-serif";mso-no-proof:yes'>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 identify the structures of many high scoring networks and perform model averaging over these structures. To do this, click the Modify network strucutre button on the left of the page, opening a menu with three options that can be used to modify the network structure. Add or remove edges from network provides an interface for making specific changes to the network structure. The use of this interface is discussed here. In this tutorial, we are examining the impact of changing the settings used during structure learning on the network structure and click on Modify structure learning settings. We then select Go to structure learning settings and the BNW structural constraint interface on the resulting page. A more detailed overview of use of the structural constraint interface is provided in another tutorial.

Here, we only change the Number of networks to include in model averaging to 1000 and select Continue to assign variables to tiers. In this case, we will not assign variables to tiers, and can immediately click Click here to perform Bayesian network modeling after creating tiers. Now, instead of displaying the single highest scoring network, BNW will determine the 1000 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 1000 highest scoring structures has resulted in a change in the network structure as shown below and is available here.


-

+


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.


+line-height:115%;font-family:"Arial","sans-serif";mso-no-proof:yes'>
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 1000 best scoring networks. More information about the network structure can be viewed by clicking Network image options on the left menu and, then, Show network with edge weights. The network structure with the edges labeled by their scores after model averaging will be displayed.


-

+


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.


+line-height:115%;font-family:"Arial","sans-serif";mso-no-proof:yes'>
The model averaging scores show that the edges in this network model were found in all or nearly all of the 1000 highest scoring networks, and, thus, have scores of 0.99 or 1.00. For example, edges from Geno2 to Traits 3 and 4 have scores of 1. The model averaging scores for all possible directed edges in the network can be found by clicking View structure matrix under the More about network menu. The data provided in the structure matrix shows that the edge from Trait6 to Trait3 that was observed in the single highest scoring network has a posterior probability of 0.40, and it, therefore, falls short of being included in the model averaged network structure. 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.


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.


+line-height:115%;font-family:"Arial","sans-serif";mso-no-proof:yes'>The network model can be used by make predictions through an interactive interface after clicking on the Use network to make predictions button on the left menu. To make predictions with the network, we will use the structure learned after model averaging of the top 1000 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.

+line-height:115%;font-family:"Arial","sans-serif"'>
We now have the option of either learning performing structure learning using the default BNW settings or we can 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 first 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.

+line-height:115%;font-family:"Arial","sans-serif"'>
Clicking the Continue to assign variables to tiers button allows the assignment of nodes to tiers which can 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.

+line-height:115%;font-family:"Arial","sans-serif"'>
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. The final section of this menu allows for listing specific edges that should be banned or required in the network structures. We will not ban or require any specific edges in this network.

- +


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.

+line-height:115%;font-family:"Arial","sans-serif"'>
In this example, we will not specify any additional constraints in the fourth section of the structural constraint interface, and we can click Click here to perform Bayesian network modeling on the top 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.

+line-height:115%;font-family:"Arial","sans-serif";mso-no-proof:yes'> 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.

Also, 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.

-

+

-

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.

- -

-

diff --git a/sourcecodes/BNW_workflow_test_files/8node_best_structure.jpg b/sourcecodes/BNW_workflow_test_files/8node_best_structure.jpg deleted file mode 100644 index 3fce7f95..00000000 Binary files a/sourcecodes/BNW_workflow_test_files/8node_best_structure.jpg and /dev/null differ diff --git a/sourcecodes/BNW_workflow_test_files/8node_file_upload.jpg b/sourcecodes/BNW_workflow_test_files/8node_file_upload.jpg deleted file mode 100644 index 7a40cdae..00000000 Binary files a/sourcecodes/BNW_workflow_test_files/8node_file_upload.jpg and /dev/null differ diff --git a/sourcecodes/BNW_workflow_test_files/8node_file_upload_new.png b/sourcecodes/BNW_workflow_test_files/8node_file_upload_new.png new file mode 100644 index 00000000..4f754bfc Binary files /dev/null and b/sourcecodes/BNW_workflow_test_files/8node_file_upload_new.png differ diff --git a/sourcecodes/BNW_workflow_test_files/8node_geno1_2.jpg b/sourcecodes/BNW_workflow_test_files/8node_geno1_2.jpg deleted file mode 100644 index 849caf65..00000000 Binary files a/sourcecodes/BNW_workflow_test_files/8node_geno1_2.jpg and /dev/null differ diff --git a/sourcecodes/BNW_workflow_test_files/8node_geno1_2_new.png b/sourcecodes/BNW_workflow_test_files/8node_geno1_2_new.png new file mode 100644 index 00000000..ededa53d Binary files /dev/null and b/sourcecodes/BNW_workflow_test_files/8node_geno1_2_new.png differ diff --git a/sourcecodes/BNW_workflow_test_files/8node_global_settings.jpg b/sourcecodes/BNW_workflow_test_files/8node_global_settings.jpg deleted file mode 100644 index 80a427c9..00000000 Binary files a/sourcecodes/BNW_workflow_test_files/8node_global_settings.jpg and /dev/null differ diff --git a/sourcecodes/BNW_workflow_test_files/8node_matrix.jpg b/sourcecodes/BNW_workflow_test_files/8node_matrix.jpg deleted file mode 100644 index 71842c04..00000000 Binary files a/sourcecodes/BNW_workflow_test_files/8node_matrix.jpg and /dev/null differ diff --git a/sourcecodes/BNW_workflow_test_files/8node_model_avg_struct.jpg b/sourcecodes/BNW_workflow_test_files/8node_model_avg_struct.jpg deleted file mode 100644 index 20b4d73b..00000000 Binary files a/sourcecodes/BNW_workflow_test_files/8node_model_avg_struct.jpg and /dev/null differ diff --git a/sourcecodes/BNW_workflow_test_files/8node_model_avg_struct_new.png b/sourcecodes/BNW_workflow_test_files/8node_model_avg_struct_new.png new file mode 100644 index 00000000..0f87f3d3 Binary files /dev/null and b/sourcecodes/BNW_workflow_test_files/8node_model_avg_struct_new.png differ diff --git a/sourcecodes/BNW_workflow_test_files/8node_no_weight.png b/sourcecodes/BNW_workflow_test_files/8node_no_weight.png new file mode 100644 index 00000000..75a5313e Binary files /dev/null and b/sourcecodes/BNW_workflow_test_files/8node_no_weight.png differ diff --git a/sourcecodes/BNW_workflow_test_files/8node_trait2_15.jpg b/sourcecodes/BNW_workflow_test_files/8node_trait2_15.jpg deleted file mode 100644 index 33ea13cf..00000000 Binary files a/sourcecodes/BNW_workflow_test_files/8node_trait2_15.jpg and /dev/null differ diff --git a/sourcecodes/BNW_workflow_test_files/8node_trait2_15_new.png b/sourcecodes/BNW_workflow_test_files/8node_trait2_15_new.png new file mode 100644 index 00000000..213f1f15 Binary files /dev/null and b/sourcecodes/BNW_workflow_test_files/8node_trait2_15_new.png differ diff --git a/sourcecodes/BNW_workflow_test_files/8node_with_weights.png b/sourcecodes/BNW_workflow_test_files/8node_with_weights.png new file mode 100644 index 00000000..27717913 Binary files /dev/null and b/sourcecodes/BNW_workflow_test_files/8node_with_weights.png differ diff --git a/sourcecodes/BNW_workflow_test_files/add_remove_MAS.png b/sourcecodes/BNW_workflow_test_files/add_remove_MAS.png new file mode 100644 index 00000000..82ad2432 Binary files /dev/null and b/sourcecodes/BNW_workflow_test_files/add_remove_MAS.png differ diff --git a/sourcecodes/BNW_workflow_test_files/add_remove_Weight.png b/sourcecodes/BNW_workflow_test_files/add_remove_Weight.png new file mode 100644 index 00000000..5773ff0b Binary files /dev/null and b/sourcecodes/BNW_workflow_test_files/add_remove_Weight.png differ diff --git a/sourcecodes/BNW_workflow_test_files/add_remove_filter.png b/sourcecodes/BNW_workflow_test_files/add_remove_filter.png new file mode 100644 index 00000000..35887a81 Binary files /dev/null and b/sourcecodes/BNW_workflow_test_files/add_remove_filter.png differ diff --git a/sourcecodes/BNW_workflow_test_files/add_remove_final.png b/sourcecodes/BNW_workflow_test_files/add_remove_final.png new file mode 100644 index 00000000..efaa1c8b Binary files /dev/null and b/sourcecodes/BNW_workflow_test_files/add_remove_final.png differ diff --git a/sourcecodes/BNW_workflow_test_files/add_remove_new_edge.png b/sourcecodes/BNW_workflow_test_files/add_remove_new_edge.png new file mode 100644 index 00000000..2ee67069 Binary files /dev/null and b/sourcecodes/BNW_workflow_test_files/add_remove_new_edge.png differ diff --git a/sourcecodes/BNW_workflow_test_files/add_remove_original_interface.png b/sourcecodes/BNW_workflow_test_files/add_remove_original_interface.png new file mode 100644 index 00000000..6d3f443d Binary files /dev/null and b/sourcecodes/BNW_workflow_test_files/add_remove_original_interface.png differ diff --git a/sourcecodes/BNW_workflow_test_files/add_remove_original_network.png b/sourcecodes/BNW_workflow_test_files/add_remove_original_network.png new file mode 100644 index 00000000..139efb04 Binary files /dev/null and b/sourcecodes/BNW_workflow_test_files/add_remove_original_network.png differ diff --git a/sourcecodes/BNW_workflow_test_files/add_remove_red_edge.png b/sourcecodes/BNW_workflow_test_files/add_remove_red_edge.png new file mode 100644 index 00000000..2f5e4bcd Binary files /dev/null and b/sourcecodes/BNW_workflow_test_files/add_remove_red_edge.png differ diff --git a/sourcecodes/BNW_workflow_test_files/add_remove_removed.png b/sourcecodes/BNW_workflow_test_files/add_remove_removed.png new file mode 100644 index 00000000..5e126891 Binary files /dev/null and b/sourcecodes/BNW_workflow_test_files/add_remove_removed.png differ diff --git a/sourcecodes/BNW_workflow_test_files/image2_4.png b/sourcecodes/BNW_workflow_test_files/image2_4.png new file mode 100644 index 00000000..a3218d75 Binary files /dev/null and b/sourcecodes/BNW_workflow_test_files/image2_4.png differ diff --git a/sourcecodes/BNW_workflow_test_files/image2_5.png b/sourcecodes/BNW_workflow_test_files/image2_5.png new file mode 100644 index 00000000..facdae33 Binary files /dev/null and b/sourcecodes/BNW_workflow_test_files/image2_5.png differ diff --git a/sourcecodes/BNW_workflow_test_files/sci_5node_network1.png b/sourcecodes/BNW_workflow_test_files/sci_5node_network1.png new file mode 100644 index 00000000..8bfc1400 Binary files /dev/null and b/sourcecodes/BNW_workflow_test_files/sci_5node_network1.png differ diff --git a/sourcecodes/BNW_workflow_test_files/sci_5node_part1.png b/sourcecodes/BNW_workflow_test_files/sci_5node_part1.png new file mode 100644 index 00000000..7a8f2ce9 Binary files /dev/null and b/sourcecodes/BNW_workflow_test_files/sci_5node_part1.png differ diff --git a/sourcecodes/BNW_workflow_test_files/sci_5node_part2.png b/sourcecodes/BNW_workflow_test_files/sci_5node_part2.png new file mode 100644 index 00000000..c12f9692 Binary files /dev/null and b/sourcecodes/BNW_workflow_test_files/sci_5node_part2.png differ diff --git a/sourcecodes/BNW_workflow_test_files/sci_5node_part3.png b/sourcecodes/BNW_workflow_test_files/sci_5node_part3.png new file mode 100644 index 00000000..f29ac1c8 Binary files /dev/null and b/sourcecodes/BNW_workflow_test_files/sci_5node_part3.png differ diff --git a/sourcecodes/BNW_workflow_test_files/sci_5node_upload.png b/sourcecodes/BNW_workflow_test_files/sci_5node_upload.png new file mode 100644 index 00000000..5fe1e152 Binary files /dev/null and b/sourcecodes/BNW_workflow_test_files/sci_5node_upload.png differ diff --git a/sourcecodes/about_this_page.php b/sourcecodes/about_this_page.php new file mode 100644 index 00000000..a04eab6b --- /dev/null +++ b/sourcecodes/about_this_page.php @@ -0,0 +1,180 @@ + + + + + + + + + + + + +
+ + + + + +
+

Table of Contents

+
    +
  1. File upload +
  2. Network structure +
  3. Network predictions +
  4. Input file processing +
  5. Structure matrix +
  6. Network parameters + +
+
+ + +
+ + +

1. File upload page

+ +
+ +
+

This is the main page for uploading a data file for use with BNW. This input file should be a tab-delimited text file. Formatting guidelines are more fully described here. Several example data sets can be loaded by clicking the appropriate button.

+ After loading the data file, Bayesian network modeling can performed using default settings or using the BNW structural constraint interface. The "Remove variables from data set" button can be used to edit input files. This option may be useful for examining the impact of specific variables on network structures.

+ Finally, a table describing the file uploaded to BNW is provided that can be inspected to ensure that the input file was properly interpreted. This table is described in more detail here.

+

+ + +
+ + +

2. Network structure page

+ +
+ +
+

This page displays the network structure learned from the loaded data file. If model averaging was used to determine the network structure, the weights of edges after model averaging can be viewed by clicking "Network image options" and "Show network with edge weights". Users should also note the three letter network ID code in the upper left of the page. This code can be used to return to the network in the future. However, files stored on BNW are cleared periodically, and users should download the Structure Matrix, as described here, to ensure that they can return to a specific network structure in the future.

+ After viewing the network structure, users have four main options. First, clicking "Use network to make predictions" goes to a more detailed view of the network that can be used to quickly investigate how network variables respond to interventions.

+ Second, the "Network image options" menu allows users to save the network image as a PNG or SVG file. If model averaging was used during structure learning, the weights of network edges can be added to the network image

+ Third, users can learn more about the network structure and parameters, or check to make sure the input file was properly processed by BNW.

+ Fourth, the network structure can be modified by either directly adding or removing specific edges, changing the settings used during structure learning, or removing variables from the data set.

+

+ +
+ + +

3. Network predictions page

+ +
+ +
+

This page is the main way in which users can use the network to make predictions about how observed evidence or interventions impact the other variables in the network. Users can switch between "Evidence" and "Intervention" modes by clicking the appropriate button. These modes are described more fully here. Entered evidence or interventions can be removed by clicking "Clear evidence".

+ Leave-one-out cross-validation, k-fold cross validation, and predictions of an uploaded test set can be performed using the network after clicking on "Cross validations and predictions".

+ Users can also access network parameters and violin plots of the distributions of the network under the "More about network" menu. If evidence/intervention has been entered in the network, parameters and violin plots that consider this information are also provided, providing additional quantification and visualization of the impact of the added evidence/intervention.

+

+ + + +
+ + +

4. Input processing page

+ +
+ +
+

The main goal of this page is to allow users to ensure that input files have been uploaded and processed correctly. The title of the table indicates if any variables or cases (rows) were automatically removed by BNW. Variables would be removed by BNW if all cases contained the same value. Cases would be removed if they contained missing data (i.e., at least one of the variables in the case had a value of 'NA').

+ The table has 4 columns:
+- The name of each variable in the input file.
+- The type of the variable as determined by BNW.
+- The number of states for discrete variables or the mean and standard deviation for continuous variables.
+- A brief explanation for why the variable was classified as discrete or continuous.

+

+ + + +
+ + +

5. Structure matrix

+ +
+ +
+

This page provides the structure matrix, a table containing the network structure learned from the data. A '1' in the table indicates that a directed edge going from the row variable to the column variable is present in the network. In other words, the row variable is the parent, while the column variable is the child.

+The structure matrix can be downloaded by clicking the link under the structure matrix. Users can upload the structure matrix file to BNW in the future to return to the network and make additional predictions.

+ If model averaging was performed when learning the structure, a second table on the page provides the model averaging scores of the directed edges in the network. Model averaging is further described here.

+

+ + +
+ + +

6. Network parameters

+ +
+ +
+

This page provides a table with the network parameters for each variable in the network. For discrete variables, the probability of each possible state is shown. For continuous variables, means and standard deviations of Gaussian distributions are provided. If the continuous variable has one or more discrete parents, it is described by a mixture of Gaussian distributions, and the corresponding table contains the weights of these Gaussian distributions.

+ If evidence or intervention has been used to make predictions in the network, there is a second set of parameter tables. These tables provide the parameters considering entered evidence or intervention values.

+

+ + + + + +
+
+ +
+ + + +

Contact us

+ + + + +
+Please send questions and comments to Dr. Yan Cui at University of Tennesee Health +Science Center. +
+ +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ diff --git a/sourcecodes/add_evd.php b/sourcecodes/add_evd.php index c031ead6..50740d02 100644 --- a/sourcecodes/add_evd.php +++ b/sourcecodes/add_evd.php @@ -39,7 +39,9 @@ foreach($leve_l as $l) function mapid($name,$keyval) { -$dir="./data/"; + //$dir="./data/"; +//$dir="/tmp/bnw/"; +$dir="/var/lib/genenet/bnw/"; $nm=$dir.$keyval."mapdata.txt"; $namelist=file_get_contents("$nm"); @@ -65,7 +67,9 @@ return $val; } -$dir="./data/"; +//$dir="./data/"; +//$dir="/tmp/bnw/"; +$dir="/var/lib/genenet/bnw/"; $lfile=$dir.$keyval."nlevels.txt"; $dmapdata=file_get_contents($lfile); diff --git a/sourcecodes/add_evd_example.php b/sourcecodes/add_evd_example.php deleted file mode 100644 index cc393c0b..00000000 --- a/sourcecodes/add_evd_example.php +++ /dev/null @@ -1,195 +0,0 @@ - - diff --git a/sourcecodes/add_inv.php b/sourcecodes/add_inv.php index 4fe0fa10..013ba61e 100644 --- a/sourcecodes/add_inv.php +++ b/sourcecodes/add_inv.php @@ -34,7 +34,9 @@ foreach($leve_l as $l) function mapid($name,$keyval) { -$dir="./data/"; + //$dir="./data/"; +//$dir="/tmp/bnw/"; +$dir="/var/lib/genenet/bnw/"; $nm=$dir."$keyval"."mapdata.txt"; $namelist=file_get_contents("$nm"); @@ -61,7 +63,9 @@ return $val; } -$dir="./data/"; +//$dir="./data/"; +//$dir="/tmp/bnw/"; +$dir="/var/lib/genenet/bnw/"; $lfile=$dir.$keyval."nlevels.txt"; $dmapdata=file_get_contents($lfile); @@ -218,12 +222,13 @@ $dataname=array(); $dataname=explode("\t",$str_arrmat[0]); $n=count($dataname); -$initialstring="digraph G {\n"."size=\"10,10\"; ratio = fill;\n"."node [shape=square,width=1.5];\n"; +$initialstring="digraph G {\n"."size=\"6,8\"; ratio = fill;\n"."node [shape=square,width=1.5];\n"; $endstring="}"; fwrite($fout,"$initialstring"); -$g_file_name="./data/".$keyval."grviz_name_file_new.txt"; +//$g_file_name="./data/".$keyval."grviz_name_file_new.txt"; +$g_file_name=$dir.$keyval."grviz_name_file_new.txt"; $grviz_name_file=fopen($g_file_name,"w"); for($i=0;$i<$n;$i++) diff --git a/sourcecodes/add_inv_example.php b/sourcecodes/add_inv_example.php deleted file mode 100644 index 74c8547c..00000000 --- a/sourcecodes/add_inv_example.php +++ /dev/null @@ -1,254 +0,0 @@ - %s;\n",$row_name,$col_name); - - - } - } - - -} -fwrite($fout,"$endstring"); - -?> - diff --git a/sourcecodes/add_remove_howto.htm b/sourcecodes/add_remove_howto.htm new file mode 100644 index 00000000..cb4add2c --- /dev/null +++ b/sourcecodes/add_remove_howto.htm @@ -0,0 +1,359 @@ + + + + + + + + + + + + + + + + +
+ + +

Network modification interface

+ +

+This page provides an overview of the interface used to add or remove edges from network structures in BNW. Two potential cases when this process may be useful are (1) investigating how a specific edge impacts the predictions of the network or (2) changing the edge weight threshold that was used to select edges to include in the network after model averaging. +

+Network structures can be modified in three ways: a new edge can be added to the network, a selected edge can be removed from the network, and, if model averaging of high scoring network structures was performed, the edge selection threshold can be increased. These options are discussed in detail below.
+
After modifying the network structure as desired, clicking Use modified network on the right menu will go to the options for interacting with the network in BNW. Additionally, an image of the network within the interface can be saved by clicking on the Save network as PNG button. +

+The original network model that will be used to show the options for modifying a network structure is shown below, where the numbers next to the network edges indicate the edge weights after model averaging of the 1000 highest scoring network structures:
                                     + +

+This network is initially displayed in the network modification interface as shown below. The nodes of the network can be rearranged by clicking and dragging on the node.
+ + +

+

1. Adding edges to networks

+ +

Network edges can be added to the network by clicking on the nodes of the network that should be connected and clicking Add edge between selected nodes on the left menu. Here, we will add an edge from MAS to Weight. First, click on MAS, the variable that is the source of the edge. The MAS node is now highlighted with green:
+ +

+Next, click on Weight, the node that will be at the end of the desired edge. This node now has a red border: + +

+Finally, clicking Add edge between selected nodes will add the edge between these node, from MAS to Weight:
+

+ + +

+

2. Remove selected edges

+ +

+Here, we will remove the edge from MAS to Load from the network, starting from the network structure above. First, click on this edge in the network. This edge is now red and has a dashed line:
+

+Now, click on Remove selected edges on the left menu to remove this edge:
+

+ +

+

3. Change edge weight threshold

+ +

+Third, the network structure can be modified by changing the edge weight threshold. Only network edges whose weights are above this threshold are included in the network. This is accomplished using the Filter edges by weight slider on the left menu. In this example, the edge weight selection threshold used when learning the network structure was 0.5. Thus, the value of the edge weight filter is originally set to 0.5. Moving the slider to 0.9 increases the edge weight threshold accordingly, removing two edges (Ctrq3 to Weight and MAS to Neutrophil) from the network: +

+ +Finally, clicking on Use modified network returns to the main BNW network image view with the modified network structure: +
                                     + +



+


+ + +
+ + + + diff --git a/sourcecodes/bn_after_upload_gom.php b/sourcecodes/bn_after_upload_gom.php index d7435cfd..11a92650 100644 --- a/sourcecodes/bn_after_upload_gom.php +++ b/sourcecodes/bn_after_upload_gom.php @@ -1,8 +1,16 @@ + + + + include("header_new.inc"); include("header_batchsearch.inc"); include("runtime_check.php"); @@ -10,7 +18,7 @@ include("input_validate.php"); //$searchID=""; $searchID="YES"; $UploadValue="NO"; -$TextFile=$HTTP_POST_FILES["MyFile"]["name"]; +$TextFile=$_FILES["MyFile"]["name"]; /////////////Generate a random key///////////////////// @@ -30,14 +38,16 @@ $TextFile=$HTTP_POST_FILES["MyFile"]["name"]; // $keyval=valid_keyval($keyval); //$sid=$keyval."continuous_input"; -//$dir="./data/"; +////$dir="./data/"; +//$dir="/tmp/bnw/"; +//$input_table_file="./data/".$keyval."input_table.txt"; //$TextinFile=$dir.$sid."_orig.txt"; -if(isset($HTTP_POST_VARS["searchkey"])) +if(isset($_POST["searchkey"])) { - $searchID=$HTTP_POST_VARS["searchkey"]; + $searchID=$_POST["searchkey"]; } @@ -46,8 +56,10 @@ if($searchID=="") ?> -