grnsight 3.0.0 → 5.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintignore +1 -0
- package/.travis.yml +1 -1
- package/GRNsight - Beta.html +194 -0
- package/Gemfile.lock +259 -0
- package/README.md +1 -1
- package/_gh_pages/about.html +360 -45
- package/_gh_pages/assets/css/footer.css +3 -0
- package/_gh_pages/assets/css/main.css +28 -14
- package/_gh_pages/assets/images/21-genes_31-edges_Schade-data_estimation_output_binary-no-targetless-genes_sif.png +0 -0
- package/_gh_pages/assets/images/21-genes_31-edges_Schade-data_estimation_output_binary_sif.png +0 -0
- package/_gh_pages/assets/images/21-genes_31-edges_Schade-data_graphml_3-edges-and-footer.png +0 -0
- package/_gh_pages/assets/images/21-genes_31-edges_Schade-data_graphml_header-and-3-nodes.png +0 -0
- package/_gh_pages/assets/images/21-genes_31-edges_Schade-data_graphml_output_3-edges-and-footer.png +0 -0
- package/_gh_pages/assets/images/21-genes_31-edges_Schade-data_graphml_output_header-and-3-nodes.png +0 -0
- package/_gh_pages/assets/images/21-genes_31-edges_Schade-data_input_binary-no-targetless-genes_sif.png +0 -0
- package/_gh_pages/assets/images/21-genes_31-edges_Schade-data_input_binary_sif.png +0 -0
- package/_gh_pages/assets/images/21-genes_31-edges_Schade-data_input_concatenated-no-targetless-genes_sif.png +0 -0
- package/_gh_pages/assets/images/21-genes_31-edges_Schade-data_input_concatenated_sif.png +0 -0
- package/_gh_pages/assets/images/Choe-Shin_CMSI402-poster-session_20180430.jpg +0 -0
- package/_gh_pages/assets/images/Choe_SCCUR_2017.jpg +0 -0
- package/_gh_pages/assets/images/Dahlquist-Choe-Shin_CMSI402-poster-session_20180430.jpg +0 -0
- package/_gh_pages/assets/images/Dionisio-Dahlquist_GRNsight-shades_20170506.jpg +0 -0
- package/_gh_pages/assets/images/Klein_Samdarshi_TriBeta_2018_20180317.jpg +0 -0
- package/_gh_pages/assets/images/Shin_SCCUR_2017.jpg +0 -0
- package/{documents/manuscripts/peerj-computerscience-2016/figures/submitted-versions/Figure1_zoom145_900pix-wide.png → _gh_pages/assets/images/demo-3_network-sheet.png} +0 -0
- package/{documents/manuscripts/peerj-computerscience-2016/figures/submitted-versions/Figure2_zoom145_900pix-wide.png → _gh_pages/assets/images/demo-4_network-optimized-weights-sheet.png} +0 -0
- package/_gh_pages/assets/images/gene-pages-0.png +0 -0
- package/_gh_pages/assets/images/gene-pages-1.png +0 -0
- package/_gh_pages/assets/images/gene-pages-2.png +0 -0
- package/_gh_pages/assets/images/gene-pages-3.png +0 -0
- package/_gh_pages/assets/images/grnsight2020.png +0 -0
- package/_gh_pages/assets/images/v3demo2-grid+nodecoloring.png +0 -0
- package/_gh_pages/assets/images/v3demo2-nodecoloring.png +0 -0
- package/_gh_pages/assets/images/v3demo2.png +0 -0
- package/_gh_pages/assets/js/ga-report.js +11 -11
- package/_gh_pages/assets/js/iframeResizer.min.js +9 -0
- package/_gh_pages/assets/js/main.js +43 -43
- package/_gh_pages/beta.html +29 -24
- package/_gh_pages/contact.html +31 -31
- package/_gh_pages/coverage/coverage.json +1 -0
- package/_gh_pages/coverage/coverage.raw.json +1 -0
- package/_gh_pages/coverage/lcov-report/base.css +223 -0
- package/_gh_pages/coverage/lcov-report/block-navigation.js +63 -0
- package/_gh_pages/coverage/lcov-report/controllers/additional-sheet-parser.js.html +330 -0
- package/_gh_pages/coverage/lcov-report/controllers/constants.js.html +243 -0
- package/_gh_pages/coverage/lcov-report/controllers/export-controller.js.html +285 -0
- package/_gh_pages/coverage/lcov-report/controllers/exporters/graphml.js.html +405 -0
- package/_gh_pages/coverage/lcov-report/controllers/exporters/index.html +110 -0
- package/_gh_pages/coverage/lcov-report/controllers/exporters/sif.js.html +150 -0
- package/_gh_pages/coverage/lcov-report/controllers/helpers.js.html +114 -0
- package/_gh_pages/coverage/lcov-report/controllers/import-controller.js.html +233 -0
- package/_gh_pages/coverage/lcov-report/controllers/importers/graphml.js.html +716 -0
- package/_gh_pages/coverage/lcov-report/controllers/importers/index.html +106 -0
- package/_gh_pages/coverage/lcov-report/controllers/importers/sif.js.html +488 -0
- package/_gh_pages/coverage/lcov-report/controllers/index.html +162 -0
- package/_gh_pages/coverage/lcov-report/controllers/semantic-checker.js.html +810 -0
- package/_gh_pages/coverage/lcov-report/controllers/spreadsheet-controller.js.html +1779 -0
- package/_gh_pages/coverage/lcov-report/index.html +136 -0
- package/_gh_pages/coverage/lcov-report/prettify.css +1 -0
- package/_gh_pages/coverage/lcov-report/prettify.js +1 -0
- package/_gh_pages/coverage/lcov-report/server/controllers/additional-sheet-parser.js.html +330 -0
- package/_gh_pages/coverage/lcov-report/server/controllers/constants.js.html +243 -0
- package/_gh_pages/coverage/lcov-report/server/controllers/export-controller.js.html +285 -0
- package/_gh_pages/coverage/lcov-report/server/controllers/exporters/graphml.js.html +405 -0
- package/_gh_pages/coverage/lcov-report/server/controllers/exporters/index.html +110 -0
- package/_gh_pages/coverage/lcov-report/server/controllers/exporters/sif.js.html +150 -0
- package/_gh_pages/coverage/lcov-report/server/controllers/graphml-constants.js.html +585 -0
- package/_gh_pages/coverage/lcov-report/server/controllers/helpers.js.html +114 -0
- package/_gh_pages/coverage/lcov-report/server/controllers/import-controller.js.html +237 -0
- package/_gh_pages/coverage/lcov-report/server/controllers/importers/graphml.js.html +585 -0
- package/_gh_pages/coverage/lcov-report/server/controllers/importers/index.html +110 -0
- package/_gh_pages/coverage/lcov-report/server/controllers/importers/sif.js.html +492 -0
- package/_gh_pages/coverage/lcov-report/server/controllers/index.html +188 -0
- package/_gh_pages/coverage/lcov-report/server/controllers/semantic-checker.js.html +810 -0
- package/_gh_pages/coverage/lcov-report/server/controllers/spreadsheet-controller.js.html +1779 -0
- package/_gh_pages/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/_gh_pages/coverage/lcov-report/sorter.js +158 -0
- package/_gh_pages/coverage/lcov-report/web-client/public/js/grnstate.js.html +225 -0
- package/_gh_pages/coverage/lcov-report/web-client/public/js/index.html +97 -0
- package/_gh_pages/coverage/lcov.info +49 -0
- package/_gh_pages/documentation.html +998 -320
- package/_gh_pages/documents/abstracts/SIGGRAPH 2017 Abstract/siggraph-abstract-review.aux +47 -0
- package/_gh_pages/documents/abstracts/SIGGRAPH 2017 Abstract/siggraph-abstract-review.bbl +73 -0
- package/_gh_pages/documents/abstracts/SIGGRAPH 2017 Abstract/siggraph-abstract-review.blg +52 -0
- package/_gh_pages/documents/abstracts/SIGGRAPH 2017 Abstract/siggraph-abstract-review.log +1056 -0
- package/_gh_pages/documents/abstracts/SIGGRAPH 2017 Abstract/siggraph-abstract-review.out +7 -0
- package/_gh_pages/documents/abstracts/SIGGRAPH 2017 Abstract/siggraph-abstract-review.synctex.gz +0 -0
- package/_gh_pages/documents/manuscripts/peerj-computerscience-2016/revisions/GRNsight_PeerJ-CS_manuscript_2016_text-only_revised-Dondi.docx +0 -0
- package/_gh_pages/encryption/server.cert +21 -0
- package/_gh_pages/encryption/server.key +28 -0
- package/_gh_pages/favicon.ico +0 -0
- package/_gh_pages/index.html +45 -22
- package/_gh_pages/links.html +47 -28
- package/_gh_pages/news.html +103 -21
- package/_gh_pages/onlyfooter.html +78 -0
- package/_gh_pages/onlyheader.html +64 -0
- package/_gh_pages/onlysidebar.html +73 -0
- package/_gh_pages/package-lock.json +14048 -0
- package/_gh_pages/people.html +129 -40
- package/_gh_pages/privacy.html +23 -17
- package/_gh_pages/publications.html +75 -33
- package/_gh_pages/robots.txt +1 -0
- package/_gh_pages/sitemap.xml +87 -74
- package/_gh_pages/test-files/import-samples/attributes.graphml +40 -0
- package/_gh_pages/test-files/import-samples/port.graphml +32 -0
- package/_gh_pages/test-files/import-samples/simple.graphml +31 -0
- package/_gh_pages/web-client/public/js/grnsight.min.js +2347 -0
- package/_gh_pages/web-client/public/stylesheets/grnsight.css +443 -0
- package/coverage/coverage.json +1 -1
- package/coverage/coverage.raw.json +1 -0
- package/coverage/lcov-report/base.css +18 -8
- package/coverage/lcov-report/block-navigation.js +63 -0
- package/coverage/lcov-report/controllers/additional-sheet-parser.js.html +330 -0
- package/coverage/lcov-report/controllers/constants.js.html +65 -61
- package/coverage/lcov-report/controllers/export-controller.js.html +96 -92
- package/coverage/lcov-report/controllers/exporters/graphml.js.html +168 -164
- package/coverage/lcov-report/controllers/exporters/index.html +36 -32
- package/coverage/lcov-report/controllers/exporters/sif.js.html +65 -61
- package/coverage/lcov-report/controllers/helpers.js.html +25 -21
- package/coverage/lcov-report/controllers/index.html +49 -45
- package/coverage/lcov-report/controllers/semantic-checker.js.html +403 -396
- package/coverage/lcov-report/controllers/spreadsheet-controller.js.html +973 -879
- package/coverage/lcov-report/index.html +45 -28
- package/coverage/lcov-report/server/controllers/additional-sheet-parser.js.html +330 -0
- package/coverage/lcov-report/server/controllers/constants.js.html +243 -0
- package/coverage/lcov-report/server/controllers/export-controller.js.html +285 -0
- package/coverage/lcov-report/server/controllers/exporters/graphml.js.html +405 -0
- package/coverage/lcov-report/server/controllers/exporters/index.html +110 -0
- package/coverage/lcov-report/server/controllers/exporters/sif.js.html +150 -0
- package/coverage/lcov-report/server/controllers/graphml-constants.js.html +585 -0
- package/coverage/lcov-report/server/controllers/helpers.js.html +114 -0
- package/coverage/lcov-report/server/controllers/import-controller.js.html +237 -0
- package/coverage/lcov-report/server/controllers/importers/graphml.js.html +585 -0
- package/coverage/lcov-report/server/controllers/importers/index.html +110 -0
- package/coverage/lcov-report/server/controllers/importers/sif.js.html +492 -0
- package/coverage/lcov-report/server/controllers/index.html +188 -0
- package/coverage/lcov-report/server/controllers/semantic-checker.js.html +810 -0
- package/coverage/lcov-report/server/controllers/spreadsheet-controller.js.html +1779 -0
- package/coverage/lcov-report/web-client/public/js/grnstate.js.html +225 -0
- package/coverage/lcov-report/web-client/public/js/index.html +97 -0
- package/coverage/lcov.info +1758 -876
- package/encryption/server.cert +21 -0
- package/encryption/server.key +28 -0
- package/package.json +46 -22
- package/server/app.js +6 -2
- package/server/config/config.js +16 -7
- package/server/controllers/additional-sheet-parser.js +292 -55
- package/server/controllers/api-controllers.js +36 -0
- package/server/controllers/constants.js +4 -37
- package/server/controllers/database-controller.js +129 -0
- package/server/controllers/demo-workbooks.js +5973 -0
- package/server/controllers/export-constants.js +78 -0
- package/server/controllers/export-controller.js +25 -3
- package/server/controllers/exporters/graphml.js +15 -15
- package/server/controllers/exporters/sif.js +7 -7
- package/server/controllers/exporters/xlsx.js +183 -0
- package/server/controllers/expression-sheet-parser.js +170 -0
- package/server/controllers/ga-controller.js +1 -1
- package/server/controllers/graphml-constants.js +0 -17
- package/server/controllers/helpers.js +25 -1
- package/server/controllers/import-controller.js +2 -2
- package/server/controllers/importers/graphml.js +17 -20
- package/server/controllers/importers/sif.js +22 -18
- package/server/controllers/network-sheet-parser.js +307 -0
- package/server/controllers/semantic-checker.js +30 -162
- package/server/controllers/sif-constants.js +36 -0
- package/server/controllers/spreadsheet-controller.js +277 -424
- package/server/controllers/workbook-constants.js +521 -0
- package/test/additional-sheet-parser-tests.js +147 -38
- package/test/api-tests.js +245 -0
- package/test/errors-adjacency-matrix-modifications.js +30 -29
- package/test/errors-gene-name-modifications.js +9 -0
- package/test/errors-graph-tests.js +4 -4
- package/test/errors-sheet-modifications.js +10 -2
- package/test/export-tests.js +431 -24
- package/test/expression-data-import-tests.js +113 -0
- package/test/grnstate-tests.js +29 -0
- package/test/import-graphml-tests.js +59 -40
- package/test/import-sif-tests.js +50 -37
- package/test/test.js +557 -93
- package/test/warnings-adjacency-matrix-modifications.js +8 -7
- package/test-files/additional-sheet-test-files/optimization-diagnostics-default.xlsx +0 -0
- package/test-files/additional-sheet-test-files/optimization-diagnostics-extraneous-data.xlsx +0 -0
- package/test-files/additional-sheet-test-files/optimization-diagnostics-incorrect-MSE-gene-header.xlsx +0 -0
- package/test-files/additional-sheet-test-files/optimization-diagnostics-incorrect-MSE-header.xlsx +0 -0
- package/test-files/additional-sheet-test-files/optimization-diagnostics-incorrect-column-headers.xlsx +0 -0
- package/test-files/additional-sheet-test-files/optimization-diagnostics-invalid-MSE-data.xlsx +0 -0
- package/test-files/additional-sheet-test-files/optimization-diagnostics-invalid-value.xlsx +0 -0
- package/test-files/additional-sheet-test-files/optimization-diagnostics-missing-MSE-data.xlsx +0 -0
- package/test-files/additional-sheet-test-files/optimization-diagnostics-missing-column-headers.xlsx +0 -0
- package/test-files/additional-sheet-test-files/optimization-diagnostics-missing-header.xlsx +0 -0
- package/test-files/additional-sheet-test-files/optimization-diagnostics-unknown-parameter.xlsx +0 -0
- package/test-files/additional-sheet-test-files/optimization-parameters-default.xlsx +0 -0
- package/test-files/additional-sheet-test-files/optimization-parameters-incorrect-headers.xlsx +0 -0
- package/test-files/additional-sheet-test-files/optimization-parameters-invalid-optimization-parameter.xlsx +0 -0
- package/test-files/additional-sheet-test-files/optimization-parameters-missing-headers.xlsx +0 -0
- package/test-files/additional-sheet-test-files/optimization-parameters-unknown-parameter.xlsx +0 -0
- package/test-files/additional-sheet-test-files/two-column-sheets-extraneous-data.xlsx +0 -0
- package/test-files/additional-sheet-test-files/two-column-sheets-incorrect-cell-A1.xlsx +0 -0
- package/test-files/additional-sheet-test-files/two-column-sheets-incorrect-column-header.xlsx +0 -0
- package/test-files/additional-sheet-test-files/two-column-sheets-invalid-gene-length.xlsx +0 -0
- package/test-files/additional-sheet-test-files/two-column-sheets-invalid-gene-type.xlsx +0 -0
- package/test-files/additional-sheet-test-files/two-column-sheets-invalid-value.xlsx +0 -0
- package/test-files/additional-sheet-test-files/two-column-sheets-missing-column-header.xlsx +0 -0
- package/test-files/additional-sheet-test-files/two-column-sheets-special-character.xlsx +0 -0
- package/test-files/adjacency-matrix-modifications/asymmetric-gene-order-input.xlsx +0 -0
- package/test-files/adjacency-matrix-modifications/asymmetric-gene-order-output.xlsx +0 -0
- package/test-files/adjacency-matrix-modifications/extra-column-adjacent-input.xlsx +0 -0
- package/test-files/adjacency-matrix-modifications/extra-column-adjacent-output.xlsx +0 -0
- package/test-files/adjacency-matrix-modifications/extra-column-end-of-sheet-input.xlsx +0 -0
- package/test-files/adjacency-matrix-modifications/extra-column-end-of-sheet-output.xlsx +0 -0
- package/test-files/adjacency-matrix-modifications/extra-data-random-cell-both-output.xlsx +0 -0
- package/test-files/adjacency-matrix-modifications/extra-data-random-cell-network-only-input.xlsx +0 -0
- package/test-files/adjacency-matrix-modifications/extra-data-random-cell-network-only-output.xlsx +0 -0
- package/test-files/adjacency-matrix-modifications/extra-data-random-cell-network-optimized-only-output.xlsx +0 -0
- package/test-files/adjacency-matrix-modifications/extra-row-end-of-sheet-input.xlsx +0 -0
- package/test-files/adjacency-matrix-modifications/extra-row-end-of-sheet-output.xlsx +0 -0
- package/test-files/adjacency-matrix-modifications/incorrect-network-cell-A1.xlsx +0 -0
- package/test-files/adjacency-matrix-modifications/missing-column-end-input.xlsx +0 -0
- package/test-files/adjacency-matrix-modifications/missing-column-end-output.xlsx +0 -0
- package/test-files/adjacency-matrix-modifications/missing-data-input.xlsx +0 -0
- package/test-files/adjacency-matrix-modifications/missing-data-output.xlsx +0 -0
- package/test-files/adjacency-matrix-modifications/missing-row-end-input.xlsx +0 -0
- package/test-files/adjacency-matrix-modifications/missing-row-end-output.xlsx +0 -0
- package/test-files/adjacency-matrix-modifications/missing-row-middle-input.xlsx +0 -0
- package/test-files/adjacency-matrix-modifications/missing-row-middle-output.xlsx +0 -0
- package/test-files/adjacency-matrix-modifications/missing-value-bottom-corner-input.xlsx +0 -0
- package/test-files/adjacency-matrix-modifications/missing-value-bottom-corner-output.xlsx +0 -0
- package/test-files/adjacency-matrix-modifications/value-replaced-w-spaces-both-output.xlsx +0 -0
- package/test-files/adjacency-matrix-modifications/value-replaced-w-spaces-net-only-input.xlsx +0 -0
- package/test-files/adjacency-matrix-modifications/value-replaced-w-spaces-net-op-only-output.xlsx +0 -0
- package/test-files/adjacency-matrix-modifications/value-replaced/342/200/223w-spaces-net-only-output.xlsx +0 -0
- package/test-files/demo-files/15-genes_28-edges_db5_Dahlquist-data_estimation_output.xlsx +0 -0
- package/test-files/demo-files/15-genes_28-edges_db5_Dahlquist-data_input.xlsx +0 -0
- package/test-files/expression-data-test-sheets/expression_sheet_correct_numbering.xlsx +0 -0
- package/test-files/expression-data-test-sheets/expression_sheet_different_number_of_columns.xlsx +0 -0
- package/test-files/expression-data-test-sheets/expression_sheet_empty_column.xlsx +0 -0
- package/test-files/expression-data-test-sheets/expression_sheet_empty_row.xlsx +0 -0
- package/test-files/expression-data-test-sheets/expression_sheet_erroneous_data.xlsx +0 -0
- package/test-files/expression-data-test-sheets/expression_sheet_extra_gene_name.xlsx +0 -0
- package/test-files/expression-data-test-sheets/expression_sheet_incorrectly_ordered_time_points.xlsx +0 -0
- package/test-files/expression-data-test-sheets/expression_sheet_mismatched_case_gene_names.xlsx +0 -0
- package/test-files/expression-data-test-sheets/expression_sheet_mismatched_gene_names.xlsx +0 -0
- package/test-files/expression-data-test-sheets/expression_sheet_missing_column_header.xlsx +0 -0
- package/test-files/expression-data-test-sheets/expression_sheet_missing_data_error.xlsx +0 -0
- package/test-files/expression-data-test-sheets/expression_sheet_missing_data_ok.xlsx +0 -0
- package/test-files/expression-data-test-sheets/expression_sheet_missing_data_ok_export_exact.xlsx +0 -0
- package/test-files/expression-data-test-sheets/expression_sheet_missing_gene_name.xlsx +0 -0
- package/test-files/expression-data-test-sheets/expression_sheet_name_not_in_optparams.xlsx +0 -0
- package/test-files/expression-data-test-sheets/expression_sheet_name_not_present.xlsx +0 -0
- package/test-files/expression-data-test-sheets/expression_sheet_negative_time_points.xlsx +0 -0
- package/test-files/expression-data-test-sheets/expression_sheet_non_numerical_time_points.xlsx +0 -0
- package/test-files/expression-data-test-sheets/expression_sheet_not_existing.xlsx +0 -0
- package/test-files/expression-data-test-sheets/expression_sheet_wrong_id_label.xlsx +0 -0
- package/test-files/expression-data-test-sheets/expression_sheet_wrong_order_gene_names.xlsx +0 -0
- package/test-files/expression-data-test-sheets/expression_sheet_wrong_sheet_name_case.xlsx +0 -0
- package/test-files/expression-data-test-sheets/expression_sheet_wrong_sheet_name_convention.xlsx +0 -0
- package/test-files/gene-name-modifications/NaN-as-gene-name-input.xlsx +0 -0
- package/test-files/gene-name-modifications/NaN-as-gene-name-output.xlsx +0 -0
- package/test-files/gene-name-modifications/mismatched-case-related-input.xlsx +0 -0
- package/test-files/gene-name-modifications/mismatched-case-related-output.xlsx +0 -0
- package/test-files/gene-name-modifications/mismatched-case-unrelated-input.xlsx +0 -0
- package/test-files/gene-name-modifications/mismatched-case-unrelated-output.xlsx +0 -0
- package/test-files/gene-name-modifications/numbers-as-gene-name-related-input.xlsx +0 -0
- package/test-files/gene-name-modifications/numbers-as-gene-name-related-output.xlsx +0 -0
- package/test-files/gene-name-modifications/numbers-as-gene-name-unrelated-input.xlsx +0 -0
- package/test-files/gene-name-modifications/numbers-as-gene-name-unrelated-output.xlsx +0 -0
- package/test-files/graph-tests/different-sized-networks/{80-genes-0-edges.xlsx → 134-genes-0-edges.xlsx} +0 -0
- package/test-files/graph-tests/different-sized-networks/{45-genes-max-edges.xlsx → 44-source-genes-45-target-genes-max-edges.xlsx} +0 -0
- package/test-files/graph-tests/different-sized-networks/{1-gene-0-edges.xlsx → unused-files/1-gene-0-edges.xlsx} +0 -0
- package/test-files/graph-tests/different-sized-networks/{1-gene-1-edges.xlsx → unused-files/1-gene-1-edges.xlsx} +0 -0
- package/test-files/graph-tests/different-sized-networks/{10-genes-50-edges.xlsx → unused-files/10-genes-50-edges.xlsx} +0 -0
- package/test-files/graph-tests/different-sized-networks/{10-genes-90-edges.xlsx → unused-files/10-genes-90-edges.xlsx} +0 -0
- package/test-files/graph-tests/different-sized-networks/{100-genes-0-edges.xlsx → unused-files/100-genes-0-edges.xlsx} +0 -0
- package/test-files/graph-tests/different-sized-networks/{110-genes-0-edges.xlsx → unused-files/110-genes-0-edges.xlsx} +0 -0
- package/test-files/graph-tests/different-sized-networks/{120-genes-0-edges.xlsx → unused-files/120-genes-0-edges.xlsx} +0 -0
- package/test-files/graph-tests/different-sized-networks/{130-genes-0-edges.xlsx → unused-files/130-genes-0-edges.xlsx} +0 -0
- package/test-files/graph-tests/different-sized-networks/{140-genes-0-edges.xlsx → unused-files/140-genes-0-edges.xlsx} +0 -0
- package/test-files/graph-tests/different-sized-networks/{150-genes-10000-edges.xlsx → unused-files/150-genes-10000-edges.xlsx} +0 -0
- package/test-files/graph-tests/different-sized-networks/{150-genes-20000-edges.xlsx → unused-files/150-genes-20000-edges.xlsx} +0 -0
- package/test-files/graph-tests/different-sized-networks/{150-genes-max-edges.xlsx → unused-files/150-genes-max-edges.xlsx} +0 -0
- package/test-files/graph-tests/different-sized-networks/{160-genes-max-edges.xlsx → unused-files/160-genes-max-edges.xlsx} +0 -0
- package/test-files/graph-tests/different-sized-networks/{20-genes-max-edges.xlsx → unused-files/20-genes-max-edges.xlsx} +0 -0
- package/test-files/graph-tests/different-sized-networks/{25-genes-max-edges.xlsx → unused-files/25-genes-max-edges.xlsx} +0 -0
- package/test-files/graph-tests/different-sized-networks/{30-genes-max-edges.xlsx → unused-files/30-genes-max-edges.xlsx} +0 -0
- package/test-files/graph-tests/different-sized-networks/{34-genes-0-edges.xlsx → unused-files/34-genes-0-edges.xlsx} +0 -0
- package/test-files/graph-tests/different-sized-networks/{34-genes-40-edges.xlsx → unused-files/34-genes-40-edges.xlsx} +0 -0
- package/test-files/graph-tests/different-sized-networks/{34-genes-65-edges.xlsx → unused-files/34-genes-65-edges.xlsx} +0 -0
- package/test-files/graph-tests/different-sized-networks/{34-genes-90-edges.xlsx → unused-files/34-genes-90-edges.xlsx} +0 -0
- package/test-files/graph-tests/different-sized-networks/{5-genes-max-edges.xlsx → unused-files/5-genes-max-edges.xlsx} +0 -0
- package/test-files/graph-tests/different-sized-networks/{51-genes-max-edges.xlsx → unused-files/51-genes-max-edges.xlsx} +0 -0
- package/test-files/graph-tests/different-sized-networks/{52-genes-max-edges.xlsx → unused-files/52-genes-max-edges.xlsx} +0 -0
- package/test-files/graph-tests/different-sized-networks/{55-genes-0-edges.xlsx → unused-files/55-genes-0-edges.xlsx} +0 -0
- package/test-files/graph-tests/different-sized-networks/{55-genes-max-edges.xlsx → unused-files/55-genes-max-edges.xlsx} +0 -0
- package/test-files/graph-tests/different-sized-networks/{65-genes-0-edges.xlsx → unused-files/65-genes-0-edges.xlsx} +0 -0
- package/test-files/graph-tests/different-sized-networks/{7-genes-max-edges.xlsx → unused-files/7-genes-max-edges.xlsx} +0 -0
- package/test-files/graph-tests/different-sized-networks/{70-genes-0-edges.xlsx → unused-files/70-genes-0-edges.xlsx} +0 -0
- package/test-files/graph-tests/different-sized-networks/{9-genes-max-edges.xlsx → unused-files/9-genes-max-edges.xlsx} +0 -0
- package/test-files/graph-tests/different-sized-networks/{90-genes-0-edges.xlsx → unused-files/90-genes-0-edges.xlsx} +0 -0
- package/test-files/graph-tests/different-sized-networks/{regulation-matrix-documented-20140709-AllTF-all-targets.xlsx → unused-files/regulation-matrix-documented-20140709-AllTF-all-targets.xlsx} +0 -0
- package/test-files/node-tests/long-gene-name-no-spaces-first.xlsx +0 -0
- package/test-files/node-tests/long-gene-name-no-spaces-second.xlsx +0 -0
- package/test-files/node-tests/long-gene-name-spaces.xlsx +0 -0
- package/test-files/species-test-data/15-genes_28-edges_db5_Dahlquist-data_input_no-species.xlsx +0 -0
- package/test-files/species-test-data/15-genes_28-edges_db5_Dahlquist-data_input_with-species.xlsx +0 -0
- package/test-files/species-test-data/3-gene_7-edge_elegans.xlsx +0 -0
- package/test-files/species-test-data/3-gene_7-edge_melanogaster.xlsx +0 -0
- package/test-files/species-test-data/3-gene_7-edge_musculus.xlsx +0 -0
- package/test-files/species-test-data/3-gene_7-edge_sapiens.xlsx +0 -0
- package/test-files/species-test-data/kev-fake-data-sapiens-no-exp-data.xlsx +0 -0
- package/test-files/spreadsheet-controller-test-files/sheet-name-capitalized-network-optimized-weights.xlsx +0 -0
- package/test-files/spreadsheet-controller-test-files/sheet-name-capitalized-network.xlsx +0 -0
- package/web-client/app.js +1 -1
- package/web-client/config/config.js +5 -5
- package/web-client/controllers/main.js +5 -1
- package/web-client/public/favicon.ico +0 -0
- package/web-client/public/gene/GRNSight.svg +689 -0
- package/web-client/public/gene/PageDesignREADME.md +1 -0
- package/web-client/public/gene/api.js +442 -0
- package/web-client/public/gene/info.css +181 -0
- package/web-client/public/gene/info.js +334 -0
- package/web-client/public/gene/integrationREADME.md +52 -0
- package/web-client/public/js/constants.js +182 -0
- package/web-client/public/js/getGeneInformationREADME.md +4 -0
- package/web-client/public/js/graph-statistics.js +7 -7
- package/web-client/public/js/graph.js +480 -476
- package/web-client/public/js/grnsight.js +10 -9
- package/web-client/public/js/grnsight.min.js +2335 -0
- package/web-client/public/js/grnstate.js +147 -0
- package/web-client/public/js/iframe-coordination.js +55 -0
- package/web-client/public/js/setup-handlers.js +617 -0
- package/web-client/public/js/setup-load-and-import-handlers.js +180 -0
- package/web-client/public/js/update-app.js +980 -0
- package/web-client/public/js/upload.js +352 -578
- package/web-client/public/js/warnings.js +60 -0
- package/web-client/public/lib/iframeSizer.contentWindow.min.js +10 -0
- package/{documents/SDF/CMSI_402/spring_2018/writtenStatusReport4 → web-client/public/lib/jaspar-front.html} +0 -0
- package/web-client/public/stylesheets/grnsight.styl +176 -26
- package/web-client/public/stylesheets/print.styl +10 -4
- package/web-client/views/{graph.jade → graph.pug} +1 -3
- package/web-client/views/info.pug +215 -0
- package/web-client/views/upload.pug +587 -0
- package/_gh_pages/Gemfile +0 -7
- package/_gh_pages/Gemfile.lock +0 -129
- package/documents/SDF/CMSI_402/spring_2014/Southwick_CMSI402_Spring2014_software-development-plan.md +0 -71
- package/documents/SDF/CMSI_402/spring_2014/Southwick_CMSI402_Spring2014_software-requirements-specification.md +0 -71
- package/documents/SDF/CMSI_402/spring_2014/use-case-diagram-spring-2014.jpg +0 -0
- package/documents/SDF/CMSI_402/spring_2017/Anguiano_402_Final_Presentation.pptx +0 -0
- package/documents/SDF/CMSI_402/spring_2017/Anguiano_402_Presentation_Final_Poster.pdf +0 -0
- package/documents/SDF/CMSI_402/spring_2017/Anguiano_CMSI402_Spring2017_project-proposal-presentation.pptx +0 -0
- package/documents/SDF/CMSI_402/spring_2017/Anguiano_CMSI402_Spring2017_project-proposal.docx +0 -0
- package/documents/SDF/CMSI_402/spring_2017/Anguiano_CMSI402_Spring2017_software-development-plan.docx +0 -0
- package/documents/SDF/CMSI_402/spring_2017/Anguiano_CMSI402_Spring2017_software-requirements-specification.docx +0 -0
- package/documents/SDF/CMSI_402/spring_2017/Design Review Presentation.pptx +0 -0
- package/documents/SDF/CMSI_402/spring_2018/0402report.docx +0 -0
- package/documents/SDF/CMSI_402/spring_2018/0409report.docx +0 -0
- package/documents/SDF/CMSI_402/spring_2018/402-gantt.png +0 -0
- package/documents/SDF/CMSI_402/spring_2018/402SRS_GRNSightFeedback01.txt +0 -28
- package/documents/SDF/CMSI_402/spring_2018/402_SPD.md +0 -223
- package/documents/SDF/CMSI_402/spring_2018/ChoeShinCMSI402_Final.pptx +0 -0
- package/documents/SDF/CMSI_402/spring_2018/ProjectProposal.md +0 -22
- package/documents/SDF/CMSI_402/spring_2018/SoftwareRequirementsSpecification.md +0 -88
- package/documents/SDF/CMSI_402/spring_2018/homework/choe_eileen/Choe_Eileen_CMSI 402_HW1.pdf +0 -0
- package/documents/SDF/CMSI_402/spring_2018/homework/choe_eileen/Choe_Eileen_CMSI402_HW2.pdf +0 -0
- package/documents/SDF/CMSI_402/spring_2018/homework/shin_jen/402hw2.docx +0 -0
- package/documents/SDF/CMSI_402/spring_2018/homework/shin_jen/Jen - 402Hw1.docx +0 -0
- package/documents/SDF/CMSI_402/spring_2018/homework/shin_jen/Jen - hw3.docx +0 -0
- package/documents/SDF/CMSI_402/spring_2018/writtenStatusReport.docx +0 -0
- package/documents/Varshneya_Samdarshi_LMU_Symposium_2016.pptx +0 -0
- package/documents/abstracts/Anguiano_Varshneya_Undergraduate-Research-Symposium_2017_abstract.pdf +0 -0
- package/documents/abstracts/SIGGRAPH 2017 Abstract/ACM-Reference-Format.bst +0 -3478
- package/documents/abstracts/SIGGRAPH 2017 Abstract/Figure1_zoom100.png +0 -0
- package/documents/abstracts/SIGGRAPH 2017 Abstract/acmart.cls +0 -2352
- package/documents/abstracts/SIGGRAPH 2017 Abstract/acmart.ins +0 -29
- package/documents/abstracts/SIGGRAPH 2017 Abstract/always-weights.png +0 -0
- package/documents/abstracts/SIGGRAPH 2017 Abstract/auto.png +0 -0
- package/documents/abstracts/SIGGRAPH 2017 Abstract/networkA.png +0 -0
- package/documents/abstracts/SIGGRAPH 2017 Abstract/networkB-normalized.png +0 -0
- package/documents/abstracts/SIGGRAPH 2017 Abstract/networkB.png +0 -0
- package/documents/abstracts/SIGGRAPH 2017 Abstract/never-weights.png +0 -0
- package/documents/abstracts/SIGGRAPH 2017 Abstract/representative-image/screenshot.jpg +0 -0
- package/documents/abstracts/SIGGRAPH 2017 Abstract/representative-image/screenshot3x2.png +0 -0
- package/documents/abstracts/SIGGRAPH 2017 Abstract/representative-image/withweights3x2.png +0 -0
- package/documents/abstracts/SIGGRAPH 2017 Abstract/screenshot-auto.png +0 -0
- package/documents/abstracts/SIGGRAPH 2017 Abstract/siggraph-abstract-review.bib +0 -85
- package/documents/abstracts/SIGGRAPH 2017 Abstract/siggraph-abstract-review.pdf +0 -0
- package/documents/abstracts/SIGGRAPH 2017 Abstract/siggraph-abstract-review.tex +0 -235
- package/documents/abstracts/SWE Collegiate Competition 2017.md +0 -9
- package/documents/abstracts/Varshneya_Samdarshi_Southern-California-Systems-Biology_2017_abstract.docx +0 -0
- package/documents/developer_documents/State Diagram.graphml +0 -3525
- package/documents/developer_documents/graphml/State Diagram.graphml +0 -3115
- package/documents/developer_documents/older_versions/GRNsight State Diagram old.png +0 -0
- package/documents/developer_documents/older_versions/GRNsight State Diagram.png +0 -0
- package/documents/developer_documents/testing_script_generator/GRNsightTestingDocument.md +0 -998
- package/documents/developer_documents/testing_script_generator/featureList.json +0 -486
- package/documents/developer_documents/testing_script_generator/testing-script-generator.js +0 -149
- package/documents/manuscripts/peerj-computerscience-2016/GRNsight_PeerJ-CS_conference-presentations_2016.docx +0 -0
- package/documents/manuscripts/peerj-computerscience-2016/GRNsight_PeerJ-CS_manuscript_2016.docx +0 -0
- package/documents/manuscripts/peerj-computerscience-2016/GRNsight_PeerJ-CS_manuscript_2016_Table1.docx +0 -0
- package/documents/manuscripts/peerj-computerscience-2016/GRNsight_PeerJ-CS_manuscript_2016_references.rtf +0 -264
- package/documents/manuscripts/peerj-computerscience-2016/GRNsight_PeerJ-CS_manuscript_2016_text-only.docx +0 -0
- package/documents/manuscripts/peerj-computerscience-2016/figures/other-versions/21-genes_31-edges_Schade-data_for-screenshots.xlsx +0 -0
- package/documents/manuscripts/peerj-computerscience-2016/figures/other-versions/Figure1_zoom100.jpg +0 -0
- package/documents/manuscripts/peerj-computerscience-2016/figures/other-versions/Figure1_zoom100.png +0 -0
- package/documents/manuscripts/peerj-computerscience-2016/figures/other-versions/Figure1_zoom100.psd +0 -0
- package/documents/manuscripts/peerj-computerscience-2016/figures/other-versions/Figure1_zoom145.jpg +0 -0
- package/documents/manuscripts/peerj-computerscience-2016/figures/other-versions/Figure1_zoom145.png +0 -0
- package/documents/manuscripts/peerj-computerscience-2016/figures/other-versions/Figure1_zoom145.psd +0 -0
- package/documents/manuscripts/peerj-computerscience-2016/figures/other-versions/Figure1_zoom145_900pix-wide.psd +0 -0
- package/documents/manuscripts/peerj-computerscience-2016/figures/other-versions/Figure2_zoom100.jpg +0 -0
- package/documents/manuscripts/peerj-computerscience-2016/figures/other-versions/Figure2_zoom100.png +0 -0
- package/documents/manuscripts/peerj-computerscience-2016/figures/other-versions/Figure2_zoom100.psd +0 -0
- package/documents/manuscripts/peerj-computerscience-2016/figures/other-versions/Figure2_zoom145.jpg +0 -0
- package/documents/manuscripts/peerj-computerscience-2016/figures/other-versions/Figure2_zoom145.png +0 -0
- package/documents/manuscripts/peerj-computerscience-2016/figures/other-versions/Figure2_zoom145.psd +0 -0
- package/documents/manuscripts/peerj-computerscience-2016/figures/other-versions/Figure2_zoom145_900pix-wide.psd +0 -0
- package/documents/manuscripts/peerj-computerscience-2016/figures/other-versions/Figure5A.pdf +0 -0
- package/documents/manuscripts/peerj-computerscience-2016/figures/other-versions/Figure5B.pdf +0 -0
- package/documents/manuscripts/peerj-computerscience-2016/figures/other-versions/Figure5C.eps +0 -0
- package/documents/manuscripts/peerj-computerscience-2016/figures/other-versions/Figure5D.pdf +0 -0
- package/documents/manuscripts/peerj-computerscience-2016/figures/other-versions/Figure5E.pdf +0 -0
- package/documents/manuscripts/peerj-computerscience-2016/figures/other-versions/Figure5F.eps +0 -0
- package/documents/manuscripts/peerj-computerscience-2016/figures/other-versions/Figure5_compiled.png +0 -0
- package/documents/manuscripts/peerj-computerscience-2016/figures/submitted-versions/Figure3_GRNsight-Architecture.pdf +0 -0
- package/documents/manuscripts/peerj-computerscience-2016/figures/submitted-versions/Figure4_GRNsight-Screenshot.pdf +0 -0
- package/documents/manuscripts/peerj-computerscience-2016/figures/submitted-versions/Figure5_compiled.pdf +12 -5383
- package/documents/manuscripts/peerj-computerscience-2016/peerj-reviewing-10823-v0.pdf +0 -0
- package/documents/manuscripts/peerj-computerscience-2016/revisions/GRNsight_PeerJ-CS_conference-presentations_2016_revised.docx +0 -0
- package/documents/manuscripts/peerj-computerscience-2016/revisions/GRNsight_PeerJ-CS_cover-letter-and-response_2016.pdf +0 -0
- package/documents/manuscripts/peerj-computerscience-2016/revisions/GRNsight_PeerJ-CS_cover-letter_2016.docx +0 -0
- package/documents/manuscripts/peerj-computerscience-2016/revisions/GRNsight_PeerJ-CS_cover-letter_2016.pdf +0 -0
- package/documents/manuscripts/peerj-computerscience-2016/revisions/GRNsight_PeerJ-CS_manuscript_2016_Table1.docx +0 -0
- package/documents/manuscripts/peerj-computerscience-2016/revisions/GRNsight_PeerJ-CS_manuscript_2016_references_revised.rtf +0 -385
- package/documents/manuscripts/peerj-computerscience-2016/revisions/GRNsight_PeerJ-CS_manuscript_2016_text-only_revised.docx +0 -0
- package/documents/manuscripts/peerj-computerscience-2016/revisions/GRNsight_PeerJ-CS_manuscript_2016_text-only_revised_marked.docx +0 -0
- package/documents/manuscripts/peerj-computerscience-2016/revisions/GRNsight_PeerJ-CS_response-to-reviewers_2016.docx +0 -0
- package/documents/manuscripts/peerj-computerscience-2016/revisions/GRNsight_PeerJ-CS_response-to-reviewers_2016.pdf +0 -0
- package/documents/manuscripts/peerj-computerscience-2016/revisions/figures/Figure3_GRNsight-Architecture.pdf +0 -0
- package/documents/manuscripts/peerj-computerscience-2016/revisions/figures/Figure4_GRNsight-Screenshot-auto.pdf +0 -0
- package/documents/manuscripts/peerj-computerscience-2016/revisions/figures/Figure4_GRNsight-Screenshot.pdf +0 -0
- package/documents/manuscripts/peerj-computerscience-2016/revisions/peerj-reviewing-10823-v1.pdf +0 -0
- package/documents/posters/Anguiano_402_Presentation_Draft_Poster.pdf +0 -0
- package/documents/posters/Anguiano_402_Presentation_Draft_Poster.pptx +0 -0
- package/documents/posters/Anguiano_Varshneya_LMU-Symposium_2015_poster.pptx +0 -0
- package/documents/posters/Anguiano_Varshneya_SCCUR-Poster_20141122_poster.pptx +0 -0
- package/documents/posters/ChoeShinCMSI402-2.pptx +0 -0
- package/documents/posters/ChoeShinCMSI402.pptx +0 -0
- package/documents/posters/ChoeShinCMSI402Final.pptx +0 -0
- package/documents/posters/Dahlquist-et-al_BOSC_ISMB_2016_poster.pptx +0 -0
- package/documents/posters/Samdarshi et al. LMU Symposium 2017-finalDraft.pptx +0 -0
- package/documents/posters/Samdarshi et al. LMU Symposium 2018-firstDraft.pptx +0 -0
- package/documents/posters/Shin et al. SCCUR 2017 FinalDraft.pptx +0 -0
- package/documents/posters/Southwick_CMSI402_2014_poster.pptx +0 -0
- package/documents/posters/Varshneya_Samdarshi_LMU-Symposium_2016_poster.pptx +0 -0
- package/documents/posters/Varshneya_Samdarshi_Southern-California-Systems-Biology-Conference_2017_poster.pptx +0 -0
- package/documents/posters/~$Samdarshi et al. LMU Symposium 2018-firstDraft.pptx +0 -0
- package/documents/presentations/Anguiano_402_Final_Presentation.pptx +0 -0
- package/documents/presentations/Choe_SCCUR2017.pptx +0 -0
- package/documents/presentations/Choe_SWERapidFire2017_final.pptx +0 -0
- package/documents/presentations/Dahlquist_BOSC_20160709.pptx +0 -0
- package/documents/presentations/Dahlquist_ExperimentalBiology_20160404_talk.pptx +0 -0
- package/documents/presentations/Dahlquist_SoCalSysBio_20150131_talk.pptx +0 -0
- package/documents/presentations/Samdarshi et al. LMU Symposium 2017-draft.pptx +0 -0
- package/documents/presentations/Southwick_Anguiano_LMU-Symposium_20140329_talk.pptx +0 -0
- package/documents/presentations/Southwick_CMSI402_Presentation_20140508_talk.pptx +0 -0
- package/documents/presentations/Varshneya-Anguiano-LMU Symposium-201703.pptx +0 -0
- package/documents/presentations/~$Choe_SWERapidFire2017_final.pptx +0 -0
- package/documents/reports/Varshneya-201701-AnnotatedBibliography.docx +0 -0
- package/documents/reports/Varshneya-201702-Introduction.docx +0 -0
- package/documents/reports/Varshneya-201702-Outline.docx +0 -0
- package/documents/reports/Varshneya-201703-Discussion.docx +0 -0
- package/documents/reports/Varshneya-201703-MMResults.docx +0 -0
- package/documents/reports/Varshneya-201704-Draft-1.docx +0 -0
- package/documents/reports/Varshneya-201704-Final.docx +0 -0
- package/test/graph-library-tests.js +0 -165
- package/test-files/demo-files/21-genes_50-edges_Dahlquist-data_estimation_output.xlsx +0 -0
- package/test-files/demo-files/21-genes_50-edges_Dahlquist-data_input.xlsx +0 -0
- package/test-files/graph-tests/different-sized-networks/10-genes-max-edges.xlsx +0 -0
- package/test-files/graph-tests/different-sized-networks/12-genes-max-edges.xlsx +0 -0
- package/test-files/graph-tests/different-sized-networks/35-genes-max-edges.xlsx +0 -0
- package/test-files/graph-tests/different-sized-networks/40-genes-0-edges.xlsx +0 -0
- package/test-files/graph-tests/different-sized-networks/40-genes-max-edges.xlsx +0 -0
- package/test-files/graph-tests/different-sized-networks/42-genes-max-edges.xlsx +0 -0
- package/test-files/graph-tests/different-sized-networks/50-genes-max-edges.xlsx +0 -0
- package/test-files/graph-tests/different-sized-networks/75-genes-150-edges.xlsx +0 -0
- package/web-client/public/js/container.js +0 -121
- package/web-client/public/js/node-coloring.js +0 -306
- package/web-client/public/js/sliders.js +0 -197
- package/web-client/views/upload.jade +0 -458
|
Binary file
|
|
Binary file
|
|
@@ -1,165 +0,0 @@
|
|
|
1
|
-
/* eslint-disable max-len */
|
|
2
|
-
var assert = require("chai").assert;
|
|
3
|
-
var xlsx = require("node-xlsx");
|
|
4
|
-
var cytoscape = require("cytoscape");
|
|
5
|
-
var test = require("./test");
|
|
6
|
-
var spreadsheetController = require(__dirname + "/../server/controllers" + "/spreadsheet-controller")();
|
|
7
|
-
|
|
8
|
-
// NOTE: Temporarily skipped out pending resolution of #474, and other related issues
|
|
9
|
-
describe.skip("graph-library-tests", function () {
|
|
10
|
-
describe("basic-cytoscape-conversion", function () {
|
|
11
|
-
it("convert to cytoscape correctly", function () {
|
|
12
|
-
var input = "test-files/graph-statistics-tests/graph-stats-demo.xlsx";
|
|
13
|
-
var sheet = xlsx.parse(input);
|
|
14
|
-
var network = spreadsheetController.parseSheet(sheet);
|
|
15
|
-
// var cytoscapeElements = grnSightToCytoscape(network);
|
|
16
|
-
var cytoscapeElements = spreadsheetController.grnSightToCytoscape(network);
|
|
17
|
-
|
|
18
|
-
/* eslint-disable no-unused-vars */
|
|
19
|
-
// require calls cytoscape as a function so the below code is needed to call cytoscape
|
|
20
|
-
var cy = cytoscape({
|
|
21
|
-
headless: true,
|
|
22
|
-
elements: cytoscapeElements
|
|
23
|
-
});
|
|
24
|
-
/* eslint-enable no-unused-vars */
|
|
25
|
-
|
|
26
|
-
assert.equal(cytoscapeElements.length, 13);
|
|
27
|
-
|
|
28
|
-
assert.equal(cytoscapeElements[0].data.id, "a");
|
|
29
|
-
assert.equal(cytoscapeElements[1].data.id, "b");
|
|
30
|
-
assert.equal(cytoscapeElements[2].data.id, "c");
|
|
31
|
-
assert.equal(cytoscapeElements[3].data.id, "d");
|
|
32
|
-
assert.equal(cytoscapeElements[4].data.id, "e");
|
|
33
|
-
assert.equal(cytoscapeElements[5].data.id, "f");
|
|
34
|
-
|
|
35
|
-
assert.equal(cytoscapeElements[6].data.id, "aa");
|
|
36
|
-
assert.equal(cytoscapeElements[7].data.id, "ba");
|
|
37
|
-
assert.equal(cytoscapeElements[8].data.id, "cb");
|
|
38
|
-
assert.equal(cytoscapeElements[9].data.id, "db");
|
|
39
|
-
assert.equal(cytoscapeElements[10].data.id, "ec");
|
|
40
|
-
assert.equal(cytoscapeElements[11].data.id, "fd");
|
|
41
|
-
assert.equal(cytoscapeElements[12].data.id, "de");
|
|
42
|
-
|
|
43
|
-
});
|
|
44
|
-
});
|
|
45
|
-
|
|
46
|
-
describe("shortest path", function () {
|
|
47
|
-
it("returns the undirected shortest path from f to b in graph-stats-demo", function () {
|
|
48
|
-
test.shortestPath("test-files/graph-statistics-tests/graph-stats-demo.xlsx", false, "f", "b", 2);
|
|
49
|
-
});
|
|
50
|
-
|
|
51
|
-
it("returns the directed shortest path from f to b in graph-stats-demo", function () {
|
|
52
|
-
test.shortestPath("test-files/graph-statistics-tests/graph-stats-demo.xlsx", true, "f", "b", 2);
|
|
53
|
-
});
|
|
54
|
-
|
|
55
|
-
it("returns the undirected shortest path from b to f in graph-stats-demo", function () {
|
|
56
|
-
test.shortestPath("test-files/graph-statistics-tests/graph-stats-demo.xlsx", false, "b", "f", 2);
|
|
57
|
-
});
|
|
58
|
-
|
|
59
|
-
it("returns the directed shortest path from b to f in graph-stats-demo", function () {
|
|
60
|
-
test.shortestPath("test-files/graph-statistics-tests/graph-stats-demo.xlsx", true, "b", "f", Infinity);
|
|
61
|
-
});
|
|
62
|
-
|
|
63
|
-
it("returns the undirected shortest path from f to b in 75-genes-150-edges", function () {
|
|
64
|
-
this.timeout(10000);
|
|
65
|
-
test.shortestPath("test-files/graph-tests/different-sized-networks/75-genes-150-edges.xlsx", false, "CDC28", "ADA2", 3);
|
|
66
|
-
});
|
|
67
|
-
|
|
68
|
-
it("returns the directed shortest path from f to b in 75-genes-150-edges", function () {
|
|
69
|
-
this.timeout(10000);
|
|
70
|
-
test.shortestPath("test-files/graph-tests/different-sized-networks/75-genes-150-edges.xlsx", true, "CDC28", "ADA2", Infinity);
|
|
71
|
-
});
|
|
72
|
-
|
|
73
|
-
it("returns the undirected shortest path from f to b in 10-genes-max-edges", function () {
|
|
74
|
-
test.shortestPath("test-files/graph-tests/different-sized-networks/10-genes-max-edges.xlsx", false, "DAL80", "ECM22", 1);
|
|
75
|
-
});
|
|
76
|
-
|
|
77
|
-
it("returns the directed shortest path from f to b in 10-genes-max-edges", function () {
|
|
78
|
-
test.shortestPath("test-files/graph-tests/different-sized-networks/10-genes-max-edges.xlsx", true, "DAL80", "ECM22", 1);
|
|
79
|
-
});
|
|
80
|
-
|
|
81
|
-
it("returns the undirected shortest path from f to b in 12-genes-max-edges", function () {
|
|
82
|
-
test.shortestPath("test-files/graph-tests/different-sized-networks/12-genes-max-edges.xlsx", false, "DAL80", "ECM22", 1);
|
|
83
|
-
});
|
|
84
|
-
|
|
85
|
-
it("returns the directed shortest path from f to b in 12-genes-max-edges", function () {
|
|
86
|
-
test.shortestPath("test-files/graph-tests/different-sized-networks/12-genes-max-edges.xlsx", true, "DAL80", "ECM22", 1);
|
|
87
|
-
});
|
|
88
|
-
});
|
|
89
|
-
|
|
90
|
-
describe("betweenness centrality", function () {
|
|
91
|
-
it("returns the undirected betweenness centrality of a in graph-stats-demo", function () {
|
|
92
|
-
test.betweennessCentrality("test-files/graph-statistics-tests/graph-stats-demo.xlsx", false, "a", 0);
|
|
93
|
-
});
|
|
94
|
-
|
|
95
|
-
it("returns the directed betweenness centrality of a in graph-stats-demo", function () {
|
|
96
|
-
test.betweennessCentrality("test-files/graph-statistics-tests/graph-stats-demo.xlsx", true, "a", 0);
|
|
97
|
-
});
|
|
98
|
-
|
|
99
|
-
it("returns the undirected betweenness centrality of b in graph-stats-demo", function () {
|
|
100
|
-
test.betweennessCentrality("test-files/graph-statistics-tests/graph-stats-demo.xlsx", false, "b", 11);
|
|
101
|
-
});
|
|
102
|
-
|
|
103
|
-
it("returns the directed betweenness centrality of b in graph-stats-demo", function () {
|
|
104
|
-
test.betweennessCentrality("test-files/graph-statistics-tests/graph-stats-demo.xlsx", true, "b", 11);
|
|
105
|
-
});
|
|
106
|
-
|
|
107
|
-
it("returns the undirected betweenness centrality of c in graph-stats-demo", function () {
|
|
108
|
-
test.betweennessCentrality("test-files/graph-statistics-tests/graph-stats-demo.xlsx", false, "c", 2);
|
|
109
|
-
});
|
|
110
|
-
|
|
111
|
-
it("returns the directed betweenness centrality of c in graph-stats-demo", function () {
|
|
112
|
-
test.betweennessCentrality("test-files/graph-statistics-tests/graph-stats-demo.xlsx", true, "c", 2);
|
|
113
|
-
});
|
|
114
|
-
|
|
115
|
-
it("returns the undirected betweenness centrality of d in graph-stats-demo", function () {
|
|
116
|
-
test.betweennessCentrality("test-files/graph-statistics-tests/graph-stats-demo.xlsx", false, "d", 11);
|
|
117
|
-
});
|
|
118
|
-
|
|
119
|
-
it("returns the directed betweenness centrality of d in graph-stats-demo", function () {
|
|
120
|
-
test.betweennessCentrality("test-files/graph-statistics-tests/graph-stats-demo.xlsx", true, "d", 11);
|
|
121
|
-
});
|
|
122
|
-
|
|
123
|
-
it("returns the undirected betweenness centrality of e in graph-stats-demo", function () {
|
|
124
|
-
test.betweennessCentrality("test-files/graph-statistics-tests/graph-stats-demo.xlsx", false, "e", 2);
|
|
125
|
-
});
|
|
126
|
-
|
|
127
|
-
it("returns the directed betweenness centrality of e in graph-stats-demo", function () {
|
|
128
|
-
test.betweennessCentrality("test-files/graph-statistics-tests/graph-stats-demo.xlsx", true, "e", 2);
|
|
129
|
-
});
|
|
130
|
-
|
|
131
|
-
it("returns the undirected betweenness centrality of f in graph-stats-demo", function () {
|
|
132
|
-
test.betweennessCentrality("test-files/graph-statistics-tests/graph-stats-demo.xlsx", false, "f", 0);
|
|
133
|
-
});
|
|
134
|
-
|
|
135
|
-
it("returns the directed betweenness centrality of f in graph-stats-demo", function () {
|
|
136
|
-
test.betweennessCentrality("test-files/graph-statistics-tests/graph-stats-demo.xlsx", true, "f", 0);
|
|
137
|
-
});
|
|
138
|
-
|
|
139
|
-
it("returns the undirected betweenness centrality of f in 75-genes-150-edges", function () {
|
|
140
|
-
this.timeout(10000);
|
|
141
|
-
test.betweennessCentrality("test-files/graph-tests/different-sized-networks/75-genes-150-edges.xlsx", false, "CDC28", 171.50351735503662);
|
|
142
|
-
});
|
|
143
|
-
|
|
144
|
-
it("returns the directed betweenness centrality of f in 75-genes-150-edges", function () {
|
|
145
|
-
this.timeout(10000);
|
|
146
|
-
test.betweennessCentrality("test-files/graph-tests/different-sized-networks/75-genes-150-edges.xlsx", true, "CDC28", 171.50351735503662);
|
|
147
|
-
});
|
|
148
|
-
|
|
149
|
-
it("returns the undirected betweenness centrality of f in 10-genes-max-edges", function () {
|
|
150
|
-
test.betweennessCentrality("test-files/graph-tests/different-sized-networks/10-genes-max-edges.xlsx", false, "DAL80", 0);
|
|
151
|
-
});
|
|
152
|
-
|
|
153
|
-
it("returns the directed betweenness centrality of f in 10-genes-max-edges", function () {
|
|
154
|
-
test.betweennessCentrality("test-files/graph-tests/different-sized-networks/10-genes-max-edges.xlsx", true, "DAL80", 0);
|
|
155
|
-
});
|
|
156
|
-
|
|
157
|
-
it("returns the undirected betweenness centrality of f in 12-genes-max-edges", function () {
|
|
158
|
-
test.betweennessCentrality("test-files/graph-tests/different-sized-networks/12-genes-max-edges.xlsx", false, "DAL80", 0);
|
|
159
|
-
});
|
|
160
|
-
|
|
161
|
-
it("returns the directed betweenness centrality of f in 12-genes-max-edges", function () {
|
|
162
|
-
test.betweennessCentrality("test-files/graph-tests/different-sized-networks/12-genes-max-edges.xlsx", true, "DAL80", 0);
|
|
163
|
-
});
|
|
164
|
-
});
|
|
165
|
-
});
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
/* eslint no-unused-vars: [2, {"varsIgnorePattern": "grnTest|enableScroll|manualZoom"}] */
|
|
2
|
-
export const container = function () {
|
|
3
|
-
var grnTest = $(".grnTest");
|
|
4
|
-
var container = $(".grnsight-container");
|
|
5
|
-
var enableScroll = $("#enableScroll");
|
|
6
|
-
var pageWidth = $(window).width();
|
|
7
|
-
|
|
8
|
-
var WIDTH_OFFSET = 250;
|
|
9
|
-
var HEIGHT_OFFSET = 53;
|
|
10
|
-
|
|
11
|
-
var MEDIUM_PAGE_WIDTH = 1500;
|
|
12
|
-
var LARGE_PAGE_WIDTH = 2200;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
var windowWidth = $(window).width() - WIDTH_OFFSET;
|
|
16
|
-
var windowHeight = $(window).height() - HEIGHT_OFFSET;
|
|
17
|
-
|
|
18
|
-
if (pageWidth < MEDIUM_PAGE_WIDTH) {
|
|
19
|
-
$("#boundBoxS").prop("checked", true);
|
|
20
|
-
container.addClass("containerS");
|
|
21
|
-
} else if (pageWidth > MEDIUM_PAGE_WIDTH && pageWidth < LARGE_PAGE_WIDTH) {
|
|
22
|
-
$("#boundBoxM").prop("checked", true);
|
|
23
|
-
container.addClass("containerM");
|
|
24
|
-
} else {
|
|
25
|
-
$("#boundBoxL").prop("checked", true);
|
|
26
|
-
container.addClass("containerL");
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
var setSizeIndicator = function (selector) {
|
|
30
|
-
$("#viewport-size-s span, #viewport-size-m span, #viewport-size-l span, #viewport-size-fit span")
|
|
31
|
-
.removeClass("glyphicon-ok");
|
|
32
|
-
$(selector).addClass("glyphicon-ok");
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
var small = function () {
|
|
36
|
-
setSizeIndicator("#viewport-size-s span");
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
var medium = function () {
|
|
40
|
-
setSizeIndicator("#viewport-size-m span");
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
var large = function () {
|
|
44
|
-
setSizeIndicator("#viewport-size-l span");
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
var fit = function () {
|
|
48
|
-
setSizeIndicator("#viewport-size-fit span");
|
|
49
|
-
};
|
|
50
|
-
|
|
51
|
-
$("#viewport-size-s").on("click", function () {
|
|
52
|
-
$("#boundBoxS").prop("checked", true).trigger("click");
|
|
53
|
-
small();
|
|
54
|
-
});
|
|
55
|
-
|
|
56
|
-
$("#boundBoxS").on("click", function () {
|
|
57
|
-
$("#boundBoxS").prop("checked", true);
|
|
58
|
-
small();
|
|
59
|
-
});
|
|
60
|
-
|
|
61
|
-
$("#viewport-size-m").on("click", function () {
|
|
62
|
-
$("#boundBoxM").prop("checked", true).trigger("click");
|
|
63
|
-
medium();
|
|
64
|
-
});
|
|
65
|
-
|
|
66
|
-
$("#boundBoxM").on("click", function () {
|
|
67
|
-
$("#viewport-size-m").prop("checked", true);
|
|
68
|
-
medium();
|
|
69
|
-
});
|
|
70
|
-
|
|
71
|
-
$("#viewport-size-l").on("click", function () {
|
|
72
|
-
$("#boundBoxL").prop("checked", true).trigger("click");
|
|
73
|
-
large();
|
|
74
|
-
});
|
|
75
|
-
|
|
76
|
-
$("#boundBoxL").on("click", function () {
|
|
77
|
-
$("#viewport-size-l").prop("checked", true);
|
|
78
|
-
large();
|
|
79
|
-
});
|
|
80
|
-
|
|
81
|
-
$("#viewport-size-fit").on("click", function () {
|
|
82
|
-
$("#boundBoxFit").prop("checked", true).trigger("click");
|
|
83
|
-
fit();
|
|
84
|
-
});
|
|
85
|
-
|
|
86
|
-
$("#boundBoxFit").on("click", function () {
|
|
87
|
-
$("#viewport-size-fit").prop("checked", true);
|
|
88
|
-
fit();
|
|
89
|
-
});
|
|
90
|
-
|
|
91
|
-
$("#restrict-graph-to-viewport").on("click", function () {
|
|
92
|
-
if ($(".viewport").prop("checked")) {
|
|
93
|
-
$("#restrict-graph-to-viewport span").removeClass("glyphicon-ok");
|
|
94
|
-
$(".viewport").prop("checked", false);
|
|
95
|
-
$(".viewport").trigger("change");
|
|
96
|
-
} else {
|
|
97
|
-
$("#restrict-graph-to-viewport span").addClass("glyphicon-ok");
|
|
98
|
-
$(".viewport").prop("checked", true).trigger("change");
|
|
99
|
-
}
|
|
100
|
-
});
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
$(".boundBoxSize").on("click", function () {
|
|
104
|
-
var currentValue = $(this).val();
|
|
105
|
-
var grnsightContainerClass = "grnsight-container " + currentValue;
|
|
106
|
-
if (!container.hasClass(currentValue)) {
|
|
107
|
-
container.attr("class", grnsightContainerClass);
|
|
108
|
-
container.css(currentValue === "containerFit" ? {width: windowWidth, height: windowHeight} :
|
|
109
|
-
{width: "", height: ""});
|
|
110
|
-
}
|
|
111
|
-
});
|
|
112
|
-
|
|
113
|
-
$(window).on("resize", function () {
|
|
114
|
-
windowWidth = $(window).width() - WIDTH_OFFSET;
|
|
115
|
-
windowHeight = $(window).height() - HEIGHT_OFFSET;
|
|
116
|
-
if (container.hasClass("containerFit")) {
|
|
117
|
-
container.css({width: windowWidth, height: windowHeight});
|
|
118
|
-
}
|
|
119
|
-
});
|
|
120
|
-
|
|
121
|
-
};
|
|
@@ -1,306 +0,0 @@
|
|
|
1
|
-
var MINIMUM_MAX_LOG_FOLD_CHANGE = -100;
|
|
2
|
-
var MAXIMUM_MAX_LOG_FOLD_CHANGE = 100;
|
|
3
|
-
var DEFAULT_MAX_LOG_FOLD_CHANGE = 3;
|
|
4
|
-
var MAX_NUM_CHARACTERS_DROPDOWN = 24;
|
|
5
|
-
|
|
6
|
-
var NODE_COLORING_MENU = ".node-coloring";
|
|
7
|
-
|
|
8
|
-
var BOTTOM_DATASET_SELECTION_SIDEBAR = "#dataset-bottom";
|
|
9
|
-
var TOP_DATASET_SELECTION_SIDEBAR = "#dataset-top";
|
|
10
|
-
var NODE_COLORING_TOGGLE_SIDEBAR = "#nodeColoringToggle";
|
|
11
|
-
var AVG_REPLICATE_VALS_BOTTOM_SIDEBAR = "#averageDataBottom";
|
|
12
|
-
var AVG_REPLICATE_VALS_TOP_SIDEBAR = "#averageDataTop";
|
|
13
|
-
|
|
14
|
-
var AVG_REPLICATE_VALS_TOP_MENU = "#averageDataTopMenu";
|
|
15
|
-
var AVG_REPLICATE_VALS_BOTTOM_MENU = "#averageDataBottomMenu";
|
|
16
|
-
var NODE_COLORING_TOGGLE_MENU = "#node-coloring-toggle-menu";
|
|
17
|
-
var TOP_DATASET_SELECTION_MENU = "#topDatasetDropdownMenu";
|
|
18
|
-
var BOTTOM_DATASET_SELECTION_MENU = "#bottomDatasetDropdownMenu";
|
|
19
|
-
|
|
20
|
-
var NODE_COLORING_TOGGLE_CLASS = ".nodeColoringToggle";
|
|
21
|
-
var LOG_FOLD_CHANGE_MAX_VALUE_CLASS = ".logFoldChangeMaxValue";
|
|
22
|
-
var LOG_FOLD_CHANGE_MAX_VALUE_SIDEBAR_BUTTON = "#log-fold-change-button";
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
var endsInExpressionRegExp = /expression$/;
|
|
26
|
-
|
|
27
|
-
var shortenExpressionSheetName = function (name) {
|
|
28
|
-
return (name.length > MAX_NUM_CHARACTERS_DROPDOWN) ?
|
|
29
|
-
(name.slice(0, MAX_NUM_CHARACTERS_DROPDOWN) + "...") : name;
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
export var hasExpressionData = function (sheets) {
|
|
33
|
-
for (var property in sheets) {
|
|
34
|
-
if (property.match(endsInExpressionRegExp)) {
|
|
35
|
-
return true;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
return false;
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
export var nodeColoringController = {
|
|
42
|
-
|
|
43
|
-
// renderNodeColoring: function () { }, // defined in graph.js
|
|
44
|
-
// removeNodeColoring: function () { }, // defined in graph.js
|
|
45
|
-
|
|
46
|
-
updateAverageReplicateValuesTopDataset: function (averageTopDataset) {
|
|
47
|
-
if (averageTopDataset) {
|
|
48
|
-
$(AVG_REPLICATE_VALS_TOP_MENU + " span").addClass("glyphicon-ok");
|
|
49
|
-
$(AVG_REPLICATE_VALS_TOP_MENU).prop("checked", "checked");
|
|
50
|
-
$(AVG_REPLICATE_VALS_TOP_SIDEBAR).prop("checked", "checked");
|
|
51
|
-
} else {
|
|
52
|
-
$(AVG_REPLICATE_VALS_TOP_MENU + " span").removeClass("glyphicon-ok");
|
|
53
|
-
$(AVG_REPLICATE_VALS_TOP_MENU).removeProp("checked");
|
|
54
|
-
$(AVG_REPLICATE_VALS_TOP_SIDEBAR).removeProp("checked");
|
|
55
|
-
}
|
|
56
|
-
this.avgTopDataset = averageTopDataset;
|
|
57
|
-
this.renderNodeColoring();
|
|
58
|
-
},
|
|
59
|
-
|
|
60
|
-
updateAverageReplicateValuesBottomDataset: function (averageBottomDataset) {
|
|
61
|
-
if (averageBottomDataset) {
|
|
62
|
-
$(AVG_REPLICATE_VALS_BOTTOM_MENU + " span").addClass("glyphicon-ok");
|
|
63
|
-
$(AVG_REPLICATE_VALS_BOTTOM_MENU).prop("checked", "checked");
|
|
64
|
-
$(AVG_REPLICATE_VALS_BOTTOM_SIDEBAR).prop("checked", "checked");
|
|
65
|
-
} else {
|
|
66
|
-
$(AVG_REPLICATE_VALS_BOTTOM_MENU + " span").removeClass("glyphicon-ok");
|
|
67
|
-
$(AVG_REPLICATE_VALS_BOTTOM_MENU).removeProp("checked");
|
|
68
|
-
$(AVG_REPLICATE_VALS_BOTTOM_SIDEBAR).removeProp("checked");
|
|
69
|
-
}
|
|
70
|
-
this.avgBottomDataset = averageBottomDataset;
|
|
71
|
-
this.renderNodeColoring();
|
|
72
|
-
},
|
|
73
|
-
|
|
74
|
-
disableNodeColoring: function () {
|
|
75
|
-
$(NODE_COLORING_TOGGLE_MENU + " span").addClass("glyphicon-ok");
|
|
76
|
-
$(NODE_COLORING_TOGGLE_SIDEBAR).val("Enable Node Coloring");
|
|
77
|
-
this.nodeColoringEnabled = false;
|
|
78
|
-
this.removeNodeColoring();
|
|
79
|
-
},
|
|
80
|
-
|
|
81
|
-
enableNodeColoring: function () {
|
|
82
|
-
$(NODE_COLORING_TOGGLE_MENU + " span").removeClass("glyphicon-ok");
|
|
83
|
-
$(NODE_COLORING_TOGGLE_SIDEBAR).val("Disable Node Coloring");
|
|
84
|
-
this.nodeColoringEnabled = true;
|
|
85
|
-
this.renderNodeColoring();
|
|
86
|
-
},
|
|
87
|
-
|
|
88
|
-
updateLogFoldChangeMaxValue: function (value) {
|
|
89
|
-
$(LOG_FOLD_CHANGE_MAX_VALUE_CLASS).val(value);
|
|
90
|
-
this.logFoldChangeMaxValue = value;
|
|
91
|
-
this.renderNodeColoring();
|
|
92
|
-
},
|
|
93
|
-
|
|
94
|
-
updateTopDataset: function (selection) {
|
|
95
|
-
$(TOP_DATASET_SELECTION_SIDEBAR).val(selection);
|
|
96
|
-
this.removeAllChecksFromMenuDatasetOptions(TOP_DATASET_SELECTION_MENU);
|
|
97
|
-
$(`${TOP_DATASET_SELECTION_MENU} li[value='${selection}'] a span`).addClass("glyphicon-ok");
|
|
98
|
-
|
|
99
|
-
this.topDataset = selection;
|
|
100
|
-
if (this.bottomDataSameAsTop) {
|
|
101
|
-
this.bottomDataset = selection;
|
|
102
|
-
}
|
|
103
|
-
this.renderNodeColoring();
|
|
104
|
-
},
|
|
105
|
-
|
|
106
|
-
updateBottomDataset: function (selection) {
|
|
107
|
-
$(BOTTOM_DATASET_SELECTION_SIDEBAR).val(selection);
|
|
108
|
-
this.removeAllChecksFromMenuDatasetOptions(BOTTOM_DATASET_SELECTION_MENU);
|
|
109
|
-
$(`${BOTTOM_DATASET_SELECTION_MENU} li[value='${selection}'] a span`).addClass("glyphicon-ok");
|
|
110
|
-
|
|
111
|
-
if (selection === "Same as Top Dataset") {
|
|
112
|
-
this.bottomDataset = this.topDataset;
|
|
113
|
-
this.bottomDataSameAsTop = true;
|
|
114
|
-
} else {
|
|
115
|
-
this.bottomDataSameAsTop = false;
|
|
116
|
-
this.bottomDataset = selection;
|
|
117
|
-
}
|
|
118
|
-
this.renderNodeColoring();
|
|
119
|
-
},
|
|
120
|
-
|
|
121
|
-
removeAllChecksFromMenuDatasetOptions: function (id) {
|
|
122
|
-
$(`${id} li a span`).each(
|
|
123
|
-
function () {
|
|
124
|
-
$(this).removeClass("glyphicon-ok");
|
|
125
|
-
}
|
|
126
|
-
);
|
|
127
|
-
},
|
|
128
|
-
|
|
129
|
-
logFoldChangeMaxValueInputValidation: function (value) {
|
|
130
|
-
if (value === "" || value === "0") {
|
|
131
|
-
return DEFAULT_MAX_LOG_FOLD_CHANGE;
|
|
132
|
-
} else if (value < MINIMUM_MAX_LOG_FOLD_CHANGE) {
|
|
133
|
-
return MINIMUM_MAX_LOG_FOLD_CHANGE;
|
|
134
|
-
} else if (value > MAXIMUM_MAX_LOG_FOLD_CHANGE) {
|
|
135
|
-
return MAXIMUM_MAX_LOG_FOLD_CHANGE;
|
|
136
|
-
} else {
|
|
137
|
-
return value;
|
|
138
|
-
}
|
|
139
|
-
},
|
|
140
|
-
|
|
141
|
-
configureNodeColoringHandlers: function () {
|
|
142
|
-
$(AVG_REPLICATE_VALS_TOP_SIDEBAR).on("change", {handler: this}, function (event) {
|
|
143
|
-
event.data.handler.updateAverageReplicateValuesTopDataset($(this).prop("checked"));
|
|
144
|
-
});
|
|
145
|
-
|
|
146
|
-
$(AVG_REPLICATE_VALS_TOP_MENU).on("click", {handler: this}, function (event) {
|
|
147
|
-
event.data.handler.updateAverageReplicateValuesTopDataset(!$(this).prop("checked"));
|
|
148
|
-
});
|
|
149
|
-
|
|
150
|
-
$(AVG_REPLICATE_VALS_BOTTOM_SIDEBAR).on("change", {handler: this}, function (event) {
|
|
151
|
-
event.data.handler.updateAverageReplicateValuesBottomDataset($(this).prop("checked"));
|
|
152
|
-
});
|
|
153
|
-
|
|
154
|
-
$(AVG_REPLICATE_VALS_BOTTOM_MENU).on("click", {handler: this}, function (event) {
|
|
155
|
-
event.data.handler
|
|
156
|
-
.updateAverageReplicateValuesBottomDataset(!$(AVG_REPLICATE_VALS_BOTTOM_MENU).prop("checked"));
|
|
157
|
-
});
|
|
158
|
-
|
|
159
|
-
$(NODE_COLORING_TOGGLE_CLASS).on("click", {handler: this}, function (event) {
|
|
160
|
-
event.data.handler.nodeColoringEnabled ?
|
|
161
|
-
event.data.handler.disableNodeColoring() : event.data.handler.enableNodeColoring();
|
|
162
|
-
});
|
|
163
|
-
|
|
164
|
-
$(LOG_FOLD_CHANGE_MAX_VALUE_SIDEBAR_BUTTON).on("click", {handler: this}, function (event) {
|
|
165
|
-
var validated = event.data.handler
|
|
166
|
-
.logFoldChangeMaxValueInputValidation($("#log-fold-change-max-value-menu").val());
|
|
167
|
-
event.data.handler.updateLogFoldChangeMaxValue(validated);
|
|
168
|
-
});
|
|
169
|
-
|
|
170
|
-
$(LOG_FOLD_CHANGE_MAX_VALUE_CLASS).on("change", {handler: this}, function (event) {
|
|
171
|
-
var validated = event.data.handler.logFoldChangeMaxValueInputValidation($(this).val());
|
|
172
|
-
event.data.handler.updateLogFoldChangeMaxValue(validated);
|
|
173
|
-
});
|
|
174
|
-
|
|
175
|
-
$(TOP_DATASET_SELECTION_SIDEBAR).on("change", {handler: this}, function (event) {
|
|
176
|
-
var selection = $(TOP_DATASET_SELECTION_SIDEBAR).find(":selected").attr("value");
|
|
177
|
-
event.data.handler.updateTopDataset(selection);
|
|
178
|
-
});
|
|
179
|
-
|
|
180
|
-
$(BOTTOM_DATASET_SELECTION_SIDEBAR).on("change", {handler: this}, function (event) {
|
|
181
|
-
var selection = $(BOTTOM_DATASET_SELECTION_SIDEBAR).find(":selected").attr("value");
|
|
182
|
-
event.data.handler.updateBottomDataset(selection);
|
|
183
|
-
});
|
|
184
|
-
|
|
185
|
-
$("#topDatasetDropdownMenu").on("click", "li", {handler: this}, function (event) {
|
|
186
|
-
event.data.handler.updateTopDataset($(this).attr("value"));
|
|
187
|
-
});
|
|
188
|
-
|
|
189
|
-
$("#bottomDatasetDropdownMenu").on("click", "li", {handler: this}, function (event) {
|
|
190
|
-
event.data.handler.updateBottomDataset($(this).attr("value"));
|
|
191
|
-
});
|
|
192
|
-
},
|
|
193
|
-
|
|
194
|
-
initialize: function () {
|
|
195
|
-
$(NODE_COLORING_TOGGLE_SIDEBAR).val("Enable Node Coloring");
|
|
196
|
-
$(AVG_REPLICATE_VALS_TOP_SIDEBAR).prop("checked", true);
|
|
197
|
-
$(AVG_REPLICATE_VALS_BOTTOM_SIDEBAR).prop("checked", true);
|
|
198
|
-
$(NODE_COLORING_TOGGLE_SIDEBAR).val("Disable Node Coloring");
|
|
199
|
-
|
|
200
|
-
// Initialize Menu Bar
|
|
201
|
-
$(AVG_REPLICATE_VALS_TOP_MENU + " span").addClass("glyphicon-ok");
|
|
202
|
-
$(AVG_REPLICATE_VALS_TOP_MENU).prop("checked", true);
|
|
203
|
-
|
|
204
|
-
$(AVG_REPLICATE_VALS_BOTTOM_MENU + " span").addClass("glyphicon-ok");
|
|
205
|
-
$(AVG_REPLICATE_VALS_BOTTOM_MENU).prop("checked", true);
|
|
206
|
-
|
|
207
|
-
$(NODE_COLORING_TOGGLE_MENU + " span").removeClass("glyphicon-ok");
|
|
208
|
-
$(LOG_FOLD_CHANGE_MAX_VALUE_CLASS).val(DEFAULT_MAX_LOG_FOLD_CHANGE);
|
|
209
|
-
|
|
210
|
-
this.logFoldChangeMaxValue = DEFAULT_MAX_LOG_FOLD_CHANGE;
|
|
211
|
-
this.nodeColoringEnabled = true;
|
|
212
|
-
this.avgTopDataset = true;
|
|
213
|
-
this.avgBottomDataset = true;
|
|
214
|
-
this.topDataset = undefined;
|
|
215
|
-
this.bottomDataset = undefined;
|
|
216
|
-
this.lastDataset = null;
|
|
217
|
-
this.bottomDataSameAsTop = true;
|
|
218
|
-
},
|
|
219
|
-
|
|
220
|
-
resetDatasetDropdownMenus: function (network) {
|
|
221
|
-
|
|
222
|
-
var createHTMLforDataset = function (name) {
|
|
223
|
-
return `
|
|
224
|
-
<li class=\"dataset-option node-coloring-menu\" value=\"${name}\">
|
|
225
|
-
<a>
|
|
226
|
-
<span class=\"glyphicon\"></span>
|
|
227
|
-
${name}
|
|
228
|
-
</a>
|
|
229
|
-
</li>`;
|
|
230
|
-
};
|
|
231
|
-
|
|
232
|
-
var nodeColoringOptions = [];
|
|
233
|
-
for (var property in network.expression) {
|
|
234
|
-
if (property.match(endsInExpressionRegExp)) {
|
|
235
|
-
nodeColoringOptions.push({value: property});
|
|
236
|
-
}
|
|
237
|
-
}
|
|
238
|
-
$(BOTTOM_DATASET_SELECTION_SIDEBAR).empty();
|
|
239
|
-
$(TOP_DATASET_SELECTION_SIDEBAR).empty();
|
|
240
|
-
|
|
241
|
-
$(".dataset-option").remove(); // clear all menu dataset options
|
|
242
|
-
|
|
243
|
-
$(BOTTOM_DATASET_SELECTION_SIDEBAR).append($("<option>")
|
|
244
|
-
.attr("value", "Same as Top Dataset").text("Same as Top Dataset"));
|
|
245
|
-
|
|
246
|
-
$(BOTTOM_DATASET_SELECTION_MENU).append(createHTMLforDataset("Same as Top Dataset"));
|
|
247
|
-
|
|
248
|
-
nodeColoringOptions.forEach(function (option) {
|
|
249
|
-
var shortenedSheetName = shortenExpressionSheetName(option.value);
|
|
250
|
-
$(TOP_DATASET_SELECTION_SIDEBAR).append($("<option>")
|
|
251
|
-
.attr("value", option.value).text(shortenedSheetName));
|
|
252
|
-
$(TOP_DATASET_SELECTION_MENU)
|
|
253
|
-
.append(createHTMLforDataset(option.value));
|
|
254
|
-
$(BOTTOM_DATASET_SELECTION_SIDEBAR).append($("<option>")
|
|
255
|
-
.attr("value", option.value).text(shortenedSheetName));
|
|
256
|
-
$(BOTTOM_DATASET_SELECTION_MENU)
|
|
257
|
-
.append(createHTMLforDataset(option.value));
|
|
258
|
-
});
|
|
259
|
-
|
|
260
|
-
$("#topDatasetDropdownMenu li a span").first().addClass("glyphicon-ok");
|
|
261
|
-
$("#bottomDatasetDropdownMenu li a span").first().addClass("glyphicon-ok");
|
|
262
|
-
},
|
|
263
|
-
|
|
264
|
-
isNewWorkbook: function (name) {
|
|
265
|
-
return this.lastDataset === null || this.lastDataset !== name;
|
|
266
|
-
},
|
|
267
|
-
|
|
268
|
-
showNodeColoringMenus: function () {
|
|
269
|
-
if ($(NODE_COLORING_MENU).hasClass("hidden")) {
|
|
270
|
-
$(NODE_COLORING_MENU).removeClass("hidden");
|
|
271
|
-
}
|
|
272
|
-
if ($(".node-coloring-menu").hasClass("disabled")) {
|
|
273
|
-
$(".node-coloring-menu").removeClass("disabled");
|
|
274
|
-
}
|
|
275
|
-
},
|
|
276
|
-
|
|
277
|
-
disableNodeColoringMenus: function () {
|
|
278
|
-
if (!$(NODE_COLORING_MENU).hasClass("hidden")) {
|
|
279
|
-
$(NODE_COLORING_MENU).addClass("hidden");
|
|
280
|
-
}
|
|
281
|
-
if (!$(".node-coloring-menu").hasClass("disabled")) {
|
|
282
|
-
$(".node-coloring-menu").addClass("disabled");
|
|
283
|
-
}
|
|
284
|
-
},
|
|
285
|
-
|
|
286
|
-
reload: function (network, name) {
|
|
287
|
-
if (hasExpressionData(network.expression)) {
|
|
288
|
-
this.showNodeColoringMenus();
|
|
289
|
-
if (this.isNewWorkbook(name)) {
|
|
290
|
-
this.initialize();
|
|
291
|
-
this.lastDataset = name;
|
|
292
|
-
this.resetDatasetDropdownMenus(network);
|
|
293
|
-
}
|
|
294
|
-
this.topDataset = $(TOP_DATASET_SELECTION_SIDEBAR).find(":selected").attr("value");
|
|
295
|
-
if ($(BOTTOM_DATASET_SELECTION_SIDEBAR).find(":selected").attr("value") === "Same as Top Dataset") {
|
|
296
|
-
this.bottomDataset = this.topDataset;
|
|
297
|
-
this.bottomDataSameAsTop = true;
|
|
298
|
-
} else {
|
|
299
|
-
this.bottomDataset = $(BOTTOM_DATASET_SELECTION_SIDEBAR).find(":selected").attr("value");
|
|
300
|
-
this.bottomDataSameAsTop = false;
|
|
301
|
-
}
|
|
302
|
-
} else {
|
|
303
|
-
this.disableNodeColoringMenus();
|
|
304
|
-
}
|
|
305
|
-
},
|
|
306
|
-
};
|