@datagrok/curves 1.10.7 → 1.10.9
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/dist/package-test.js +16 -25
- package/dist/package-test.js.map +1 -1
- package/dist/package.js +16 -25
- package/dist/package.js.map +1 -1
- package/package.json +2 -2
- package/src/fit/data-to-curves.ts +2 -1
- package/src/fit/multi-curve-viewer.ts +3 -0
- package/src/package.g.ts +11 -24
- package/test-console-output-1.log +23 -23
- package/test-record-1.mp4 +0 -0
package/dist/package-test.js
CHANGED
|
@@ -9735,7 +9735,8 @@ function convertDataToCurves(df, concentrationCol, readoutCol, batchIDCol, assay
|
|
|
9735
9735
|
const targetEntityRawData = targetEntityCol === null || targetEntityCol === void 0 ? void 0 : targetEntityCol.getRawData();
|
|
9736
9736
|
const getAssay = assayCol ? (row) => assayColCats[assayColIndexes[row]] : () => 'All';
|
|
9737
9737
|
const otlierIndexes = excludeOutliersCol ? excludeOutliersCol.getRawData() : null;
|
|
9738
|
-
const
|
|
9738
|
+
const outlierCats = excludeOutliersCol ? excludeOutliersCol.categories : null;
|
|
9739
|
+
const isOutlier = excludeOutliersCol ? (excludeOutliersCol.type == datagrok_api_dg__WEBPACK_IMPORTED_MODULE_1__.COLUMN_TYPE.BOOL ? (row) => !!otlierIndexes[row] : (row) => { var _a, _b, _c; return (_c = (_b = (_a = outlierCats[otlierIndexes[row]]) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === null || _b === void 0 ? void 0 : _b.includes('exclude')) !== null && _c !== void 0 ? _c : false; }) : (_row) => false;
|
|
9739
9740
|
const getConcentration = (row) => consentrationRawData[row];
|
|
9740
9741
|
const getReadout = (row) => readoutRawData[row];
|
|
9741
9742
|
const getBatchID = (row) => batchIDCategories[batchIDRawData[row]];
|
|
@@ -11243,6 +11244,7 @@ let MultiCurveViewer = MultiCurveViewer_1 = class MultiCurveViewer extends datag
|
|
|
11243
11244
|
this.showCurrentRowCurve = true;
|
|
11244
11245
|
this.showMouseOverRowCurve = true;
|
|
11245
11246
|
this.mergeColumnSeries = false;
|
|
11247
|
+
this.showOutliers = true;
|
|
11246
11248
|
this.rows = [];
|
|
11247
11249
|
this.data = new _datagrok_libraries_statistics_src_fit_fit_curve__WEBPACK_IMPORTED_MODULE_4__.FitChartData();
|
|
11248
11250
|
this.gridCellWidget = datagrok_api_dg__WEBPACK_IMPORTED_MODULE_0__.GridCellWidget.fromGridCell(this.createGridCell(''));
|
|
@@ -11259,6 +11261,7 @@ let MultiCurveViewer = MultiCurveViewer_1 = class MultiCurveViewer extends datag
|
|
|
11259
11261
|
this.showCurrentRowCurve = this.bool('showCurrentRowCurve', true);
|
|
11260
11262
|
this.showMouseOverRowCurve = this.bool('showMouseOverRowCurve', true);
|
|
11261
11263
|
this.mergeColumnSeries = this.bool('mergeColumnSeries', false);
|
|
11264
|
+
this.showOutliers = this.bool('showOutliers', true);
|
|
11262
11265
|
for (const p of _datagrok_libraries_statistics_src_fit_fit_curve__WEBPACK_IMPORTED_MODULE_4__.fitChartDataProperties)
|
|
11263
11266
|
this.addProperty(p.name === 'mergeSeries' ? 'mergeCellSeries' : p.name, p.propertyType, p.defaultValue, Object.assign(Object.assign({}, p.options), { showSlider: false }));
|
|
11264
11267
|
}
|
|
@@ -11355,6 +11358,7 @@ let MultiCurveViewer = MultiCurveViewer_1 = class MultiCurveViewer extends datag
|
|
|
11355
11358
|
series.pointColor = datagrok_api_dg__WEBPACK_IMPORTED_MODULE_0__.Color.toHtml(datagrok_api_dg__WEBPACK_IMPORTED_MODULE_0__.Color.getCategoricalColor(((_a = this.data.series) === null || _a === void 0 ? void 0 : _a.length) > 20 ? 0 : i));
|
|
11356
11359
|
series.fitLineColor = datagrok_api_dg__WEBPACK_IMPORTED_MODULE_0__.Color.toHtml(datagrok_api_dg__WEBPACK_IMPORTED_MODULE_0__.Color.getCategoricalColor(((_b = this.data.series) === null || _b === void 0 ? void 0 : _b.length) > 20 ? 0 : i));
|
|
11357
11360
|
}
|
|
11361
|
+
series.showOutliers = this.showOutliers;
|
|
11358
11362
|
series.showCurveConfidenceInterval = false;
|
|
11359
11363
|
series.droplines = [];
|
|
11360
11364
|
if (((_c = this.data.series) === null || _c === void 0 ? void 0 : _c.length) > 20) {
|
|
@@ -12203,7 +12207,7 @@ function _MultiCurveViewer() {
|
|
|
12203
12207
|
//test: curveFitDemo() //wait: 2000
|
|
12204
12208
|
function curveFitDemo() {
|
|
12205
12209
|
return __awaiter(this, void 0, void 0, function* () {
|
|
12206
|
-
_package__WEBPACK_IMPORTED_MODULE_2__.PackageFunctions.curveFitDemo();
|
|
12210
|
+
yield _package__WEBPACK_IMPORTED_MODULE_2__.PackageFunctions.curveFitDemo();
|
|
12207
12211
|
});
|
|
12208
12212
|
}
|
|
12209
12213
|
//name: Assay Plates
|
|
@@ -12211,15 +12215,13 @@ function curveFitDemo() {
|
|
|
12211
12215
|
//meta.demoPath: Curves | Assay Plates
|
|
12212
12216
|
function assayPlatesDemo() {
|
|
12213
12217
|
return __awaiter(this, void 0, void 0, function* () {
|
|
12214
|
-
_package__WEBPACK_IMPORTED_MODULE_2__.PackageFunctions.assayPlatesDemo();
|
|
12218
|
+
yield _package__WEBPACK_IMPORTED_MODULE_2__.PackageFunctions.assayPlatesDemo();
|
|
12215
12219
|
});
|
|
12216
12220
|
}
|
|
12217
|
-
//name: _initCurves
|
|
12218
12221
|
//tags: init
|
|
12219
12222
|
function _initCurves() {
|
|
12220
12223
|
_package__WEBPACK_IMPORTED_MODULE_2__.PackageFunctions._initCurves();
|
|
12221
12224
|
}
|
|
12222
|
-
//name: dataToCurves
|
|
12223
12225
|
//input: dataframe df
|
|
12224
12226
|
//input: column concentrationCol
|
|
12225
12227
|
//input: column readoutCol
|
|
@@ -12241,18 +12243,16 @@ function _initCurves() {
|
|
|
12241
12243
|
//output: dataframe result
|
|
12242
12244
|
function dataToCurves(df, concentrationCol, readoutCol, batchIDCol, assayCol, runIDCol, compoundIDCol, targetEntityCol, excludeOutliersCol, parentTable, fitParamColumns, reportedIC50Column, reportedQualifiedIC50Column, experimentIDColumn, qualifierColumn, additionalColumns, wellLevelJoinCol, parentLevelJoinCol) {
|
|
12243
12245
|
return __awaiter(this, void 0, void 0, function* () {
|
|
12244
|
-
return _package__WEBPACK_IMPORTED_MODULE_2__.PackageFunctions.dataToCurves(df, concentrationCol, readoutCol, batchIDCol, assayCol, runIDCol, compoundIDCol, targetEntityCol, excludeOutliersCol, parentTable, fitParamColumns, reportedIC50Column, reportedQualifiedIC50Column, experimentIDColumn, qualifierColumn, additionalColumns, wellLevelJoinCol, parentLevelJoinCol);
|
|
12246
|
+
return yield _package__WEBPACK_IMPORTED_MODULE_2__.PackageFunctions.dataToCurves(df, concentrationCol, readoutCol, batchIDCol, assayCol, runIDCol, compoundIDCol, targetEntityCol, excludeOutliersCol, parentTable, fitParamColumns, reportedIC50Column, reportedQualifiedIC50Column, experimentIDColumn, qualifierColumn, additionalColumns, wellLevelJoinCol, parentLevelJoinCol);
|
|
12245
12247
|
});
|
|
12246
12248
|
}
|
|
12247
|
-
//name: dataToCurvesTopMenu
|
|
12248
12249
|
//output: dynamic result
|
|
12249
12250
|
//top-menu: Data | Curves | Data to Curves
|
|
12250
12251
|
function dataToCurvesTopMenu() {
|
|
12251
12252
|
return __awaiter(this, void 0, void 0, function* () {
|
|
12252
|
-
return _package__WEBPACK_IMPORTED_MODULE_2__.PackageFunctions.dataToCurvesTopMenu();
|
|
12253
|
+
return yield _package__WEBPACK_IMPORTED_MODULE_2__.PackageFunctions.dataToCurvesTopMenu();
|
|
12253
12254
|
});
|
|
12254
12255
|
}
|
|
12255
|
-
//name: addStatisticsColumn
|
|
12256
12256
|
//tags: Transform
|
|
12257
12257
|
//input: dataframe table
|
|
12258
12258
|
//input: string colName
|
|
@@ -12263,7 +12263,6 @@ function dataToCurvesTopMenu() {
|
|
|
12263
12263
|
function addStatisticsColumn(table, colName, propName, seriesNumber) {
|
|
12264
12264
|
return _package__WEBPACK_IMPORTED_MODULE_2__.PackageFunctions.addStatisticsColumn(table, colName, propName, seriesNumber);
|
|
12265
12265
|
}
|
|
12266
|
-
//name: addAggrStatisticsColumn
|
|
12267
12266
|
//tags: Transform
|
|
12268
12267
|
//input: dataframe table
|
|
12269
12268
|
//input: string colName
|
|
@@ -12274,17 +12273,15 @@ function addStatisticsColumn(table, colName, propName, seriesNumber) {
|
|
|
12274
12273
|
function addAggrStatisticsColumn(table, colName, propName, aggrType) {
|
|
12275
12274
|
return _package__WEBPACK_IMPORTED_MODULE_2__.PackageFunctions.addAggrStatisticsColumn(table, colName, propName, aggrType);
|
|
12276
12275
|
}
|
|
12277
|
-
//name: platesFolderPreview
|
|
12278
12276
|
//tags: folderViewer
|
|
12279
12277
|
//input: file folder
|
|
12280
12278
|
//input: list<file> files
|
|
12281
12279
|
//output: dynamic result
|
|
12282
12280
|
function platesFolderPreview(folder, files) {
|
|
12283
12281
|
return __awaiter(this, void 0, void 0, function* () {
|
|
12284
|
-
return _package__WEBPACK_IMPORTED_MODULE_2__.PackageFunctions.platesFolderPreview(folder, files);
|
|
12282
|
+
return yield _package__WEBPACK_IMPORTED_MODULE_2__.PackageFunctions.platesFolderPreview(folder, files);
|
|
12285
12283
|
});
|
|
12286
12284
|
}
|
|
12287
|
-
//name: previewPlate
|
|
12288
12285
|
//tags: fileViewer
|
|
12289
12286
|
//input: file file
|
|
12290
12287
|
//output: view result
|
|
@@ -12293,7 +12290,6 @@ function platesFolderPreview(folder, files) {
|
|
|
12293
12290
|
function previewPlate(file) {
|
|
12294
12291
|
return _package__WEBPACK_IMPORTED_MODULE_2__.PackageFunctions.previewPlate(file);
|
|
12295
12292
|
}
|
|
12296
|
-
//name: importPlate
|
|
12297
12293
|
//tags: file-handler
|
|
12298
12294
|
//input: string fileContent
|
|
12299
12295
|
//output: list<dataframe> result
|
|
@@ -12301,17 +12297,16 @@ function previewPlate(file) {
|
|
|
12301
12297
|
//meta.fileViewerCheck: Curves:checkFileIsPlate
|
|
12302
12298
|
function importPlate(fileContent) {
|
|
12303
12299
|
return __awaiter(this, void 0, void 0, function* () {
|
|
12304
|
-
return _package__WEBPACK_IMPORTED_MODULE_2__.PackageFunctions.importPlate(fileContent);
|
|
12300
|
+
return yield _package__WEBPACK_IMPORTED_MODULE_2__.PackageFunctions.importPlate(fileContent);
|
|
12305
12301
|
});
|
|
12306
12302
|
}
|
|
12307
|
-
//name: importPlateXlsx
|
|
12308
12303
|
//tags: file-handler
|
|
12309
12304
|
//input: blob fileContent
|
|
12310
12305
|
//meta.ext: xlsx
|
|
12311
12306
|
//meta.fileViewerCheck: Curves:checkExcelIsPlate
|
|
12312
12307
|
function importPlateXlsx(fileContent) {
|
|
12313
12308
|
return __awaiter(this, void 0, void 0, function* () {
|
|
12314
|
-
return _package__WEBPACK_IMPORTED_MODULE_2__.PackageFunctions.importPlateXlsx(fileContent);
|
|
12309
|
+
return yield _package__WEBPACK_IMPORTED_MODULE_2__.PackageFunctions.importPlateXlsx(fileContent);
|
|
12315
12310
|
});
|
|
12316
12311
|
}
|
|
12317
12312
|
//name: viewPlateXlsx
|
|
@@ -12322,35 +12317,31 @@ function importPlateXlsx(fileContent) {
|
|
|
12322
12317
|
//meta.fileViewerCheck: Curves:checkExcelIsPlate
|
|
12323
12318
|
function previewPlateXlsx(file) {
|
|
12324
12319
|
return __awaiter(this, void 0, void 0, function* () {
|
|
12325
|
-
return _package__WEBPACK_IMPORTED_MODULE_2__.PackageFunctions.previewPlateXlsx(file);
|
|
12320
|
+
return yield _package__WEBPACK_IMPORTED_MODULE_2__.PackageFunctions.previewPlateXlsx(file);
|
|
12326
12321
|
});
|
|
12327
12322
|
}
|
|
12328
|
-
//name: checkExcelIsPlate
|
|
12329
12323
|
//input: blob content
|
|
12330
12324
|
//output: bool result
|
|
12331
12325
|
function checkExcelIsPlate(content) {
|
|
12332
12326
|
return __awaiter(this, void 0, void 0, function* () {
|
|
12333
|
-
return _package__WEBPACK_IMPORTED_MODULE_2__.PackageFunctions.checkExcelIsPlate(content);
|
|
12327
|
+
return yield _package__WEBPACK_IMPORTED_MODULE_2__.PackageFunctions.checkExcelIsPlate(content);
|
|
12334
12328
|
});
|
|
12335
12329
|
}
|
|
12336
|
-
//name: checkFileIsPlate
|
|
12337
12330
|
//input: string content
|
|
12338
12331
|
//output: bool result
|
|
12339
12332
|
function checkFileIsPlate(content) {
|
|
12340
12333
|
return _package__WEBPACK_IMPORTED_MODULE_2__.PackageFunctions.checkFileIsPlate(content);
|
|
12341
12334
|
}
|
|
12342
|
-
//name: getPlateByBarcode
|
|
12343
12335
|
//input: string barcode
|
|
12344
12336
|
//output: dynamic result
|
|
12345
12337
|
function getPlateByBarcode(barcode) {
|
|
12346
12338
|
return __awaiter(this, void 0, void 0, function* () {
|
|
12347
|
-
return _package__WEBPACK_IMPORTED_MODULE_2__.PackageFunctions.getPlateByBarcode(barcode);
|
|
12339
|
+
return yield _package__WEBPACK_IMPORTED_MODULE_2__.PackageFunctions.getPlateByBarcode(barcode);
|
|
12348
12340
|
});
|
|
12349
12341
|
}
|
|
12350
|
-
//name: createDummyPlateData
|
|
12351
12342
|
function createDummyPlateData() {
|
|
12352
12343
|
return __awaiter(this, void 0, void 0, function* () {
|
|
12353
|
-
_package__WEBPACK_IMPORTED_MODULE_2__.PackageFunctions.createDummyPlateData();
|
|
12344
|
+
yield _package__WEBPACK_IMPORTED_MODULE_2__.PackageFunctions.createDummyPlateData();
|
|
12354
12345
|
});
|
|
12355
12346
|
}
|
|
12356
12347
|
//name: PlateGridCellRenderer
|