@datagrok/peptides 1.27.8 → 1.27.10
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/CHANGELOG.md +7 -0
- package/CLAUDE.md +1 -0
- package/CREDITS.md +74 -0
- package/dist/package-test.js +1 -1
- package/dist/package-test.js.map +1 -1
- package/dist/package.js +1 -1
- package/dist/package.js.map +1 -1
- package/package.json +8 -8
- package/src/model.ts +1 -2
- package/src/package-api.ts +7 -0
- package/src/package.g.ts +10 -0
- package/src/package.ts +13 -0
- package/src/tests/viewers.ts +56 -0
- package/src/utils/misc.ts +2 -2
- package/src/viewers/peptide-generation-viewer.ts +745 -0
- package/test-console-output-1.log +97 -137
- package/test-record-1.mp4 +0 -0
- package/tsconfig.json +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Peptides changelog
|
|
2
2
|
|
|
3
|
+
## 1.27.10 (2026-07-08)
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* Peptide Generation: New viewer that designs new candidate peptides from monomer-position statistics using an additive positional model, ranked by predicted activity (High/Low target) with per-peptide statistical support and novelty flags. Reuses the SAR viewers'/model's cached statistics when available, reacts to the dataframe filter, applies empirical-Bayes shrinkage to damp low-support noise, and carries an info icon explaining the model and its caveats. Appends per-position "basis" columns that render each chosen monomer (colored from the monomer library, width-fitted) with an effect circle (size = per-row-normalized effect magnitude, color = direction × significance: red raises, blue lowers, pale ≈ weak, grey = untestable) and the signed contribution value, with Most-Potent-Residues-style activity-distribution tooltips that explain the encoding. A header "+" button opens the generated peptides as a standalone table view, flattening the basis columns to "monomer, contribution, p-value" text. Not added to SAR analysis by default — add it manually from the viewers menu.
|
|
8
|
+
|
|
9
|
+
* Moved the Peptides Playwright E2E suite into the package (playwright/); helpers from @datagrok-libraries/test/src/playwright
|
|
3
10
|
## 1.27.4 - 1.27.7 (2026-03-20)
|
|
4
11
|
|
|
5
12
|
### Features
|
package/CLAUDE.md
CHANGED
|
@@ -80,6 +80,7 @@ Key types:
|
|
|
80
80
|
| `mutation-cliffs-viewer.ts` | `MutationCliffsViewer` | Line chart of mutation cliffs at a selected position. Splits by series column, syncs selection with main dataframe |
|
|
81
81
|
| `cluster-max-activity-viewer.ts` | `ClusterMaxActivityViewer` | Scatter plot: cluster size vs max activity per cluster. Draws threshold lines, supports auto-selection of top quadrants |
|
|
82
82
|
| `position-statistics-viewer.ts` | `SequencePositionStatsViewer` | Box/violin plot of numerical values grouped by monomers at a selected position. Configurable motif overhang |
|
|
83
|
+
| `peptide-generation-viewer.ts` | `PeptideGenerationViewer` | **Optional, not added by default.** De novo peptide generator. Reuses `calculateMonomerPositionStatistics` (sharing the SAR viewers'/model's cached stats when they match) and an additive positional (Free-Wilson-style) model with empirical-Bayes shrinkage to synthesize new candidate peptides via bounded beam search, ranked by predicted activity (High/Low). Each row reports predicted activity, confidence, min support, mean p-value, significant positions and novelty. Appends per-position **basis columns** custom-rendered via `onCellRender` (library-colored width-fitted monomer + effect circle whose size = per-row-normalized effect magnitude and color = direction × significance (red raises / blue lowers, pale = weak, grey = untestable) + signed contribution number) with `showTooltip` activity-distribution tooltips that explain the encoding, mirroring Most Potent Residues. Builds sequences with `seqHandler.joiner` + `StringListSeqSplitted` + `getNewColumnFromList` |
|
|
83
84
|
|
|
84
85
|
### Export Features (context menu on Sequence Variability Map / Most Potent Residues)
|
|
85
86
|
|
package/CREDITS.md
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
# Peptides — Third-Party Libraries
|
|
2
|
+
|
|
3
|
+
The `@datagrok/peptides` package is distributed under the MIT license that
|
|
4
|
+
covers the rest of the `public/` repository (see
|
|
5
|
+
[`../../LICENSE.md`](../../LICENSE.md)). It incorporates the open-source
|
|
6
|
+
components listed below; this file reproduces the attribution and notices
|
|
7
|
+
required by their respective licenses.
|
|
8
|
+
|
|
9
|
+
All runtime dependencies bundled into the published artifact are under
|
|
10
|
+
permissive licenses (MIT). No copyleft (GPL/LGPL/MPL) component is bundled
|
|
11
|
+
into the published Peptides plugin.
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
## 1. Bundled in the published artifact (`dist/`)
|
|
16
|
+
|
|
17
|
+
### uuid (10.x)
|
|
18
|
+
|
|
19
|
+
RFC-compliant UUID generation, used to assign stable identifiers to
|
|
20
|
+
clusters / mutation-cliff records and to namespace viewer settings.
|
|
21
|
+
|
|
22
|
+
- Upstream: https://github.com/uuidjs/uuid
|
|
23
|
+
- License: **MIT**
|
|
24
|
+
|
|
25
|
+
```
|
|
26
|
+
The MIT License (MIT)
|
|
27
|
+
|
|
28
|
+
Copyright (c) 2010-2020 Robert Kieffer and other contributors
|
|
29
|
+
|
|
30
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
31
|
+
|
|
32
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
33
|
+
|
|
34
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
---
|
|
38
|
+
|
|
39
|
+
## 2. Linked at runtime via the Datagrok platform (webpack externals)
|
|
40
|
+
|
|
41
|
+
These libraries are not bundled into Peptides' `dist/` — they are provided
|
|
42
|
+
once by the platform host and shared across all packages.
|
|
43
|
+
|
|
44
|
+
| Component | Version | License | Upstream |
|
|
45
|
+
|-----------|---------|---------|-----------------------------------------|
|
|
46
|
+
| cash-dom | 8.x | MIT | https://github.com/fabiospampinato/cash |
|
|
47
|
+
| RxJS | 6.x | Apache-2.0 | https://github.com/ReactiveX/rxjs |
|
|
48
|
+
| wu.js | 2.x | MIT | https://github.com/fitzgen/wu.js |
|
|
49
|
+
|
|
50
|
+
---
|
|
51
|
+
|
|
52
|
+
## 3. Fetched at runtime from third-party CDNs (not bundled)
|
|
53
|
+
|
|
54
|
+
None.
|
|
55
|
+
|
|
56
|
+
---
|
|
57
|
+
|
|
58
|
+
## 4. Docker container images (`dockerfiles/`)
|
|
59
|
+
|
|
60
|
+
None.
|
|
61
|
+
|
|
62
|
+
---
|
|
63
|
+
|
|
64
|
+
## 5. Development-only dependencies
|
|
65
|
+
|
|
66
|
+
Tools used during the build/test cycle (not in the runtime tree, not bundled):
|
|
67
|
+
the `datagrok-tools` CLI, the TypeScript / webpack toolchain, and `file-loader`
|
|
68
|
+
(MIT, *Copyright JS Foundation and other contributors*) used by webpack at
|
|
69
|
+
build time only. The peer/devDependencies on other Datagrok plugins
|
|
70
|
+
(`@datagrok/bio`, `@datagrok/chem`, `@datagrok/dendrogram`, `@datagrok/eda`,
|
|
71
|
+
`@datagrok/helm`) and on `@datagrok-libraries/helm-web-editor` /
|
|
72
|
+
`@datagrok-libraries/js-draw-lite` are MIT — covered by the repo-wide
|
|
73
|
+
`LICENSE.md`. These are **not** redistributed as part of the published
|
|
74
|
+
Peptides plugin and impose no obligation on users of the plugin.
|