@datagrok/curves 1.12.0 → 1.12.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/CHANGELOG.md CHANGED
@@ -1,7 +1,18 @@
1
1
  # Curves changelog
2
2
 
3
+ ## 1.12.0 (2026-04-02)
4
+
5
+ ### Features
6
+
7
+ * Added PZFX (GraphPad Prism) file viewer and handler
8
+ * Added dynamically extendable format support
9
+
3
10
  ## 1.11.0 (2026-03-13)
4
11
 
12
+ ### Features
13
+
14
+ * Added editable GridCellWidget support
15
+
5
16
  ## 1.10.15 (2025-12-02)
6
17
 
7
18
  * Png Renderer: Fix flickering and moved to PowerGrid
package/CLAUDE.md CHANGED
@@ -1,23 +1,11 @@
1
1
  # CLAUDE.md
2
2
 
3
- This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
4
-
5
3
  ## Overview
6
4
 
7
5
  **Curves** (`@datagrok/curves`) is a Datagrok plugin for **fitted curves** — dose-response curves, sigmoid fits, and general curve fitting. It provides in-grid cell rendering of charts stored in various formats in cells, interactive editing (outlier toggling, property panels), automatic curve fitting, a "Data to Curves" pipeline that converts well-level assay data into fitted curve summaries, a multi-curve overlay viewer, and statistics extraction (IC50, AUC, R², etc.).
8
6
 
9
7
  Category: **Visualizations**. Top menu: `Data | Curves | ...`.
10
8
 
11
- ## Build Commands
12
-
13
- ```bash
14
- npm install
15
- npm run build # grok api && grok check --soft && webpack
16
- npm run test # grok test
17
- npm run build-all # Builds js-api → utils → statistics → this package
18
- npm run link-all # Links datagrok-api, @datagrok-libraries/utils, @datagrok-libraries/statistics
19
- ```
20
-
21
9
  ## Key Dependencies
22
10
 
23
11
  - `@datagrok-libraries/statistics` — **core fitting engine**: defines `IFitChartData`, `IFitSeries`, `IFitChartOptions`, `IFitPoint`, `FitStatistics`, `FitCurve`, `FitFunction` classes, Nelder-Mead optimizer, sigmoid/linear/log-linear/exponential/4PL fit functions, confidence intervals, box-plot statistics, and `FitConstants` (tags, sizing, thresholds)
