grnsight 6.0.4 → 7.1.1
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/.eslintrc.yml +4 -4
- package/database/README.md +224 -79
- package/database/constants.py +42 -0
- package/database/expression-database/README.md +2 -2
- package/database/expression-database/schema.sql +14 -14
- package/database/expression-database/scripts/loader.py +6 -6
- package/database/filter_update.py +168 -0
- package/database/grnsettings-database/README.md +52 -0
- package/database/grnsettings-database/schema.sql +4 -0
- package/database/loader.py +30 -0
- package/database/loader_update.py +36 -0
- package/database/network-database/README.md +36 -4
- package/database/network-database/schema.sql +7 -7
- package/database/network-database/scripts/generate_network.py +16 -24
- package/database/network-database/scripts/generate_new_network_version.py +216 -0
- package/database/protein-protein-database/README.md +71 -0
- package/database/protein-protein-database/schema.sql +37 -0
- package/database/protein-protein-database/scripts/generate_protein_network.py +227 -0
- package/database/protein-protein-database/scripts/remove_duplicates.sh +4 -0
- package/database/utils.py +418 -0
- package/package.json +2 -2
- package/server/app.js +2 -0
- package/server/config/config.js +4 -4
- package/server/controllers/additional-sheet-parser.js +2 -1
- package/server/controllers/constants.js +5 -0
- package/server/controllers/custom-workbook-controller.js +8 -6
- package/server/controllers/demo-workbooks.js +1460 -4
- package/server/controllers/export-constants.js +3 -2
- package/server/controllers/exporters/sif.js +6 -1
- package/server/controllers/exporters/xlsx.js +8 -3
- package/server/controllers/expression-sheet-parser.js +0 -6
- package/server/controllers/grnsettings-database-controller.js +17 -0
- package/server/controllers/importers/sif.js +29 -11
- package/server/controllers/network-database-controller.js +2 -2
- package/server/controllers/network-sheet-parser.js +54 -12
- package/server/controllers/protein-database-controller.js +18 -0
- package/server/controllers/sif-constants.js +4 -4
- package/server/controllers/spreadsheet-controller.js +44 -1
- package/server/controllers/workbook-constants.js +21 -4
- package/server/dals/expression-dal.js +8 -7
- package/server/dals/grnsetting-dal.js +49 -0
- package/server/dals/network-dal.js +13 -12
- package/server/dals/protein-dal.js +106 -0
- package/test/export-tests.js +136 -9
- package/test/import-sif-tests.js +54 -13
- package/test/test.js +1 -1
- package/test-files/additional-sheet-test-files/optimization-parameters-default.xlsx +0 -0
- package/test-files/demo-files/18_proteins_81_edges_PPI.xlsx +0 -0
- package/test-files/expression-data-test-sheets/expression_sheet_missing_data_ok_export_exact.xlsx +0 -0
- package/web-client/config/config.js +4 -4
- package/web-client/public/js/api/grnsight-api.js +72 -56
- package/web-client/public/js/constants.js +26 -12
- package/web-client/public/js/generateNetwork.js +173 -67
- package/web-client/public/js/graph.js +420 -150
- package/web-client/public/js/grnsight.js +25 -4
- package/web-client/public/js/grnstate.js +3 -1
- package/web-client/public/js/iframe-coordination.js +3 -3
- package/web-client/public/js/setup-handlers.js +28 -32
- package/web-client/public/js/setup-load-and-import-handlers.js +196 -170
- package/web-client/public/js/update-app.js +84 -17
- package/web-client/public/js/upload.js +193 -157
- package/web-client/public/lib/bootstrap.file-input/bootstrap.file-input.js +0 -1
- package/web-client/public/stylesheets/grnsight.styl +40 -16
- package/web-client/views/components/demo.pug +7 -5
- package/web-client/views/upload.pug +63 -49
- package/.bundle/config +0 -3
- package/GRNsight - Beta.html +0 -194
- package/Gemfile.lock +0 -259
- package/_gh_pages/about.html +0 -807
- package/_gh_pages/assets/css/bootstrap.min.css +0 -10
- package/_gh_pages/assets/css/footer.css +0 -3
- package/_gh_pages/assets/css/main.css +0 -363
- 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/Carrillo_Roque_LMU_Symposium_2015.pptx +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-BMB-2015-Fig1.jpg +0 -0
- package/_gh_pages/assets/images/Dahlquist-BMB-2015-Fig8.jpg +0 -0
- package/_gh_pages/assets/images/Dahlquist-Choe-Shin_CMSI402-poster-session_20180430.jpg +0 -0
- package/_gh_pages/assets/images/Demo-3-auto-layout.jpg +0 -0
- package/_gh_pages/assets/images/Demo-3-paper-layout.jpg +0 -0
- package/_gh_pages/assets/images/Demo-4-auto-layout.jpg +0 -0
- package/_gh_pages/assets/images/Demo-4-paper-layout.jpg +0 -0
- package/_gh_pages/assets/images/Dionisio-Dahlquist_GRNsight-shades_20170506.jpg +0 -0
- package/_gh_pages/assets/images/GRNsight_logo_20140710_main.jpg +0 -0
- package/_gh_pages/assets/images/GRNsight_logo_20140710_main_resized.jpg +0 -0
- package/_gh_pages/assets/images/GRNsight_logo_20140710_rollover.jpg +0 -0
- package/_gh_pages/assets/images/GRNsight_logo_20140710_rollover_resized.jpg +0 -0
- package/_gh_pages/assets/images/Johnson_Williams_LMU_Symposium_2015.pptx +0 -0
- package/_gh_pages/assets/images/Klein_Samdarshi_TriBeta_2018_20180317.jpg +0 -0
- package/_gh_pages/assets/images/LMULogoHQ2.png +0 -0
- package/_gh_pages/assets/images/LMUSymposium_Group_20150321-2.jpg +0 -0
- package/_gh_pages/assets/images/LMUSymposium_Group_20150321-2_resized.jpg +0 -0
- package/_gh_pages/assets/images/Sample_network_optimized_weights_worksheet.jpg +0 -0
- package/_gh_pages/assets/images/Sample_network_worksheet.jpg +0 -0
- package/_gh_pages/assets/images/Shin_SCCUR_2017.jpg +0 -0
- package/_gh_pages/assets/images/demo-3_network-sheet.png +0 -0
- package/_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/lmu logo.gif +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 +0 -35
- package/_gh_pages/assets/js/iframeResizer.min.js +0 -9
- package/_gh_pages/assets/js/main.js +0 -132
- package/_gh_pages/beta.html +0 -144
- package/_gh_pages/contact.html +0 -178
- package/_gh_pages/coverage/coverage.json +0 -1
- package/_gh_pages/coverage/coverage.raw.json +0 -1
- package/_gh_pages/coverage/lcov-report/base.css +0 -223
- package/_gh_pages/coverage/lcov-report/block-navigation.js +0 -63
- package/_gh_pages/coverage/lcov-report/controllers/additional-sheet-parser.js.html +0 -330
- package/_gh_pages/coverage/lcov-report/controllers/constants.js.html +0 -243
- package/_gh_pages/coverage/lcov-report/controllers/export-controller.js.html +0 -285
- package/_gh_pages/coverage/lcov-report/controllers/exporters/graphml.js.html +0 -405
- package/_gh_pages/coverage/lcov-report/controllers/exporters/index.html +0 -110
- package/_gh_pages/coverage/lcov-report/controllers/exporters/sif.js.html +0 -150
- package/_gh_pages/coverage/lcov-report/controllers/helpers.js.html +0 -114
- package/_gh_pages/coverage/lcov-report/controllers/import-controller.js.html +0 -233
- package/_gh_pages/coverage/lcov-report/controllers/importers/graphml.js.html +0 -716
- package/_gh_pages/coverage/lcov-report/controllers/importers/index.html +0 -106
- package/_gh_pages/coverage/lcov-report/controllers/importers/sif.js.html +0 -488
- package/_gh_pages/coverage/lcov-report/controllers/index.html +0 -162
- package/_gh_pages/coverage/lcov-report/controllers/semantic-checker.js.html +0 -810
- package/_gh_pages/coverage/lcov-report/controllers/spreadsheet-controller.js.html +0 -1779
- package/_gh_pages/coverage/lcov-report/index.html +0 -136
- package/_gh_pages/coverage/lcov-report/prettify.css +0 -1
- package/_gh_pages/coverage/lcov-report/prettify.js +0 -1
- package/_gh_pages/coverage/lcov-report/server/controllers/additional-sheet-parser.js.html +0 -330
- package/_gh_pages/coverage/lcov-report/server/controllers/constants.js.html +0 -243
- package/_gh_pages/coverage/lcov-report/server/controllers/export-controller.js.html +0 -285
- package/_gh_pages/coverage/lcov-report/server/controllers/exporters/graphml.js.html +0 -405
- package/_gh_pages/coverage/lcov-report/server/controllers/exporters/index.html +0 -110
- package/_gh_pages/coverage/lcov-report/server/controllers/exporters/sif.js.html +0 -150
- package/_gh_pages/coverage/lcov-report/server/controllers/graphml-constants.js.html +0 -585
- package/_gh_pages/coverage/lcov-report/server/controllers/helpers.js.html +0 -114
- package/_gh_pages/coverage/lcov-report/server/controllers/import-controller.js.html +0 -237
- package/_gh_pages/coverage/lcov-report/server/controllers/importers/graphml.js.html +0 -585
- package/_gh_pages/coverage/lcov-report/server/controllers/importers/index.html +0 -110
- package/_gh_pages/coverage/lcov-report/server/controllers/importers/sif.js.html +0 -492
- package/_gh_pages/coverage/lcov-report/server/controllers/index.html +0 -188
- package/_gh_pages/coverage/lcov-report/server/controllers/semantic-checker.js.html +0 -810
- package/_gh_pages/coverage/lcov-report/server/controllers/spreadsheet-controller.js.html +0 -1779
- package/_gh_pages/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/_gh_pages/coverage/lcov-report/sorter.js +0 -158
- package/_gh_pages/coverage/lcov-report/web-client/public/js/grnstate.js.html +0 -225
- package/_gh_pages/coverage/lcov-report/web-client/public/js/index.html +0 -97
- package/_gh_pages/coverage/lcov.info +0 -49
- package/_gh_pages/documentation.html +0 -1132
- package/_gh_pages/documents/abstracts/SIGGRAPH 2017 Abstract/siggraph-abstract-review.aux +0 -47
- package/_gh_pages/documents/abstracts/SIGGRAPH 2017 Abstract/siggraph-abstract-review.bbl +0 -73
- package/_gh_pages/documents/abstracts/SIGGRAPH 2017 Abstract/siggraph-abstract-review.blg +0 -52
- package/_gh_pages/documents/abstracts/SIGGRAPH 2017 Abstract/siggraph-abstract-review.log +0 -1056
- package/_gh_pages/documents/abstracts/SIGGRAPH 2017 Abstract/siggraph-abstract-review.out +0 -7
- 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 +0 -21
- package/_gh_pages/encryption/server.key +0 -28
- package/_gh_pages/favicon.ico +0 -0
- package/_gh_pages/googlea1a858c5bc91c87e.html +0 -1
- package/_gh_pages/index.html +0 -163
- package/_gh_pages/links.html +0 -177
- package/_gh_pages/news.html +0 -367
- package/_gh_pages/onlyfooter.html +0 -78
- package/_gh_pages/onlyheader.html +0 -64
- package/_gh_pages/onlysidebar.html +0 -73
- package/_gh_pages/package-lock.json +0 -14048
- package/_gh_pages/params.json +0 -1
- package/_gh_pages/people.html +0 -260
- package/_gh_pages/privacy.html +0 -147
- package/_gh_pages/publications.html +0 -378
- package/_gh_pages/robots.txt +0 -1
- package/_gh_pages/server/API Project-7d45e9f24a96.p12 +0 -0
- package/_gh_pages/server/grnmap.pem +0 -31
- package/_gh_pages/server/grnsight.pem +0 -19
- package/_gh_pages/sitemap.xml +0 -174
- package/_gh_pages/test-files/import-samples/attributes.graphml +0 -40
- package/_gh_pages/test-files/import-samples/port.graphml +0 -32
- package/_gh_pages/test-files/import-samples/simple.graphml +0 -31
- package/_gh_pages/web-client/public/js/grnsight.min.js +0 -2347
- package/_gh_pages/web-client/public/stylesheets/grnsight.css +0 -443
- package/coverage/coverage.json +0 -1
- package/coverage/coverage.raw.json +0 -1
- package/coverage/lcov-report/base.css +0 -223
- package/coverage/lcov-report/block-navigation.js +0 -63
- package/coverage/lcov-report/controllers/additional-sheet-parser.js.html +0 -330
- package/coverage/lcov-report/controllers/constants.js.html +0 -243
- package/coverage/lcov-report/controllers/export-controller.js.html +0 -285
- package/coverage/lcov-report/controllers/exporters/graphml.js.html +0 -405
- package/coverage/lcov-report/controllers/exporters/index.html +0 -110
- package/coverage/lcov-report/controllers/exporters/sif.js.html +0 -150
- package/coverage/lcov-report/controllers/helpers.js.html +0 -114
- package/coverage/lcov-report/controllers/import-controller.js.html +0 -233
- package/coverage/lcov-report/controllers/importers/graphml.js.html +0 -716
- package/coverage/lcov-report/controllers/importers/index.html +0 -106
- package/coverage/lcov-report/controllers/importers/sif.js.html +0 -488
- package/coverage/lcov-report/controllers/index.html +0 -162
- package/coverage/lcov-report/controllers/semantic-checker.js.html +0 -810
- package/coverage/lcov-report/controllers/spreadsheet-controller.js.html +0 -1779
- package/coverage/lcov-report/index.html +0 -136
- package/coverage/lcov-report/prettify.css +0 -1
- package/coverage/lcov-report/prettify.js +0 -1
- package/coverage/lcov-report/server/controllers/additional-sheet-parser.js.html +0 -330
- package/coverage/lcov-report/server/controllers/constants.js.html +0 -243
- package/coverage/lcov-report/server/controllers/export-controller.js.html +0 -285
- package/coverage/lcov-report/server/controllers/exporters/graphml.js.html +0 -405
- package/coverage/lcov-report/server/controllers/exporters/index.html +0 -110
- package/coverage/lcov-report/server/controllers/exporters/sif.js.html +0 -150
- package/coverage/lcov-report/server/controllers/graphml-constants.js.html +0 -585
- package/coverage/lcov-report/server/controllers/helpers.js.html +0 -114
- package/coverage/lcov-report/server/controllers/import-controller.js.html +0 -237
- package/coverage/lcov-report/server/controllers/importers/graphml.js.html +0 -585
- package/coverage/lcov-report/server/controllers/importers/index.html +0 -110
- package/coverage/lcov-report/server/controllers/importers/sif.js.html +0 -492
- package/coverage/lcov-report/server/controllers/index.html +0 -188
- package/coverage/lcov-report/server/controllers/semantic-checker.js.html +0 -810
- package/coverage/lcov-report/server/controllers/spreadsheet-controller.js.html +0 -1779
- package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/coverage/lcov-report/sorter.js +0 -158
- package/coverage/lcov-report/web-client/public/js/grnstate.js.html +0 -225
- package/coverage/lcov-report/web-client/public/js/index.html +0 -97
- package/coverage/lcov.info +0 -1952
- package/database/network-database/scripts/filter_genes.py +0 -76
- package/database/network-database/scripts/loader.py +0 -79
- package/documents/abstracts/SIGGRAPH 2017 Abstract/siggraph-abstract-review.aux +0 -47
- package/documents/abstracts/SIGGRAPH 2017 Abstract/siggraph-abstract-review.bbl +0 -73
- package/documents/abstracts/SIGGRAPH 2017 Abstract/siggraph-abstract-review.blg +0 -52
- package/documents/abstracts/SIGGRAPH 2017 Abstract/siggraph-abstract-review.log +0 -1056
- package/documents/abstracts/SIGGRAPH 2017 Abstract/siggraph-abstract-review.out +0 -7
- package/documents/abstracts/SIGGRAPH 2017 Abstract/siggraph-abstract-review.synctex.gz +0 -0
- package/documents/manuscripts/peerj-computerscience-2016/revisions/GRNsight_PeerJ-CS_manuscript_2016_text-only_revised-Dondi.docx +0 -0
- package/encryption/server.cert +0 -21
- package/encryption/server.key +0 -28
- package/gdb/PG_VERSION +0 -1
- package/gdb/base/1/112 +0 -0
- package/gdb/base/1/113 +0 -0
- package/gdb/base/1/1247 +0 -0
- package/gdb/base/1/1247_fsm +0 -0
- package/gdb/base/1/1247_vm +0 -0
- package/gdb/base/1/1249 +0 -0
- package/gdb/base/1/1249_fsm +0 -0
- package/gdb/base/1/1249_vm +0 -0
- package/gdb/base/1/1255 +0 -0
- package/gdb/base/1/1255_fsm +0 -0
- package/gdb/base/1/1255_vm +0 -0
- package/gdb/base/1/1259 +0 -0
- package/gdb/base/1/1259_fsm +0 -0
- package/gdb/base/1/1259_vm +0 -0
- package/gdb/base/1/13852 +0 -0
- package/gdb/base/1/13852_fsm +0 -0
- package/gdb/base/1/13852_vm +0 -0
- package/gdb/base/1/13855 +0 -0
- package/gdb/base/1/13856 +0 -0
- package/gdb/base/1/13857 +0 -0
- package/gdb/base/1/13857_fsm +0 -0
- package/gdb/base/1/13857_vm +0 -0
- package/gdb/base/1/13860 +0 -0
- package/gdb/base/1/13861 +0 -0
- package/gdb/base/1/13862 +0 -0
- package/gdb/base/1/13862_fsm +0 -0
- package/gdb/base/1/13862_vm +0 -0
- package/gdb/base/1/13865 +0 -0
- package/gdb/base/1/13866 +0 -0
- package/gdb/base/1/13867 +0 -0
- package/gdb/base/1/13867_fsm +0 -0
- package/gdb/base/1/13867_vm +0 -0
- package/gdb/base/1/13870 +0 -0
- package/gdb/base/1/13871 +0 -0
- package/gdb/base/1/1417 +0 -0
- package/gdb/base/1/1418 +0 -0
- package/gdb/base/1/174 +0 -0
- package/gdb/base/1/175 +0 -0
- package/gdb/base/1/2187 +0 -0
- package/gdb/base/1/2224 +0 -0
- package/gdb/base/1/2228 +0 -0
- package/gdb/base/1/2328 +0 -0
- package/gdb/base/1/2336 +0 -0
- package/gdb/base/1/2337 +0 -0
- package/gdb/base/1/2579 +0 -0
- package/gdb/base/1/2600 +0 -0
- package/gdb/base/1/2600_fsm +0 -0
- package/gdb/base/1/2600_vm +0 -0
- package/gdb/base/1/2601 +0 -0
- package/gdb/base/1/2601_fsm +0 -0
- package/gdb/base/1/2601_vm +0 -0
- package/gdb/base/1/2602 +0 -0
- package/gdb/base/1/2602_fsm +0 -0
- package/gdb/base/1/2602_vm +0 -0
- package/gdb/base/1/2603 +0 -0
- package/gdb/base/1/2603_fsm +0 -0
- package/gdb/base/1/2603_vm +0 -0
- package/gdb/base/1/2604 +0 -0
- package/gdb/base/1/2605 +0 -0
- package/gdb/base/1/2605_fsm +0 -0
- package/gdb/base/1/2605_vm +0 -0
- package/gdb/base/1/2606 +0 -0
- package/gdb/base/1/2606_fsm +0 -0
- package/gdb/base/1/2606_vm +0 -0
- package/gdb/base/1/2607 +0 -0
- package/gdb/base/1/2607_fsm +0 -0
- package/gdb/base/1/2607_vm +0 -0
- package/gdb/base/1/2608 +0 -0
- package/gdb/base/1/2608_fsm +0 -0
- package/gdb/base/1/2608_vm +0 -0
- package/gdb/base/1/2609 +0 -0
- package/gdb/base/1/2609_fsm +0 -0
- package/gdb/base/1/2609_vm +0 -0
- package/gdb/base/1/2610 +0 -0
- package/gdb/base/1/2610_fsm +0 -0
- package/gdb/base/1/2610_vm +0 -0
- package/gdb/base/1/2611 +0 -0
- package/gdb/base/1/2612 +0 -0
- package/gdb/base/1/2612_fsm +0 -0
- package/gdb/base/1/2612_vm +0 -0
- package/gdb/base/1/2613 +0 -0
- package/gdb/base/1/2615 +0 -0
- package/gdb/base/1/2615_fsm +0 -0
- package/gdb/base/1/2615_vm +0 -0
- package/gdb/base/1/2616 +0 -0
- package/gdb/base/1/2616_fsm +0 -0
- package/gdb/base/1/2616_vm +0 -0
- package/gdb/base/1/2617 +0 -0
- package/gdb/base/1/2617_fsm +0 -0
- package/gdb/base/1/2617_vm +0 -0
- package/gdb/base/1/2618 +0 -0
- package/gdb/base/1/2618_fsm +0 -0
- package/gdb/base/1/2618_vm +0 -0
- package/gdb/base/1/2619 +0 -0
- package/gdb/base/1/2619_fsm +0 -0
- package/gdb/base/1/2619_vm +0 -0
- package/gdb/base/1/2620 +0 -0
- package/gdb/base/1/2650 +0 -0
- package/gdb/base/1/2651 +0 -0
- package/gdb/base/1/2652 +0 -0
- package/gdb/base/1/2653 +0 -0
- package/gdb/base/1/2654 +0 -0
- package/gdb/base/1/2655 +0 -0
- package/gdb/base/1/2656 +0 -0
- package/gdb/base/1/2657 +0 -0
- package/gdb/base/1/2658 +0 -0
- package/gdb/base/1/2659 +0 -0
- package/gdb/base/1/2660 +0 -0
- package/gdb/base/1/2661 +0 -0
- package/gdb/base/1/2662 +0 -0
- package/gdb/base/1/2663 +0 -0
- package/gdb/base/1/2664 +0 -0
- package/gdb/base/1/2665 +0 -0
- package/gdb/base/1/2666 +0 -0
- package/gdb/base/1/2667 +0 -0
- package/gdb/base/1/2668 +0 -0
- package/gdb/base/1/2669 +0 -0
- package/gdb/base/1/2670 +0 -0
- package/gdb/base/1/2673 +0 -0
- package/gdb/base/1/2673_fsm +0 -0
- package/gdb/base/1/2674 +0 -0
- package/gdb/base/1/2674_fsm +0 -0
- package/gdb/base/1/2675 +0 -0
- package/gdb/base/1/2678 +0 -0
- package/gdb/base/1/2679 +0 -0
- package/gdb/base/1/2680 +0 -0
- package/gdb/base/1/2681 +0 -0
- package/gdb/base/1/2682 +0 -0
- package/gdb/base/1/2683 +0 -0
- package/gdb/base/1/2684 +0 -0
- package/gdb/base/1/2685 +0 -0
- package/gdb/base/1/2686 +0 -0
- package/gdb/base/1/2687 +0 -0
- package/gdb/base/1/2688 +0 -0
- package/gdb/base/1/2689 +0 -0
- package/gdb/base/1/2690 +0 -0
- package/gdb/base/1/2691 +0 -0
- package/gdb/base/1/2692 +0 -0
- package/gdb/base/1/2693 +0 -0
- package/gdb/base/1/2696 +0 -0
- package/gdb/base/1/2699 +0 -0
- package/gdb/base/1/2701 +0 -0
- package/gdb/base/1/2702 +0 -0
- package/gdb/base/1/2703 +0 -0
- package/gdb/base/1/2704 +0 -0
- package/gdb/base/1/2753 +0 -0
- package/gdb/base/1/2753_fsm +0 -0
- package/gdb/base/1/2753_vm +0 -0
- package/gdb/base/1/2754 +0 -0
- package/gdb/base/1/2755 +0 -0
- package/gdb/base/1/2756 +0 -0
- package/gdb/base/1/2757 +0 -0
- package/gdb/base/1/2830 +0 -0
- package/gdb/base/1/2831 +0 -0
- package/gdb/base/1/2832 +0 -0
- package/gdb/base/1/2833 +0 -0
- package/gdb/base/1/2834 +0 -0
- package/gdb/base/1/2835 +0 -0
- package/gdb/base/1/2836 +0 -0
- package/gdb/base/1/2836_fsm +0 -0
- package/gdb/base/1/2836_vm +0 -0
- package/gdb/base/1/2837 +0 -0
- package/gdb/base/1/2838 +0 -0
- package/gdb/base/1/2838_fsm +0 -0
- package/gdb/base/1/2838_vm +0 -0
- package/gdb/base/1/2839 +0 -0
- package/gdb/base/1/2840 +0 -0
- package/gdb/base/1/2840_fsm +0 -0
- package/gdb/base/1/2840_vm +0 -0
- package/gdb/base/1/2841 +0 -0
- package/gdb/base/1/2995 +0 -0
- package/gdb/base/1/2996 +0 -0
- package/gdb/base/1/3079 +0 -0
- package/gdb/base/1/3079_fsm +0 -0
- package/gdb/base/1/3079_vm +0 -0
- package/gdb/base/1/3080 +0 -0
- package/gdb/base/1/3081 +0 -0
- package/gdb/base/1/3085 +0 -0
- package/gdb/base/1/3118 +0 -0
- package/gdb/base/1/3119 +0 -0
- package/gdb/base/1/3164 +0 -0
- package/gdb/base/1/3256 +0 -0
- package/gdb/base/1/3257 +0 -0
- package/gdb/base/1/3258 +0 -0
- package/gdb/base/1/3350 +0 -0
- package/gdb/base/1/3351 +0 -0
- package/gdb/base/1/3379 +0 -0
- package/gdb/base/1/3380 +0 -0
- package/gdb/base/1/3381 +0 -0
- package/gdb/base/1/3394 +0 -0
- package/gdb/base/1/3394_fsm +0 -0
- package/gdb/base/1/3394_vm +0 -0
- package/gdb/base/1/3395 +0 -0
- package/gdb/base/1/3429 +0 -0
- package/gdb/base/1/3430 +0 -0
- package/gdb/base/1/3431 +0 -0
- package/gdb/base/1/3433 +0 -0
- package/gdb/base/1/3439 +0 -0
- package/gdb/base/1/3440 +0 -0
- package/gdb/base/1/3455 +0 -0
- package/gdb/base/1/3456 +0 -0
- package/gdb/base/1/3456_fsm +0 -0
- package/gdb/base/1/3456_vm +0 -0
- package/gdb/base/1/3466 +0 -0
- package/gdb/base/1/3467 +0 -0
- package/gdb/base/1/3468 +0 -0
- package/gdb/base/1/3501 +0 -0
- package/gdb/base/1/3502 +0 -0
- package/gdb/base/1/3503 +0 -0
- package/gdb/base/1/3534 +0 -0
- package/gdb/base/1/3541 +0 -0
- package/gdb/base/1/3541_fsm +0 -0
- package/gdb/base/1/3541_vm +0 -0
- package/gdb/base/1/3542 +0 -0
- package/gdb/base/1/3574 +0 -0
- package/gdb/base/1/3575 +0 -0
- package/gdb/base/1/3576 +0 -0
- package/gdb/base/1/3596 +0 -0
- package/gdb/base/1/3597 +0 -0
- package/gdb/base/1/3598 +0 -0
- package/gdb/base/1/3599 +0 -0
- package/gdb/base/1/3600 +0 -0
- package/gdb/base/1/3600_fsm +0 -0
- package/gdb/base/1/3600_vm +0 -0
- package/gdb/base/1/3601 +0 -0
- package/gdb/base/1/3601_fsm +0 -0
- package/gdb/base/1/3601_vm +0 -0
- package/gdb/base/1/3602 +0 -0
- package/gdb/base/1/3602_fsm +0 -0
- package/gdb/base/1/3602_vm +0 -0
- package/gdb/base/1/3603 +0 -0
- package/gdb/base/1/3603_fsm +0 -0
- package/gdb/base/1/3603_vm +0 -0
- package/gdb/base/1/3604 +0 -0
- package/gdb/base/1/3605 +0 -0
- package/gdb/base/1/3606 +0 -0
- package/gdb/base/1/3607 +0 -0
- package/gdb/base/1/3608 +0 -0
- package/gdb/base/1/3609 +0 -0
- package/gdb/base/1/3712 +0 -0
- package/gdb/base/1/3764 +0 -0
- package/gdb/base/1/3764_fsm +0 -0
- package/gdb/base/1/3764_vm +0 -0
- package/gdb/base/1/3766 +0 -0
- package/gdb/base/1/3767 +0 -0
- package/gdb/base/1/3997 +0 -0
- package/gdb/base/1/4143 +0 -0
- package/gdb/base/1/4144 +0 -0
- package/gdb/base/1/4145 +0 -0
- package/gdb/base/1/4146 +0 -0
- package/gdb/base/1/4147 +0 -0
- package/gdb/base/1/4148 +0 -0
- package/gdb/base/1/4149 +0 -0
- package/gdb/base/1/4150 +0 -0
- package/gdb/base/1/4151 +0 -0
- package/gdb/base/1/4152 +0 -0
- package/gdb/base/1/4153 +0 -0
- package/gdb/base/1/4154 +0 -0
- package/gdb/base/1/4155 +0 -0
- package/gdb/base/1/4156 +0 -0
- package/gdb/base/1/4157 +0 -0
- package/gdb/base/1/4158 +0 -0
- package/gdb/base/1/4159 +0 -0
- package/gdb/base/1/4160 +0 -0
- package/gdb/base/1/4163 +0 -0
- package/gdb/base/1/4164 +0 -0
- package/gdb/base/1/4165 +0 -0
- package/gdb/base/1/4166 +0 -0
- package/gdb/base/1/4167 +0 -0
- package/gdb/base/1/4168 +0 -0
- package/gdb/base/1/4169 +0 -0
- package/gdb/base/1/4170 +0 -0
- package/gdb/base/1/4171 +0 -0
- package/gdb/base/1/4172 +0 -0
- package/gdb/base/1/4173 +0 -0
- package/gdb/base/1/4174 +0 -0
- package/gdb/base/1/5002 +0 -0
- package/gdb/base/1/548 +0 -0
- package/gdb/base/1/549 +0 -0
- package/gdb/base/1/6102 +0 -0
- package/gdb/base/1/6104 +0 -0
- package/gdb/base/1/6106 +0 -0
- package/gdb/base/1/6110 +0 -0
- package/gdb/base/1/6111 +0 -0
- package/gdb/base/1/6112 +0 -0
- package/gdb/base/1/6113 +0 -0
- package/gdb/base/1/6117 +0 -0
- package/gdb/base/1/6175 +0 -0
- package/gdb/base/1/6176 +0 -0
- package/gdb/base/1/826 +0 -0
- package/gdb/base/1/827 +0 -0
- package/gdb/base/1/828 +0 -0
- package/gdb/base/1/PG_VERSION +0 -1
- package/gdb/base/1/pg_filenode.map +0 -0
- package/gdb/base/14033/112 +0 -0
- package/gdb/base/14033/113 +0 -0
- package/gdb/base/14033/1247 +0 -0
- package/gdb/base/14033/1247_fsm +0 -0
- package/gdb/base/14033/1247_vm +0 -0
- package/gdb/base/14033/1249 +0 -0
- package/gdb/base/14033/1249_fsm +0 -0
- package/gdb/base/14033/1249_vm +0 -0
- package/gdb/base/14033/1255 +0 -0
- package/gdb/base/14033/1255_fsm +0 -0
- package/gdb/base/14033/1255_vm +0 -0
- package/gdb/base/14033/1259 +0 -0
- package/gdb/base/14033/1259_fsm +0 -0
- package/gdb/base/14033/1259_vm +0 -0
- package/gdb/base/14033/13852 +0 -0
- package/gdb/base/14033/13852_fsm +0 -0
- package/gdb/base/14033/13852_vm +0 -0
- package/gdb/base/14033/13855 +0 -0
- package/gdb/base/14033/13856 +0 -0
- package/gdb/base/14033/13857 +0 -0
- package/gdb/base/14033/13857_fsm +0 -0
- package/gdb/base/14033/13857_vm +0 -0
- package/gdb/base/14033/13860 +0 -0
- package/gdb/base/14033/13861 +0 -0
- package/gdb/base/14033/13862 +0 -0
- package/gdb/base/14033/13862_fsm +0 -0
- package/gdb/base/14033/13862_vm +0 -0
- package/gdb/base/14033/13865 +0 -0
- package/gdb/base/14033/13866 +0 -0
- package/gdb/base/14033/13867 +0 -0
- package/gdb/base/14033/13867_fsm +0 -0
- package/gdb/base/14033/13867_vm +0 -0
- package/gdb/base/14033/13870 +0 -0
- package/gdb/base/14033/13871 +0 -0
- package/gdb/base/14033/1417 +0 -0
- package/gdb/base/14033/1418 +0 -0
- package/gdb/base/14033/174 +0 -0
- package/gdb/base/14033/175 +0 -0
- package/gdb/base/14033/2187 +0 -0
- package/gdb/base/14033/2224 +0 -0
- package/gdb/base/14033/2228 +0 -0
- package/gdb/base/14033/2328 +0 -0
- package/gdb/base/14033/2336 +0 -0
- package/gdb/base/14033/2337 +0 -0
- package/gdb/base/14033/2579 +0 -0
- package/gdb/base/14033/2600 +0 -0
- package/gdb/base/14033/2600_fsm +0 -0
- package/gdb/base/14033/2600_vm +0 -0
- package/gdb/base/14033/2601 +0 -0
- package/gdb/base/14033/2601_fsm +0 -0
- package/gdb/base/14033/2601_vm +0 -0
- package/gdb/base/14033/2602 +0 -0
- package/gdb/base/14033/2602_fsm +0 -0
- package/gdb/base/14033/2602_vm +0 -0
- package/gdb/base/14033/2603 +0 -0
- package/gdb/base/14033/2603_fsm +0 -0
- package/gdb/base/14033/2603_vm +0 -0
- package/gdb/base/14033/2604 +0 -0
- package/gdb/base/14033/2605 +0 -0
- package/gdb/base/14033/2605_fsm +0 -0
- package/gdb/base/14033/2605_vm +0 -0
- package/gdb/base/14033/2606 +0 -0
- package/gdb/base/14033/2606_fsm +0 -0
- package/gdb/base/14033/2606_vm +0 -0
- package/gdb/base/14033/2607 +0 -0
- package/gdb/base/14033/2607_fsm +0 -0
- package/gdb/base/14033/2607_vm +0 -0
- package/gdb/base/14033/2608 +0 -0
- package/gdb/base/14033/2608_fsm +0 -0
- package/gdb/base/14033/2608_vm +0 -0
- package/gdb/base/14033/2609 +0 -0
- package/gdb/base/14033/2609_fsm +0 -0
- package/gdb/base/14033/2609_vm +0 -0
- package/gdb/base/14033/2610 +0 -0
- package/gdb/base/14033/2610_fsm +0 -0
- package/gdb/base/14033/2610_vm +0 -0
- package/gdb/base/14033/2611 +0 -0
- package/gdb/base/14033/2612 +0 -0
- package/gdb/base/14033/2612_fsm +0 -0
- package/gdb/base/14033/2612_vm +0 -0
- package/gdb/base/14033/2613 +0 -0
- package/gdb/base/14033/2615 +0 -0
- package/gdb/base/14033/2615_fsm +0 -0
- package/gdb/base/14033/2615_vm +0 -0
- package/gdb/base/14033/2616 +0 -0
- package/gdb/base/14033/2616_fsm +0 -0
- package/gdb/base/14033/2616_vm +0 -0
- package/gdb/base/14033/2617 +0 -0
- package/gdb/base/14033/2617_fsm +0 -0
- package/gdb/base/14033/2617_vm +0 -0
- package/gdb/base/14033/2618 +0 -0
- package/gdb/base/14033/2618_fsm +0 -0
- package/gdb/base/14033/2618_vm +0 -0
- package/gdb/base/14033/2619 +0 -0
- package/gdb/base/14033/2619_fsm +0 -0
- package/gdb/base/14033/2619_vm +0 -0
- package/gdb/base/14033/2620 +0 -0
- package/gdb/base/14033/2650 +0 -0
- package/gdb/base/14033/2651 +0 -0
- package/gdb/base/14033/2652 +0 -0
- package/gdb/base/14033/2653 +0 -0
- package/gdb/base/14033/2654 +0 -0
- package/gdb/base/14033/2655 +0 -0
- package/gdb/base/14033/2656 +0 -0
- package/gdb/base/14033/2657 +0 -0
- package/gdb/base/14033/2658 +0 -0
- package/gdb/base/14033/2659 +0 -0
- package/gdb/base/14033/2660 +0 -0
- package/gdb/base/14033/2661 +0 -0
- package/gdb/base/14033/2662 +0 -0
- package/gdb/base/14033/2663 +0 -0
- package/gdb/base/14033/2664 +0 -0
- package/gdb/base/14033/2665 +0 -0
- package/gdb/base/14033/2666 +0 -0
- package/gdb/base/14033/2667 +0 -0
- package/gdb/base/14033/2668 +0 -0
- package/gdb/base/14033/2669 +0 -0
- package/gdb/base/14033/2670 +0 -0
- package/gdb/base/14033/2673 +0 -0
- package/gdb/base/14033/2673_fsm +0 -0
- package/gdb/base/14033/2674 +0 -0
- package/gdb/base/14033/2674_fsm +0 -0
- package/gdb/base/14033/2675 +0 -0
- package/gdb/base/14033/2678 +0 -0
- package/gdb/base/14033/2679 +0 -0
- package/gdb/base/14033/2680 +0 -0
- package/gdb/base/14033/2681 +0 -0
- package/gdb/base/14033/2682 +0 -0
- package/gdb/base/14033/2683 +0 -0
- package/gdb/base/14033/2684 +0 -0
- package/gdb/base/14033/2685 +0 -0
- package/gdb/base/14033/2686 +0 -0
- package/gdb/base/14033/2687 +0 -0
- package/gdb/base/14033/2688 +0 -0
- package/gdb/base/14033/2689 +0 -0
- package/gdb/base/14033/2690 +0 -0
- package/gdb/base/14033/2691 +0 -0
- package/gdb/base/14033/2692 +0 -0
- package/gdb/base/14033/2693 +0 -0
- package/gdb/base/14033/2696 +0 -0
- package/gdb/base/14033/2699 +0 -0
- package/gdb/base/14033/2701 +0 -0
- package/gdb/base/14033/2702 +0 -0
- package/gdb/base/14033/2703 +0 -0
- package/gdb/base/14033/2704 +0 -0
- package/gdb/base/14033/2753 +0 -0
- package/gdb/base/14033/2753_fsm +0 -0
- package/gdb/base/14033/2753_vm +0 -0
- package/gdb/base/14033/2754 +0 -0
- package/gdb/base/14033/2755 +0 -0
- package/gdb/base/14033/2756 +0 -0
- package/gdb/base/14033/2757 +0 -0
- package/gdb/base/14033/2830 +0 -0
- package/gdb/base/14033/2831 +0 -0
- package/gdb/base/14033/2832 +0 -0
- package/gdb/base/14033/2833 +0 -0
- package/gdb/base/14033/2834 +0 -0
- package/gdb/base/14033/2835 +0 -0
- package/gdb/base/14033/2836 +0 -0
- package/gdb/base/14033/2836_fsm +0 -0
- package/gdb/base/14033/2836_vm +0 -0
- package/gdb/base/14033/2837 +0 -0
- package/gdb/base/14033/2838 +0 -0
- package/gdb/base/14033/2838_fsm +0 -0
- package/gdb/base/14033/2838_vm +0 -0
- package/gdb/base/14033/2839 +0 -0
- package/gdb/base/14033/2840 +0 -0
- package/gdb/base/14033/2840_fsm +0 -0
- package/gdb/base/14033/2840_vm +0 -0
- package/gdb/base/14033/2841 +0 -0
- package/gdb/base/14033/2995 +0 -0
- package/gdb/base/14033/2996 +0 -0
- package/gdb/base/14033/3079 +0 -0
- package/gdb/base/14033/3079_fsm +0 -0
- package/gdb/base/14033/3079_vm +0 -0
- package/gdb/base/14033/3080 +0 -0
- package/gdb/base/14033/3081 +0 -0
- package/gdb/base/14033/3085 +0 -0
- package/gdb/base/14033/3118 +0 -0
- package/gdb/base/14033/3119 +0 -0
- package/gdb/base/14033/3164 +0 -0
- package/gdb/base/14033/3256 +0 -0
- package/gdb/base/14033/3257 +0 -0
- package/gdb/base/14033/3258 +0 -0
- package/gdb/base/14033/3350 +0 -0
- package/gdb/base/14033/3351 +0 -0
- package/gdb/base/14033/3379 +0 -0
- package/gdb/base/14033/3380 +0 -0
- package/gdb/base/14033/3381 +0 -0
- package/gdb/base/14033/3394 +0 -0
- package/gdb/base/14033/3394_fsm +0 -0
- package/gdb/base/14033/3394_vm +0 -0
- package/gdb/base/14033/3395 +0 -0
- package/gdb/base/14033/3429 +0 -0
- package/gdb/base/14033/3430 +0 -0
- package/gdb/base/14033/3431 +0 -0
- package/gdb/base/14033/3433 +0 -0
- package/gdb/base/14033/3439 +0 -0
- package/gdb/base/14033/3440 +0 -0
- package/gdb/base/14033/3455 +0 -0
- package/gdb/base/14033/3456 +0 -0
- package/gdb/base/14033/3456_fsm +0 -0
- package/gdb/base/14033/3456_vm +0 -0
- package/gdb/base/14033/3466 +0 -0
- package/gdb/base/14033/3467 +0 -0
- package/gdb/base/14033/3468 +0 -0
- package/gdb/base/14033/3501 +0 -0
- package/gdb/base/14033/3502 +0 -0
- package/gdb/base/14033/3503 +0 -0
- package/gdb/base/14033/3534 +0 -0
- package/gdb/base/14033/3541 +0 -0
- package/gdb/base/14033/3541_fsm +0 -0
- package/gdb/base/14033/3541_vm +0 -0
- package/gdb/base/14033/3542 +0 -0
- package/gdb/base/14033/3574 +0 -0
- package/gdb/base/14033/3575 +0 -0
- package/gdb/base/14033/3576 +0 -0
- package/gdb/base/14033/3596 +0 -0
- package/gdb/base/14033/3597 +0 -0
- package/gdb/base/14033/3598 +0 -0
- package/gdb/base/14033/3599 +0 -0
- package/gdb/base/14033/3600 +0 -0
- package/gdb/base/14033/3600_fsm +0 -0
- package/gdb/base/14033/3600_vm +0 -0
- package/gdb/base/14033/3601 +0 -0
- package/gdb/base/14033/3601_fsm +0 -0
- package/gdb/base/14033/3601_vm +0 -0
- package/gdb/base/14033/3602 +0 -0
- package/gdb/base/14033/3602_fsm +0 -0
- package/gdb/base/14033/3602_vm +0 -0
- package/gdb/base/14033/3603 +0 -0
- package/gdb/base/14033/3603_fsm +0 -0
- package/gdb/base/14033/3603_vm +0 -0
- package/gdb/base/14033/3604 +0 -0
- package/gdb/base/14033/3605 +0 -0
- package/gdb/base/14033/3606 +0 -0
- package/gdb/base/14033/3607 +0 -0
- package/gdb/base/14033/3608 +0 -0
- package/gdb/base/14033/3609 +0 -0
- package/gdb/base/14033/3712 +0 -0
- package/gdb/base/14033/3764 +0 -0
- package/gdb/base/14033/3764_fsm +0 -0
- package/gdb/base/14033/3764_vm +0 -0
- package/gdb/base/14033/3766 +0 -0
- package/gdb/base/14033/3767 +0 -0
- package/gdb/base/14033/3997 +0 -0
- package/gdb/base/14033/4143 +0 -0
- package/gdb/base/14033/4144 +0 -0
- package/gdb/base/14033/4145 +0 -0
- package/gdb/base/14033/4146 +0 -0
- package/gdb/base/14033/4147 +0 -0
- package/gdb/base/14033/4148 +0 -0
- package/gdb/base/14033/4149 +0 -0
- package/gdb/base/14033/4150 +0 -0
- package/gdb/base/14033/4151 +0 -0
- package/gdb/base/14033/4152 +0 -0
- package/gdb/base/14033/4153 +0 -0
- package/gdb/base/14033/4154 +0 -0
- package/gdb/base/14033/4155 +0 -0
- package/gdb/base/14033/4156 +0 -0
- package/gdb/base/14033/4157 +0 -0
- package/gdb/base/14033/4158 +0 -0
- package/gdb/base/14033/4159 +0 -0
- package/gdb/base/14033/4160 +0 -0
- package/gdb/base/14033/4163 +0 -0
- package/gdb/base/14033/4164 +0 -0
- package/gdb/base/14033/4165 +0 -0
- package/gdb/base/14033/4166 +0 -0
- package/gdb/base/14033/4167 +0 -0
- package/gdb/base/14033/4168 +0 -0
- package/gdb/base/14033/4169 +0 -0
- package/gdb/base/14033/4170 +0 -0
- package/gdb/base/14033/4171 +0 -0
- package/gdb/base/14033/4172 +0 -0
- package/gdb/base/14033/4173 +0 -0
- package/gdb/base/14033/4174 +0 -0
- package/gdb/base/14033/5002 +0 -0
- package/gdb/base/14033/548 +0 -0
- package/gdb/base/14033/549 +0 -0
- package/gdb/base/14033/6102 +0 -0
- package/gdb/base/14033/6104 +0 -0
- package/gdb/base/14033/6106 +0 -0
- package/gdb/base/14033/6110 +0 -0
- package/gdb/base/14033/6111 +0 -0
- package/gdb/base/14033/6112 +0 -0
- package/gdb/base/14033/6113 +0 -0
- package/gdb/base/14033/6117 +0 -0
- package/gdb/base/14033/6175 +0 -0
- package/gdb/base/14033/6176 +0 -0
- package/gdb/base/14033/826 +0 -0
- package/gdb/base/14033/827 +0 -0
- package/gdb/base/14033/828 +0 -0
- package/gdb/base/14033/PG_VERSION +0 -1
- package/gdb/base/14033/pg_filenode.map +0 -0
- package/gdb/base/14034/112 +0 -0
- package/gdb/base/14034/113 +0 -0
- package/gdb/base/14034/1247 +0 -0
- package/gdb/base/14034/1247_fsm +0 -0
- package/gdb/base/14034/1247_vm +0 -0
- package/gdb/base/14034/1249 +0 -0
- package/gdb/base/14034/1249_fsm +0 -0
- package/gdb/base/14034/1249_vm +0 -0
- package/gdb/base/14034/1255 +0 -0
- package/gdb/base/14034/1255_fsm +0 -0
- package/gdb/base/14034/1255_vm +0 -0
- package/gdb/base/14034/1259 +0 -0
- package/gdb/base/14034/1259_fsm +0 -0
- package/gdb/base/14034/1259_vm +0 -0
- package/gdb/base/14034/13852 +0 -0
- package/gdb/base/14034/13852_fsm +0 -0
- package/gdb/base/14034/13852_vm +0 -0
- package/gdb/base/14034/13855 +0 -0
- package/gdb/base/14034/13856 +0 -0
- package/gdb/base/14034/13857 +0 -0
- package/gdb/base/14034/13857_fsm +0 -0
- package/gdb/base/14034/13857_vm +0 -0
- package/gdb/base/14034/13860 +0 -0
- package/gdb/base/14034/13861 +0 -0
- package/gdb/base/14034/13862 +0 -0
- package/gdb/base/14034/13862_fsm +0 -0
- package/gdb/base/14034/13862_vm +0 -0
- package/gdb/base/14034/13865 +0 -0
- package/gdb/base/14034/13866 +0 -0
- package/gdb/base/14034/13867 +0 -0
- package/gdb/base/14034/13867_fsm +0 -0
- package/gdb/base/14034/13867_vm +0 -0
- package/gdb/base/14034/13870 +0 -0
- package/gdb/base/14034/13871 +0 -0
- package/gdb/base/14034/1417 +0 -0
- package/gdb/base/14034/1418 +0 -0
- package/gdb/base/14034/16386 +0 -0
- package/gdb/base/14034/16389 +0 -0
- package/gdb/base/14034/16390 +0 -0
- package/gdb/base/14034/16391 +0 -0
- package/gdb/base/14034/16393 +0 -0
- package/gdb/base/14034/16396 +0 -0
- package/gdb/base/14034/16397 +0 -0
- package/gdb/base/14034/16398 +0 -0
- package/gdb/base/14034/16400 +0 -0
- package/gdb/base/14034/16403 +0 -0
- package/gdb/base/14034/16404 +0 -0
- package/gdb/base/14034/16420 +0 -0
- package/gdb/base/14034/16423 +0 -0
- package/gdb/base/14034/16424 +0 -0
- package/gdb/base/14034/16425 +0 -0
- package/gdb/base/14034/16427 +0 -0
- package/gdb/base/14034/16430 +0 -0
- package/gdb/base/14034/16431 +0 -0
- package/gdb/base/14034/16432 +0 -0
- package/gdb/base/14034/16434 +0 -0
- package/gdb/base/14034/16437 +0 -0
- package/gdb/base/14034/16438 +0 -0
- package/gdb/base/14034/16439 +0 -0
- package/gdb/base/14034/16446 +0 -0
- package/gdb/base/14034/16449 +0 -0
- package/gdb/base/14034/16450 +0 -0
- package/gdb/base/14034/16451 +0 -0
- package/gdb/base/14034/16458 +0 -0
- package/gdb/base/14034/16461 +0 -0
- package/gdb/base/14034/16462 +0 -0
- package/gdb/base/14034/16463 +0 -0
- package/gdb/base/14034/16475 +0 -0
- package/gdb/base/14034/16478 +0 -0
- package/gdb/base/14034/16479 +0 -0
- package/gdb/base/14034/16480 +0 -0
- package/gdb/base/14034/174 +0 -0
- package/gdb/base/14034/175 +0 -0
- package/gdb/base/14034/2187 +0 -0
- package/gdb/base/14034/2224 +0 -0
- package/gdb/base/14034/2228 +0 -0
- package/gdb/base/14034/2328 +0 -0
- package/gdb/base/14034/2336 +0 -0
- package/gdb/base/14034/2337 +0 -0
- package/gdb/base/14034/2579 +0 -0
- package/gdb/base/14034/2600 +0 -0
- package/gdb/base/14034/2600_fsm +0 -0
- package/gdb/base/14034/2600_vm +0 -0
- package/gdb/base/14034/2601 +0 -0
- package/gdb/base/14034/2601_fsm +0 -0
- package/gdb/base/14034/2601_vm +0 -0
- package/gdb/base/14034/2602 +0 -0
- package/gdb/base/14034/2602_fsm +0 -0
- package/gdb/base/14034/2602_vm +0 -0
- package/gdb/base/14034/2603 +0 -0
- package/gdb/base/14034/2603_fsm +0 -0
- package/gdb/base/14034/2603_vm +0 -0
- package/gdb/base/14034/2604 +0 -0
- package/gdb/base/14034/2605 +0 -0
- package/gdb/base/14034/2605_fsm +0 -0
- package/gdb/base/14034/2605_vm +0 -0
- package/gdb/base/14034/2606 +0 -0
- package/gdb/base/14034/2606_fsm +0 -0
- package/gdb/base/14034/2606_vm +0 -0
- package/gdb/base/14034/2607 +0 -0
- package/gdb/base/14034/2607_fsm +0 -0
- package/gdb/base/14034/2607_vm +0 -0
- package/gdb/base/14034/2608 +0 -0
- package/gdb/base/14034/2608_fsm +0 -0
- package/gdb/base/14034/2608_vm +0 -0
- package/gdb/base/14034/2609 +0 -0
- package/gdb/base/14034/2609_fsm +0 -0
- package/gdb/base/14034/2609_vm +0 -0
- package/gdb/base/14034/2610 +0 -0
- package/gdb/base/14034/2610_fsm +0 -0
- package/gdb/base/14034/2610_vm +0 -0
- package/gdb/base/14034/2611 +0 -0
- package/gdb/base/14034/2612 +0 -0
- package/gdb/base/14034/2612_fsm +0 -0
- package/gdb/base/14034/2612_vm +0 -0
- package/gdb/base/14034/2613 +0 -0
- package/gdb/base/14034/2615 +0 -0
- package/gdb/base/14034/2615_fsm +0 -0
- package/gdb/base/14034/2615_vm +0 -0
- package/gdb/base/14034/2616 +0 -0
- package/gdb/base/14034/2616_fsm +0 -0
- package/gdb/base/14034/2616_vm +0 -0
- package/gdb/base/14034/2617 +0 -0
- package/gdb/base/14034/2617_fsm +0 -0
- package/gdb/base/14034/2617_vm +0 -0
- package/gdb/base/14034/2618 +0 -0
- package/gdb/base/14034/2618_fsm +0 -0
- package/gdb/base/14034/2618_vm +0 -0
- package/gdb/base/14034/2619 +0 -0
- package/gdb/base/14034/2619_fsm +0 -0
- package/gdb/base/14034/2619_vm +0 -0
- package/gdb/base/14034/2620 +0 -0
- package/gdb/base/14034/2650 +0 -0
- package/gdb/base/14034/2651 +0 -0
- package/gdb/base/14034/2652 +0 -0
- package/gdb/base/14034/2653 +0 -0
- package/gdb/base/14034/2654 +0 -0
- package/gdb/base/14034/2655 +0 -0
- package/gdb/base/14034/2656 +0 -0
- package/gdb/base/14034/2657 +0 -0
- package/gdb/base/14034/2658 +0 -0
- package/gdb/base/14034/2659 +0 -0
- package/gdb/base/14034/2660 +0 -0
- package/gdb/base/14034/2661 +0 -0
- package/gdb/base/14034/2662 +0 -0
- package/gdb/base/14034/2663 +0 -0
- package/gdb/base/14034/2664 +0 -0
- package/gdb/base/14034/2665 +0 -0
- package/gdb/base/14034/2666 +0 -0
- package/gdb/base/14034/2667 +0 -0
- package/gdb/base/14034/2668 +0 -0
- package/gdb/base/14034/2669 +0 -0
- package/gdb/base/14034/2670 +0 -0
- package/gdb/base/14034/2673 +0 -0
- package/gdb/base/14034/2673_fsm +0 -0
- package/gdb/base/14034/2674 +0 -0
- package/gdb/base/14034/2674_fsm +0 -0
- package/gdb/base/14034/2675 +0 -0
- package/gdb/base/14034/2678 +0 -0
- package/gdb/base/14034/2679 +0 -0
- package/gdb/base/14034/2680 +0 -0
- package/gdb/base/14034/2681 +0 -0
- package/gdb/base/14034/2682 +0 -0
- package/gdb/base/14034/2683 +0 -0
- package/gdb/base/14034/2684 +0 -0
- package/gdb/base/14034/2685 +0 -0
- package/gdb/base/14034/2686 +0 -0
- package/gdb/base/14034/2687 +0 -0
- package/gdb/base/14034/2688 +0 -0
- package/gdb/base/14034/2689 +0 -0
- package/gdb/base/14034/2690 +0 -0
- package/gdb/base/14034/2691 +0 -0
- package/gdb/base/14034/2692 +0 -0
- package/gdb/base/14034/2693 +0 -0
- package/gdb/base/14034/2696 +0 -0
- package/gdb/base/14034/2699 +0 -0
- package/gdb/base/14034/2701 +0 -0
- package/gdb/base/14034/2702 +0 -0
- package/gdb/base/14034/2703 +0 -0
- package/gdb/base/14034/2704 +0 -0
- package/gdb/base/14034/2753 +0 -0
- package/gdb/base/14034/2753_fsm +0 -0
- package/gdb/base/14034/2753_vm +0 -0
- package/gdb/base/14034/2754 +0 -0
- package/gdb/base/14034/2755 +0 -0
- package/gdb/base/14034/2756 +0 -0
- package/gdb/base/14034/2757 +0 -0
- package/gdb/base/14034/2830 +0 -0
- package/gdb/base/14034/2831 +0 -0
- package/gdb/base/14034/2832 +0 -0
- package/gdb/base/14034/2833 +0 -0
- package/gdb/base/14034/2834 +0 -0
- package/gdb/base/14034/2835 +0 -0
- package/gdb/base/14034/2836 +0 -0
- package/gdb/base/14034/2836_fsm +0 -0
- package/gdb/base/14034/2836_vm +0 -0
- package/gdb/base/14034/2837 +0 -0
- package/gdb/base/14034/2838 +0 -0
- package/gdb/base/14034/2838_fsm +0 -0
- package/gdb/base/14034/2838_vm +0 -0
- package/gdb/base/14034/2839 +0 -0
- package/gdb/base/14034/2840 +0 -0
- package/gdb/base/14034/2840_fsm +0 -0
- package/gdb/base/14034/2840_vm +0 -0
- package/gdb/base/14034/2841 +0 -0
- package/gdb/base/14034/2995 +0 -0
- package/gdb/base/14034/2996 +0 -0
- package/gdb/base/14034/3079 +0 -0
- package/gdb/base/14034/3079_fsm +0 -0
- package/gdb/base/14034/3079_vm +0 -0
- package/gdb/base/14034/3080 +0 -0
- package/gdb/base/14034/3081 +0 -0
- package/gdb/base/14034/3085 +0 -0
- package/gdb/base/14034/3118 +0 -0
- package/gdb/base/14034/3119 +0 -0
- package/gdb/base/14034/3164 +0 -0
- package/gdb/base/14034/3256 +0 -0
- package/gdb/base/14034/3257 +0 -0
- package/gdb/base/14034/3258 +0 -0
- package/gdb/base/14034/3350 +0 -0
- package/gdb/base/14034/3351 +0 -0
- package/gdb/base/14034/3379 +0 -0
- package/gdb/base/14034/3380 +0 -0
- package/gdb/base/14034/3381 +0 -0
- package/gdb/base/14034/3394 +0 -0
- package/gdb/base/14034/3394_fsm +0 -0
- package/gdb/base/14034/3394_vm +0 -0
- package/gdb/base/14034/3395 +0 -0
- package/gdb/base/14034/3429 +0 -0
- package/gdb/base/14034/3430 +0 -0
- package/gdb/base/14034/3431 +0 -0
- package/gdb/base/14034/3433 +0 -0
- package/gdb/base/14034/3439 +0 -0
- package/gdb/base/14034/3440 +0 -0
- package/gdb/base/14034/3455 +0 -0
- package/gdb/base/14034/3456 +0 -0
- package/gdb/base/14034/3456_fsm +0 -0
- package/gdb/base/14034/3456_vm +0 -0
- package/gdb/base/14034/3466 +0 -0
- package/gdb/base/14034/3467 +0 -0
- package/gdb/base/14034/3468 +0 -0
- package/gdb/base/14034/3501 +0 -0
- package/gdb/base/14034/3502 +0 -0
- package/gdb/base/14034/3503 +0 -0
- package/gdb/base/14034/3534 +0 -0
- package/gdb/base/14034/3541 +0 -0
- package/gdb/base/14034/3541_fsm +0 -0
- package/gdb/base/14034/3541_vm +0 -0
- package/gdb/base/14034/3542 +0 -0
- package/gdb/base/14034/3574 +0 -0
- package/gdb/base/14034/3575 +0 -0
- package/gdb/base/14034/3576 +0 -0
- package/gdb/base/14034/3596 +0 -0
- package/gdb/base/14034/3597 +0 -0
- package/gdb/base/14034/3598 +0 -0
- package/gdb/base/14034/3599 +0 -0
- package/gdb/base/14034/3600 +0 -0
- package/gdb/base/14034/3600_fsm +0 -0
- package/gdb/base/14034/3600_vm +0 -0
- package/gdb/base/14034/3601 +0 -0
- package/gdb/base/14034/3601_fsm +0 -0
- package/gdb/base/14034/3601_vm +0 -0
- package/gdb/base/14034/3602 +0 -0
- package/gdb/base/14034/3602_fsm +0 -0
- package/gdb/base/14034/3602_vm +0 -0
- package/gdb/base/14034/3603 +0 -0
- package/gdb/base/14034/3603_fsm +0 -0
- package/gdb/base/14034/3603_vm +0 -0
- package/gdb/base/14034/3604 +0 -0
- package/gdb/base/14034/3605 +0 -0
- package/gdb/base/14034/3606 +0 -0
- package/gdb/base/14034/3607 +0 -0
- package/gdb/base/14034/3608 +0 -0
- package/gdb/base/14034/3609 +0 -0
- package/gdb/base/14034/3712 +0 -0
- package/gdb/base/14034/3764 +0 -0
- package/gdb/base/14034/3764_fsm +0 -0
- package/gdb/base/14034/3764_vm +0 -0
- package/gdb/base/14034/3766 +0 -0
- package/gdb/base/14034/3767 +0 -0
- package/gdb/base/14034/3997 +0 -0
- package/gdb/base/14034/4143 +0 -0
- package/gdb/base/14034/4144 +0 -0
- package/gdb/base/14034/4145 +0 -0
- package/gdb/base/14034/4146 +0 -0
- package/gdb/base/14034/4147 +0 -0
- package/gdb/base/14034/4148 +0 -0
- package/gdb/base/14034/4149 +0 -0
- package/gdb/base/14034/4150 +0 -0
- package/gdb/base/14034/4151 +0 -0
- package/gdb/base/14034/4152 +0 -0
- package/gdb/base/14034/4153 +0 -0
- package/gdb/base/14034/4154 +0 -0
- package/gdb/base/14034/4155 +0 -0
- package/gdb/base/14034/4156 +0 -0
- package/gdb/base/14034/4157 +0 -0
- package/gdb/base/14034/4158 +0 -0
- package/gdb/base/14034/4159 +0 -0
- package/gdb/base/14034/4160 +0 -0
- package/gdb/base/14034/4163 +0 -0
- package/gdb/base/14034/4164 +0 -0
- package/gdb/base/14034/4165 +0 -0
- package/gdb/base/14034/4166 +0 -0
- package/gdb/base/14034/4167 +0 -0
- package/gdb/base/14034/4168 +0 -0
- package/gdb/base/14034/4169 +0 -0
- package/gdb/base/14034/4170 +0 -0
- package/gdb/base/14034/4171 +0 -0
- package/gdb/base/14034/4172 +0 -0
- package/gdb/base/14034/4173 +0 -0
- package/gdb/base/14034/4174 +0 -0
- package/gdb/base/14034/5002 +0 -0
- package/gdb/base/14034/548 +0 -0
- package/gdb/base/14034/549 +0 -0
- package/gdb/base/14034/6102 +0 -0
- package/gdb/base/14034/6104 +0 -0
- package/gdb/base/14034/6106 +0 -0
- package/gdb/base/14034/6110 +0 -0
- package/gdb/base/14034/6111 +0 -0
- package/gdb/base/14034/6112 +0 -0
- package/gdb/base/14034/6113 +0 -0
- package/gdb/base/14034/6117 +0 -0
- package/gdb/base/14034/6175 +0 -0
- package/gdb/base/14034/6176 +0 -0
- package/gdb/base/14034/826 +0 -0
- package/gdb/base/14034/827 +0 -0
- package/gdb/base/14034/828 +0 -0
- package/gdb/base/14034/PG_VERSION +0 -1
- package/gdb/base/14034/pg_filenode.map +0 -0
- package/gdb/base/14034/pg_internal.init +0 -0
- package/gdb/global/1213 +0 -0
- package/gdb/global/1213_fsm +0 -0
- package/gdb/global/1213_vm +0 -0
- package/gdb/global/1214 +0 -0
- package/gdb/global/1214_fsm +0 -0
- package/gdb/global/1214_vm +0 -0
- package/gdb/global/1232 +0 -0
- package/gdb/global/1233 +0 -0
- package/gdb/global/1260 +0 -0
- package/gdb/global/1260_fsm +0 -0
- package/gdb/global/1260_vm +0 -0
- package/gdb/global/1261 +0 -0
- package/gdb/global/1261_fsm +0 -0
- package/gdb/global/1261_vm +0 -0
- package/gdb/global/1262 +0 -0
- package/gdb/global/1262_fsm +0 -0
- package/gdb/global/1262_vm +0 -0
- package/gdb/global/2396 +0 -0
- package/gdb/global/2396_fsm +0 -0
- package/gdb/global/2396_vm +0 -0
- package/gdb/global/2397 +0 -0
- package/gdb/global/2671 +0 -0
- package/gdb/global/2672 +0 -0
- package/gdb/global/2676 +0 -0
- package/gdb/global/2677 +0 -0
- package/gdb/global/2694 +0 -0
- package/gdb/global/2695 +0 -0
- package/gdb/global/2697 +0 -0
- package/gdb/global/2698 +0 -0
- package/gdb/global/2846 +0 -0
- package/gdb/global/2847 +0 -0
- package/gdb/global/2964 +0 -0
- package/gdb/global/2965 +0 -0
- package/gdb/global/2966 +0 -0
- package/gdb/global/2967 +0 -0
- package/gdb/global/3592 +0 -0
- package/gdb/global/3593 +0 -0
- package/gdb/global/4060 +0 -0
- package/gdb/global/4061 +0 -0
- package/gdb/global/4175 +0 -0
- package/gdb/global/4176 +0 -0
- package/gdb/global/4177 +0 -0
- package/gdb/global/4178 +0 -0
- package/gdb/global/4181 +0 -0
- package/gdb/global/4182 +0 -0
- package/gdb/global/4183 +0 -0
- package/gdb/global/4184 +0 -0
- package/gdb/global/4185 +0 -0
- package/gdb/global/4186 +0 -0
- package/gdb/global/6000 +0 -0
- package/gdb/global/6001 +0 -0
- package/gdb/global/6002 +0 -0
- package/gdb/global/6100 +0 -0
- package/gdb/global/6114 +0 -0
- package/gdb/global/6115 +0 -0
- package/gdb/global/pg_control +0 -0
- package/gdb/global/pg_filenode.map +0 -0
- package/gdb/global/pg_internal.init +0 -0
- package/gdb/pg_hba.conf +0 -98
- package/gdb/pg_ident.conf +0 -42
- package/gdb/pg_logical/replorigin_checkpoint +0 -0
- package/gdb/pg_multixact/members/0000 +0 -0
- package/gdb/pg_multixact/offsets/0000 +0 -0
- package/gdb/pg_stat/db_0.stat +0 -0
- package/gdb/pg_stat/db_14034.stat +0 -0
- package/gdb/pg_stat/global.stat +0 -0
- package/gdb/pg_subtrans/0000 +0 -0
- package/gdb/pg_wal/000000010000000000000001 +0 -0
- package/gdb/pg_xact/0000 +0 -0
- package/gdb/postgresql.auto.conf +0 -2
- package/gdb/postgresql.conf +0 -796
- package/gdb/postmaster.opts +0 -1
- package/server/API Project-7d45e9f24a96.p12 +0 -0
- package/server/grnmap.pem +0 -31
- package/server/grnsight.pem +0 -19
- package/test-files/import-samples/attributes.graphml +0 -40
- package/test-files/import-samples/port.graphml +0 -32
- package/test-files/import-samples/simple.graphml +0 -31
- package/web-client/public/js/grnsight.min.js +0 -2371
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
import os
|
|
2
|
+
import csv
|
|
3
|
+
from sqlalchemy import create_engine
|
|
4
|
+
from sqlalchemy import text
|
|
5
|
+
from constants import Constants
|
|
6
|
+
from utils import Utils
|
|
7
|
+
|
|
8
|
+
PROTEIN_GENE_HEADER = f'Gene ID\tDisplay Gene ID\tSpecies\tTaxon ID'
|
|
9
|
+
GRN_GENE_HEADER = f'Gene ID\tDisplay Gene ID\tSpecies\tTaxon ID\tRegulator'
|
|
10
|
+
|
|
11
|
+
def _get_all_data_from_database_table(database_namespace, table_name):
|
|
12
|
+
db = create_engine(os.environ['DB_URL'])
|
|
13
|
+
with db.connect() as connection:
|
|
14
|
+
result_set = connection.execute(text(f"SELECT * FROM {database_namespace}.{table_name}"))
|
|
15
|
+
return result_set.fetchall()
|
|
16
|
+
|
|
17
|
+
def _get_all_db_genes(database_namespace):
|
|
18
|
+
gene_records = _get_all_data_from_database_table(database_namespace, "gene")
|
|
19
|
+
genes = {}
|
|
20
|
+
for gene in gene_records:
|
|
21
|
+
key = (gene[0], gene[3])
|
|
22
|
+
if len(gene) > 4:
|
|
23
|
+
value = (gene[1], gene[2], gene[4])
|
|
24
|
+
else:
|
|
25
|
+
value = (gene[1], gene[2])
|
|
26
|
+
genes[key] = value
|
|
27
|
+
return genes
|
|
28
|
+
|
|
29
|
+
def _get_all_db_grn_genes():
|
|
30
|
+
return _get_all_db_genes(Constants.GRN_DATABASE_NAMESPACE)
|
|
31
|
+
|
|
32
|
+
def _get_all_db_ppi_genes():
|
|
33
|
+
return _get_all_db_genes(Constants.PPI_DATABASE_NAMESPACE)
|
|
34
|
+
|
|
35
|
+
def _get_all_genes():
|
|
36
|
+
db_grn_genes = _get_all_db_grn_genes()
|
|
37
|
+
db_ppi_genes = _get_all_db_ppi_genes()
|
|
38
|
+
|
|
39
|
+
if not os.path.exists('union-gene-data'):
|
|
40
|
+
os.makedirs('union-gene-data')
|
|
41
|
+
Utils.create_union_file([Constants.PPI_GENE_SOURCE, Constants.GRN_GENE_SOURCE], Constants.GENE_DATA_DIRECTORY)
|
|
42
|
+
genes = db_grn_genes
|
|
43
|
+
|
|
44
|
+
for gene in db_ppi_genes:
|
|
45
|
+
if gene not in genes:
|
|
46
|
+
display_gene_id, species = db_ppi_genes[gene]
|
|
47
|
+
genes[gene] = [display_gene_id, species, False]
|
|
48
|
+
|
|
49
|
+
with open(Constants.GENE_DATA_DIRECTORY, 'r+', encoding="UTF-8") as f:
|
|
50
|
+
i = 0
|
|
51
|
+
reader = csv.reader(f)
|
|
52
|
+
for row in reader:
|
|
53
|
+
if i != 0:
|
|
54
|
+
row = row[0].split('\t')
|
|
55
|
+
gene_id = row[0]
|
|
56
|
+
display_gene_id = row[1]
|
|
57
|
+
species = row[2]
|
|
58
|
+
taxon_id = row[3]
|
|
59
|
+
regulator = row[4].capitalize()
|
|
60
|
+
key = (gene_id, taxon_id)
|
|
61
|
+
value = (display_gene_id, species, regulator)
|
|
62
|
+
if key not in genes:
|
|
63
|
+
genes[key] = value
|
|
64
|
+
elif genes[key][0] != display_gene_id:
|
|
65
|
+
if display_gene_id != "None":
|
|
66
|
+
genes[key] = value
|
|
67
|
+
i+=1
|
|
68
|
+
return genes
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
def get_all_proteins():
|
|
72
|
+
protein_records = _get_all_data_from_database_table(Constants.PPI_DATABASE_NAMESPACE, "protein")
|
|
73
|
+
proteins = {}
|
|
74
|
+
for protein in protein_records:
|
|
75
|
+
key = (protein[0], protein[5])
|
|
76
|
+
value = (protein[1], protein[2], protein[3], protein[4])
|
|
77
|
+
proteins[key] = value
|
|
78
|
+
return proteins
|
|
79
|
+
|
|
80
|
+
def processing_grn_gene_file():
|
|
81
|
+
return _processing_gene_file(_get_all_db_grn_genes(), is_protein=False)
|
|
82
|
+
|
|
83
|
+
def processing_ppi_gene_file():
|
|
84
|
+
return _processing_gene_file(_get_all_db_ppi_genes())
|
|
85
|
+
|
|
86
|
+
def _processing_gene_file(db_genes, is_protein=True):
|
|
87
|
+
print(f'Processing gene')
|
|
88
|
+
missing_genes = {}
|
|
89
|
+
genes_to_update = {}
|
|
90
|
+
all_genes = _get_all_genes()
|
|
91
|
+
for gene in all_genes:
|
|
92
|
+
display_gene_id, species, regulator = all_genes[gene]
|
|
93
|
+
values_for_ppi = (display_gene_id, species)
|
|
94
|
+
values_for_grn = (display_gene_id, species, regulator)
|
|
95
|
+
if gene not in db_genes:
|
|
96
|
+
if is_protein:
|
|
97
|
+
missing_genes[gene] = values_for_ppi
|
|
98
|
+
else:
|
|
99
|
+
missing_genes[gene] = values_for_grn
|
|
100
|
+
elif gene in db_genes and db_genes[gene][0] != display_gene_id:
|
|
101
|
+
if db_genes[gene][0] != "None":
|
|
102
|
+
if is_protein:
|
|
103
|
+
genes_to_update[gene] = values_for_ppi
|
|
104
|
+
else:
|
|
105
|
+
genes_to_update[gene] = values_for_grn
|
|
106
|
+
return missing_genes, genes_to_update
|
|
107
|
+
|
|
108
|
+
def processing_protein_file(file_path, db_proteins):
|
|
109
|
+
print(f'Processing file {file_path}')
|
|
110
|
+
ppi_missing_proteins = {}
|
|
111
|
+
ppi_proteins_to_update = {}
|
|
112
|
+
with open(file_path, 'r+', encoding="UTF-8") as f:
|
|
113
|
+
i = 0
|
|
114
|
+
reader = csv.reader(f)
|
|
115
|
+
for row in reader:
|
|
116
|
+
if i != 0:
|
|
117
|
+
row = row[0].split('\t')
|
|
118
|
+
standard_name = row[0]
|
|
119
|
+
gene_systematic_name = row[1]
|
|
120
|
+
length = float(row[2]) if row[2] != "None" else 0
|
|
121
|
+
molecular_weight = float(row[3]) if row[3] != "None" else 0
|
|
122
|
+
pi = float(row[4]) if row[4] != "None" else 0
|
|
123
|
+
taxon_id = row[5]
|
|
124
|
+
key = (standard_name, taxon_id)
|
|
125
|
+
value = (gene_systematic_name, length, molecular_weight, pi)
|
|
126
|
+
if key not in db_proteins:
|
|
127
|
+
ppi_missing_proteins[key] = value
|
|
128
|
+
elif db_proteins[key] != value:
|
|
129
|
+
ppi_proteins_to_update[key] = value
|
|
130
|
+
i+=1
|
|
131
|
+
return ppi_missing_proteins, ppi_proteins_to_update
|
|
132
|
+
|
|
133
|
+
def create_grn_gene_file(file_path, data):
|
|
134
|
+
_create_gene_file(file_path, GRN_GENE_HEADER, data, is_protein=False)
|
|
135
|
+
|
|
136
|
+
def create_ppi_gene_file(file_path, data):
|
|
137
|
+
_create_gene_file(file_path, PROTEIN_GENE_HEADER, data)
|
|
138
|
+
|
|
139
|
+
def _create_gene_file(file_path, headers, data, is_protein=True):
|
|
140
|
+
print(f'Creating {file_path}\n')
|
|
141
|
+
gene_file = open(file_path, 'w')
|
|
142
|
+
gene_file.write(f'{headers}\n')
|
|
143
|
+
for gene in data:
|
|
144
|
+
if is_protein:
|
|
145
|
+
gene_file.write(f'{gene[0]}\t{data[gene][0]}\t{data[gene][1]}\t{gene[1]}\n')
|
|
146
|
+
else:
|
|
147
|
+
gene_file.write(f'{gene[0]}\t{data[gene][0]}\t{data[gene][1]}\t{gene[1]}\t{data[gene][2]}\n')
|
|
148
|
+
gene_file.close()
|
|
149
|
+
|
|
150
|
+
def create_ppi_protein_file(file_path, data):
|
|
151
|
+
print(f'Creating {file_path}\n')
|
|
152
|
+
protein_file = open(file_path, 'w')
|
|
153
|
+
headers = f'Standard Name\tGene Systematic Name\tLength\tMolecular Weight\tPI\tTaxon ID'
|
|
154
|
+
protein_file.write(f'{headers}\n')
|
|
155
|
+
for protein in data:
|
|
156
|
+
protein_file.write(f'{protein[0]}\t{data[protein][0]}\t{data[protein][1]}\t{data[protein][2]}\t{data[protein][3]}\t{protein[1]}\n')
|
|
157
|
+
protein_file.close()
|
|
158
|
+
|
|
159
|
+
# Processing gene files
|
|
160
|
+
ppi_missing_genes, ppi_genes_to_update = processing_ppi_gene_file()
|
|
161
|
+
grn_missing_genes, grn_genes_to_update = processing_grn_gene_file()
|
|
162
|
+
ppi_missing_proteins, ppi_proteins_to_update = processing_protein_file(Constants.PPI_PROTEIN_TABLE_DATA_DIRECTORY, get_all_proteins())
|
|
163
|
+
create_grn_gene_file(Constants.GRN_MISSING_GENE_DIRECTORY, grn_missing_genes)
|
|
164
|
+
create_grn_gene_file(Constants.GRN_UPDATE_GENE_DIRECTORY, grn_genes_to_update)
|
|
165
|
+
create_ppi_gene_file(Constants.PPI_MISSING_GENE_DIRECTORY, ppi_missing_genes)
|
|
166
|
+
create_ppi_gene_file(Constants.PPI_UPDATE_GENE_DIRECTORY, ppi_genes_to_update)
|
|
167
|
+
create_ppi_protein_file(Constants.PPI_MISSING_PROTEIN_DIRECTORY, ppi_missing_proteins)
|
|
168
|
+
create_ppi_protein_file(Constants.PPI_UPDATE_PROTEIN_DIRECTORY, ppi_proteins_to_update)
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# GRNsettings Database
|
|
2
|
+
The schema of this database lives within this directory.
|
|
3
|
+
|
|
4
|
+
## The basics
|
|
5
|
+
|
|
6
|
+
### Schema
|
|
7
|
+
The default database name is stored within the settings schema on our Postgres database.
|
|
8
|
+
|
|
9
|
+
The schema is located within this directory at the top level of this file `schema.sql`. It creates the schema as well as defining the table located within the settings schema.
|
|
10
|
+
|
|
11
|
+
1. Move to file that contains `schema.sql` file, which is under `database/grnsettings-database` folder
|
|
12
|
+
|
|
13
|
+
2. Load database
|
|
14
|
+
|
|
15
|
+
Example of loading to local database
|
|
16
|
+
|
|
17
|
+
For Windows:
|
|
18
|
+
```
|
|
19
|
+
psql -U postgres -f schema.sql postgresql://localhost/postgres
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
For Mac:
|
|
23
|
+
```
|
|
24
|
+
psql -f schema.sql postgresql://localhost/postgres
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
### Changing the default database name
|
|
28
|
+
|
|
29
|
+
1. In order to change the default database name you would first need to login to the database using the following command:
|
|
30
|
+
|
|
31
|
+
For Windows:
|
|
32
|
+
```
|
|
33
|
+
psql -U postgres <address to database>
|
|
34
|
+
```
|
|
35
|
+
For Mac:
|
|
36
|
+
```
|
|
37
|
+
psql <address to database>
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
2. Then you will need to set your search path to the settings schema using the following command :
|
|
41
|
+
```
|
|
42
|
+
SET SEARCH_PATH TO settings;
|
|
43
|
+
```
|
|
44
|
+
3. After that you will simply delete the current default database name using this command
|
|
45
|
+
```
|
|
46
|
+
DELETE FROM grnsettings;
|
|
47
|
+
```
|
|
48
|
+
4. And then insert the new database name using the following command
|
|
49
|
+
```
|
|
50
|
+
INSERT INTO grnsettings(expression_dataset) VALUES ('the new default database name');
|
|
51
|
+
```
|
|
52
|
+
_The current default database is 'dahlquist_2018'_
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import csv
|
|
2
|
+
from utils import *
|
|
3
|
+
from constants import Constants
|
|
4
|
+
# python3 loader.py | psql postgresql://localhost/postgres
|
|
5
|
+
import os
|
|
6
|
+
|
|
7
|
+
if not os.path.exists('union-gene-data'):
|
|
8
|
+
os.makedirs('union-gene-data')
|
|
9
|
+
|
|
10
|
+
# Get union gene data
|
|
11
|
+
Utils.create_union_file([Constants.EXPRESSION_GENE_SOURCE, Constants.PPI_GENE_SOURCE, Constants.GRN_GENE_SOURCE], Constants.GENE_DATA_DIRECTORY)
|
|
12
|
+
|
|
13
|
+
# Regulatory Network
|
|
14
|
+
Utils.load_sources(Constants.GRN_SOURCE_TABLE_DATA_DIRECTORY, Constants.GRN_DATABASE_NAMESPACE)
|
|
15
|
+
Utils.load_grn_genes(Constants.GRN_GENE_SOURCE, Constants.GRN_DATABASE_NAMESPACE)
|
|
16
|
+
Utils.load_grn_network(Constants.GRN_NETWORK_TABLE_DATA_DIRECTORY, Constants.GRN_DATABASE_NAMESPACE)
|
|
17
|
+
|
|
18
|
+
# Protein-protein-interactions
|
|
19
|
+
Utils.load_sources(Constants.PPI_SOURCE_TABLE_DATA_DIRECTORY, Constants.PPI_DATABASE_NAMESPACE)
|
|
20
|
+
Utils.load_ppi_genes(Constants.PPI_GENE_SOURCE, Constants.PPI_DATABASE_NAMESPACE)
|
|
21
|
+
Utils.load_proteins(Constants.PPI_PROTEIN_TABLE_DATA_DIRECTORY, Constants.PPI_DATABASE_NAMESPACE)
|
|
22
|
+
Utils.load_ppi_network(Constants.PPI_NETWORK_TABLE_DATA_DIRECTORY, Constants.PPI_DATABASE_NAMESPACE)
|
|
23
|
+
|
|
24
|
+
# Expression data
|
|
25
|
+
Utils.load_refs(Constants.EXPRESSION_REFS_TABLE_DATA_DIRECTORY, Constants.EXPRESISON_DATABASE_NAMESPACE)
|
|
26
|
+
Utils.load_expression_genes(Constants.EXPRESSION_GENE_SOURCE, Constants.EXPRESISON_DATABASE_NAMESPACE)
|
|
27
|
+
Utils.load_expression_metadata(Constants.EXPRESSION_METADATA_TABLE_DATA_DIRECTORY, Constants.EXPRESISON_DATABASE_NAMESPACE)
|
|
28
|
+
Utils.load_expression_data(Constants.EXPRESSION_EXPRESSION_TABLE_DATA_DIRECTORY, Constants.EXPRESISON_DATABASE_NAMESPACE)
|
|
29
|
+
Utils.load_production_rates(Constants.EXPRESSION_PRODUCTION_RATE_TABLE_DATA_DIRECTORY, Constants.EXPRESISON_DATABASE_NAMESPACE)
|
|
30
|
+
Utils.load_degradation_rates(Constants.EXPRESSION_DEGRADATION_RATE_TABLE_DATA_DIRECTORY, Constants.EXPRESISON_DATABASE_NAMESPACE)
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import argparse
|
|
2
|
+
from constants import Constants
|
|
3
|
+
from utils import Utils
|
|
4
|
+
|
|
5
|
+
def load_grn_data_into_database():
|
|
6
|
+
Utils.load_sources(Constants.GRN_SOURCE_TABLE_DATA_DIRECTORY, Constants.GRN_DATABASE_NAMESPACE)
|
|
7
|
+
Utils.update_grn_genes(Constants.GRN_UPDATE_GENE_DIRECTORY, Constants.GRN_DATABASE_NAMESPACE)
|
|
8
|
+
Utils.load_grn_genes(Constants.GRN_MISSING_GENE_DIRECTORY, Constants.GRN_DATABASE_NAMESPACE)
|
|
9
|
+
Utils.load_grn_network(Constants.GRN_NETWORK_TABLE_DATA_DIRECTORY, Constants.GRN_DATABASE_NAMESPACE)
|
|
10
|
+
|
|
11
|
+
def load_ppi_data_into_database():
|
|
12
|
+
Utils.load_sources(Constants.PPI_SOURCE_TABLE_DATA_DIRECTORY, Constants.PPI_DATABASE_NAMESPACE)
|
|
13
|
+
Utils.update_ppi_genes(Constants.PPI_UPDATE_GENE_DIRECTORY, Constants.PPI_DATABASE_NAMESPACE)
|
|
14
|
+
Utils.update_ppi_proteins(Constants.PPI_UPDATE_PROTEIN_DIRECTORY, Constants.PPI_DATABASE_NAMESPACE)
|
|
15
|
+
Utils.load_ppi_genes(Constants.PPI_MISSING_GENE_DIRECTORY, Constants.PPI_DATABASE_NAMESPACE)
|
|
16
|
+
Utils.load_proteins(Constants.PPI_MISSING_PROTEIN_DIRECTORY, Constants.PPI_DATABASE_NAMESPACE)
|
|
17
|
+
Utils.load_ppi_network(Constants.PPI_NETWORK_TABLE_DATA_DIRECTORY, Constants.PPI_DATABASE_NAMESPACE)
|
|
18
|
+
|
|
19
|
+
def main():
|
|
20
|
+
# Set up argument parsing
|
|
21
|
+
parser = argparse.ArgumentParser(description="Load data into database for GRN or PPI networks.")
|
|
22
|
+
parser.add_argument('--network', choices=['GRN', 'PPI'], required=True, help="Specify the network type to load data for")
|
|
23
|
+
|
|
24
|
+
# Parse arguments
|
|
25
|
+
args = parser.parse_args()
|
|
26
|
+
|
|
27
|
+
# Execute the relevant operations based on the argument
|
|
28
|
+
if args.network == 'GRN':
|
|
29
|
+
load_grn_data_into_database()
|
|
30
|
+
elif args.network == 'PPI':
|
|
31
|
+
load_ppi_data_into_database()
|
|
32
|
+
else:
|
|
33
|
+
print("Invalid network type. Please choose 'GRN' or 'PPI'.")
|
|
34
|
+
|
|
35
|
+
if __name__ == "__main__":
|
|
36
|
+
main()
|
|
@@ -6,9 +6,9 @@ All files pertaining the network database live within this directory.
|
|
|
6
6
|
|
|
7
7
|
### Schema
|
|
8
8
|
|
|
9
|
-
All network data is stored within the
|
|
9
|
+
All network data is stored within the gene_regulatory_network schema on our Postgres database.
|
|
10
10
|
|
|
11
|
-
The schema is located within this directory at the top level in the file `schema.sql`. It defines the tables located within the
|
|
11
|
+
The schema is located within this directory at the top level in the file `schema.sql`. It defines the tables located within the gene_regulatory_network schema.
|
|
12
12
|
|
|
13
13
|
Usage:
|
|
14
14
|
To load to local database
|
|
@@ -32,10 +32,13 @@ Within the scripts directory, there are the following files:
|
|
|
32
32
|
|
|
33
33
|
- `generate_network.py`
|
|
34
34
|
- `loader.py`
|
|
35
|
+
- `generate_new_network_verion.py`
|
|
36
|
+
- `loader_updates.py`
|
|
35
37
|
- `filter_genes.py`
|
|
36
38
|
- `generate_sgd_network_from_yeastract_network.py`
|
|
37
39
|
|
|
38
|
-
|
|
40
|
+
|
|
41
|
+
#### Network Generator (and data preprocessor) (FOR FRESH DATABASE INSTALLS ONLY)
|
|
39
42
|
|
|
40
43
|
This script (`generate_network.py`) is a two-for-one. It first uses the yeastmine service from the SGD database to query for all regulator genes relating to Saccharomyces cerevisiae. From there it gets all all of the targets for each regulator gene. We then construct two networks from these connections (a regulator by regulator matrix as well as a regulator by target matrix). We also construct the processed loader files, so that they are ready to load using `loader.py`.
|
|
41
44
|
|
|
@@ -47,7 +50,7 @@ Usage:
|
|
|
47
50
|
```
|
|
48
51
|
python3 generate_network.py
|
|
49
52
|
```
|
|
50
|
-
#### Database Loader
|
|
53
|
+
#### Database Loader (FOR FRESH DATABASE INSTALLS ONLY)
|
|
51
54
|
|
|
52
55
|
This script (`loader.py`) is to be used to load your preprocessed genes into the database.
|
|
53
56
|
|
|
@@ -62,6 +65,35 @@ To load to production database
|
|
|
62
65
|
```
|
|
63
66
|
python3 loader.py | psql <address to database>
|
|
64
67
|
```
|
|
68
|
+
#### Network Generator (and data preprocessor) (FOR UPDATES TO EXISTING DATABASE ONLY)
|
|
69
|
+
|
|
70
|
+
This script (`generate_new_network_verion.py`) is similar to its counterpart `generate_network.py`. It gets all existing genes in the database using the environment variable 'DB_URL'. You can set this environment variable on the terminal right before the command. It uses the yeastmine service from the SGD database to query for all regulator genes relating to Saccharomyces cerevisiae. From there it gets all all of the targets for each regulator gene. We then construct two networks from these connections (a regulator by regulator matrix as well as a regulator by target matrix). We then see if the genes in the newly constructed network have any updates (i.e a gene's standard name was set or a new gene was added to the database). We also construct the processed loader files, so that they are ready to load using `loader_updates.py`.
|
|
71
|
+
|
|
72
|
+
The resulting network matrices are located in `script-results/networks` and the resulting processed loader files are located within `script-results/processed-loader-files`
|
|
73
|
+
|
|
74
|
+
Make sure to have all dependencies installed beforehand or you will recieve errors. (pip3 install intermine, tzlocal, etc. [see file for all imports]
|
|
75
|
+
|
|
76
|
+
Usage:
|
|
77
|
+
```
|
|
78
|
+
DB_URL="postgresql://[<db_user>:<password>]@<address to database>/<database name>" python3 generate_new_network_version.py
|
|
79
|
+
```
|
|
80
|
+
#### Database Loader (FOR UPDATES TO EXISTING DATABASE ONLY)
|
|
81
|
+
|
|
82
|
+
This script (`loader_updates.py`) is to be used to load your preprocessed genes into the database.
|
|
83
|
+
|
|
84
|
+
This program generates direct SQL statements from the source files generated by the network generator in order to populate a relational database with those files’ data as well as make any needed updates to existing genes within the database. If necessary you will be prompted to enter a password.
|
|
85
|
+
|
|
86
|
+
Usage:
|
|
87
|
+
To load to local database
|
|
88
|
+
```
|
|
89
|
+
python3 loader_updates.py | psql postgresql://localhost/postgres
|
|
90
|
+
```
|
|
91
|
+
To load to production database
|
|
92
|
+
```
|
|
93
|
+
python3 loader_updates.py | psql -h <grnsight database link> -U <user> <database name>
|
|
94
|
+
|
|
95
|
+
```
|
|
96
|
+
|
|
65
97
|
|
|
66
98
|
#### Filter Genes (beta functionality, not tested)
|
|
67
99
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
CREATE TABLE
|
|
1
|
+
CREATE TABLE gene_regulatory_network.source (
|
|
2
2
|
time_stamp TIMESTAMP WITH TIME ZONE,
|
|
3
3
|
source VARCHAR,
|
|
4
|
-
|
|
4
|
+
display_name VARCHAR,
|
|
5
5
|
PRIMARY KEY(time_stamp, source)
|
|
6
6
|
);
|
|
7
7
|
|
|
8
|
-
CREATE TABLE
|
|
8
|
+
CREATE TABLE gene_regulatory_network.gene (
|
|
9
9
|
gene_id VARCHAR, -- systematic like name
|
|
10
10
|
display_gene_id VARCHAR, -- standard like name
|
|
11
11
|
species VARCHAR,
|
|
@@ -13,13 +13,13 @@ CREATE TABLE spring2022_network.gene (
|
|
|
13
13
|
regulator BOOLEAN,
|
|
14
14
|
PRIMARY KEY(gene_id, taxon_id)
|
|
15
15
|
);
|
|
16
|
-
CREATE TABLE
|
|
16
|
+
CREATE TABLE gene_regulatory_network.network (
|
|
17
17
|
regulator_gene_id VARCHAR,
|
|
18
18
|
target_gene_id VARCHAR,
|
|
19
19
|
taxon_id VARCHAR,
|
|
20
20
|
time_stamp TIMESTAMP WITH TIME ZONE,
|
|
21
21
|
source VARCHAR,
|
|
22
|
-
FOREIGN KEY (regulator_gene_id, taxon_id) REFERENCES
|
|
23
|
-
FOREIGN KEY (target_gene_id, taxon_id) REFERENCES
|
|
24
|
-
FOREIGN KEY (time_stamp, source) REFERENCES
|
|
22
|
+
FOREIGN KEY (regulator_gene_id, taxon_id) REFERENCES gene_regulatory_network.gene(gene_id, taxon_id),
|
|
23
|
+
FOREIGN KEY (target_gene_id, taxon_id) REFERENCES gene_regulatory_network_testing.gene(gene_id, taxon_id),
|
|
24
|
+
FOREIGN KEY (time_stamp, source) REFERENCES gene_regulatory_network_testing.source(time_stamp, source)
|
|
25
25
|
);
|
|
@@ -111,36 +111,28 @@ for regulator in regulators_to_targets:
|
|
|
111
111
|
if regulator != None:
|
|
112
112
|
regulators_list.append(regulator)
|
|
113
113
|
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
regulator_to_regulator_file.write(f'{headers}\n')
|
|
130
|
-
for target in targets:
|
|
131
|
-
result = create_regulator_to_target_row(target, regulators_to_targets)
|
|
132
|
-
if result != False:
|
|
133
|
-
regulator_to_regulator_file.write(f'{result}\n')
|
|
134
|
-
regulator_to_regulator_file.close()
|
|
135
|
-
|
|
136
|
-
|
|
114
|
+
def createMatrix(fileName: str):
|
|
115
|
+
statusMessage: str = 'Creating REGULATORS TO TARGETS MATRIX\n' if fileName == REGULATORS_TO_TARGETS_MATRIX else 'Creating REGULATORS TO REGULATORS MATRIX\n'
|
|
116
|
+
print(statusMessage)
|
|
117
|
+
regulator_to_target_file = open(fileName, 'w')
|
|
118
|
+
headers = "cols regulators/rows targets\t"
|
|
119
|
+
headers += '\t'.join(regulators_list)
|
|
120
|
+
regulator_to_target_file.write(f'{headers}\n')
|
|
121
|
+
for target in targets:
|
|
122
|
+
result = create_regulator_to_target_row(target, regulators_to_targets)
|
|
123
|
+
if result:
|
|
124
|
+
regulator_to_target_file.write(f'{result}\n')
|
|
125
|
+
regulator_to_target_file.close()
|
|
126
|
+
|
|
127
|
+
createMatrix(REGULATORS_TO_TARGETS_MATRIX)
|
|
128
|
+
createMatrix(REGULATORS_TO_REGULATORS_MATRIX)
|
|
137
129
|
|
|
138
130
|
# Create loader-files
|
|
139
131
|
|
|
140
132
|
# Source Table
|
|
141
133
|
|
|
142
134
|
SOURCE_DESTINATION = '../script-results/processed-loader-files/source.csv'
|
|
143
|
-
timestamp = datetime.datetime.now(datetime.timezone.utc)
|
|
135
|
+
timestamp = datetime.datetime.now(datetime.timezone.utc).replace(microsecond=0)
|
|
144
136
|
|
|
145
137
|
source = "YeastMine - Saccharomyces Genome Database"
|
|
146
138
|
display_name = "Yeastmine - SGD"
|
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
from __future__ import print_function
|
|
2
|
+
|
|
3
|
+
from intermine.webservice import Service
|
|
4
|
+
service = Service("https://yeastmine.yeastgenome.org/yeastmine/service")
|
|
5
|
+
from sqlalchemy import create_engine
|
|
6
|
+
|
|
7
|
+
import csv
|
|
8
|
+
import re
|
|
9
|
+
import sys
|
|
10
|
+
import os
|
|
11
|
+
import datetime
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
def get_all_genes():
|
|
15
|
+
db = create_engine(os.environ['DB_URL'])
|
|
16
|
+
|
|
17
|
+
with db.connect() as connection:
|
|
18
|
+
result_set = connection.execute(
|
|
19
|
+
f"""
|
|
20
|
+
SELECT display_gene_id, gene_id FROM gene_regulatory_network.gene
|
|
21
|
+
""")
|
|
22
|
+
result = result_set.fetchall()
|
|
23
|
+
return list(result)
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
# Get Network Data from Yeastmine
|
|
28
|
+
|
|
29
|
+
query = service.new_query("Gene")
|
|
30
|
+
|
|
31
|
+
query.add_view(
|
|
32
|
+
"primaryIdentifier", "secondaryIdentifier", "symbol", "name", "sgdAlias",
|
|
33
|
+
"regulationSummary.summaryParagraph",
|
|
34
|
+
"regulationSummary.publications.pubMedId",
|
|
35
|
+
"regulationSummary.publications.citation"
|
|
36
|
+
)
|
|
37
|
+
query.outerjoin("regulationSummary.publications")
|
|
38
|
+
|
|
39
|
+
regulators = {}
|
|
40
|
+
all_genes = {}
|
|
41
|
+
print("COLLECTING REGULATORS\n")
|
|
42
|
+
for row in query.rows():
|
|
43
|
+
systematic_name = row["secondaryIdentifier"]
|
|
44
|
+
standard_name = row["symbol"]
|
|
45
|
+
if standard_name == None:
|
|
46
|
+
standard_name = systematic_name
|
|
47
|
+
|
|
48
|
+
regulators[standard_name] = systematic_name
|
|
49
|
+
all_genes[standard_name] = systematic_name
|
|
50
|
+
|
|
51
|
+
regulators_to_targets = {}
|
|
52
|
+
all_targets = {}
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
print("COLLECTING TARGETS\n")
|
|
56
|
+
for regulator in regulators:
|
|
57
|
+
query = service.new_query("Gene")
|
|
58
|
+
query.add_constraint("regulatoryRegions", "TFBindingSite")
|
|
59
|
+
query.add_view(
|
|
60
|
+
"regulatoryRegions.regulator.symbol",
|
|
61
|
+
"regulatoryRegions.regulator.secondaryIdentifier", "symbol",
|
|
62
|
+
"secondaryIdentifier", "regulatoryRegions.regEvidence.ontologyTerm.name",
|
|
63
|
+
"regulatoryRegions.regEvidence.ontologyTerm.identifier",
|
|
64
|
+
"regulatoryRegions.experimentCondition",
|
|
65
|
+
"regulatoryRegions.strainBackground",
|
|
66
|
+
"regulatoryRegions.regulationDirection",
|
|
67
|
+
"regulatoryRegions.publications.pubMedId", "regulatoryRegions.datasource",
|
|
68
|
+
"regulatoryRegions.annotationType"
|
|
69
|
+
)
|
|
70
|
+
query.add_sort_order("Gene.secondaryIdentifier", "ASC")
|
|
71
|
+
query.add_constraint("regulatoryRegions.regulator", "LOOKUP", regulator, "S. cerevisiae", code="A")
|
|
72
|
+
targets = {}
|
|
73
|
+
|
|
74
|
+
for row in query.rows():
|
|
75
|
+
target_systematic_name = row["secondaryIdentifier"]
|
|
76
|
+
target_standard_name = row["symbol"]
|
|
77
|
+
if target_standard_name == None:
|
|
78
|
+
target_standard_name = target_systematic_name
|
|
79
|
+
targets[target_standard_name] = target_systematic_name
|
|
80
|
+
all_targets[target_standard_name] = target_systematic_name
|
|
81
|
+
all_genes[target_standard_name] = target_systematic_name
|
|
82
|
+
|
|
83
|
+
regulators_to_targets[regulator] = { "systematic_name": regulators[regulator], "targets": targets}
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
def create_regulator_to_target_row(target, all_regulators):
|
|
88
|
+
result = "" + target
|
|
89
|
+
for regulator in all_regulators:
|
|
90
|
+
if target in all_regulators[regulator]["targets"]:
|
|
91
|
+
result += "\t" + "1"
|
|
92
|
+
else:
|
|
93
|
+
result += "\t" + "0"
|
|
94
|
+
return result
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
# Create files
|
|
98
|
+
|
|
99
|
+
# Create folder paths
|
|
100
|
+
if not os.path.exists('../script-results'):
|
|
101
|
+
os.makedirs('../script-results')
|
|
102
|
+
|
|
103
|
+
if not os.path.exists('../script-results/networks'):
|
|
104
|
+
os.makedirs('../script-results/networks')
|
|
105
|
+
|
|
106
|
+
if not os.path.exists('../script-results/processed-loader-files'):
|
|
107
|
+
os.makedirs('../script-results/processed-loader-files')
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
# Files to be generated
|
|
112
|
+
|
|
113
|
+
# Generate Networks
|
|
114
|
+
|
|
115
|
+
REGULATORS_TO_TARGETS_MATRIX = '../script-results/networks/regulators_to_targets.csv'
|
|
116
|
+
REGULATORS_TO_REGULATORS_MATRIX = '../script-results/networks/regulators_to_regulators.csv'
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
targets = []
|
|
120
|
+
for target in all_targets:
|
|
121
|
+
if target != None:
|
|
122
|
+
targets.append(target)
|
|
123
|
+
|
|
124
|
+
regulators_list = []
|
|
125
|
+
for regulator in regulators_to_targets:
|
|
126
|
+
if regulator != None:
|
|
127
|
+
regulators_list.append(regulator)
|
|
128
|
+
|
|
129
|
+
# this is the same method used in generate_network.py to create Regulators to Targets Matrix and Regulators to Regulators Matrix
|
|
130
|
+
def createMatrix(fileName: str):
|
|
131
|
+
statusMessage: str = 'Creating REGULATORS TO TARGETS MATRIX\n' if fileName == REGULATORS_TO_TARGETS_MATRIX else 'Creating REGULATORS TO REGULATORS MATRIX\n'
|
|
132
|
+
print(statusMessage)
|
|
133
|
+
regulator_to_target_file = open(fileName, 'w')
|
|
134
|
+
headers = "cols regulators/rows targets\t"
|
|
135
|
+
headers += '\t'.join(regulators_list)
|
|
136
|
+
regulator_to_target_file.write(f'{headers}\n')
|
|
137
|
+
for target in targets:
|
|
138
|
+
result = create_regulator_to_target_row(target, regulators_to_targets)
|
|
139
|
+
if result:
|
|
140
|
+
regulator_to_target_file.write(f'{result}\n')
|
|
141
|
+
regulator_to_target_file.close()
|
|
142
|
+
|
|
143
|
+
createMatrix(REGULATORS_TO_TARGETS_MATRIX)
|
|
144
|
+
createMatrix(REGULATORS_TO_REGULATORS_MATRIX)
|
|
145
|
+
|
|
146
|
+
# Create loader-files
|
|
147
|
+
|
|
148
|
+
# Source Table
|
|
149
|
+
|
|
150
|
+
SOURCE_DESTINATION = '../script-results/processed-loader-files/source.csv'
|
|
151
|
+
timestamp = datetime.datetime.now(datetime.timezone.utc).replace(microsecond=0)
|
|
152
|
+
|
|
153
|
+
source = "YeastMine - Saccharomyces Genome Database"
|
|
154
|
+
display_name = "Yeastmine - SGD"
|
|
155
|
+
|
|
156
|
+
source_file = open(SOURCE_DESTINATION, 'w')
|
|
157
|
+
headers = f'Timestamp\tSource\tDisplay Name\n{timestamp}\t{source}\t{display_name}'
|
|
158
|
+
source_file.write(f'{headers}\n')
|
|
159
|
+
source_file.close()
|
|
160
|
+
|
|
161
|
+
# Gene Table
|
|
162
|
+
|
|
163
|
+
GENE_DESTINATION = '../script-results/processed-loader-files/gene.csv'
|
|
164
|
+
|
|
165
|
+
database_genes = {g[1] : g[0] for g in get_all_genes()}
|
|
166
|
+
database_standard_names = [g[0] for g in get_all_genes()]
|
|
167
|
+
database_systematic_names = [g[1] for g in get_all_genes()]
|
|
168
|
+
species = "Saccharomyces cerevisiae"
|
|
169
|
+
taxon_id = "559292"
|
|
170
|
+
genes_to_update = {}
|
|
171
|
+
print(f'Creating gene.csv\n')
|
|
172
|
+
gene_file = open(GENE_DESTINATION, 'w')
|
|
173
|
+
headers = f'Gene ID\tDisplay Gene ID\tSpecies\tTaxon ID\tRegulator'
|
|
174
|
+
gene_file.write(f'{headers}\n')
|
|
175
|
+
for gene in all_genes:
|
|
176
|
+
if gene not in database_standard_names:
|
|
177
|
+
if all_genes[gene] not in database_systematic_names:
|
|
178
|
+
if gene in regulators:
|
|
179
|
+
gene_file.write(f'{all_genes[gene]}\t{gene}\t{species}\t{taxon_id}\ttrue\n')
|
|
180
|
+
else:
|
|
181
|
+
gene_file.write(f'{all_genes[gene]}\t{gene}\t{species}\t{taxon_id}\tfalse\n')
|
|
182
|
+
else:
|
|
183
|
+
# if systematic name is found, then we need to update the gene
|
|
184
|
+
genes_to_update[gene] = all_genes[gene]
|
|
185
|
+
gene_file.close()
|
|
186
|
+
|
|
187
|
+
# Gene Table Updates
|
|
188
|
+
|
|
189
|
+
GENE_UPDATES_DESTINATION = '../script-results/processed-loader-files/gene_update.csv'
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
print(f'Creating gene_update.csv\n')
|
|
193
|
+
gene_file = open(GENE_UPDATES_DESTINATION, 'w')
|
|
194
|
+
headers = f'Gene ID\tDisplay Gene ID\tRegulator'
|
|
195
|
+
gene_file.write(f'{headers}\n')
|
|
196
|
+
for gene in genes_to_update:
|
|
197
|
+
if gene in regulators:
|
|
198
|
+
gene_file.write(f'{all_genes[gene]}\t{gene}\ttrue\n')
|
|
199
|
+
else:
|
|
200
|
+
gene_file.write(f'{all_genes[gene]}\t{gene}\tfalse\n')
|
|
201
|
+
gene_file.close()
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
# Network Table
|
|
205
|
+
|
|
206
|
+
NETWORK_DESTINATION = '../script-results/processed-loader-files/network.csv'
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
print(f'Creating network.csv\n')
|
|
210
|
+
network_file = open(NETWORK_DESTINATION, 'w')
|
|
211
|
+
headers = f'Regulator Gene ID\tTarget Gene ID\tTaxon ID\tTimestamp\tSource'
|
|
212
|
+
network_file.write(f'{headers}\n')
|
|
213
|
+
for gene in regulators_to_targets:
|
|
214
|
+
for target_gene in regulators_to_targets[gene]["targets"]:
|
|
215
|
+
network_file.write(f'{regulators_to_targets[gene]["systematic_name"]}\t{regulators_to_targets[gene]["targets"][target_gene]}\t{taxon_id}\t{timestamp}\t{source}\n')
|
|
216
|
+
network_file.close()
|