grnsight 6.0.7 → 7.2.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.
Files changed (67) hide show
  1. package/.eslintrc.yml +4 -4
  2. package/.github/workflows/node.js.yml +35 -0
  3. package/README.md +1 -1
  4. package/database/README.md +218 -97
  5. package/database/constants.py +42 -0
  6. package/database/filter_update.py +168 -0
  7. package/database/grnsettings-database/README.md +52 -0
  8. package/database/grnsettings-database/schema.sql +4 -0
  9. package/database/loader.py +30 -0
  10. package/database/loader_update.py +36 -0
  11. package/database/network-database/scripts/generate_network.py +15 -23
  12. package/database/network-database/scripts/generate_new_network_version.py +17 -24
  13. package/database/protein-protein-database/README.md +71 -0
  14. package/database/protein-protein-database/schema.sql +37 -0
  15. package/database/protein-protein-database/scripts/generate_protein_network.py +227 -0
  16. package/database/protein-protein-database/scripts/remove_duplicates.sh +4 -0
  17. package/database/utils.py +418 -0
  18. package/package.json +3 -2
  19. package/server/app.js +2 -0
  20. package/server/config/config.js +4 -4
  21. package/server/controllers/additional-sheet-parser.js +2 -1
  22. package/server/controllers/constants.js +5 -0
  23. package/server/controllers/custom-workbook-controller.js +4 -3
  24. package/server/controllers/demo-workbooks.js +1462 -6
  25. package/server/controllers/export-constants.js +3 -2
  26. package/server/controllers/exporters/sif.js +6 -1
  27. package/server/controllers/exporters/xlsx.js +8 -3
  28. package/server/controllers/expression-sheet-parser.js +0 -6
  29. package/server/controllers/grnsettings-database-controller.js +17 -0
  30. package/server/controllers/importers/sif.js +30 -11
  31. package/server/controllers/network-database-controller.js +2 -2
  32. package/server/controllers/network-sheet-parser.js +54 -12
  33. package/server/controllers/protein-database-controller.js +18 -0
  34. package/server/controllers/sif-constants.js +11 -4
  35. package/server/controllers/spreadsheet-controller.js +44 -1
  36. package/server/controllers/workbook-constants.js +21 -4
  37. package/server/dals/expression-dal.js +4 -4
  38. package/server/dals/grnsetting-dal.js +49 -0
  39. package/server/dals/network-dal.js +14 -15
  40. package/server/dals/protein-dal.js +106 -0
  41. package/test/additional-sheet-parser-tests.js +1 -1
  42. package/test/export-tests.js +136 -9
  43. package/test/import-sif-tests.js +67 -13
  44. package/test/test.js +1 -1
  45. package/test-files/additional-sheet-test-files/optimization-parameters-default.xlsx +0 -0
  46. package/test-files/demo-files/18_proteins_81_edges_PPI.xlsx +0 -0
  47. package/test-files/expression-data-test-sheets/expression_sheet_missing_data_ok_export_exact.xlsx +0 -0
  48. package/web-client/config/config.js +4 -4
  49. package/web-client/public/js/api/grnsight-api.js +18 -3
  50. package/web-client/public/js/constants.js +27 -12
  51. package/web-client/public/js/generateNetwork.js +170 -72
  52. package/web-client/public/js/graph.js +424 -161
  53. package/web-client/public/js/grnsight.js +25 -4
  54. package/web-client/public/js/grnstate.js +4 -1
  55. package/web-client/public/js/iframe-coordination.js +3 -3
  56. package/web-client/public/js/setup-handlers.js +76 -61
  57. package/web-client/public/js/setup-load-and-import-handlers.js +32 -7
  58. package/web-client/public/js/update-app.js +119 -28
  59. package/web-client/public/js/upload.js +142 -85
  60. package/web-client/public/js/warnings.js +25 -0
  61. package/web-client/public/lib/bootstrap.file-input/bootstrap.file-input.js +0 -1
  62. package/web-client/public/stylesheets/grnsight.styl +40 -16
  63. package/web-client/views/components/demo.pug +7 -5
  64. package/web-client/views/upload.pug +64 -50
  65. package/database/network-database/scripts/filter_genes.py +0 -76
  66. package/database/network-database/scripts/loader.py +0 -79
  67. package/database/network-database/scripts/loader_updates.py +0 -99
@@ -1,3 +1,5 @@
1
+ const constants = require("./constants");
2
+
1
3
  /* eslint-disable camelcase */
2
4
  var helpers = require(__dirname + "/helpers");
3
5
 
@@ -513,7 +515,7 @@ var demoWorkbook1 = function (path, res, app) {
513
515
  },
