@datagrok/proteomics 1.0.1 → 1.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 (116) hide show
  1. package/CHANGELOG.md +52 -3
  2. package/CLAUDE.md +178 -0
  3. package/README.md +195 -3
  4. package/detectors.js +152 -9
  5. package/dist/package-test.js +1 -1744
  6. package/dist/package-test.js.map +1 -1
  7. package/dist/package.js +1 -146
  8. package/dist/package.js.map +1 -1
  9. package/docs/personas-and-capabilities.md +165 -0
  10. package/files/demo/README.md +264 -0
  11. package/files/demo/cptac-spike-in.txt +1571 -0
  12. package/files/demo/enrichment-demo.csv +120 -0
  13. package/files/demo/fragpipe-smoke-test.tsv +11 -0
  14. package/files/demo/proteinGroups.txt +28 -0
  15. package/files/demo/spectronaut-hye-candidates.tsv +94 -0
  16. package/files/demo/spectronaut-hye-demo.tsv +8761 -0
  17. package/files/demo/spectronaut-hye-mix.tsv +8761 -0
  18. package/files/demo/spectronaut-hye-precursor-golden.json +938 -0
  19. package/files/demo/spectronaut-hye-precursor-golden.tsv +235 -0
  20. package/files/demo/spectronaut-hye-precursor.tsv +493 -0
  21. package/images/enrichment-crosslink.png +0 -0
  22. package/images/enrichment-term-selected.png +0 -0
  23. package/images/hero.png +0 -0
  24. package/images/pipeline.svg +80 -0
  25. package/package.json +87 -63
  26. package/scripts/deqms_de.R +60 -0
  27. package/scripts/limma_de.R +42 -0
  28. package/scripts/vsn_normalize.R +19 -0
  29. package/src/analysis/differential-expression.ts +450 -0
  30. package/src/analysis/enrichment-export.ts +101 -0
  31. package/src/analysis/enrichment.ts +602 -0
  32. package/src/analysis/experiment-setup.ts +199 -0
  33. package/src/analysis/imputation.ts +407 -0
  34. package/src/analysis/log2-scale.ts +139 -0
  35. package/src/analysis/normalization.ts +255 -0
  36. package/src/analysis/pca.ts +254 -0
  37. package/src/analysis/spc-storage.ts +515 -0
  38. package/src/analysis/spc.ts +544 -0
  39. package/src/analysis/subcellular-location.ts +431 -0
  40. package/src/demo/enrichment-demo.ts +94 -0
  41. package/src/demo/proteomics-demo.ts +123 -0
  42. package/src/global.d.ts +15 -0
  43. package/src/menu.ts +133 -0
  44. package/src/package-api.ts +136 -14
  45. package/src/package-test.ts +45 -20
  46. package/src/package.g.ts +161 -0
  47. package/src/package.ts +1029 -17
  48. package/src/panels/protein-focus.ts +63 -0
  49. package/src/panels/published-analysis-panel.ts +151 -0
  50. package/src/panels/uniprot-panel.ts +349 -0
  51. package/src/parsers/fragpipe-parser.ts +200 -0
  52. package/src/parsers/generic-parser.ts +197 -0
  53. package/src/parsers/maxquant-parser.ts +162 -0
  54. package/src/parsers/shared-utils.ts +163 -0
  55. package/src/parsers/spectronaut-candidates-parser.ts +307 -0
  56. package/src/parsers/spectronaut-parser.ts +604 -0
  57. package/src/publishing/assert-published-shape.ts +260 -0
  58. package/src/publishing/post-open-recovery.ts +104 -0
  59. package/src/publishing/publish-project.ts +515 -0
  60. package/src/publishing/publish-settings.ts +59 -0
  61. package/src/publishing/publish-state.ts +316 -0
  62. package/src/publishing/share-dialog.ts +171 -0
  63. package/src/publishing/trim-dataframe.ts +247 -0
  64. package/src/tests/analysis.ts +658 -0
  65. package/src/tests/enrichment-export.ts +61 -0
  66. package/src/tests/enrichment-visualization.ts +340 -0
  67. package/src/tests/enrichment.ts +224 -0
  68. package/src/tests/fragpipe-e2e.ts +74 -0
  69. package/src/tests/fragpipe-parser.ts +147 -0
  70. package/src/tests/gene-label-resolver.ts +387 -0
  71. package/src/tests/generic-parser.ts +152 -0
  72. package/src/tests/group-mean-correlation.ts +139 -0
  73. package/src/tests/log2-scale.ts +93 -0
  74. package/src/tests/organisms.ts +56 -0
  75. package/src/tests/parsers.ts +182 -0
  76. package/src/tests/publish-roundtrip.ts +584 -0
  77. package/src/tests/publish-spike.ts +377 -0
  78. package/src/tests/qc-dashboard.ts +210 -0
  79. package/src/tests/smart-pathway-filter.ts +193 -0
  80. package/src/tests/spc-formula-lines-spike.ts +129 -0
  81. package/src/tests/spc.ts +640 -0
  82. package/src/tests/spectronaut-candidates-e2e.ts +140 -0
  83. package/src/tests/spectronaut-candidates-parser.ts +398 -0
  84. package/src/tests/spectronaut-parser.ts +668 -0
  85. package/src/tests/subcellular-location.ts +361 -0
  86. package/src/tests/uniprot-panel.ts +202 -0
  87. package/src/tests/volcano.ts +603 -0
  88. package/src/utils/column-detection.ts +28 -0
  89. package/src/utils/gene-label-resolver.ts +443 -0
  90. package/src/utils/organisms.ts +82 -0
  91. package/src/utils/proteomics-types.ts +30 -0
  92. package/src/viewers/enrichment-viewers.ts +274 -0
  93. package/src/viewers/group-mean-correlation.ts +218 -0
  94. package/src/viewers/heatmap.ts +168 -0
  95. package/src/viewers/pca-plot.ts +169 -0
  96. package/src/viewers/qc-computations.ts +266 -0
  97. package/src/viewers/qc-dashboard.ts +176 -0
  98. package/src/viewers/spc-dashboard.ts +755 -0
  99. package/src/viewers/volcano.ts +690 -0
  100. package/test-console-output-1.log +2055 -0
  101. package/test-record-1.mp4 +0 -0
  102. package/tools/derive-precursor-golden-sidecar.mjs +81 -0
  103. package/tools/generate-enrichment-fixture.sh +160 -0
  104. package/tools/generate-spectronaut-candidates-fixture.mjs +212 -0
  105. package/tools/generate-spectronaut-precursor-fixture.mjs +128 -0
  106. package/tools/spectronaut-aggregate.sh +46 -0
  107. package/tools/spectronaut-aggregate.sql +80 -0
  108. package/tsconfig.json +18 -71
  109. package/webpack.config.js +86 -45
  110. package/.eslintignore +0 -1
  111. package/.eslintrc.json +0 -56
  112. package/LICENSE +0 -674
  113. package/package.png +0 -0
  114. package/scripts/number_antibody.py +0 -190
  115. package/scripts/number_antibody_abnumber.py +0 -177
  116. package/scripts/number_antibody_anarci.py +0 -200