package/CREDITS.md ADDED
@@ -0,0 +1,79 @@
1
+ # Curves — Third-Party Libraries
2
+
3
+ The `@datagrok/curves` package is distributed under the MIT license that
4
+ covers the rest of the `public/` repository (see [`../../LICENSE.md`](../../LICENSE.md)).
5
+ It incorporates the open-source components listed below; this file reproduces
6
+ the attribution and notices required by their respective licenses.
7
+
8
+ All runtime JavaScript dependencies bundled into the published artifact are
9
+ under permissive licenses (MIT). No copyleft (GPL/LGPL/MPL) component is
10
+ bundled into the published Curves plugin.
11
+
12
+ ---
13
+
14
+ ## 1. Bundled in the published artifact (`dist/`)
15
+
16
+ ### jStat (1.9.x)
17
+
18
+ Statistical distributions library used for confidence-interval and goodness-of-fit
19
+ calculations on dose-response curves.
20
+
21
+ - Upstream: https://github.com/jstat/jstat
22
+ - License: **MIT**
23
+
24
+ ```
25
+ Copyright (c) 2013 jStat
26
+
27
+ Permission is hereby granted, free of charge, to any person obtaining a copy
28
+ of this software and associated documentation files (the "Software"), to deal
29
+ in the Software without restriction, including without limitation the rights
30
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
31
+ copies of the Software, and to permit persons to whom the Software is
32
+ furnished to do so, subject to the following conditions:
33
+
34
+ The above copyright notice and this permission notice shall be included in
35
+ all copies or substantial portions of the Software.
36
+
37
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
38
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
39
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
40
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
41
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
42
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
43
+ THE SOFTWARE.
44
+ ```
45
+
46
+ (`@types/wu` is a TypeScript-only types stub for the `wu` external — no
47
+ runtime code is shipped from it. `eslint`, `eslint-config-google`, and the
48
+ `@typescript-eslint/*` packages are listed in `dependencies` but are
49
+ build-time-only and produce no bundled output.)
50
+
51
+ ---
52
+
53
+ ## 2. Linked at runtime via the Datagrok platform (webpack externals)
54
+
55
+ These libraries are not bundled into Curves's `dist/` — they are provided
56
+ once by the platform host and shared across all packages.
57
+
58
+ | Component | Version | License | Upstream |
59
+ |----------------------------------|---------|--------------|---------------------------------------------------|
60
+ | datagrok-api | 1.x | MIT | https://github.com/datagrok-ai/public |
61
+ | RxJS | 6.x | Apache-2.0 | https://github.com/ReactiveX/rxjs |
62
+ | cash-dom | 8.x | MIT | https://github.com/fabiospampinato/cash |
63
+ | Day.js | 1.x | MIT | https://github.com/iamkun/dayjs |
64
+ | ExcelJS | 4.x | MIT | https://github.com/exceljs/exceljs |
65
+
66
+ ---
67
+
68
+ ## 3. Development-only dependencies
69
+
70
+ Tools used during the build/test cycle (not in the runtime tree, not bundled):
71
+ the `datagrok-tools` CLI transitively pulls in `puppeteer-screen-recorder`,
72
+ which references `@ffmpeg-installer/ffmpeg` (LGPL-2.1) and
73
+ `@ffmpeg-installer/win32-x64` (GPLv3). These binaries are **not** redistributed
74
+ as part of the published Curves plugin and impose no obligation on users of
75
+ the plugin.
76
+
77
+ The `scripts/calculateMSR.py` Python script depends on `statsmodels` (BSD-3-Clause)
78
+ and runs on the Datagrok server's managed Python environment — it is not part
79
+ of the JavaScript bundle.
@@ -0,0 +1,29 @@
1
+ packageName: Curves
2
+ description: Dose-response curve fitting and statistics — fits 4PL/sigmoidal curves to concentration-readout data, extracts IC50/Hill/AUC/top/bottom per row, renders inline curve cells, and provides assay-plate and well-level workflows.
3
+ keywords:
4
+ - dose-response
5
+ - dose response
6
+ - curve fitting
7
+ - 4PL
8
+ - sigmoidal
9
+ - IC50
10
+ - EC50
11
+ - hill slope
12
+ - AUC
13
+ - intercept
14
+ - top
15
+ - bottom
16
+ - r-squared
17
+ - fit chart
18
+ - fit statistics
19
+ - assay plate
20
+ - assay readout
21
+ - well level
22
+ - data to curves
23
+ - pzfx
24
+ - prism
25
+ - 3dx
26
+ - compact-dr
27
+ - curve renderer
28
+ apiRef: src/package-api.ts
29
+ docsRef: README.md
@@ -10177,6 +10177,7 @@ function convertDataToCurves(df, concentrationCol, readoutCol, batchIDCol, assay
10177
10177
  "use strict";
10178
10178
  __webpack_require__.r(__webpack_exports__);
10179
10179
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
10180
+ /* harmony export */ assayCurvesDemo: () => (/* binding */ assayCurvesDemo),
10180
10181
  /* harmony export */ createDemoDataFrame: () => (/* binding */ createDemoDataFrame),
10181
10182
  /* harmony export */ createSigmoidPoints: () => (/* binding */ createSigmoidPoints),
10182
10183
  /* harmony export */ curveDemo: () => (/* binding */ curveDemo)
@@ -10293,6 +10294,20 @@ function curveDemo() {
10293
10294
  // tableView.addViewer('MultiCurveViewer');
10294
10295
  });
10295
10296
  }
10297
+ function assayCurvesDemo() {
10298
+ return __awaiter(this, void 0, void 0, function* () {
10299
+ const df = yield datagrok_api_grok__WEBPACK_IMPORTED_MODULE_1__.data.loadTable(`${_package__WEBPACK_IMPORTED_MODULE_2__._package.webRoot}files/demo/Assay_Curves.csv`);
10300
+ yield df.meta.detectSemanticTypes();
10301
+ const layoutTXT = yield _package__WEBPACK_IMPORTED_MODULE_2__._package.files.readAsText('demo/Assay_Curves.layout');
10302
+ const layout = datagrok_api_dg__WEBPACK_IMPORTED_MODULE_0__.ViewLayout.fromJson(layoutTXT);
10303
+ df.selection.set(13, true);
10304
+ df.selection.set(14, true); // two curves for multicurve viewer
10305
+ const tv = datagrok_api_grok__WEBPACK_IMPORTED_MODULE_1__.shell.addTableView(df);
10306
+ yield datagrok_api_dg__WEBPACK_IMPORTED_MODULE_0__.delay(100);
10307
+ tv.loadLayout(layout, true);
10308
+ datagrok_api_grok__WEBPACK_IMPORTED_MODULE_1__.shell.info('Select cells in Trellis plot to see corresponding curves in Multi Curve Viewer.', { timeout: 10 });
10309
+ });
10310
+ }
10296
10311
 
10297
10312
 
10298
10313
  /***/ },
@@ -12276,6 +12291,7 @@ __webpack_require__.r(__webpack_exports__);
12276
12291
  /* harmony export */ _initCurves: () => (/* binding */ _initCurves),
