@datagrok/peptides 1.14.1 → 1.15.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.
Files changed (51) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/dist/196.js +3 -0
  3. package/dist/196.js.LICENSE.txt +51 -0
  4. package/dist/209.js +2 -2
  5. package/dist/361.js +2 -0
  6. package/dist/381.js +2 -0
  7. package/dist/436.js +2 -0
  8. package/dist/694.js +2 -0
  9. package/dist/831.js +2 -0
  10. package/dist/868.js +2 -0
  11. package/dist/package-test.js +3 -2
  12. package/dist/package-test.js.LICENSE.txt +51 -0
  13. package/dist/package.js +3 -2
  14. package/dist/package.js.LICENSE.txt +51 -0
  15. package/files/help/logo-summary-table.md +23 -0
  16. package/files/help/monomer-position.md +31 -0
  17. package/files/help/most-potent-residues.md +17 -0
  18. package/files/icons/ribbon/logo-summary-viewer.svg +8 -0
  19. package/files/icons/ribbon/peptide-sar-vertical-viewer.svg +10 -0
  20. package/files/icons/ribbon/peptide-sar-viewer.svg +11 -0
  21. package/files/tests/100k.d42 +0 -0
  22. package/files/tests/200k.d42 +0 -0
  23. package/files/tests/50k.d42 +0 -0
  24. package/files/tests/{aligned_5k.d42 → 5k.d42} +0 -0
  25. package/package.json +5 -5
  26. package/src/model.ts +85 -175
  27. package/src/package-test.ts +7 -6
  28. package/src/tests/benchmarks.ts +95 -0
  29. package/src/tests/core.ts +4 -75
  30. package/src/tests/{algorithms.ts → misc.ts} +3 -16
  31. package/src/tests/model.ts +3 -14
  32. package/src/tests/table-view.ts +4 -14
  33. package/src/tests/viewers.ts +7 -1
  34. package/src/tests/widgets.ts +9 -1
  35. package/src/utils/algorithms.ts +166 -16
  36. package/src/utils/cell-renderer.ts +12 -7
  37. package/src/utils/constants.ts +2 -0
  38. package/src/utils/misc.ts +2 -1
  39. package/src/utils/parallel-mutation-cliffs.ts +106 -0
  40. package/src/utils/types.ts +1 -1
  41. package/src/viewers/logo-summary.ts +9 -6
  42. package/src/viewers/sar-viewer.ts +28 -14
  43. package/src/widgets/mutation-cliffs.ts +2 -2
  44. package/src/widgets/peptides.ts +15 -5
  45. package/src/widgets/selection.ts +9 -0
  46. package/src/widgets/settings.ts +3 -8
  47. package/src/workers/mutation-cliffs-worker.ts +77 -0
  48. package/dist/521.js +0 -2
  49. package/dist/677.js +0 -2
  50. package/dist/729.js +0 -2
  51. package/dist/959.js +0 -2
