@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.js
CHANGED
|
@@ -8222,7 +8222,8 @@ function convertDataToCurves(df, concentrationCol, readoutCol, batchIDCol, assay
|
|
|
8222
8222
|
const targetEntityRawData = targetEntityCol === null || targetEntityCol === void 0 ? void 0 : targetEntityCol.getRawData();
|
|
8223
8223
|
const getAssay = assayCol ? (row) => assayColCats[assayColIndexes[row]] : () => 'All';
|
|
8224
8224
|
const otlierIndexes = excludeOutliersCol ? excludeOutliersCol.getRawData() : null;
|
|
8225
|
-
const
|
|
8225
|
+
const outlierCats = excludeOutliersCol ? excludeOutliersCol.categories : null;
|
|
8226
|
+
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;
|
|
8226
8227
|
const getConcentration = (row) => consentrationRawData[row];
|
|
8227
8228
|
const getReadout = (row) => readoutRawData[row];
|
|
8228
8229
|
const getBatchID = (row) => batchIDCategories[batchIDRawData[row]];
|
|
@@ -9730,6 +9731,7 @@ let MultiCurveViewer = MultiCurveViewer_1 = class MultiCurveViewer extends datag
|
|
|
9730
9731
|
this.showCurrentRowCurve = true;
|
|
9731
9732
|
this.showMouseOverRowCurve = true;
|
|
9732
9733
|
this.mergeColumnSeries = false;
|
|
9734
|
+
this.showOutliers = true;
|
|
9733
9735
|
this.rows = [];
|
|
9734
9736
|
this.data = new _datagrok_libraries_statistics_src_fit_fit_curve__WEBPACK_IMPORTED_MODULE_4__.FitChartData();
|
|
9735
9737
|
this.gridCellWidget = datagrok_api_dg__WEBPACK_IMPORTED_MODULE_0__.GridCellWidget.fromGridCell(this.createGridCell(''));
|
|
@@ -9746,6 +9748,7 @@ let MultiCurveViewer = MultiCurveViewer_1 = class MultiCurveViewer extends datag
|
|
|
9746
9748
|
this.showCurrentRowCurve = this.bool('showCurrentRowCurve', true);
|
|
9747
9749
|
this.showMouseOverRowCurve = this.bool('showMouseOverRowCurve', true);
|
|
9748
9750
|
this.mergeColumnSeries = this.bool('mergeColumnSeries', false);
|
|
9751
|
+
this.showOutliers = this.bool('showOutliers', true);
|
|
9749
9752
|
for (const p of _datagrok_libraries_statistics_src_fit_fit_curve__WEBPACK_IMPORTED_MODULE_4__.fitChartDataProperties)
|
|
9750
9753
|
this.addProperty(p.name === 'mergeSeries' ? 'mergeCellSeries' : p.name, p.propertyType, p.defaultValue, Object.assign(Object.assign({}, p.options), { showSlider: false }));
|
|
9751
9754
|
}
|
|
@@ -9842,6 +9845,7 @@ let MultiCurveViewer = MultiCurveViewer_1 = class MultiCurveViewer extends datag
|
|
|
9842
9845
|
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));
|
|
9843
9846
|
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));
|
|
9844
9847
|
}
|
|
9848
|
+
series.showOutliers = this.showOutliers;
|
|
9845
9849
|
series.showCurveConfidenceInterval = false;
|
|
9846
9850
|
series.droplines = [];
|
|
9847
9851
|
if (((_c = this.data.series) === null || _c === void 0 ? void 0 : _c.length) > 20) {
|
|
@@ -10690,7 +10694,7 @@ function _MultiCurveViewer() {
|
|
|
10690
10694
|
//test: curveFitDemo() //wait: 2000
|
|
10691
10695
|
function curveFitDemo() {
|
|
10692
10696
|
return __awaiter(this, void 0, void 0, function* () {
|
|
10693
|
-
_package__WEBPACK_IMPORTED_MODULE_2__.PackageFunctions.curveFitDemo();
|
|
10697
|
+
yield _package__WEBPACK_IMPORTED_MODULE_2__.PackageFunctions.curveFitDemo();
|
|
10694
10698
|
});
|
|
10695
10699
|
}
|
|
10696
10700
|
//name: Assay Plates
|
|
@@ -10698,15 +10702,13 @@ function curveFitDemo() {
|
|
|
10698
10702
|
//meta.demoPath: Curves | Assay Plates
|
|
10699
10703
|
function assayPlatesDemo() {
|
|
10700
10704
|
return __awaiter(this, void 0, void 0, function* () {
|
|
10701
|
-
_package__WEBPACK_IMPORTED_MODULE_2__.PackageFunctions.assayPlatesDemo();
|
|
10705
|
+
yield _package__WEBPACK_IMPORTED_MODULE_2__.PackageFunctions.assayPlatesDemo();
|
|
10702
10706
|
});
|
|
10703
10707
|
}
|
|
10704
|
-
//name: _initCurves
|
|
10705
10708
|
//tags: init
|
|
10706
10709
|
function _initCurves() {
|
|
10707
10710
|
_package__WEBPACK_IMPORTED_MODULE_2__.PackageFunctions._initCurves();
|
|
10708
10711
|
}
|
|
10709
|
-
//name: dataToCurves
|
|
10710
10712
|
//input: dataframe df
|
|
10711
10713
|
//input: column concentrationCol
|
|
10712
10714
|
//input: column readoutCol
|
|
@@ -10728,18 +10730,16 @@ function _initCurves() {
|
|
|
10728
10730
|
//output: dataframe result
|
|
10729
10731
|
function dataToCurves(df, concentrationCol, readoutCol, batchIDCol, assayCol, runIDCol, compoundIDCol, targetEntityCol, excludeOutliersCol, parentTable, fitParamColumns, reportedIC50Column, reportedQualifiedIC50Column, experimentIDColumn, qualifierColumn, additionalColumns, wellLevelJoinCol, parentLevelJoinCol) {
|
|
10730
10732
|
return __awaiter(this, void 0, void 0, function* () {
|
|
10731
|
-
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);
|
|
10733
|
+
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);
|
|
10732
10734
|
});
|
|
10733
10735
|
}
|
|
10734
|
-
//name: dataToCurvesTopMenu
|
|
10735
10736
|
//output: dynamic result
|
|
10736
10737
|
//top-menu: Data | Curves | Data to Curves
|
|
10737
10738
|
function dataToCurvesTopMenu() {
|
|
10738
10739
|
return __awaiter(this, void 0, void 0, function* () {
|
|
10739
|
-
return _package__WEBPACK_IMPORTED_MODULE_2__.PackageFunctions.dataToCurvesTopMenu();
|
|
10740
|
+
return yield _package__WEBPACK_IMPORTED_MODULE_2__.PackageFunctions.dataToCurvesTopMenu();
|
|
10740
10741
|
});
|
|
10741
10742
|
}
|
|
10742
|
-
//name: addStatisticsColumn
|
|
10743
10743
|
//tags: Transform
|
|
10744
10744
|
//input: dataframe table
|
|
10745
10745
|
//input: string colName
|
|
@@ -10750,7 +10750,6 @@ function dataToCurvesTopMenu() {
|
|
|
10750
10750
|
function addStatisticsColumn(table, colName, propName, seriesNumber) {
|
|
10751
10751
|
return _package__WEBPACK_IMPORTED_MODULE_2__.PackageFunctions.addStatisticsColumn(table, colName, propName, seriesNumber);
|
|
10752
10752
|
}
|
|
10753
|
-
//name: addAggrStatisticsColumn
|
|
10754
10753
|
//tags: Transform
|
|
10755
10754
|
//input: dataframe table
|
|
10756
10755
|
//input: string colName
|
|
@@ -10761,17 +10760,15 @@ function addStatisticsColumn(table, colName, propName, seriesNumber) {
|
|
|
10761
10760
|
function addAggrStatisticsColumn(table, colName, propName, aggrType) {
|
|
10762
10761
|
return _package__WEBPACK_IMPORTED_MODULE_2__.PackageFunctions.addAggrStatisticsColumn(table, colName, propName, aggrType);
|
|
10763
10762
|
}
|
|
10764
|
-
//name: platesFolderPreview
|
|
10765
10763
|
//tags: folderViewer
|
|
10766
10764
|
//input: file folder
|
|
10767
10765
|
//input: list<file> files
|
|
10768
10766
|
//output: dynamic result
|
|
10769
10767
|
function platesFolderPreview(folder, files) {
|
|
10770
10768
|
return __awaiter(this, void 0, void 0, function* () {
|
|
10771
|
-
return _package__WEBPACK_IMPORTED_MODULE_2__.PackageFunctions.platesFolderPreview(folder, files);
|
|
10769
|
+
return yield _package__WEBPACK_IMPORTED_MODULE_2__.PackageFunctions.platesFolderPreview(folder, files);
|
|
10772
10770
|
});
|
|
10773
10771
|
}
|
|
10774
|
-
//name: previewPlate
|
|
10775
10772
|
//tags: fileViewer
|
|
10776
10773
|
//input: file file
|
|
10777
10774
|
//output: view result
|
|
@@ -10780,7 +10777,6 @@ function platesFolderPreview(folder, files) {
|
|
|
10780
10777
|
function previewPlate(file) {
|
|
10781
10778
|
return _package__WEBPACK_IMPORTED_MODULE_2__.PackageFunctions.previewPlate(file);
|
|
10782
10779
|
}
|
|
10783
|
-
//name: importPlate
|
|
10784
10780
|
//tags: file-handler
|
|
10785
10781
|
//input: string fileContent
|
|
10786
10782
|
//output: list<dataframe> result
|
|
@@ -10788,17 +10784,16 @@ function previewPlate(file) {
|
|
|
10788
10784
|
//meta.fileViewerCheck: Curves:checkFileIsPlate
|
|
10789
10785
|
function importPlate(fileContent) {
|
|
10790
10786
|
return __awaiter(this, void 0, void 0, function* () {
|
|
10791
|
-
return _package__WEBPACK_IMPORTED_MODULE_2__.PackageFunctions.importPlate(fileContent);
|
|
10787
|
+
return yield _package__WEBPACK_IMPORTED_MODULE_2__.PackageFunctions.importPlate(fileContent);
|
|
10792
10788
|
});
|
|
10793
10789
|
}
|
|
10794
|
-
//name: importPlateXlsx
|
|
10795
10790
|
//tags: file-handler
|
|
10796
10791
|
//input: blob fileContent
|
|
10797
10792
|
//meta.ext: xlsx
|
|
10798
10793
|
//meta.fileViewerCheck: Curves:checkExcelIsPlate
|
|
10799
10794
|
function importPlateXlsx(fileContent) {
|
|
10800
10795
|
return __awaiter(this, void 0, void 0, function* () {
|
|
10801
|
-
return _package__WEBPACK_IMPORTED_MODULE_2__.PackageFunctions.importPlateXlsx(fileContent);
|
|
10796
|
+
return yield _package__WEBPACK_IMPORTED_MODULE_2__.PackageFunctions.importPlateXlsx(fileContent);
|
|
10802
10797
|
});
|
|
10803
10798
|
}
|
|
10804
10799
|
//name: viewPlateXlsx
|
|
@@ -10809,35 +10804,31 @@ function importPlateXlsx(fileContent) {
|
|
|
10809
10804
|
//meta.fileViewerCheck: Curves:checkExcelIsPlate
|
|
10810
10805
|
function previewPlateXlsx(file) {
|
|
10811
10806
|
return __awaiter(this, void 0, void 0, function* () {
|
|
10812
|
-
return _package__WEBPACK_IMPORTED_MODULE_2__.PackageFunctions.previewPlateXlsx(file);
|
|
10807
|
+
return yield _package__WEBPACK_IMPORTED_MODULE_2__.PackageFunctions.previewPlateXlsx(file);
|
|
10813
10808
|
});
|
|
10814
10809
|
}
|
|
10815
|
-
//name: checkExcelIsPlate
|
|
10816
10810
|
//input: blob content
|
|
10817
10811
|
//output: bool result
|
|
10818
10812
|
function checkExcelIsPlate(content) {
|
|
10819
10813
|
return __awaiter(this, void 0, void 0, function* () {
|
|
10820
|
-
return _package__WEBPACK_IMPORTED_MODULE_2__.PackageFunctions.checkExcelIsPlate(content);
|
|
10814
|
+
return yield _package__WEBPACK_IMPORTED_MODULE_2__.PackageFunctions.checkExcelIsPlate(content);
|
|
10821
10815
|
});
|
|
10822
10816
|
}
|
|
10823
|
-
//name: checkFileIsPlate
|
|
10824
10817
|
//input: string content
|
|
10825
10818
|
//output: bool result
|
|
10826
10819
|
function checkFileIsPlate(content) {
|
|
10827
10820
|
return _package__WEBPACK_IMPORTED_MODULE_2__.PackageFunctions.checkFileIsPlate(content);
|
|
10828
10821
|
}
|
|
10829
|
-
//name: getPlateByBarcode
|
|
10830
10822
|
//input: string barcode
|
|
10831
10823
|
//output: dynamic result
|
|
10832
10824
|
function getPlateByBarcode(barcode) {
|
|
10833
10825
|
return __awaiter(this, void 0, void 0, function* () {
|
|
10834
|
-
return _package__WEBPACK_IMPORTED_MODULE_2__.PackageFunctions.getPlateByBarcode(barcode);
|
|
10826
|
+
return yield _package__WEBPACK_IMPORTED_MODULE_2__.PackageFunctions.getPlateByBarcode(barcode);
|
|
10835
10827
|
});
|
|
10836
10828
|
}
|
|
10837
|
-
//name: createDummyPlateData
|
|
10838
10829
|
function createDummyPlateData() {
|
|
10839
10830
|
return __awaiter(this, void 0, void 0, function* () {
|
|
10840
|
-
_package__WEBPACK_IMPORTED_MODULE_2__.PackageFunctions.createDummyPlateData();
|
|
10831
|
+
yield _package__WEBPACK_IMPORTED_MODULE_2__.PackageFunctions.createDummyPlateData();
|
|
10841
10832
|
});
|
|
10842
10833
|
}
|
|
10843
10834
|
//name: PlateGridCellRenderer
|