@datagrok/curves 1.6.0 → 1.8.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.
- package/README.md +36 -8
- 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/img/plate-dose-response-series.gif +0 -0
- package/img/plate-readers.gif +0 -0
- package/package.json +13 -11
- package/src/fit/const.ts +3 -2
- package/src/fit/fit-grid-cell-handler.ts +61 -56
- package/src/fit/fit-renderer.ts +142 -79
- package/src/fit/multi-curve-viewer.ts +32 -11
- package/src/fit/render-utils.ts +196 -138
- package/src/package-test.ts +7 -1
- package/src/package.g.ts +8 -0
- package/src/package.ts +253 -10
- package/src/plate/excel-plates.ts +112 -0
- package/src/plate/plate-cell-renderer.ts +40 -0
- package/src/plate/plate-reader.ts +28 -0
- package/src/plate/plate-widget.ts +478 -0
- package/src/plate/plate.ts +446 -0
- package/src/plate/readers/bmg-pherastar-96.ts +42 -0
- package/src/plate/readers/delfia-envision-96-max-rlu.ts +15 -0
- package/src/plate/readers/delfia-envision-by-row.ts +18 -0
- package/src/plate/readers/spectramax.ts +43 -0
- package/src/plate/utils.ts +129 -0
- package/src/tests/curves-cell-renderer-tests.ts +41 -22
- package/src/tests/fit-tests.ts +46 -11
- package/src/tests/plate-tests.ts +154 -0
- package/src/tests/transform-tests.ts +2 -2
- package/src/fit/cell-render-viewer.ts +0 -54
package/README.md
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
# Curves
|
|
2
2
|
|
|
3
|
-
**Curves** provides support for
|
|
4
|
-
including
|
|
3
|
+
**Curves** provides support for dose-response curves,
|
|
4
|
+
including charts in cells, interactivity, and automatic fitting.
|
|
5
|
+
Also, it integrates with assay plates, allowing you to
|
|
6
|
+
[read data directly from instruments](#plate-readers), and visualize
|
|
7
|
+
[dose-response curves from assay plates](#integration-with-assay-plates).
|
|
5
8
|
|
|
6
9
|
- Fitting: computing parameters of the specified function to best fit the data
|
|
7
10
|
- For dose-response curves, we are typically fitting the sigmoid function
|
|
@@ -21,11 +24,13 @@ including in-grid rendering, storing charts in cells, interactivity, and automat
|
|
|
21
24
|
- Ability to overlay curves from multiple grid cells (special viewer)
|
|
22
25
|
- Work with series stored in multiple formats (binary for performance, JSON for flexibility, etc.)
|
|
23
26
|
|
|
24
|
-
##
|
|
27
|
+
## Data format
|
|
25
28
|
|
|
26
|
-
To render a fitted curve
|
|
29
|
+
To render a fitted curve, the cell has to contain a string in the following JSON format:
|
|
27
30
|
|
|
28
|
-
|
|
31
|
+
<details>
|
|
32
|
+
<summary> Example of the JSON chart cell </summary>
|
|
33
|
+
<pre>
|
|
29
34
|
{
|
|
30
35
|
"series": [
|
|
31
36
|
{
|
|
@@ -76,7 +81,8 @@ To render a fitted curve based on series points, you need to write it in the fol
|
|
|
76
81
|
"showColumnLabel": true
|
|
77
82
|
}
|
|
78
83
|
}
|
|
79
|
-
|
|
84
|
+
</pre>
|
|
85
|
+
</details>
|
|
80
86
|
|
|
81
87
|
Each series has its own parameters, such as:
|
|
82
88
|
|
|
@@ -93,7 +99,7 @@ Each series has its own parameters, such as:
|
|
|
93
99
|
- `showFitLine` - defines whether to show the fit line or not
|
|
94
100
|
- `showCurveConfidenceInterval` - defines whether to show the confidence intervals or not
|
|
95
101
|
- `fitFunction` - controls the series fit function, which could be either a sigmoid, linear, log-linear function or a
|
|
96
|
-
[custom-defined function](
|
|
102
|
+
[custom-defined function](#creating-a-custom-fit-function).
|
|
97
103
|
- `parameters` - controls the series parameters, if set explicitly - the fitting process won't be executed. The parameter order of the
|
|
98
104
|
sigmoid function is: `max, tan, IC50, min`.
|
|
99
105
|
- `parameterBounds` - defines the acceptable range of each parameter, which is taken into account during the fitting. See also `parameters`
|
|
@@ -146,10 +152,32 @@ returns the result of the fit function. These functions are written as JavaScrip
|
|
|
146
152
|
|
|
147
153
|
## Multi Curve Viewer
|
|
148
154
|
|
|
149
|
-
|
|
155
|
+
To compare dose-response curves from multiple cells, put them on the Multi Curve Viewer::
|
|
150
156
|
|
|
151
157
|

|
|
152
158
|
|
|
159
|
+
## Integration with assay plates
|
|
160
|
+
|
|
161
|
+
For a number of commonly used formats representing assay plates, Curves automatically detects
|
|
162
|
+
layout, concentration, and activity layers, and shows you plate content in the form of automatically
|
|
163
|
+
fitted dose-response curves.
|
|
164
|
+
|
|
165
|
+
While typically such functionality gets integrated into custom apps (for instance, for doing
|
|
166
|
+
the quality control, registering experiments to ELN, etc), this is quite useful for
|
|
167
|
+
previewing plates. In this picture, excel files are recognized as containing assay plate data,
|
|
168
|
+
and we can see dose-response curves in the file preview.
|
|
169
|
+
|
|
170
|
+

|
|
171
|
+
|
|
172
|
+
## Plate readers
|
|
173
|
+
|
|
174
|
+
The package provides support for some of the common plate formats produced by instruments, such
|
|
175
|
+
as **BMG Pherastar**, **Delfia Envision**, and **Spectramax**. The detection / parsing mechanism
|
|
176
|
+
is extensible, so you can easily write your own reader - [see examples](src/plate/plate-reader.ts).
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+

|
|
180
|
+
|
|
153
181
|
See also:
|
|
154
182
|
|
|
155
183
|
- [Packages](../../help/develop/develop.md#packages)
|