@@ -0,0 +1,51 @@
1
+ /**
2
+ * @license
3
+ *
4
+ * Copyright 2019 Google LLC. All Rights Reserved.
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License");
7
+ * you may not use this file except in compliance with the License.
8
+ * You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ * ==============================================================================
18
+ */
19
+
20
+ /**
21
+ * @license
22
+ * BSD 3-Clause License
23
+ *
24
+ * Copyright (c) 2017, Leland McInnes
25
+ * All rights reserved.
26
+ *
27
+ * Redistribution and use in source and binary forms, with or without
28
+ * modification, are permitted provided that the following conditions are met:
29
+ *
30
+ * * Redistributions of source code must retain the above copyright notice, this
31
+ * list of conditions and the following disclaimer.
32
+ *
33
+ * * Redistributions in binary form must reproduce the above copyright notice,
34
+ * this list of conditions and the following disclaimer in the documentation
35
+ * and/or other materials provided with the distribution.
36
+ *
37
+ * * Neither the name of the copyright holder nor the names of its
38
+ * contributors may be used to endorse or promote products derived from
39
+ * this software without specific prior written permission.
40
+ *
41
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
42
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
43
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
44
+ * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
45
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
46
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
47
+ * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
48
+ * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
49
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
50
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
51
+ */
@@ -0,0 +1,23 @@
1
+ # Logo Summary Table
2
+
3
+ Logo Summary Table shows WebLogo, activity distribution and statistics for each of the clusters in data. Statistics include
4
+ mean difference, p-value, count and ratio.
5
+
6
+ # Responsiveness
7
+
8
+ Logo Summary Table reacts to filters applied to the data and shows only clusters of filtered rows. In this case WebLogo,
9
+ activity distribution and statistics are calculated with respect to filtered rows.
10
+
11
+ ## Interactivity
12
+
13
+ Logo Summary Tabl viewer selection follows default pattern as any other Datagrok viewer.
14
+
15
+ | | |
16
+ |------------------|-------------------------------|
17
+ | Click | Single selection of Cluster |
18
+ | Ctrl+Click | Toggle Cluster selection state|
19
+ | Shift+Click | Add Cluster to selection |
20
+ | Ctrl+Shift+Click | Deselect Cluster |
21
+
22
+ Hovering over any cell will show tooltip with distribution and statistics of the monomer-position and highlight corresponding
23
+ points on other viewers.
@@ -0,0 +1,31 @@
1
+ # Monomer-Position viewer
2
+
3
+ Monomer-Position viewer is a matrix-like grid, where rows correspond to monomers and columns to positions. This viewer works in two modes: Mutation Cliffs and Invariant Map.
4
+
5
+ ## Mutation Cliffs mode
6
+
7
+ Mutation Cliffs mode highlights the most signficant monomer-position pairs. The significance of the monomer-position is
8
+ color-coded with blue for negative mean difference of the sequences containing monomer-position vs. rest of the sequences,
9
+ and red for positive mean difference. Color intensity is defined by p-value. The size of the circle represents the value of mean difference:
10
+ smaller circles represent low mean difference values; large circles represent hight mean difference values. Some of the
11
+ cells contain number of unique sequences for given monomer-position, that form Mutation Cliff pairs.
12
+
13
+ ## Invariant Map mode
14
+
15
+ Invariant Map mode shows number of sequences that contain monomer-position. Cells are color-coded based on the aggregation
16
+ function on some numeric column. By default average scaled activity values for given monomer-position is used. Column and
17
+ aggregation function can be changed in viewer properties.
18
+
19
+ ## Interactivity
20
+
21
+ Monomer-Position viewer selection follows default pattern as any other Datagrok viewer.
22
+
23
+ | | |
24
+ |------------------|----------------------------------------|
25
+ | Click | Single selection of Monomer-Position |
26
+ | Ctrl+Click | Toggle Monomer-Position selection state|
27
+ | Shift+Click | Add Monomer-Position to selection |
28
+ | Ctrl+Shift+Click | Deselect Monomer-Position |
29
+
30
+ Hovering over any cell will show tooltip with distribution and statistics of the monomer-position and highlight corresponding
31
+ points on other viewers.
@@ -0,0 +1,17 @@
1
+ # Most Potent Residues
2
+
3
+ Most Potent Residues viewer for each position finds the most potent monomer and shows statistics for the monomer-position. Statistics include mean difference, p-value, count and ratio.
4
+
5
+ ## Interactivity
6
+
7
+ Most Potent Residues viewer selection follows default pattern as any other Datagrok viewer.
8
+
9
+ | | |
10
+ |------------------|----------------------------------------|
11
+ | Click | Single selection of Monomer-Position |
12
+ | Ctrl+Click | Toggle Monomer-Position selection state|
13
+ | Shift+Click | Add Monomer-Position to selection |
14
+ | Ctrl+Shift+Click | Deselect Monomer-Position |
15
+
16
+ Hovering over any cell will show tooltip with distribution and statistics of the monomer-position and highlight corresponding
17
+ points on other viewers.
@@ -0,0 +1,8 @@
1
+ <svg width="36" height="36" viewBox="0 0 36 36" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M20.6603 18.7754C20.9386 18.7754 21.1871 18.697 21.4058 18.5401C21.6244 18.3832 21.7984 18.1622 21.9276 17.877C22.0618 17.5918 22.1338 17.2602 22.1438 16.8824H24C23.9901 17.6667 23.836 18.369 23.5378 18.9893C23.2396 19.6096 22.842 20.1016 22.345 20.4652C21.853 20.8217 21.3014 21 20.6901 21C20.0689 21 19.5272 20.8503 19.065 20.5508C18.6028 20.2513 18.2176 19.8342 17.9095 19.2995C17.6063 18.7647 17.3777 18.1444 17.2236 17.4385C17.0745 16.7326 17 15.9768 17 15.1711V14.8289C17 14.0232 17.0745 13.2674 17.2236 12.5615C17.3777 11.8556 17.6063 11.2353 17.9095 10.7005C18.2176 10.1658 18.6028 9.74866 19.065 9.4492C19.5272 9.14973 20.0664 9 20.6826 9C21.3337 9 21.9052 9.18182 22.3972 9.54545C22.8942 9.90909 23.2819 10.4225 23.5602 11.0856C23.8435 11.7487 23.9901 12.5294 24 13.4278H22.1438C22.1338 13.0143 22.0692 12.6435 21.9499 12.3155C21.8307 11.9875 21.6617 11.7237 21.443 11.5241C21.2244 11.3244 20.9585 11.2246 20.6454 11.2246C20.3124 11.2246 20.0341 11.3244 19.8104 11.5241C19.5918 11.7237 19.4203 11.9982 19.2961 12.3476C19.1768 12.6898 19.0923 13.0749 19.0426 13.5027C18.9979 13.9234 18.9755 14.3654 18.9755 14.8289V15.1711C18.9755 15.6417 18.9979 16.0909 19.0426 16.5187C19.0923 16.9465 19.1768 17.3316 19.2961 17.6738C19.4203 18.0089 19.5918 18.2763 19.8104 18.4759C20.0341 18.6756 20.3174 18.7754 20.6603 18.7754Z" fill="#40607F"/>
3
+ <path d="M9.87361 5.73214L5.24535 21H2L8.06691 3H10.1413L9.87361 5.73214ZM13.7435 21L9.09294 5.73214L8.81413 3H10.8996L17 21H13.7435ZM13.5316 14.3118V16.9945H4.82156V14.3118H13.5316Z" fill="#40607F"/>
4
+ <path d="M34 7V21H31.8769L27.1154 11.2885V21H25V7H27.1154L31.8923 16.7212V7H34Z" fill="#40607F" fill-opacity="0.5"/>
5
+ <path d="M6.44251 31.0838L8.63182 23H9.81707L9.89257 24.7033L7.55226 33H6.29907L6.44251 31.0838ZM5.06098 23L6.85772 31.0563V33H5.49129L3 23H5.06098ZM12.1649 31.022L13.9315 23H16L13.5087 33H12.1423L12.1649 31.022ZM10.3833 23L12.5726 31.1113L12.7009 33H11.4477L9.11498 24.6964L9.20557 23H10.3833Z" fill="#40607F" fill-opacity="0.5"/>
6
+ <path d="M21.3392 31.554V24H23V32.8843H21.5016L21.3392 31.554ZM17 29.8303V29.7089C17 29.2307 17.0583 28.7969 17.1748 28.4075C17.2955 28.0141 17.4703 27.6767 17.6993 27.3952C17.9282 27.1138 18.205 26.8959 18.5297 26.7416C18.8585 26.5874 19.231 26.5103 19.6472 26.5103C20.051 26.5103 20.4027 26.5855 20.7024 26.7359C21.0062 26.8862 21.2643 27.1003 21.4766 27.3779C21.693 27.6555 21.8658 27.9852 21.9948 28.367C22.1238 28.7449 22.2175 29.1613 22.2758 29.6163V29.946C22.2175 30.3895 22.1238 30.7963 21.9948 31.1665C21.8658 31.5366 21.693 31.8605 21.4766 32.1382C21.2643 32.412 21.0062 32.624 20.7024 32.7744C20.3985 32.9248 20.0427 33 19.6348 33C19.2227 33 18.8522 32.921 18.5234 32.7629C18.1988 32.6048 17.922 32.383 17.693 32.0977C17.4683 31.8123 17.2955 31.4769 17.1748 31.0913C17.0583 30.7057 17 30.2853 17 29.8303ZM18.6545 29.7089V29.8303C18.6545 30.1003 18.6795 30.3528 18.7294 30.588C18.7794 30.8233 18.8606 31.0315 18.9729 31.2127C19.0853 31.3901 19.2289 31.5289 19.4037 31.6292C19.5827 31.7294 19.7992 31.7796 20.0531 31.7796C20.3777 31.7796 20.6441 31.714 20.8522 31.5829C21.0645 31.4479 21.2289 31.2648 21.3455 31.0334C21.462 30.7982 21.5369 30.5341 21.5702 30.241V29.3329C21.5536 29.1015 21.5099 28.8875 21.4391 28.6909C21.3725 28.4942 21.2768 28.3246 21.1519 28.1819C21.0312 28.0392 20.8814 27.9274 20.7024 27.8464C20.5234 27.7654 20.3111 27.7249 20.0656 27.7249C19.8117 27.7249 19.5952 27.777 19.4162 27.8811C19.2373 27.9814 19.0916 28.1221 18.9792 28.3033C18.8668 28.4846 18.7836 28.6947 18.7294 28.9338C18.6795 29.1729 18.6545 29.4312 18.6545 29.7089Z" fill="#40607F" fill-opacity="0.7"/>
7
+ <path d="M28.9545 33H26.1L26.1182 31.3681H28.9545C29.7242 31.3681 30.3697 31.2271 30.8909 30.9451C31.4121 30.658 31.8061 30.2475 32.0727 29.7136C32.3394 29.1747 32.4727 28.53 32.4727 27.7795V27.2129C32.4727 26.6337 32.397 26.1225 32.2455 25.6793C32.0939 25.236 31.8697 24.8633 31.5727 24.5611C31.2818 24.2589 30.9212 24.0298 30.4909 23.8736C30.0606 23.7175 29.5667 23.6394 29.0091 23.6394H26.0455V22H29.0091C29.8939 22 30.7 22.1234 31.4273 22.3702C32.1606 22.617 32.7939 22.9721 33.3273 23.4354C33.8667 23.8938 34.2788 24.4428 34.5636 25.0824C34.8545 25.7221 35 26.4373 35 27.228V27.7795C35 28.5652 34.8545 29.2804 34.5636 29.9251C34.2788 30.5648 33.8667 31.1138 33.3273 31.5721C32.7939 32.0304 32.1576 32.383 31.4182 32.6298C30.6788 32.8766 29.8576 33 28.9545 33ZM27.5 22V33H25V22H27.5Z" fill="#40607F"/>
8
+ </svg>
@@ -0,0 +1,10 @@
1
+ <svg width="36" height="36" viewBox="0 0 36 36" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M30 7.5C30 6.94772 29.5523 6.5 29 6.5H15C14.4477 6.5 14 6.94772 14 7.5V7.5C14 8.05228 14.4477 8.5 15 8.5H29C29.5523 8.5 30 8.05228 30 7.5V7.5Z" fill="#B3BFCC"/>
3
+ <path d="M30 14.5C30 13.9477 29.5523 13.5 29 13.5H15C14.4477 13.5 14 13.9477 14 14.5V14.5C14 15.0523 14.4477 15.5 15 15.5H29C29.5523 15.5 30 15.0523 30 14.5V14.5Z" fill="#B3BFCC"/>
4
+ <path d="M30 21.5C30 20.9477 29.5523 20.5 29 20.5H15C14.4477 20.5 14 20.9477 14 21.5V21.5C14 22.0523 14.4477 22.5 15 22.5H29C29.5523 22.5 30 22.0523 30 21.5V21.5Z" fill="#B3BFCC"/>
5
+ <path d="M30 28.5C30 27.9477 29.5523 27.5 29 27.5H15C14.4477 27.5 14 27.9477 14 28.5V28.5C14 29.0523 14.4477 29.5 15 29.5H29C29.5523 29.5 30 29.0523 30 28.5V28.5Z" fill="#B3BFCC"/>
6
+ <circle cx="8" cy="7.5" r="3" fill="#40607F"/>
7
+ <circle cx="8" cy="14.5" r="1.5" fill="#7990A5"/>
8
+ <circle cx="8" cy="28.5" r="2" fill="#7990A5"/>
9
+ <circle cx="8" cy="21.5" r="2" fill="#40607F"/>
10
+ </svg>
@@ -0,0 +1,11 @@
1
+ <svg width="36" height="36" viewBox="0 0 36 36" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <circle cx="9" cy="9.5" r="3" fill="#40607F"/>
3
+ <circle cx="18" cy="9.5" r="2" fill="#7990A5"/>
4
+ <circle cx="9" cy="18" r="2" fill="#7990A5"/>
5
+ <circle cx="9" cy="27" r="2" fill="#7990A5"/>
6
+ <circle cx="18" cy="18" r="1.5" fill="#7990A5"/>
7
+ <circle cx="28" cy="18" r="2" fill="#7990A5"/>
8
+ <circle cx="28" cy="27" r="1.5" fill="#7990A5"/>
9
+ <circle cx="28" cy="9.5" r="3" fill="#40607F"/>
10
+ <circle cx="18" cy="27" r="3" fill="#40607F"/>
11
+ </svg>
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@datagrok/peptides",
3
3
  "friendlyName": "Peptides",
4
- "version": "1.14.1",
4
+ "version": "1.15.1",
5
5
  "author": {
6
6
  "name": "Volodymyr Dyma",
7
7
  "email": "vdyma@datagrok.ai"
@@ -13,10 +13,10 @@
13
13
  "directory": "packages/Peptides"
14
14
  },
15
15
  "dependencies": {
16
- "@datagrok-libraries/bio": "^5.38.2",
17
- "@datagrok-libraries/ml": "^6.3.40",
18
- "@datagrok-libraries/statistics": "^1.2.7",
19
- "@datagrok-libraries/utils": "^4.1.13",
16
+ "@datagrok-libraries/bio": "^5.38.13",
17
+ "@datagrok-libraries/ml": "^6.3.49",
18
+ "@datagrok-libraries/statistics": "^1.2.8",
19
+ "@datagrok-libraries/utils": "^4.1.18",
20
20
  "@datagrok-libraries/tutorials": "^1.3.7",
21
21
  "cash-dom": "^8.1.5",
22
22
  "datagrok-api": "^1.16.4",