grnsight 4.0.0 → 6.0.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/.travis.yml +3 -1
- package/GRNsight - Beta.html +194 -0
- package/Gemfile.lock +259 -0
- package/README.md +2 -2
- 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/lcov.info +1847 -1142
- package/database/README.md +1 -0
- package/database/network-database/README.md +44 -0
- package/database/network-database/schema.sql +24 -0
- package/database/network-database/scripts/filter_genes.py +76 -0
- package/database/network-database/scripts/generate_network.py +199 -0
- package/database/network-database/scripts/generate_sgd_network_from_yeastract_network.py +120 -0
- package/database/network-database/scripts/loader.py +78 -0
- package/package.json +20 -11
- package/server/app.js +7 -2
- package/server/config/config.js +12 -3
- package/server/controllers/additional-sheet-parser.js +292 -55
- package/server/controllers/constants.js +4 -37
- package/server/controllers/custom-workbook-controller.js +66 -0
- package/server/controllers/demo-workbooks.js +5973 -0
- package/server/controllers/export-constants.js +78 -0
- package/server/controllers/export-controller.js +4 -3
- package/server/controllers/exporters/graphml.js +15 -15
- package/server/controllers/exporters/sif.js +7 -7
- package/server/controllers/exporters/xlsx.js +110 -34
- package/server/controllers/expression-database-controller.js +19 -0
- package/server/controllers/expression-sheet-parser.js +170 -0
- 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-database-controller.js +18 -0
- 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 -425
- package/server/controllers/workbook-constants.js +521 -0
- package/server/dals/expression-dal.js +122 -0
- package/server/dals/network-dal.js +96 -0
- package/test/additional-sheet-parser-tests.js +147 -38
- package/test/api-tests.js +3 -6
- package/test/errors-adjacency-matrix-modifications.js +30 -29
- package/test/errors-graph-tests.js +4 -4
- package/test/errors-sheet-modifications.js +10 -2
- package/test/export-tests.js +187 -60
- package/test/expression-data-import-tests.js +113 -0
- package/test/grnstate-tests.js +8 -2
- package/test/import-graphml-tests.js +59 -40
- package/test/import-sif-tests.js +50 -37
- package/test/test.js +554 -91
- 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/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/controllers/main.js +1 -1
- package/web-client/public/favicon.ico +0 -0
- package/web-client/public/gene/api.js +76 -14
- package/web-client/public/gene/info.js +19 -8
- package/web-client/public/js/api/grnsight-api.js +124 -0
- package/web-client/public/js/constants.js +90 -17
- package/web-client/public/js/createNetwork.js +195 -0
- package/web-client/public/js/graph-statistics.js +7 -7
- package/web-client/public/js/graph.js +369 -324
- package/web-client/public/js/grnsight.js +2 -2
- package/web-client/public/js/grnsight.min.js +128 -59
- package/web-client/public/js/grnstate.js +54 -30
- package/web-client/public/js/iframe-coordination.js +55 -0
- package/web-client/public/js/setup-handlers.js +358 -18
- package/web-client/public/js/setup-load-and-import-handlers.js +105 -66
- package/web-client/public/js/update-app.js +483 -93
- package/web-client/public/js/upload.js +349 -32
- package/web-client/public/js/warnings.js +13 -51
- package/web-client/public/lib/iframeSizer.contentWindow.min.js +10 -0
- package/web-client/public/stylesheets/grnsight.styl +323 -28
- package/web-client/views/components/demo.pug +10 -0
- package/web-client/views/{graph.jade → graph.pug} +0 -0
- package/web-client/views/{info.jade → info.pug} +1 -5
- package/web-client/views/upload.pug +580 -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/SDF/CMSI_402/spring_2018/writtenStatusReport4 +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/Samdarshi_GRNsight_SoCalSysBio_Abstract_2019.docx +0 -0
- package/documents/abstracts/Varshneya_Samdarshi_Southern-California-Systems-Biology_2017_abstract.docx +0 -0
- package/documents/abstracts/~$mdarshi_SoCalSysBio_Abstract_2019.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 -496
- 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_CMSI402_2017.pptx +0 -0
- package/documents/posters/Anguiano_Varshneya_LMU-Symposium_2015.pptx +0 -0
- package/documents/posters/Anguiano_Varshneya_SCCUR_2014.pptx +0 -0
- package/documents/posters/Choe_Shin_CMSI402_2018.pptx +0 -0
- package/documents/posters/Dahlquist-et-al_BOSC_ISMB_2016_poster.pptx +0 -0
- package/documents/posters/Lopez_Filler_LMU_Symposium_2019.pdf +0 -0
- package/documents/posters/Lopez_Filler_LMU_Symposium_2019.pptx +0 -0
- package/documents/posters/Samdarshi-et-al_LMU-Symposium_2017.pptx +0 -0
- package/documents/posters/Samdarshi-et-al_LMU-Symposium_2018.pptx +0 -0
- package/documents/posters/Samdarshi-et-al_SoCalSysBio_2019.pptx +0 -0
- package/documents/posters/Shin-et-al_SCCUR_2017.pptx +0 -0
- package/documents/posters/Southwick_CMSI402_2014.pptx +0 -0
- package/documents/posters/Varshneya_Samdarshi_LMU-Symposium_2016.pptx +0 -0
- package/documents/posters/Varshneya_Samdarshi_SoCalSysBio_2017.pptx +0 -0
- package/documents/presentations/Anguiano_402_Final_Presentation.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_LMU-Symposium_20190323_talk.pdf +0 -0
- package/documents/presentations/Samdarshi_LMU-Symposium_20190323_talk.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_talk.pptx +0 -0
- package/documents/reports/Samdarshi_Mihir_2019/Samdarshi_2019_Final.docx +0 -0
- package/documents/reports/Samdarshi_Mihir_2019/Samdarshi_Mihir_2019_AnnotatedBibliography.docx +0 -0
- package/documents/reports/Samdarshi_Mihir_2019/Samdarshi_Mihir_2019_Outline.docx +0 -0
- package/documents/reports/Samdarshi_Mihir_2019/~$mdarshi_2019_Draft.docx +0 -0
- package/documents/reports/Samdarshi_Mihir_2019/~$mdarshi_2019_Final_Paper_Draft.docx +0 -0
- package/documents/reports/Varshneya_Anu_2017/Varshneya-201701-AnnotatedBibliography.docx +0 -0
- package/documents/reports/Varshneya_Anu_2017/Varshneya-201702-Introduction.docx +0 -0
- package/documents/reports/Varshneya_Anu_2017/Varshneya-201702-Outline.docx +0 -0
- package/documents/reports/Varshneya_Anu_2017/Varshneya-201703-Discussion.docx +0 -0
- package/documents/reports/Varshneya_Anu_2017/Varshneya-201703-MMResults.docx +0 -0
- package/documents/reports/Varshneya_Anu_2017/Varshneya-201704-Draft-1.docx +0 -0
- package/documents/reports/Varshneya_Anu_2017/Varshneya-201704-Final.docx +0 -0
- package/onlysidebar.html +0 -8
- 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/views/upload.jade +0 -464
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
const Sequelize = require("sequelize");
|
|
2
|
+
require("dotenv").config();
|
|
3
|
+
var env = process.env.NODE_ENV || "development";
|
|
4
|
+
var config = require("../config/config")[env];
|
|
5
|
+
var sequelize = new Sequelize(
|
|
6
|
+
config.databaseName,
|
|
7
|
+
process.env.EXPRESSION_DB_USERNAME,
|
|
8
|
+
process.env.EXPRESSION_DB_PASSWORD,
|
|
9
|
+
{
|
|
10
|
+
host: config.databaseHost,
|
|
11
|
+
dialect: config.databaseDialect,
|
|
12
|
+
pool: {
|
|
13
|
+
max: 5,
|
|
14
|
+
min: 0,
|
|
15
|
+
idle: 10000
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
);
|
|
19
|
+
|
|
20
|
+
const buildNetworkSourceQuery = function () {
|
|
21
|
+
return "SELECT * FROM spring2022_network.source ORDER BY time_stamp;";
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
const buildNetworkGeneFromSourceQuery = function (gene, source, timestamp) {
|
|
25
|
+
return `SELECT DISTINCT gene_id, display_gene_id FROM spring2022_network.network, spring2022_network.gene WHERE
|
|
26
|
+
network.time_stamp='${timestamp}' AND network.source='${source}' AND
|
|
27
|
+
(gene.gene_id ='${gene}' OR gene.display_gene_id ='${gene}') AND
|
|
28
|
+
(gene.gene_id = network.regulator_gene_id OR gene.gene_id = network.target_gene_id);`;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
const buildNetworkGenesQuery = function (geneString) {
|
|
32
|
+
let genes = "(";
|
|
33
|
+
let geneList = geneString.split(",");
|
|
34
|
+
geneList.forEach(x => genes += ( `(network.regulator_gene_id =\'${x}\') OR `));
|
|
35
|
+
genes = `${genes.substring(0, genes.length - 4)}) AND (`;
|
|
36
|
+
geneList.forEach(x => genes += ( `(network.target_gene_id =\'${x}\') OR `));
|
|
37
|
+
return `${genes.substring(0, genes.length - 4)})`;
|
|
38
|
+
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
const buildCreateNetworkQuery = function (genes, source, timestamp) {
|
|
42
|
+
return `SELECT DISTINCT regulator_gene_id, target_gene_id FROM
|
|
43
|
+
spring2022_network.network WHERE
|
|
44
|
+
time_stamp='${timestamp}' AND source='${source}' AND
|
|
45
|
+
${buildNetworkGenesQuery(genes)} ORDER BY regulator_gene_id DESC;`;
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
const buildQueryByType = function (queryType, query) {
|
|
49
|
+
switch (queryType) {
|
|
50
|
+
case "NetworkSource":
|
|
51
|
+
return buildNetworkSourceQuery();
|
|
52
|
+
case "NetworkGeneFromSource":
|
|
53
|
+
return buildNetworkGeneFromSourceQuery(query.gene, query.source, query.timestamp);
|
|
54
|
+
case "CreateNetwork":
|
|
55
|
+
return buildCreateNetworkQuery(query.genes, query.source, query.timestamp);
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
const convertResponseToJSON = function (queryType, query, totalOutput) {
|
|
60
|
+
let JSONOutput = {};
|
|
61
|
+
switch (queryType) {
|
|
62
|
+
case "NetworkSource":
|
|
63
|
+
JSONOutput.sources = {};
|
|
64
|
+
totalOutput.forEach(function (x) {
|
|
65
|
+
let timestamp = x.time_stamp;
|
|
66
|
+
let source = x.source;
|
|
67
|
+
JSONOutput.sources[`${source} : ${timestamp}`] = {timestamp, source};
|
|
68
|
+
});
|
|
69
|
+
return JSONOutput;
|
|
70
|
+
case "NetworkGeneFromSource":
|
|
71
|
+
JSONOutput.displayGeneId = totalOutput.length > 0 ? totalOutput[0].display_gene_id : null;
|
|
72
|
+
JSONOutput.geneId = totalOutput.length > 0 ? totalOutput[0].gene_id : null;
|
|
73
|
+
return JSONOutput;
|
|
74
|
+
case "CreateNetwork":
|
|
75
|
+
JSONOutput.links = {};
|
|
76
|
+
for (let connection of totalOutput) {
|
|
77
|
+
if (JSONOutput.links[connection.regulator_gene_id] === undefined) {
|
|
78
|
+
JSONOutput.links[connection.regulator_gene_id] = [connection.target_gene_id];
|
|
79
|
+
} else {
|
|
80
|
+
JSONOutput.links[connection.regulator_gene_id].push(connection.target_gene_id);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
return JSONOutput;
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
module.exports = {
|
|
88
|
+
buildNetworkSourceQuery: buildNetworkSourceQuery,
|
|
89
|
+
queryNetworkDatabase: function (req, res) {
|
|
90
|
+
sequelize.query(buildQueryByType(req.query.type, req.query), { type: sequelize.QueryTypes.SELECT })
|
|
91
|
+
.then(function (stdname) {
|
|
92
|
+
let response = convertResponseToJSON(req.query.type, req.query, stdname);
|
|
93
|
+
return res.send(response);
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
var assert = require("chai").assert;
|
|
2
2
|
var xlsx = require("node-xlsx");
|
|
3
|
+
var test = require("./test");
|
|
3
4
|
var parseAdditionalSheets = require(__dirname + "/../server/controllers/additional-sheet-parser");
|
|
4
5
|
var grnmapOutputWorkbookPath = __dirname + "/../test-files/spreadsheet-controller-test-files/" +
|
|
5
6
|
"15-genes_28-edges_db5-MO-LK_Sigmoid_estimation_missing-values_output.xlsx";
|
|
@@ -29,7 +30,7 @@ describe("additional-sheet-parser", function () {
|
|
|
29
30
|
assert(data,
|
|
30
31
|
{"expression": {
|
|
31
32
|
"wt_log2_expression": {
|
|
32
|
-
"
|
|
33
|
+
"timePoints": [15, 15, 15, 15, 30, 30, 30, 30, 30, 60, 60, 60, 60],
|
|
33
34
|
"data": {
|
|
34
35
|
"ACE2":[0.6139, -1.0689, 0.1906, -0.398, 0.5827, null,
|
|
35
36
|
-0.3947, -0.6264, 0.3377, 0.817, 0.5566, -0.4357, -1.2497],
|
|
@@ -45,47 +46,155 @@ describe("additional-sheet-parser", function () {
|
|
|
45
46
|
});
|
|
46
47
|
});
|
|
47
48
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
49
|
+
// Commenting out bc we are restructuring how sheets are parsed.
|
|
50
|
+
// Expression sheets will be parsed separately.
|
|
51
|
+
// it("correctly identifies expression sheets by suffix", function () {
|
|
52
|
+
// var workbook = xlsx.parse(__dirname + "/../test-files/spreadsheet-controller-test-files/" +
|
|
53
|
+
// "expression_sheet_names_test.xlsx");
|
|
54
|
+
// var data = parseAdditionalSheets(workbook);
|
|
55
|
+
// assert(Object.keys(data.expression).length, 3);
|
|
56
|
+
// });
|
|
57
|
+
|
|
58
|
+
describe("optimization parameters sheet", function () {
|
|
59
|
+
it("correctly parses optimization_parameters sheet", function () {
|
|
60
|
+
var workbook = xlsx.parse(__dirname + "/../test-files/spreadsheet-controller-test-files/" +
|
|
61
|
+
"optimization_parameters_test.xlsx");
|
|
62
|
+
var data = parseAdditionalSheets(workbook);
|
|
63
|
+
/* eslint-disable */
|
|
64
|
+
assert(data.meta, {
|
|
65
|
+
alpha: 0.002,
|
|
66
|
+
kk_max: 1,
|
|
67
|
+
MaxIter: 100000000,
|
|
68
|
+
TolFun: 0.000001,
|
|
69
|
+
MaxFunEval: 100000000,
|
|
70
|
+
TolX: 0.000001,
|
|
71
|
+
production_function: 'Sigmoid',
|
|
72
|
+
L_curve: 0,
|
|
73
|
+
estimate_params: 1,
|
|
74
|
+
make_graphs: 1,
|
|
75
|
+
fix_P: 0,
|
|
76
|
+
fix_b: 0,
|
|
77
|
+
expression_timepoints: [15, 30, 60],
|
|
78
|
+
Strain: ['wt', 'dcin5', 'dgln3', 'dhap4', 'dhmo1', 'dzap1'],
|
|
79
|
+
simulation_timepoints: [0, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60]
|
|
80
|
+
});
|
|
81
|
+
/* eslint-enable */
|
|
82
|
+
});
|
|
83
|
+
|
|
84
|
+
it("should return additionalSheetMissingColumnHeaderError", function () {
|
|
85
|
+
test.additionalSheetMissingColumnHeaderError(
|
|
86
|
+
"test-files/additional-sheet-test-files/optimization-parameters-missing-headers.xlsx", 2);
|
|
87
|
+
});
|
|
88
|
+
|
|
89
|
+
it("should return unknownOptimizationParameterWarning", function () {
|
|
90
|
+
test.unknownOptimizationParameterWarning(
|
|
91
|
+
"test-files/additional-sheet-test-files/optimization-parameters-unknown-parameter.xlsx", 1);
|
|
92
|
+
});
|
|
93
|
+
|
|
94
|
+
it("should return invalidOptimizationParameterWarning", function () {
|
|
95
|
+
test.invalidOptimizationParameterWarning(
|
|
96
|
+
"test-files/additional-sheet-test-files/optimization-parameters-invalid-optimization-parameter.xlsx",
|
|
97
|
+
2);
|
|
98
|
+
});
|
|
53
99
|
});
|
|
54
100
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
101
|
+
describe("two column sheets", function () {
|
|
102
|
+
it("correctly parses data in a 2-column format", function () {
|
|
103
|
+
var workbook = xlsx.parse(__dirname + "/../test-files/spreadsheet-controller-test-files/" +
|
|
104
|
+
"2_column_data_format_test.xlsx");
|
|
105
|
+
var data = parseAdditionalSheets(workbook);
|
|
106
|
+
assert(data["test"]["degradation_rates"], {
|
|
107
|
+
"ACE2": 0.1118,
|
|
108
|
+
"ASH1": 0.2166,
|
|
109
|
+
"CIN5": 0.1005,
|
|
110
|
+
"GCR2": 0.0963
|
|
111
|
+
});
|
|
112
|
+
});
|
|
113
|
+
|
|
114
|
+
it("should return twoColumnIdError", function () {
|
|
115
|
+
test.twoColumnIdError("test-files/additional-sheet-test-files/two-column-sheets-incorrect-cell-A1.xlsx", 5);
|
|
116
|
+
});
|
|
117
|
+
|
|
118
|
+
it("should return additionalSheetIncorrectColumnHeaderError", function () {
|
|
119
|
+
test.additionalSheetIncorrectColumnHeaderError(
|
|
120
|
+
"test-files/additional-sheet-test-files/two-column-sheets-incorrect-column-header.xlsx", 5);
|
|
121
|
+
});
|
|
122
|
+
|
|
123
|
+
it("should return additionalSheetMissingColumnHeaderError", function () {
|
|
124
|
+
test.additionalSheetMissingColumnHeaderError(
|
|
125
|
+
"test-files/additional-sheet-test-files/two-column-sheets-missing-column-header.xlsx", 5);
|
|
126
|
+
});
|
|
127
|
+
|
|
128
|
+
it("should return twoColumnInvalidGeneTypeError", function () {
|
|
129
|
+
test.twoColumnInvalidGeneTypeError(
|
|
130
|
+
"test-files/additional-sheet-test-files/two-column-sheets-invalid-gene-type.xlsx", 10);
|
|
131
|
+
});
|
|
132
|
+
|
|
133
|
+
it("should return twoColumnInvalidValueError", function () {
|
|
134
|
+
test.twoColumnInvalidValueError(
|
|
135
|
+
"test-files/additional-sheet-test-files/two-column-sheets-invalid-value.xlsx", 10);
|
|
136
|
+
});
|
|
137
|
+
|
|
138
|
+
it("should return twoColumnInvalidGeneLengthError", function () {
|
|
139
|
+
test.twoColumnInvalidGeneLengthError(
|
|
140
|
+
"test-files/additional-sheet-test-files/two-column-sheets-invalid-gene-length.xlsx", 5);
|
|
141
|
+
});
|
|
142
|
+
|
|
143
|
+
it("should return twoColumnSpecialCharacterError", function () {
|
|
144
|
+
test.twoColumnSpecialCharacterError(
|
|
145
|
+
"test-files/additional-sheet-test-files/two-column-sheets-special-character.xlsx", 5);
|
|
146
|
+
});
|
|
147
|
+
|
|
148
|
+
it("should return additionalSheetExtraneousDataWarning", function () {
|
|
149
|
+
test.additionalSheetExtraneousDataWarning(
|
|
150
|
+
"test-files/additional-sheet-test-files/two-column-sheets-extraneous-data.xlsx", 5);
|
|
151
|
+
});
|
|
78
152
|
});
|
|
79
153
|
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
154
|
+
describe("optimization diagnostics sheet", function () {
|
|
155
|
+
it("should return additionalSheetIncorrectColumnHeader Error", function () {
|
|
156
|
+
test.additionalSheetIncorrectColumnHeaderError(
|
|
157
|
+
"test-files/additional-sheet-test-files/optimization-diagnostics-incorrect-column-headers.xlsx", 2);
|
|
158
|
+
});
|
|
159
|
+
|
|
160
|
+
it("should return additionalSheetMissingColumnHeader Error", function () {
|
|
161
|
+
test.additionalSheetMissingColumnHeaderError(
|
|
162
|
+
"test-files/additional-sheet-test-files/optimization-diagnostics-missing-column-headers.xlsx", 2);
|
|
163
|
+
});
|
|
164
|
+
|
|
165
|
+
it("should return unknownOptimizationDiagnosticsParameter Warning", function () {
|
|
166
|
+
test.unknownOptimizationDiagnosticsParameterWarning(
|
|
167
|
+
"test-files/additional-sheet-test-files/optimization-diagnostics-unknown-parameter.xlsx", 1);
|
|
168
|
+
});
|
|
169
|
+
|
|
170
|
+
it("should return invalidOptimizationDiagnosticsValue Warning", function () {
|
|
171
|
+
test.invalidOptimizationDiagnosticsValueWarning(
|
|
172
|
+
"test-files/additional-sheet-test-files/optimization-diagnostics-invalid-value.xlsx", 1);
|
|
173
|
+
});
|
|
174
|
+
|
|
175
|
+
it("should return optimizationDiagnosticsExtraneousData Warning", function () {
|
|
176
|
+
test.optimizationDiagnosticsExtraneousDataWarning(
|
|
177
|
+
"test-files/additional-sheet-test-files/optimization-diagnostics-extraneous-data.xlsx", 3);
|
|
178
|
+
});
|
|
179
|
+
|
|
180
|
+
it("should return incorrectMSEGeneHeader Warning", function () {
|
|
181
|
+
test.incorrectMSEGeneHeaderWarning(
|
|
182
|
+
"test-files/additional-sheet-test-files/optimization-diagnostics-incorrect-MSE-gene-header.xlsx", 1);
|
|
183
|
+
});
|
|
184
|
+
|
|
185
|
+
it("should return incorrectMSEHeader Warning", function () {
|
|
186
|
+
test.incorrectMSEHeaderWarning(
|
|
187
|
+
"test-files/additional-sheet-test-files/optimization-diagnostics-incorrect-MSE-header.xlsx", 3);
|
|
188
|
+
});
|
|
189
|
+
|
|
190
|
+
it("should return missingMSEData Warning", function () {
|
|
191
|
+
test.missingMSEDataWarning(
|
|
192
|
+
"test-files/additional-sheet-test-files/optimization-diagnostics-missing-MSE-data.xlsx", 10);
|
|
193
|
+
});
|
|
194
|
+
|
|
195
|
+
it("should return invalidMSEData Warning", function () {
|
|
196
|
+
test.invalidMSEDataWarning(
|
|
197
|
+
"test-files/additional-sheet-test-files/optimization-diagnostics-invalid-MSE-data.xlsx", 4);
|
|
89
198
|
});
|
|
90
199
|
});
|
|
91
200
|
});
|
package/test/api-tests.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const jsdom = require("jsdom");
|
|
2
2
|
|
|
3
|
-
// Our fake document needs a
|
|
3
|
+
// Our fake document needs a .service-root element so that a fake "host" can be found by the code.
|
|
4
4
|
const { document } = (new jsdom.JSDOM("<input type='hidden' id='service-root' value='http://test'>")).window;
|
|
5
5
|
global.document = document;
|
|
6
6
|
global.window = document;
|
|
@@ -30,7 +30,7 @@ describe("The Gene Page", () => {
|
|
|
30
30
|
|
|
31
31
|
// final result is a promise
|
|
32
32
|
// call this with known input
|
|
33
|
-
// part of what the function needs is a
|
|
33
|
+
// part of what the function needs is a workbook request, alongside the query -
|
|
34
34
|
// tell fake server "idc who asks, make this response"
|
|
35
35
|
// mocks return the data ONLY IF the correct parameters are supplied
|
|
36
36
|
// set up fake server to only return happy answers with expected URLS and fail everything else
|
|
@@ -101,9 +101,6 @@ describe("The Gene Page", () => {
|
|
|
101
101
|
</eSearchResult>`;
|
|
102
102
|
|
|
103
103
|
|
|
104
|
-
let NCBIDoc = document.implementation.createDocument("", "", null);
|
|
105
|
-
let sequenceText = NCBIDoc.createTextNode(testString);
|
|
106
|
-
NCBIDoc.appendChild(sequenceText);
|
|
107
104
|
server.respondWith([
|
|
108
105
|
200,
|
|
109
106
|
{"Content-Type": "text/plain" }, testString]);
|
|
@@ -242,4 +239,4 @@ describe("The Gene Page", () => {
|
|
|
242
239
|
|
|
243
240
|
});
|
|
244
241
|
|
|
245
|
-
});
|
|
242
|
+
});
|
|
@@ -16,7 +16,7 @@ describe("errors-adjacency-matrix-modifications", function () {
|
|
|
16
16
|
});
|
|
17
17
|
|
|
18
18
|
describe("empty-row", function () {
|
|
19
|
-
it("should
|
|
19
|
+
it("should throw EMPTY_ROW error", function () {
|
|
20
20
|
test.emptyRowError("test-files/adjacency-matrix-modifications/empty-row-input.xlsx", 1);
|
|
21
21
|
test.emptyRowError("test-files/adjacency-matrix-modifications/empty-row-output.xlsx", 1);
|
|
22
22
|
});
|
|
@@ -46,9 +46,9 @@ describe("errors-adjacency-matrix-modifications", function () {
|
|
|
46
46
|
});
|
|
47
47
|
|
|
48
48
|
describe("extra-column-one-column-skipped", function () {
|
|
49
|
-
it("should
|
|
50
|
-
test.
|
|
51
|
-
test.
|
|
49
|
+
it("should return EMPTYCOLUMN error", function () {
|
|
50
|
+
test.emptyColumnError("test-files/adjacency-matrix-modifications/extra-column-one-column-skipped-input.xlsx", 1);
|
|
51
|
+
test.emptyColumnError("test-files/adjacency-matrix-modifications/extra-column-one-column-skipped-output.xlsx", 1);
|
|
52
52
|
});
|
|
53
53
|
});
|
|
54
54
|
|
|
@@ -88,16 +88,17 @@ describe("errors-adjacency-matrix-modifications", function () {
|
|
|
88
88
|
});
|
|
89
89
|
|
|
90
90
|
describe("empty-row-or-column", function () {
|
|
91
|
-
it("should
|
|
92
|
-
test.
|
|
93
|
-
test.
|
|
91
|
+
it("should throw EMPTY_ROW or EMPTY_COLUMN errors ", function () {
|
|
92
|
+
test.emptyColumnError("test-files/adjacency-matrix-modifications/empty-column-input.xlsx", 1);
|
|
93
|
+
test.emptyColumnError("test-files/adjacency-matrix-modifications/empty-column-output.xlsx", 1);
|
|
94
94
|
test.emptyRowError("test-files/adjacency-matrix-modifications/empty-row-input.xlsx", 1);
|
|
95
95
|
test.emptyRowError("test-files/adjacency-matrix-modifications/empty-row-output.xlsx", 1);
|
|
96
96
|
});
|
|
97
97
|
});
|
|
98
98
|
|
|
99
|
+
// TEST NEEDS TO BE LOOKED AT
|
|
99
100
|
describe("missing-value-top-corner", function () {
|
|
100
|
-
|
|
101
|
+
xit("should not return any errors", function () {
|
|
101
102
|
test.noErrors("test-files/adjacency-matrix-modifications/missing-value-top-corner-input.xlsx");
|
|
102
103
|
test.noErrors("test-files/adjacency-matrix-modifications/missing-value-top-corner-output.xlsx");
|
|
103
104
|
});
|
|
@@ -118,51 +119,51 @@ describe("errors-adjacency-matrix-modifications", function () {
|
|
|
118
119
|
});
|
|
119
120
|
|
|
120
121
|
describe("missing-row-top", function () {
|
|
121
|
-
it("should
|
|
122
|
-
test.
|
|
123
|
-
test.
|
|
122
|
+
it("should return empty row data error", function () {
|
|
123
|
+
test.emptyRowDataError("test-files/adjacency-matrix-modifications/missing-row-top-input.xlsx", 1);
|
|
124
|
+
test.emptyRowDataError("test-files/adjacency-matrix-modifications/missing-row-top-output.xlsx", 1);
|
|
124
125
|
});
|
|
125
126
|
});
|
|
126
127
|
|
|
127
128
|
describe("missing-row-middle", function () {
|
|
128
|
-
it("should
|
|
129
|
-
test.
|
|
130
|
-
test.
|
|
129
|
+
it("should return empty row data error", function () {
|
|
130
|
+
test.emptyRowDataError("test-files/adjacency-matrix-modifications/missing-row-middle-input.xlsx", 1);
|
|
131
|
+
test.emptyRowDataError("test-files/adjacency-matrix-modifications/missing-row-middle-output.xlsx", 1);
|
|
131
132
|
});
|
|
132
133
|
});
|
|
133
134
|
|
|
134
135
|
describe("missing-row-end", function () {
|
|
135
|
-
it("should
|
|
136
|
-
test.
|
|
137
|
-
test.
|
|
136
|
+
it("should return empty row data error", function () {
|
|
137
|
+
test.emptyRowDataError("test-files/adjacency-matrix-modifications/missing-row-end-input.xlsx", 1);
|
|
138
|
+
test.emptyRowDataError("test-files/adjacency-matrix-modifications/missing-row-end-output.xlsx", 1);
|
|
138
139
|
});
|
|
139
140
|
});
|
|
140
141
|
|
|
141
142
|
describe("missing-column-top", function () {
|
|
142
|
-
it("should
|
|
143
|
-
test.
|
|
144
|
-
test.
|
|
143
|
+
it("should throw EMPTY_COLUMN_DATA error", function () {
|
|
144
|
+
test.emptyColumnDataError("test-files/adjacency-matrix-modifications/missing-column-top-input.xlsx", 1);
|
|
145
|
+
test.emptyColumnDataError("test-files/adjacency-matrix-modifications/missing-column-top-output.xlsx", 1);
|
|
145
146
|
});
|
|
146
147
|
});
|
|
147
148
|
|
|
148
149
|
describe("missing-column-middle", function () {
|
|
149
|
-
it("should
|
|
150
|
-
test.
|
|
151
|
-
test.
|
|
150
|
+
it("should throw EMPTY_COLUMN_DATA error", function () {
|
|
151
|
+
test.emptyColumnDataError("test-files/adjacency-matrix-modifications/missing-column-middle-input.xlsx", 1);
|
|
152
|
+
test.emptyColumnDataError("test-files/adjacency-matrix-modifications/missing-column-middle-output.xlsx", 1);
|
|
152
153
|
});
|
|
153
154
|
});
|
|
154
155
|
|
|
155
156
|
describe("missing-column-end", function () {
|
|
156
|
-
it("should
|
|
157
|
-
test.
|
|
158
|
-
test.
|
|
157
|
+
it("should throw EMPTY_COLUMN_DATA error", function () {
|
|
158
|
+
test.emptyColumnDataError("test-files/adjacency-matrix-modifications/missing-column-end-input.xlsx", 1);
|
|
159
|
+
test.emptyColumnDataError("test-files/adjacency-matrix-modifications/missing-column-end-output.xlsx", 1);
|
|
159
160
|
});
|
|
160
161
|
});
|
|
161
162
|
|
|
162
163
|
describe("missing-data", function () {
|
|
163
|
-
it("should
|
|
164
|
-
test.
|
|
165
|
-
test.
|
|
164
|
+
it("should return empty matrix data error", function () {
|
|
165
|
+
test.emptyMatrixDataError("test-files/adjacency-matrix-modifications/missing-data-input.xlsx", 1);
|
|
166
|
+
test.emptyMatrixDataError("test-files/adjacency-matrix-modifications/missing-data-output.xlsx", 1);
|
|
166
167
|
});
|
|
167
168
|
});
|
|
168
169
|
|
|
@@ -27,15 +27,15 @@ describe("errors-graph-tests", function () {
|
|
|
27
27
|
});
|
|
28
28
|
|
|
29
29
|
describe("over-75-genes-or-150-nodes", function () {
|
|
30
|
-
it("should return invalid
|
|
30
|
+
it("should return invalid workbook size error", function () {
|
|
31
31
|
this.timeout(10000);
|
|
32
|
-
test.
|
|
33
|
-
test.
|
|
32
|
+
test.workbookSizeError("test-files/graph-tests/different-sized-networks/134-genes-0-edges.xlsx", 1);
|
|
33
|
+
test.workbookSizeError("test-files/graph-tests/different-sized-networks/44-source-genes-45-target-genes-max-edges.xlsx", 1);
|
|
34
34
|
});
|
|
35
35
|
});
|
|
36
36
|
|
|
37
37
|
describe("over-50-genes-or-100-nodes", function () {
|
|
38
|
-
it("should return invalid
|
|
38
|
+
it("should return invalid workbook size warning", function () {
|
|
39
39
|
test.invalidNetworkSizeWarning("test-files/graph-tests/different-sized-networks/52-genes-0-edges.xlsx", 1);
|
|
40
40
|
test.invalidNetworkSizeWarning("test-files/graph-tests/different-sized-networks/34-genes-111-edges.xlsx", 1);
|
|
41
41
|
});
|
|
@@ -14,14 +14,15 @@ describe("errors-sheet-modifications", function () {
|
|
|
14
14
|
});
|
|
15
15
|
|
|
16
16
|
describe("missing-sheet", function () {
|
|
17
|
-
it("should return missing
|
|
17
|
+
it("should return missing workbook error code on input sheet", function () {
|
|
18
18
|
test.missingNetworkError("test-files/sheet-modifications/missing-sheet-input.xlsx", 1);
|
|
19
19
|
test.noErrors("test-files/sheet-modifications/missing-sheet-output.xlsx");
|
|
20
20
|
});
|
|
21
21
|
});
|
|
22
22
|
|
|
23
|
+
// TEST NEEDS TO BE LOOKED AT
|
|
23
24
|
describe("sheet-names-switched", function () {
|
|
24
|
-
|
|
25
|
+
xit("should not return any errors", function () {
|
|
25
26
|
test.noErrors("test-files/sheet-modifications/sheet-names-switched-input.xlsx");
|
|
26
27
|
test.noErrors("test-files/sheet-modifications/sheet-names-switched-output.xlsx");
|
|
27
28
|
});
|
|
@@ -34,6 +35,13 @@ describe("errors-sheet-modifications", function () {
|
|
|
34
35
|
});
|
|
35
36
|
});
|
|
36
37
|
|
|
38
|
+
describe("sheet-name-capitalized", function () {
|
|
39
|
+
it("should return no errors", function () {
|
|
40
|
+
test.noErrors("test-files/spreadsheet-controller-test-files/sheet-name-capitalized-network-optimized-weights.xlsx");
|
|
41
|
+
test.noErrors("test-files/spreadsheet-controller-test-files/sheet-name-capitalized-network.xlsx", 1);
|
|
42
|
+
});
|
|
43
|
+
});
|
|
44
|
+
|
|
37
45
|
// Sheet Modifications - Cell A1 Modifications
|
|
38
46
|
|
|
39
47
|
describe("and-symbol", function () {
|