@@ -0,0 +1,235 @@
1
+ PG.ProteinGroups R.Condition R.Replicate R.FileName PG.Quantity EG.Qvalue
2
+ P00001 CondB 3 run_CondB_3 1001.0 0.001
3
+ P00002 CondA 2 run_CondA_2 1002.0 0.001
4
+ P00002 CondB 1 run_CondB_1 1002.0 0.001
5
+ P00003 CondB 3 run_CondB_3 1003.0 0.001
6
+ P00005 CondB 3 run_CondB_3 1005.0 0.001
7
+ P00006 CondB 1 run_CondB_1 1006.0 0.001
8
+ P00007 CondA 3 run_CondA_3 1007.0 0.001
9
+ P00008 CondA 1 run_CondA_1 1008.0 0.001
10
+ P00008 CondB 2 run_CondB_2 1008.0 0.001
11
+ P00010 CondB 2 run_CondB_2 1010.0 0.001
12
+ P00014 CondA 1 run_CondA_1 1014.0 0.001
13
+ P00014 CondB 3 run_CondB_3 1014.0 0.001
14
+ P00015 CondB 1 run_CondB_1 1015.0 0.001
15
+ P00016 CondA 1 run_CondA_1 1016.0 0.001
16
+ P00018 CondA 3 run_CondA_3 1018.0 0.001
17
+ P00018 CondB 2 run_CondB_2 1018.0 0.001
18
+ P00019 CondB 3 run_CondB_3 1019.0 0.001
19
+ P00020 CondB 3 run_CondB_3 1020.0 0.001
20
+ P00022 CondA 1 run_CondA_1 1022.0 0.001
21
+ P00023 CondB 1 run_CondB_1 1023.0 0.001
22
+ P00025 CondA 2 run_CondA_2 1025.0 0.001
23
+ P00026 CondA 3 run_CondA_3 1026.0 0.001
24
+ P00027 CondA 2 run_CondA_2 1027.0 0.001
25
+ P00030 CondB 2 run_CondB_2 1030.0 0.001
26
+ P00031 CondA 2 run_CondA_2 1031.0 0.001
27
+ P00032 CondA 3 run_CondA_3 1032.0 0.001
28
+ P00035 CondA 3 run_CondA_3 1035.0 0.001
29
+ P70002 CondA 3 run_CondA_3 6500.0
30
+ P00000 CondA 2 run_CondA_2 1000.0 0.001
31
+ P00000 CondB 3 run_CondB_3 1000.0 0.001
32
+ P00001 CondA 3 run_CondA_3 1001.0 0.001
33
+ P00004 CondA 3 run_CondA_3 1004.0 0.001
34
+ P00004 CondB 3 run_CondB_3 1004.0 0.001
35
+ P00005 CondA 1 run_CondA_1 1005.0 0.001
36
+ P00006 CondA 3 run_CondA_3 1006.0 0.001
37
+ P00007 CondB 1 run_CondB_1 1007.0 0.001
38
+ P00009 CondA 2 run_CondA_2 1009.0 0.001
39
+ P00009 CondB 3 run_CondB_3 1009.0 0.001
40
+ P00010 CondA 3 run_CondA_3 1010.0 0.001
41
+ P00011 CondA 3 run_CondA_3 1011.0 0.001
42
+ P00011 CondB 3 run_CondB_3 1011.0 0.001
43
+ P00012 CondA 1 run_CondA_1 1012.0 0.001
44
+ P00013 CondA 2 run_CondA_2 1013.0 0.001
45
+ P00013 CondB 3 run_CondB_3 1013.0 0.001
46
+ P00016 CondB 2 run_CondB_2 1016.0 0.001
47
+ P00019 CondA 3 run_CondA_3 1019.0 0.001
48
+ P00020 CondA 1 run_CondA_1 1020.0 0.001
49
+ P00021 CondB 2 run_CondB_2 1021.0 0.001
50
+ P00023 CondA 2 run_CondA_2 1023.0 0.001
51
+ P00026 CondB 3 run_CondB_3 1026.0 0.001
52
+ P00027 CondB 2 run_CondB_2 1027.0 0.001
53
+ P00029 CondA 3 run_CondA_3 1029.0 0.001
54
+ P00029 CondB 2 run_CondB_2 1029.0 0.001
55
+ P00033 CondA 1 run_CondA_1 1033.0 0.001
56
+ P00033 CondB 3 run_CondB_3 1033.0 0.001
57
+ P00034 CondB 3 run_CondB_3 1034.0 0.001
58
+ P70001 CondA 1 run_CondA_1 7000.0 0.002
59
+ P70002 CondB 3 run_CondB_3 6500.0
60
+ P70003 CondA 2 run_CondA_2 6600.0
61
+ P00001 CondB 1 run_CondB_1 1001.0 0.001
62
+ P00002 CondB 3 run_CondB_3 1002.0 0.001
63
+ P00003 CondB 1 run_CondB_1 1003.0 0.001
64
+ P00005 CondB 1 run_CondB_1 1005.0 0.001
65
+ P00006 CondB 3 run_CondB_3 1006.0 0.001
66
+ P00007 CondA 1 run_CondA_1 1007.0 0.001
67
+ P00008 CondA 3 run_CondA_3 1008.0 0.001
68
+ P00014 CondA 3 run_CondA_3 1014.0 0.001
69
+ P00014 CondB 1 run_CondB_1 1014.0 0.001
70
+ P00015 CondA 2 run_CondA_2 1015.0 0.001
71
+ P00015 CondB 3 run_CondB_3 1015.0 0.001
72
+ P00016 CondA 3 run_CondA_3 1016.0 0.001
73
+ P00017 CondA 2 run_CondA_2 1017.0 0.001
74
+ P00017 CondB 2 run_CondB_2 1017.0 0.001
75
+ P00018 CondA 1 run_CondA_1 1018.0 0.001
76
+ P00019 CondB 1 run_CondB_1 1019.0 0.001
77
+ P00020 CondB 1 run_CondB_1 1020.0 0.001
78
+ P00022 CondA 3 run_CondA_3 1022.0 0.001
79
+ P00022 CondB 2 run_CondB_2 1022.0 0.001
80
+ P00023 CondB 3 run_CondB_3 1023.0 0.001
81
+ P00024 CondA 2 run_CondA_2 1024.0 0.001
82
+ P00026 CondA 1 run_CondA_1 1026.0 0.001
83
+ P00028 CondA 2 run_CondA_2 1028.0 0.001
84
+ P00028 CondB 2 run_CondB_2 1028.0 0.001
85
+ P00032 CondA 1 run_CondA_1 1032.0 0.001
86
+ P00032 CondB 2 run_CondB_2 1032.0 0.001
87
+ P00034 CondA 2 run_CondA_2 1034.0 0.001
88
+ P00035 CondA 1 run_CondA_1 1035.0 0.001
89
+ P00035 CondB 2 run_CondB_2 1035.0 0.001
90
+ P70002 CondA 1 run_CondA_1 6500.0
91
+ P70003 CondB 2 run_CondB_2 6600.0
92
+ P00001 CondB 2 run_CondB_2 1001.0 0.001
93
+ P00002 CondA 3 run_CondA_3 1002.0 0.001
94
+ P00003 CondB 2 run_CondB_2 1003.0 0.001
95
+ P00005 CondB 2 run_CondB_2 1005.0 0.001
96
+ P00007 CondA 2 run_CondA_2 1007.0 0.001
97
+ P00008 CondB 3 run_CondB_3 1008.0 0.001
98
+ P00010 CondB 3 run_CondB_3 1010.0 0.001
99
+ P00014 CondB 2 run_CondB_2 1014.0 0.001
100
+ P00015 CondA 1 run_CondA_1 1015.0 0.001
101
+ P00017 CondA 1 run_CondA_1 1017.0 0.001
102
+ P00017 CondB 1 run_CondB_1 1017.0 0.001
103
+ P00018 CondA 2 run_CondA_2 1018.0 0.001
104
+ P00018 CondB 3 run_CondB_3 1018.0 0.001
105
+ P00019 CondB 2 run_CondB_2 1019.0 0.001
106
+ P00020 CondB 2 run_CondB_2 1020.0 0.001
107
+ P00022 CondB 1 run_CondB_1 1022.0 0.001
108
+ P00024 CondA 1 run_CondA_1 1024.0 0.001
109
+ P00025 CondA 3 run_CondA_3 1025.0 0.001
110
+ P00026 CondA 2 run_CondA_2 1026.0 0.001
111
+ P00027 CondA 3 run_CondA_3 1027.0 0.001
112
+ P00028 CondA 1 run_CondA_1 1028.0 0.001
113
+ P00028 CondB 1 run_CondB_1 1028.0 0.001
114
+ P00030 CondB 3 run_CondB_3 1030.0 0.001
115
+ P00031 CondA 3 run_CondA_3 1031.0 0.001
116
+ P00032 CondA 2 run_CondA_2 1032.0 0.001
117
+ P00032 CondB 1 run_CondB_1 1032.0 0.001
118
+ P00034 CondA 1 run_CondA_1 1034.0 0.001
119
+ P00035 CondA 2 run_CondA_2 1035.0 0.001
120
+ P00035 CondB 1 run_CondB_1 1035.0 0.001
121
+ P70002 CondA 2 run_CondA_2 6500.0
122
+ P70003 CondB 1 run_CondB_1 6600.0
123
+ P00000 CondA 3 run_CondA_3 1000.0 0.001
124
+ P00000 CondB 2 run_CondB_2 1000.0 0.001
125
+ P00001 CondA 2 run_CondA_2 1001.0 0.001
126
+ P00003 CondA 1 run_CondA_1 1003.0 0.001
127
+ P00004 CondA 2 run_CondA_2 1004.0 0.001
128
+ P00004 CondB 2 run_CondB_2 1004.0 0.001
129
+ P00006 CondA 2 run_CondA_2 1006.0 0.001
130
+ P00009 CondA 3 run_CondA_3 1009.0 0.001
131
+ P00009 CondB 2 run_CondB_2 1009.0 0.001
132
+ P00010 CondA 2 run_CondA_2 1010.0 0.001
133
+ P00011 CondA 2 run_CondA_2 1011.0 0.001
134
+ P00011 CondB 2 run_CondB_2 1011.0 0.001
135
+ P00012 CondB 1 run_CondB_1 1012.0 0.001
136
+ P00013 CondA 3 run_CondA_3 1013.0 0.001
137
+ P00013 CondB 2 run_CondB_2 1013.0 0.001
138
+ P00016 CondB 3 run_CondB_3 1016.0 0.001
139
+ P00019 CondA 2 run_CondA_2 1019.0 0.001
140
+ P00021 CondA 1 run_CondA_1 1021.0 0.001
141
+ P00021 CondB 3 run_CondB_3 1021.0 0.001
142
+ P00023 CondA 3 run_CondA_3 1023.0 0.001
143
+ P00024 CondB 1 run_CondB_1 1024.0 0.001
144
+ P00025 CondB 1 run_CondB_1 1025.0 0.001
145
+ P00026 CondB 2 run_CondB_2 1026.0 0.001
146
+ P00027 CondB 3 run_CondB_3 1027.0 0.001
147
+ P00029 CondA 2 run_CondA_2 1029.0 0.001
148
+ P00029 CondB 3 run_CondB_3 1029.0 0.001
149
+ P00030 CondA 1 run_CondA_1 1030.0 0.001
150
+ P00031 CondB 1 run_CondB_1 1031.0 0.001
151
+ P00033 CondB 2 run_CondB_2 1033.0 0.001
152
+ P00034 CondB 2 run_CondB_2 1034.0 0.001
153
+ P70001 CondB 1 run_CondB_1 7000.0 0.002
154
+ P70002 CondB 2 run_CondB_2 6500.0
155
+ P70003 CondA 3 run_CondA_3 6600.0
156
+ P00000 CondB 1 run_CondB_1 1000.0 0.001
157
+ P00001 CondA 1 run_CondA_1 1001.0 0.001
158
+ P00003 CondA 2 run_CondA_2 1003.0 0.001
159
+ P00004 CondA 1 run_CondA_1 1004.0 0.001
160
+ P00004 CondB 1 run_CondB_1 1004.0 0.001
161
+ P00005 CondA 3 run_CondA_3 1005.0 0.001
162
+ P00006 CondA 1 run_CondA_1 1006.0 0.001
163
+ P00007 CondB 3 run_CondB_3 1007.0 0.001
164
+ P00009 CondB 1 run_CondB_1 1009.0 0.001
165
+ P00010 CondA 1 run_CondA_1 1010.0 0.001
166
+ P00011 CondA 1 run_CondA_1 1011.0 0.001
167
+ P00011 CondB 1 run_CondB_1 1011.0 0.001
168
+ P00012 CondA 3 run_CondA_3 1012.0 0.001
169
+ P00012 CondB 2 run_CondB_2 1012.0 0.001
170
+ P00013 CondB 1 run_CondB_1 1013.0 0.001
171
+ P00019 CondA 1 run_CondA_1 1019.0 0.001
172
+ P00020 CondA 3 run_CondA_3 1020.0 0.001
173
+ P00021 CondA 2 run_CondA_2 1021.0 0.001
174
+ P00024 CondB 2 run_CondB_2 1024.0 0.001
175
+ P00025 CondB 2 run_CondB_2 1025.0 0.001
176
+ P00026 CondB 1 run_CondB_1 1026.0 0.001
177
+ P00029 CondA 1 run_CondA_1 1029.0 0.001
178
+ P00030 CondA 2 run_CondA_2 1030.0 0.001
179
+ P00031 CondB 2 run_CondB_2 1031.0 0.001
180
+ P00033 CondA 3 run_CondA_3 1033.0 0.001
181
+ P00033 CondB 1 run_CondB_1 1033.0 0.001
182
+ P00034 CondB 1 run_CondB_1 1034.0 0.001
183
+ P70001 CondA 3 run_CondA_3 7000.0 0.002
184
+ P70001 CondB 2 run_CondB_2 7000.0 0.002
185
+ P70002 CondB 1 run_CondB_1 6500.0
186
+ P00000 CondA 1 run_CondA_1 1000.0 0.001
187
+ P00003 CondA 3 run_CondA_3 1003.0 0.001
188
+ P00005 CondA 2 run_CondA_2 1005.0 0.001
189
+ P00007 CondB 2 run_CondB_2 1007.0 0.001
190
+ P00009 CondA 1 run_CondA_1 1009.0 0.001
191
+ P00012 CondA 2 run_CondA_2 1012.0 0.001
192
+ P00012 CondB 3 run_CondB_3 1012.0 0.001
193
+ P00013 CondA 1 run_CondA_1 1013.0 0.001
194
+ P00016 CondB 1 run_CondB_1 1016.0 0.001
195
+ P00020 CondA 2 run_CondA_2 1020.0 0.001
196
+ P00021 CondA 3 run_CondA_3 1021.0 0.001
197
+ P00021 CondB 1 run_CondB_1 1021.0 0.001
198
+ P00023 CondA 1 run_CondA_1 1023.0 0.001
199
+ P00024 CondB 3 run_CondB_3 1024.0 0.001
200
+ P00025 CondB 3 run_CondB_3 1025.0 0.001
201
+ P00027 CondB 1 run_CondB_1 1027.0 0.001
202
+ P00029 CondB 1 run_CondB_1 1029.0 0.001
203
+ P00030 CondA 3 run_CondA_3 1030.0 0.001
204
+ P00031 CondB 3 run_CondB_3 1031.0 0.001
205
+ P00033 CondA 2 run_CondA_2 1033.0 0.001
206
+ P70001 CondA 2 run_CondA_2 7000.0 0.002
207
+ P70001 CondB 3 run_CondB_3 7000.0 0.002
208
+ P70003 CondA 1 run_CondA_1 6600.0
209
+ P00002 CondA 1 run_CondA_1 1002.0 0.001
210
+ P00002 CondB 2 run_CondB_2 1002.0 0.001
211
+ P00006 CondB 2 run_CondB_2 1006.0 0.001
212
+ P00008 CondA 2 run_CondA_2 1008.0 0.001
213
+ P00008 CondB 1 run_CondB_1 1008.0 0.001
214
+ P00010 CondB 1 run_CondB_1 1010.0 0.001
215
+ P00014 CondA 2 run_CondA_2 1014.0 0.001
216
+ P00015 CondA 3 run_CondA_3 1015.0 0.001
217
+ P00015 CondB 2 run_CondB_2 1015.0 0.001
218
+ P00016 CondA 2 run_CondA_2 1016.0 0.001
219
+ P00017 CondA 3 run_CondA_3 1017.0 0.001
220
+ P00017 CondB 3 run_CondB_3 1017.0 0.001
221
+ P00018 CondB 1 run_CondB_1 1018.0 0.001
222
+ P00022 CondA 2 run_CondA_2 1022.0 0.001
223
+ P00022 CondB 3 run_CondB_3 1022.0 0.001
224
+ P00023 CondB 2 run_CondB_2 1023.0 0.001
225
+ P00024 CondA 3 run_CondA_3 1024.0 0.001
226
+ P00025 CondA 1 run_CondA_1 1025.0 0.001
227
+ P00027 CondA 1 run_CondA_1 1027.0 0.001
228
+ P00028 CondA 3 run_CondA_3 1028.0 0.001
229
+ P00028 CondB 3 run_CondB_3 1028.0 0.001
230
+ P00030 CondB 1 run_CondB_1 1030.0 0.001
231
+ P00031 CondA 1 run_CondA_1 1031.0 0.001
232
+ P00032 CondB 3 run_CondB_3 1032.0 0.001
233
+ P00034 CondA 3 run_CondA_3 1034.0 0.001
234
+ P00035 CondB 3 run_CondB_3 1035.0 0.001
235
+ P70003 CondB 3 run_CondB_3 6600.0