514
516
  meta: {
515
517
  data: {
516
- alpha: 0.002,
518
+ alpha: 0.02,
517
519
  kk_max: 1,
518
520
  MaxIter: 100000000,
519
521
  TolFun: 0.000001,
@@ -529,7 +531,8 @@ var demoWorkbook1 = function (path, res, app) {
529
531
  Strain: ["wt", "dcin5", "dgln3", "dhap4", "dhmo1", "dzap1"],
530
532
  simulation_timepoints: [0, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60],
531
533
  species: "Saccharomyces cerevisiae",
532
- taxon_id: 559292
534
+ taxon_id: 559292,
535
+ workbookType: constants.NETWORK_GRN_MODE
533
536
  }
534
537
  },
535
538
  twoColumnSheets: {
@@ -2676,7 +2679,7 @@ var demoWorkbook2 = function (path, res, app) {
2676
2679
  },
2677
2680
  meta: {
2678
2681
  data: {
2679
- alpha: 0.002,
2682
+ alpha: 0.02,
2680
2683
  kk_max: 1,
2681
2684
  MaxIter: 100000000,
2682
2685
  TolFun: 0.000001,
@@ -2692,7 +2695,8 @@ var demoWorkbook2 = function (path, res, app) {
2692
2695
  Strain: ["wt", "dcin5", "dgln3", "dhap4", "dhmo1", "dzap1"],
2693
2696
  simulation_timepoints: [0, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60],
2694
2697
  species: "Saccharomyces cerevisiae",
2695
- taxon_id: 559292
2698
+ taxon_id: 559292,
2699
+ workbookType: constants.NETWORK_GRN_MODE
2696
2700
  }
2697
2701
  },
2698
2702
  twoColumnSheets: {
@@ -4619,7 +4623,8 @@ var demoWorkbook3 = function (path, res, app) {
4619
4623
  MaxFunEval: 1000000,
4620
4624
  TolX: 0.00001,
4621
4625
  species: "Saccharomyces cerevisiae",
4622
- taxon_id: 559292
4626
+ taxon_id: 559292,
4627
+ workbookType: constants.NETWORK_GRN_MODE
4623
4628
  }
4624
4629
  },
4625
4630
  twoColumnSheets: {},
@@ -5680,7 +5685,8 @@ var demoWorkbook4 = function (path, res, app) {
5680
5685
  MaxFunEval: 1000000,
5681
5686
  TolX: 0.00001,
5682
5687
  species: "Saccharomyces cerevisiae",
5683
- taxon_id: 559292
5688
+ taxon_id: 559292,
5689
+ workbookType: constants.NETWORK_GRN_MODE
5684
5690
  }
5685
5691
  },
5686
5692
  twoColumnSheets: {},
@@ -5960,6 +5966,1454 @@ var demoWorkbook4 = function (path, res, app) {
5960
5966
  return processDemo(path, res, app, workbook4);
5961
5967
  };
5962
5968
 
5969
+ var demoWorkbook5 = function (path, res, app) {
5970
+ let workbook5 = {
5971
+ genes: [
5972
+ {
5973
+ name: "Aim32p",
5974
+ },
5975
+ {
5976
+ name: "Ccr4p",
5977
+ },
5978
+ {
5979
+ name: "Erv1p",
5980
+ },
5981
+ {
5982
+ name: "Fbp1p",
5983
+ },
5984
+ {
5985
+ name: "Hsc82p",
5986
+ },
5987
+ {
5988
+ name: "Hsp78p",
5989
+ },
5990
+ {
5991
+ name: "Mia40p",
5992
+ },
5993
+ {
5994
+ name: "Mpt5p",
5995
+ },
5996
+ {
5997
+ name: "Nab2p",
5998
+ },
5999
+ {
6000
+ name: "Osm1p",
6001
+ },
6002
+ {
6003
+ name: "Puf3p",
6004
+ },
6005
+ {
6006
+ name: "Sod2p",
6007
+ },
6008
+ {
6009
+ name: "Srp54p",
6010
+ },
6011
+ {
6012
+ name: "Ssc1p",
6013
+ },
6014
+ {
6015
+ name: "Tim17p",
6016
+ },
6017
+ {
6018
+ name: "Tim22p",
6019
+ },
6020
+ {
6021
+ name: "Tim23p",
6022
+ },
6023
+ {
6024
+ name: "Tim50p",
6025
+ },
6026
+ ],
6027
+ links: [
6028
+ {
6029
+ source: 0,
6030
+ target: 1,
6031
+ value: 1,
6032
+ type: "arrowhead",
6033
+ stroke: "black",
6034
+ },
6035
+ {
6036
+ source: 1,
6037
+ target: 1,
6038
+ value: 1,
6039
+ type: "arrowhead",
6040
+ stroke: "black",
6041
+ },
6042
+ {
6043
+ source: 0,
6044
+ target: 2,
6045
+ value: 1,
6046
+ type: "arrowhead",
6047
+ stroke: "black",
6048
+ },
6049
+ {
6050
+ source: 2,
6051
+ target: 2,
6052
+ value: 1,
6053
+ type: "arrowhead",
6054
+ stroke: "black",
6055
+ },
6056
+ {
6057
+ source: 0,
6058
+ target: 3,
6059
+ value: 1,
6060
+ type: "arrowhead",
6061
+ stroke: "black",
6062
+ },
6063
+ {
6064
+ source: 3,
6065
+ target: 3,
6066
+ value: 1,
6067
+ type: "arrowhead",
6068
+ stroke: "black",
6069
+ },
6070
+ {
6071
+ source: 3,
6072
+ target: 4,
6073
+ value: 1,
6074
+ type: "arrowhead",
6075
+ stroke: "black",
6076
+ },
6077
+ {
6078
+ source: 4,
6079
+ target: 4,
6080
+ value: 1,
6081
+ type: "arrowhead",
6082
+ stroke: "black",
6083
+ },
6084
+ {
6085
+ source: 0,
6086
+ target: 5,
6087
+ value: 1,
6088
+ type: "arrowhead",
6089
+ stroke: "black",
6090
+ },
6091
+ {
6092
+ source: 1,
6093
+ target: 5,
6094
+ value: 1,
6095
+ type: "arrowhead",
6096
+ stroke: "black",
6097
+ },
6098
+ {
6099
+ source: 4,
6100
+ target: 5,
6101
+ value: 1,
6102
+ type: "arrowhead",
6103
+ stroke: "black",
6104
+ },
6105
+ {
6106
+ source: 0,
6107
+ target: 6,
6108
+ value: 1,
6109
+ type: "arrowhead",
6110
+ stroke: "black",
6111
+ },
6112
+ {
6113
+ source: 1,
6114
+ target: 6,
6115
+ value: 1,
6116
+ type: "arrowhead",
6117
+ stroke: "black",
6118
+ },
6119
+ {
6120
+ source: 2,
6121
+ target: 6,
6122
+ value: 1,
6123
+ type: "arrowhead",
6124
+ stroke: "black",
6125
+ },
6126
+ {
6127
+ source: 6,
6128
+ target: 6,
6129
+ value: 1,
6130
+ type: "arrowhead",
6131
+ stroke: "black",
6132
+ },
6133
+ {
6134
+ source: 0,
6135
+ target: 7,
6136
+ value: 1,
6137
+ type: "arrowhead",
6138
+ stroke: "black",
6139
+ },
6140
+ {
6141
+ source: 1,
6142
+ target: 7,
6143
+ value: 1,
6144
+ type: "arrowhead",
6145
+ stroke: "black",
6146
+ },
6147
+ {
6148
+ source: 4,
6149
+ target: 7,
6150
+ value: 1,
6151
+ type: "arrowhead",
6152
+ stroke: "black",
6153
+ },
6154
+ {
6155
+ source: 7,
6156
+ target: 7,
6157
+ value: 1,
6158
+ type: "arrowhead",
6159
+ stroke: "black",
6160
+ },
6161
+ {
6162
+ source: 0,
6163
+ target: 8,
6164
+ value: 1,
6165
+ type: "arrowhead",
6166
+ stroke: "black",
6167
+ },
6168
+ {
6169
+ source: 1,
6170
+ target: 8,
6171
+ value: 1,
6172
+ type: "arrowhead",
6173
+ stroke: "black",
6174
+ },
6175
+ {
6176
+ source: 2,
6177
+ target: 8,
6178
+ value: 1,
6179
+ type: "arrowhead",
6180
+ stroke: "black",
6181
+ },
6182
+ {
6183
+ source: 4,
6184
+ target: 8,
6185
+ value: 1,
6186
+ type: "arrowhead",
6187
+ stroke: "black",
6188
+ },
6189
+ {
6190
+ source: 5,
6191
+ target: 8,
6192
+ value: 1,
6193
+ type: "arrowhead",
6194
+ stroke: "black",
6195
+ },
6196
+ {
6197
+ source: 6,
6198
+ target: 8,
6199
+ value: 1,
6200
+ type: "arrowhead",
6201
+ stroke: "black",
6202
+ },
6203
+ {
6204
+ source: 7,
6205
+ target: 8,
6206
+ value: 1,
6207
+ type: "arrowhead",
6208
+ stroke: "black",
6209
+ },
6210
+ {
6211
+ source: 8,
6212
+ target: 8,
6213
+ value: 1,
6214
+ type: "arrowhead",
6215
+ stroke: "black",
6216
+ },
6217
+ {
6218
+ source: 0,
6219
+ target: 9,
6220
+ value: 1,
6221
+ type: "arrowhead",
6222
+ stroke: "black",
6223
+ },
6224
+ {
6225
+ source: 2,
6226
+ target: 9,
6227
+ value: 1,
6228
+ type: "arrowhead",
6229
+ stroke: "black",
6230
+ },
6231
+ {
6232
+ source: 0,
6233
+ target: 10,
6234
+ value: 1,
6235
+ type: "arrowhead",
6236
+ stroke: "black",
6237
+ },
6238
+ {
6239
+ source: 1,
6240
+ target: 10,
6241
+ value: 1,
6242
+ type: "arrowhead",
6243
+ stroke: "black",
6244
+ },
6245
+ {
6246
+ source: 2,
6247
+ target: 10,
6248
+ value: 1,
6249
+ type: "arrowhead",
6250
+ stroke: "black",
6251
+ },
6252
+ {
6253
+ source: 4,
6254
+ target: 10,
6255
+ value: 1,
6256
+ type: "arrowhead",
6257
+ stroke: "black",
6258
+ },
6259
+ {
6260
+ source: 5,
6261
+ target: 10,
6262
+ value: 1,
6263
+ type: "arrowhead",
6264
+ stroke: "black",
6265
+ },
6266
+ {
6267
+ source: 6,
6268
+ target: 10,
6269
+ value: 1,
6270
+ type: "arrowhead",
6271
+ stroke: "black",
6272
+ },
6273
+ {
6274
+ source: 8,
6275
+ target: 10,
6276
+ value: 1,
6277
+ type: "arrowhead",
6278
+ stroke: "black",
6279
+ },
6280
+ {
6281
+ source: 10,
6282
+ target: 10,
6283
+ value: 1,
6284
+ type: "arrowhead",
6285
+ stroke: "black",
6286
+ },
6287
+ {
6288
+ source: 0,
6289
+ target: 11,
6290
+ value: 1,
6291
+ type: "arrowhead",
6292
+ stroke: "black",
6293
+ },
6294
+ {
6295
+ source: 8,
6296
+ target: 11,
6297
+ value: 1,
6298
+ type: "arrowhead",
6299
+ stroke: "black",
6300
+ },
6301
+ {
6302
+ source: 11,
6303
+ target: 11,
6304
+ value: 1,
6305
+ type: "arrowhead",
6306
+ stroke: "black",
6307
+ },
6308
+ {
6309
+ source: 0,
6310
+ target: 12,
6311
+ value: 1,
6312
+ type: "arrowhead",
6313
+ stroke: "black",
6314
+ },
6315
+ {
6316
+ source: 0,
6317
+ target: 13,
6318
+ value: 1,
6319
+ type: "arrowhead",
6320
+ stroke: "black",
6321
+ },
6322
+ {
6323
+ source: 2,
6324
+ target: 13,
6325
+ value: 1,
6326
+ type: "arrowhead",
6327
+ stroke: "black",
6328
+ },
6329
+ {
6330
+ source: 4,
6331
+ target: 13,
6332
+ value: 1,
6333
+ type: "arrowhead",
6334
+ stroke: "black",
6335
+ },
6336
+ {
6337
+ source: 5,
6338
+ target: 13,
6339
+ value: 1,
6340
+ type: "arrowhead",
6341
+ stroke: "black",
6342
+ },
6343
+ {
6344
+ source: 6,
6345
+ target: 13,
6346
+ value: 1,
6347
+ type: "arrowhead",
6348
+ stroke: "black",
6349
+ },
6350
+ {
6351
+ source: 7,
6352
+ target: 13,
6353
+ value: 1,
6354
+ type: "arrowhead",
6355
+ stroke: "black",
6356
+ },
6357
+ {
6358
+ source: 8,
6359
+ target: 13,
6360
+ value: 1,
6361
+ type: "arrowhead",
6362
+ stroke: "black",
6363
+ },
6364
+ {
6365
+ source: 10,
6366
+ target: 13,
6367
+ value: 1,
6368
+ type: "arrowhead",
6369
+ stroke: "black",
6370
+ },
6371
+ {
6372
+ source: 11,
6373
+ target: 13,
6374
+ value: 1,
6375
+ type: "arrowhead",
6376
+ stroke: "black",
6377
+ },
6378
+ {
6379
+ source: 13,
6380
+ target: 13,
6381
+ value: 1,
6382
+ type: "arrowhead",
6383
+ stroke: "black",
6384
+ },
6385
+ {
6386
+ source: 0,
6387
+ target: 14,
6388
+ value: 1,
6389
+ type: "arrowhead",
6390
+ stroke: "black",
6391
+ },
6392
+ {
6393
+ source: 1,
6394
+ target: 14,
6395
+ value: 1,
6396
+ type: "arrowhead",
6397
+ stroke: "black",
6398
+ },
6399
+ {
6400
+ source: 2,
6401
+ target: 14,
6402
+ value: 1,
6403
+ type: "arrowhead",
6404
+ stroke: "black",
6405
+ },
6406
+ {
6407
+ source: 6,
6408
+ target: 14,
6409
+ value: 1,
6410
+ type: "arrowhead",
6411
+ stroke: "black",
6412
+ },
6413
+ {
6414
+ source: 7,
6415
+ target: 14,
6416
+ value: 1,
6417
+ type: "arrowhead",
6418
+ stroke: "black",
6419
+ },
6420
+ {
6421
+ source: 8,
6422
+ target: 14,
6423
+ value: 1,
6424
+ type: "arrowhead",
6425
+ stroke: "black",
6426
+ },
6427
+ {
6428
+ source: 10,
6429
+ target: 14,
6430
+ value: 1,
6431
+ type: "arrowhead",
6432
+ stroke: "black",
6433
+ },
6434
+ {
6435
+ source: 13,
6436
+ target: 14,
6437
+ value: 1,
6438
+ type: "arrowhead",
6439
+ stroke: "black",
6440
+ },
6441
+ {
6442
+ source: 14,
6443
+ target: 14,
6444
+ value: 1,
6445
+ type: "arrowhead",
6446
+ stroke: "black",
6447
+ },
6448
+ {
6449
+ source: 0,
6450
+ target: 15,
6451
+ value: 1,
6452
+ type: "arrowhead",
6453
+ stroke: "black",
6454
+ },
6455
+ {
6456
+ source: 1,
6457
+ target: 15,
6458
+ value: 1,
6459
+ type: "arrowhead",
6460
+ stroke: "black",
6461
+ },
6462
+ {
6463
+ source: 6,
6464
+ target: 15,
6465
+ value: 1,
6466
+ type: "arrowhead",
6467
+ stroke: "black",
6468
+ },
6469
+ {
6470
+ source: 10,
6471
+ target: 15,
6472
+ value: 1,
6473
+ type: "arrowhead",
6474
+ stroke: "black",
6475
+ },
6476
+ {
6477
+ source: 0,
6478
+ target: 16,
6479
+ value: 1,
6480
+ type: "arrowhead",
6481
+ stroke: "black",
6482
+ },
6483
+ {
6484
+ source: 1,
6485
+ target: 16,
6486
+ value: 1,
6487
+ type: "arrowhead",
6488
+ stroke: "black",
6489
+ },
6490
+ {
6491
+ source: 2,
6492
+ target: 16,
6493
+ value: 1,
6494
+ type: "arrowhead",
6495
+ stroke: "black",
6496
+ },
6497
+ {
6498
+ source: 5,
6499
+ target: 16,
6500
+ value: 1,
6501
+ type: "arrowhead",
6502
+ stroke: "black",
6503
+ },
6504
+ {
6505
+ source: 10,
6506
+ target: 16,
6507
+ value: 1,
6508
+ type: "arrowhead",
6509
+ stroke: "black",
6510
+ },
6511
+ {
6512
+ source: 11,
6513
+ target: 16,
6514
+ value: 1,
6515
+ type: "arrowhead",
6516
+ stroke: "black",
6517
+ },
6518
+ {
6519
+ source: 13,
6520
+ target: 16,
6521
+ value: 1,
6522
+ type: "arrowhead",
6523
+ stroke: "black",
6524
+ },
6525
+ {
6526
+ source: 14,
6527
+ target: 16,
6528
+ value: 1,
6529
+ type: "arrowhead",
6530
+ stroke: "black",
6531
+ },
6532
+ {
6533
+ source: 15,
6534
+ target: 16,
6535
+ value: 1,
6536
+ type: "arrowhead",
6537
+ stroke: "black",
6538
+ },
6539
+ {
6540
+ source: 16,
6541
+ target: 16,
6542
+ value: 1,
6543
+ type: "arrowhead",
6544
+ stroke: "black",
6545
+ },
6546
+ {
6547
+ source: 0,
6548
+ target: 17,
6549
+ value: 1,
6550
+ type: "arrowhead",
6551
+ stroke: "black",
6552
+ },
6553
+ {
6554
+ source: 5,
6555
+ target: 17,
6556
+ value: 1,
6557
+ type: "arrowhead",
6558
+ stroke: "black",
6559
+ },
6560
+ {
6561
+ source: 10,
6562
+ target: 17,
6563
+ value: 1,
6564
+ type: "arrowhead",
6565
+ stroke: "black",
6566
+ },
6567
+ {
6568
+ source: 13,
6569
+ target: 17,
6570
+ value: 1,
6571
+ type: "arrowhead",
6572
+ stroke: "black",
6573
+ },
6574
+ {
6575
+ source: 14,
6576
+ target: 17,
6577
+ value: 1,
6578
+ type: "arrowhead",
6579
+ stroke: "black",
6580
+ },
6581
+ {
6582
+ source: 16,
6583
+ target: 17,
6584
+ value: 1,
6585
+ type: "arrowhead",
6586
+ stroke: "black",
6587
+ },
6588
+ {
6589
+ source: 17,
6590
+ target: 17,
6591
+ value: 1,
6592
+ type: "arrowhead",
6593
+ stroke: "black",
6594
+ },
6595
+ ],
6596
+ errors: [],
6597
+ warnings: [],
6598
+ positiveWeights: [
6599
+ 1,
6600
+ 1,
6601
+ 1,
6602
+ 1,
6603
+ 1,
6604
+ 1,
6605
+ 1,
6606
+ 1,
6607
+ 1,
6608
+ 1,
6609
+ 1,
6610
+ 1,
6611
+ 1,
6612
+ 1,
6613
+ 1,
6614
+ 1,
6615
+ 1,
6616
+ 1,
6617
+ 1,
6618
+ 1,
6619
+ 1,
6620
+ 1,
6621
+ 1,
6622
+ 1,
6623
+ 1,
6624
+ 1,
6625
+ 1,
6626
+ 1,
6627
+ 1,
6628
+ 1,
6629
+ 1,
6630
+ 1,
6631
+ 1,
6632
+ 1,
6633
+ 1,
6634
+ 1,
6635
+ 1,
6636
+ 1,
6637
+ 1,
6638
+ 1,
6639
+ 1,
6640
+ 1,
6641
+ 1,
6642
+ 1,
6643
+ 1,
6644
+ 1,
6645
+ 1,
6646
+ 1,
6647
+ 1,
6648
+ 1,
6649
+ 1,
6650
+ 1,
6651
+ 1,
6652
+ 1,
6653
+ 1,
6654
+ 1,
6655
+ 1,
6656
+ 1,
6657
+ 1,
6658
+ 1,
6659
+ 1,
6660
+ 1,
6661
+ 1,
6662
+ 1,
6663
+ 1,
6664
+ 1,
6665
+ 1,
6666
+ 1,
6667
+ 1,
6668
+ 1,
6669
+ 1,
6670
+ 1,
6671
+ 1,
6672
+ 1,
6673
+ 1,
6674
+ 1,
6675
+ 1,
6676
+ 1,
6677
+ 1,
6678
+ 1,
6679
+ 1,
6680
+ ],
6681
+ negativeWeights: [],
6682
+ sheetType: "unweighted",
6683
+ meta: {
6684
+ data: {
6685
+ workbookType: constants.NETWORK_PPI_MODE,
6686
+ species: "Saccharomyces cerevisiae",
6687
+ taxon_id: "559292",
6688
+ },
6689
+ errors: [],
6690
+ warnings: [],
6691
+ },
6692
+ expression: {},
6693
+ network: {
6694
+ genes: [
6695
+ {
6696
+ name: "Aim32p",
6697
+ },
6698
+ {
6699
+ name: "Ccr4p",
6700
+ },
6701
+ {
6702
+ name: "Erv1p",
6703
+ },
6704
+ {
6705
+ name: "Fbp1p",
6706
+ },
6707
+ {
6708
+ name: "Hsc82p",
6709
+ },
6710
+ {
6711
+ name: "Hsp78p",
6712
+ },
6713
+ {
6714
+ name: "Mia40p",
6715
+ },
6716
+ {
6717
+ name: "Mpt5p",
6718
+ },
6719
+ {
6720
+ name: "Nab2p",
6721
+ },
6722
+ {
6723
+ name: "Osm1p",
6724
+ },
6725
+ {
6726
+ name: "Puf3p",
6727
+ },
6728
+ {
6729
+ name: "Sod2p",
6730
+ },
6731
+ {
6732
+ name: "Srp54p",
6733
+ },
6734
+ {
6735
+ name: "Ssc1p",
6736
+ },
6737
+ {
6738
+ name: "Tim17p",
6739
+ },
6740
+ {
6741
+ name: "Tim22p",
6742
+ },
6743
+ {
6744
+ name: "Tim23p",
6745
+ },
6746
+ {
6747
+ name: "Tim50p",
6748
+ },
6749
+ ],
6750
+ links: [
6751
+ {
6752
+ source: 0,
6753
+ target: 1,
6754
+ value: 1,
6755
+ type: "arrowhead",
6756
+ stroke: "black",
6757
+ },
6758
+ {
6759
+ source: 1,
6760
+ target: 1,
6761
+ value: 1,
6762
+ type: "arrowhead",
6763
+ stroke: "black",
6764
+ },
6765
+ {
6766
+ source: 0,
6767
+ target: 2,
6768
+ value: 1,
6769
+ type: "arrowhead",
6770
+ stroke: "black",
6771
+ },
6772
+ {
6773
+ source: 2,
6774
+ target: 2,
6775
+ value: 1,
6776
+ type: "arrowhead",
6777
+ stroke: "black",
6778
+ },
6779
+ {
6780
+ source: 0,
6781
+ target: 3,
6782
+ value: 1,
6783
+ type: "arrowhead",
6784
+ stroke: "black",
6785
+ },
6786
+ {
6787
+ source: 3,
6788
+ target: 3,
6789
+ value: 1,
6790
+ type: "arrowhead",
6791
+ stroke: "black",
6792
+ },
6793
+ {
6794
+ source: 3,
6795
+ target: 4,
6796
+ value: 1,
6797
+ type: "arrowhead",
6798
+ stroke: "black",
6799
+ },
6800
+ {
6801
+ source: 4,
6802
+ target: 4,
6803
+ value: 1,
6804
+ type: "arrowhead",
6805
+ stroke: "black",
6806
+ },
6807
+ {
6808
+ source: 0,
6809
+ target: 5,
6810
+ value: 1,
6811
+ type: "arrowhead",
6812
+ stroke: "black",
6813
+ },
6814
+ {
6815
+ source: 1,
6816
+ target: 5,
6817
+ value: 1,
6818
+ type: "arrowhead",
6819
+ stroke: "black",
6820
+ },
6821
+ {
6822
+ source: 4,
6823
+ target: 5,
6824
+ value: 1,
6825
+ type: "arrowhead",
6826
+ stroke: "black",
6827
+ },
6828
+ {
6829
+ source: 0,
6830
+ target: 6,
6831
+ value: 1,
6832
+ type: "arrowhead",
6833
+ stroke: "black",
6834
+ },
6835
+ {
6836
+ source: 1,
6837
+ target: 6,
6838
+ value: 1,
6839
+ type: "arrowhead",
6840
+ stroke: "black",
6841
+ },
6842
+ {
6843
+ source: 2,
6844
+ target: 6,
6845
+ value: 1,
6846
+ type: "arrowhead",
6847
+ stroke: "black",
6848
+ },
6849
+ {
6850
+ source: 6,
6851
+ target: 6,
6852
+ value: 1,
6853
+ type: "arrowhead",
6854
+ stroke: "black",
6855
+ },
6856
+ {
6857
+ source: 0,
6858
+ target: 7,
6859
+ value: 1,
6860
+ type: "arrowhead",
6861
+ stroke: "black",
6862
+ },
6863
+ {
6864
+ source: 1,
6865
+ target: 7,
6866
+ value: 1,
6867
+ type: "arrowhead",
6868
+ stroke: "black",
6869
+ },
6870
+ {
6871
+ source: 4,
6872
+ target: 7,
6873
+ value: 1,
6874
+ type: "arrowhead",
6875
+ stroke: "black",
6876
+ },
6877
+ {
6878
+ source: 7,
6879
+ target: 7,
6880
+ value: 1,
6881
+ type: "arrowhead",
6882
+ stroke: "black",
6883
+ },
6884
+ {
6885
+ source: 0,
6886
+ target: 8,
6887
+ value: 1,
6888
+ type: "arrowhead",
6889
+ stroke: "black",
6890
+ },
6891
+ {
6892
+ source: 1,
6893
+ target: 8,
6894
+ value: 1,
6895
+ type: "arrowhead",
6896
+ stroke: "black",
6897
+ },
6898
+ {
6899
+ source: 2,
6900
+ target: 8,
6901
+ value: 1,
6902
+ type: "arrowhead",
6903
+ stroke: "black",
6904
+ },
6905
+ {
6906
+ source: 4,
6907
+ target: 8,
6908
+ value: 1,
6909
+ type: "arrowhead",
6910
+ stroke: "black",
6911
+ },
6912
+ {
6913
+ source: 5,
6914
+ target: 8,
6915
+ value: 1,
6916
+ type: "arrowhead",
6917
+ stroke: "black",
6918
+ },
6919
+ {
6920
+ source: 6,
6921
+ target: 8,
6922
+ value: 1,
6923
+ type: "arrowhead",
6924
+ stroke: "black",
6925
+ },
6926
+ {
6927
+ source: 7,
6928
+ target: 8,
6929
+ value: 1,
6930
+ type: "arrowhead",
6931
+ stroke: "black",
6932
+ },
6933
+ {
6934
+ source: 8,
6935
+ target: 8,
6936
+ value: 1,
6937
+ type: "arrowhead",
6938
+ stroke: "black",
6939
+ },
6940
+ {
6941
+ source: 0,
6942
+ target: 9,
6943
+ value: 1,
6944
+ type: "arrowhead",
6945
+ stroke: "black",
6946
+ },
6947
+ {
6948
+ source: 2,
6949
+ target: 9,
6950
+ value: 1,
6951
+ type: "arrowhead",
6952
+ stroke: "black",
6953
+ },
6954
+ {
6955
+ source: 0,
6956
+ target: 10,
6957
+ value: 1,
6958
+ type: "arrowhead",
6959
+ stroke: "black",
6960
+ },
6961
+ {
6962
+ source: 1,
6963
+ target: 10,
6964
+ value: 1,
6965
+ type: "arrowhead",
6966
+ stroke: "black",
6967
+ },
6968
+ {
6969
+ source: 2,
6970
+ target: 10,
6971
+ value: 1,
6972
+ type: "arrowhead",
6973
+ stroke: "black",
6974
+ },
6975
+ {
6976
+ source: 4,
6977
+ target: 10,
6978
+ value: 1,
6979
+ type: "arrowhead",
6980
+ stroke: "black",
6981
+ },
6982
+ {
6983
+ source: 5,
6984
+ target: 10,
6985
+ value: 1,
6986
+ type: "arrowhead",
6987
+ stroke: "black",
6988
+ },
6989
+ {
6990
+ source: 6,
6991
+ target: 10,
6992
+ value: 1,
6993
+ type: "arrowhead",
6994
+ stroke: "black",
6995
+ },
6996
+ {
6997
+ source: 8,
6998
+ target: 10,
6999
+ value: 1,
7000
+ type: "arrowhead",
7001
+ stroke: "black",
7002
+ },
7003
+ {
7004
+ source: 10,
7005
+ target: 10,
7006
+ value: 1,
7007
+ type: "arrowhead",
7008
+ stroke: "black",
7009
+ },
7010
+ {
7011
+ source: 0,
7012
+ target: 11,
7013
+ value: 1,
7014
+ type: "arrowhead",
7015
+ stroke: "black",
7016
+ },
7017
+ {
7018
+ source: 8,
7019
+ target: 11,
7020
+ value: 1,
7021
+ type: "arrowhead",
7022
+ stroke: "black",
7023
+ },
7024
+ {
7025
+ source: 11,
7026
+ target: 11,
7027
+ value: 1,
7028
+ type: "arrowhead",
7029
+ stroke: "black",
7030
+ },
7031
+ {
7032
+ source: 0,
7033
+ target: 12,
7034
+ value: 1,
7035
+ type: "arrowhead",
7036
+ stroke: "black",
7037
+ },
7038
+ {
7039
+ source: 0,
7040
+ target: 13,
7041
+ value: 1,
7042
+ type: "arrowhead",
7043
+ stroke: "black",
7044
+ },
7045
+ {
7046
+ source: 2,
7047
+ target: 13,
7048
+ value: 1,
7049
+ type: "arrowhead",
7050
+ stroke: "black",
7051
+ },
7052
+ {
7053
+ source: 4,
7054
+ target: 13,
7055
+ value: 1,
7056
+ type: "arrowhead",
7057
+ stroke: "black",
7058
+ },
7059
+ {
7060
+ source: 5,
7061
+ target: 13,
7062
+ value: 1,
7063
+ type: "arrowhead",
7064
+ stroke: "black",
7065
+ },
7066
+ {
7067
+ source: 6,
7068
+ target: 13,
7069
+ value: 1,
7070
+ type: "arrowhead",
7071
+ stroke: "black",
7072
+ },
7073
+ {
7074
+ source: 7,
7075
+ target: 13,
7076
+ value: 1,
7077
+ type: "arrowhead",
7078
+ stroke: "black",
7079
+ },
7080
+ {
7081
+ source: 8,
7082
+ target: 13,
7083
+ value: 1,
7084
+ type: "arrowhead",
7085
+ stroke: "black",
7086
+ },
7087
+ {
7088
+ source: 10,
7089
+ target: 13,
7090
+ value: 1,
7091
+ type: "arrowhead",
7092
+ stroke: "black",
7093
+ },
7094
+ {
7095
+ source: 11,
7096
+ target: 13,
7097
+ value: 1,
7098
+ type: "arrowhead",
7099
+ stroke: "black",
7100
+ },
7101
+ {
7102
+ source: 13,
7103
+ target: 13,
7104
+ value: 1,
7105
+ type: "arrowhead",
7106
+ stroke: "black",
7107
+ },
7108
+ {
7109
+ source: 0,
7110
+ target: 14,
7111
+ value: 1,
7112
+ type: "arrowhead",
7113
+ stroke: "black",
7114
+ },
7115
+ {
7116
+ source: 1,
7117
+ target: 14,
7118
+ value: 1,
7119
+ type: "arrowhead",
7120
+ stroke: "black",
7121
+ },
7122
+ {
7123
+ source: 2,
7124
+ target: 14,
7125
+ value: 1,
7126
+ type: "arrowhead",
7127
+ stroke: "black",
7128
+ },
7129
+ {
7130
+ source: 6,
7131
+ target: 14,
7132
+ value: 1,
7133
+ type: "arrowhead",
7134
+ stroke: "black",
7135
+ },
7136
+ {
7137
+ source: 7,
7138
+ target: 14,
7139
+ value: 1,
7140
+ type: "arrowhead",
7141
+ stroke: "black",
7142
+ },
7143
+ {
7144
+ source: 8,
7145
+ target: 14,
7146
+ value: 1,
7147
+ type: "arrowhead",
7148
+ stroke: "black",
7149
+ },
7150
+ {
7151
+ source: 10,
7152
+ target: 14,
7153
+ value: 1,
7154
+ type: "arrowhead",
7155
+ stroke: "black",
7156
+ },
7157
+ {
7158
+ source: 13,
7159
+ target: 14,
7160
+ value: 1,
7161
+ type: "arrowhead",
7162
+ stroke: "black",
7163
+ },
7164
+ {
7165
+ source: 14,
7166
+ target: 14,
7167
+ value: 1,
7168
+ type: "arrowhead",
7169
+ stroke: "black",
7170
+ },
7171
+ {
7172
+ source: 0,
7173
+ target: 15,
7174
+ value: 1,
7175
+ type: "arrowhead",
7176
+ stroke: "black",
7177
+ },
7178
+ {
7179
+ source: 1,
7180
+ target: 15,
7181
+ value: 1,
7182
+ type: "arrowhead",
7183
+ stroke: "black",
7184
+ },
7185
+ {
7186
+ source: 6,
7187
+ target: 15,
7188
+ value: 1,
7189
+ type: "arrowhead",
7190
+ stroke: "black",
7191
+ },
7192
+ {
7193
+ source: 10,
7194
+ target: 15,
7195
+ value: 1,
7196
+ type: "arrowhead",
7197
+ stroke: "black",
7198
+ },
7199
+ {
7200
+ source: 0,
7201
+ target: 16,
7202
+ value: 1,
7203
+ type: "arrowhead",
7204
+ stroke: "black",
7205
+ },
7206
+ {
7207
+ source: 1,
7208
+ target: 16,
7209
+ value: 1,
7210
+ type: "arrowhead",
7211
+ stroke: "black",
7212
+ },
7213
+ {
7214
+ source: 2,
7215
+ target: 16,
7216
+ value: 1,
7217
+ type: "arrowhead",
7218
+ stroke: "black",
7219
+ },
7220
+ {
7221
+ source: 5,
7222
+ target: 16,
7223
+ value: 1,
7224
+ type: "arrowhead",
7225
+ stroke: "black",
7226
+ },
7227
+ {
7228
+ source: 10,
7229
+ target: 16,
7230
+ value: 1,
7231
+ type: "arrowhead",
7232
+ stroke: "black",
7233
+ },
7234
+ {
7235
+ source: 11,
7236
+ target: 16,
7237
+ value: 1,
7238
+ type: "arrowhead",
7239
+ stroke: "black",
7240
+ },
7241
+ {
7242
+ source: 13,
7243
+ target: 16,
7244
+ value: 1,
7245
+ type: "arrowhead",
7246
+ stroke: "black",
7247
+ },
7248
+ {
7249
+ source: 14,
7250
+ target: 16,
7251
+ value: 1,
7252
+ type: "arrowhead",
7253
+ stroke: "black",
7254
+ },
7255
+ {
7256
+ source: 15,
7257
+ target: 16,
7258
+ value: 1,
7259
+ type: "arrowhead",
7260
+ stroke: "black",
7261
+ },
7262
+ {
7263
+ source: 16,
7264
+ target: 16,
7265
+ value: 1,
7266
+ type: "arrowhead",
7267
+ stroke: "black",
7268
+ },
7269
+ {
7270
+ source: 0,
7271
+ target: 17,
7272
+ value: 1,
7273
+ type: "arrowhead",
7274
+ stroke: "black",
7275
+ },
7276
+ {
7277
+ source: 5,
7278
+ target: 17,
7279
+ value: 1,
7280
+ type: "arrowhead",
7281
+ stroke: "black",
7282
+ },
7283
+ {
7284
+ source: 10,
7285
+ target: 17,
7286
+ value: 1,
7287
+ type: "arrowhead",
7288
+ stroke: "black",
7289
+ },
7290
+ {
7291
+ source: 13,
7292
+ target: 17,
7293
+ value: 1,
7294
+ type: "arrowhead",
7295
+ stroke: "black",
7296
+ },
7297
+ {
7298
+ source: 14,
7299
+ target: 17,
7300
+ value: 1,
7301
+ type: "arrowhead",
7302
+ stroke: "black",
7303
+ },
7304
+ {
7305
+ source: 16,
7306
+ target: 17,
7307
+ value: 1,
7308
+ type: "arrowhead",
7309
+ stroke: "black",
7310
+ },
7311
+ {
7312
+ source: 17,
7313
+ target: 17,
7314
+ value: 1,
7315
+ type: "arrowhead",
7316
+ stroke: "black",
7317
+ },
7318
+ ],
7319
+ errors: [],
7320
+ warnings: [],
7321
+ positiveWeights: [
7322
+ 1,
7323
+ 1,
7324
+ 1,
7325
+ 1,
7326
+ 1,
7327
+ 1,
7328
+ 1,
7329
+ 1,
7330
+ 1,
7331
+ 1,
7332
+ 1,
7333
+ 1,
7334
+ 1,
7335
+ 1,
7336
+ 1,
7337
+ 1,
7338
+ 1,
7339
+ 1,
7340
+ 1,
7341
+ 1,
7342
+ 1,
7343
+ 1,
7344
+ 1,
7345
+ 1,
7346
+ 1,
7347
+ 1,
7348
+ 1,
7349
+ 1,
7350
+ 1,
7351
+ 1,
7352
+ 1,
7353
+ 1,
7354
+ 1,
7355
+ 1,
7356
+ 1,
7357
+ 1,
7358
+ 1,
7359
+ 1,
7360
+ 1,
7361
+ 1,
7362
+ 1,
7363
+ 1,
7364
+ 1,
7365
+ 1,
7366
+ 1,
7367
+ 1,
7368
+ 1,
7369
+ 1,
7370
+ 1,
7371
+ 1,
7372
+ 1,
7373
+ 1,
7374
+ 1,
7375
+ 1,
7376
+ 1,
7377
+ 1,
7378
+ 1,
7379
+ 1,
7380
+ 1,
7381
+ 1,
7382
+ 1,
7383
+ 1,
7384
+ 1,
7385
+ 1,
7386
+ 1,
7387
+ 1,
7388
+ 1,
7389
+ 1,
7390
+ 1,
7391
+ 1,
7392
+ 1,
7393
+ 1,
7394
+ 1,
7395
+ 1,
7396
+ 1,
7397
+ 1,
7398
+ 1,
7399
+ 1,
7400
+ 1,
7401
+ 1,
7402
+ 1,
7403
+ ],
7404
+ negativeWeights: [],
7405
+ sheetType: "unweighted",
7406
+ meta: {},
7407
+ expression: {},
7408
+ },
7409
+ networkOptimizedWeights: {},
7410
+ networkWeights: {},
7411
+ twoColumnSheets: {},
7412
+ meta2: {},
7413
+ };
7414
+ return processDemo(path, res, app, workbook5);
7415
+ };
7416
+
5963
7417
  module.exports = function (path, res, app, workbook) {
5964
7418
  if (path === "test-files/demo-files/15-genes_28-edges_db5_Dahlquist-data_input.xlsx") {
5965
7419
  return demoWorkbook1(path, res, app, workbook);
@@ -5969,5 +7423,7 @@ module.exports = function (path, res, app, workbook) {
5969
7423
  return demoWorkbook3(path, res, app, workbook);
5970
7424
  } else if (path === "test-files/demo-files/21-genes_31-edges_Schade-data_estimation_output.xlsx") {
5971
7425
  return demoWorkbook4(path, res, app, workbook);
7426
+ } else if (path === "test-files/demo-files/18_proteins_81_edges_PPI.xlsx") {
7427
+ return demoWorkbook5(path, res, app, workbook);
5972
7428
  }
5973
7429
  };