12277
12292
  /* harmony export */ addAggrStatisticsColumn: () => (/* binding */ addAggrStatisticsColumn),
12278
12293
  /* harmony export */ addStatisticsColumn: () => (/* binding */ addStatisticsColumn),
12294
+ /* harmony export */ assayCurveFitDemo: () => (/* binding */ assayCurveFitDemo),
12279
12295
  /* harmony export */ convertCompactDrToJsonFunc: () => (/* binding */ convertCompactDrToJsonFunc),
12280
12296
  /* harmony export */ convertPzfxToJsonFunc: () => (/* binding */ convertPzfxToJsonFunc),
12281
12297
  /* harmony export */ convertXmlCurveToJsonFunc: () => (/* binding */ convertXmlCurveToJsonFunc),
@@ -12326,6 +12342,14 @@ function curveFitDemo() {
12326
12342
  yield _package__WEBPACK_IMPORTED_MODULE_0__.PackageFunctions.curveFitDemo();
12327
12343
  });
12328
12344
  }
12345
+ //name: Assay Curves
12346
+ //description: Dashboard with curves for multiple compounds, assays and targets
12347
+ //meta.demoPath: Curves | Assay Curves
12348
+ function assayCurveFitDemo() {
12349
+ return __awaiter(this, void 0, void 0, function* () {
12350
+ yield _package__WEBPACK_IMPORTED_MODULE_0__.PackageFunctions.assayCurveFitDemo();
12351
+ });
12352
+ }
12329
12353
  //meta.role: init
12330
12354
  function _initCurves() {
12331
12355
  return __awaiter(this, void 0, void 0, function* () {
@@ -12442,6 +12466,7 @@ __webpack_require__.r(__webpack_exports__);
12442
12466
  /* harmony export */ _package: () => (/* binding */ _package),
12443
12467
  /* harmony export */ addAggrStatisticsColumn: () => (/* reexport safe */ _package_g__WEBPACK_IMPORTED_MODULE_0__.addAggrStatisticsColumn),
12444
12468
  /* harmony export */ addStatisticsColumn: () => (/* reexport safe */ _package_g__WEBPACK_IMPORTED_MODULE_0__.addStatisticsColumn),
12469
+ /* harmony export */ assayCurveFitDemo: () => (/* reexport safe */ _package_g__WEBPACK_IMPORTED_MODULE_0__.assayCurveFitDemo),
12445
12470
  /* harmony export */ convertCompactDrToJsonFunc: () => (/* reexport safe */ _package_g__WEBPACK_IMPORTED_MODULE_0__.convertCompactDrToJsonFunc),
12446
12471
  /* harmony export */ convertPzfxToJsonFunc: () => (/* reexport safe */ _package_g__WEBPACK_IMPORTED_MODULE_0__.convertPzfxToJsonFunc),
12447
12472
  /* harmony export */ convertXmlCurveToJsonFunc: () => (/* reexport safe */ _package_g__WEBPACK_IMPORTED_MODULE_0__.convertXmlCurveToJsonFunc),
@@ -12526,6 +12551,11 @@ class PackageFunctions {
12526
12551
  yield (0,_fit_fit_demo__WEBPACK_IMPORTED_MODULE_5__.curveDemo)();
12527
12552
  });
12528
12553
  }
12554
+ static assayCurveFitDemo() {
12555
+ return __awaiter(this, void 0, void 0, function* () {
12556
+ yield (0,_fit_fit_demo__WEBPACK_IMPORTED_MODULE_5__.assayCurvesDemo)();
12557
+ });
12558
+ }
12529
12559
  // @grok.decorators.func({
12530
12560
  // name: 'Assay Plates',
12531
12561
  // description: 'Assasy plates with concentration, layout and readout data',
@@ -12681,6 +12711,16 @@ __decorate([
12681
12711
  __metadata("design:paramtypes", []),
12682
12712
  __metadata("design:returntype", Promise)
12683
12713
  ], PackageFunctions, "curveFitDemo", null);
12714
+ __decorate([
12715
+ datagrok_api_grok__WEBPACK_IMPORTED_MODULE_2__.decorators.demo({
12716
+ name: 'Assay Curves',
12717
+ description: 'Dashboard with curves for multiple compounds, assays and targets',
12718
+ meta: { demoPath: 'Curves | Assay Curves' },
12719
+ }),
12720
+ __metadata("design:type", Function),
12721
+ __metadata("design:paramtypes", []),
12722
+ __metadata("design:returntype", Promise)
12723
+ ], PackageFunctions, "assayCurveFitDemo", null);
12684
12724
  __decorate([
12685
12725
  datagrok_api_grok__WEBPACK_IMPORTED_MODULE_2__.decorators.init(),
12686
12726
  __metadata("design:type", Function),