@datagrok-libraries/ml
Advanced tools
Comparing version 5.0.2 to 6.0.0
@@ -7,3 +7,3 @@ { | ||
"friendlyName": "Datagrok ML library", | ||
"version": "5.0.2", | ||
"version": "6.0.0", | ||
"description": "Machine learning supporting utilities", | ||
@@ -10,0 +10,0 @@ "dependencies": { |
@@ -31,5 +31,5 @@ import * as DG from 'datagrok-api/dg'; | ||
[index: string]: string; | ||
}, seqSpaceFunc: (params: ISequenceSpaceParams) => Promise<ISequenceSpaceResult>, simFunc: (col: DG.Column, mol: string) => Promise<DG.Column | null>, tooltipFunc: (params: ITooltipAndPanelParams) => HTMLElement, propertyPanelFunc: (params: ITooltipAndPanelParams) => HTMLElement, options?: any): Promise<DG.Viewer>; | ||
}, seqSpaceFunc: (params: ISequenceSpaceParams) => Promise<ISequenceSpaceResult>, simMatrixFunc: (dim: number, seqCol: DG.Column, df: DG.DataFrame, colName: string, simArr: DG.Column[]) => Promise<DG.Column[]>, tooltipFunc: (params: ITooltipAndPanelParams) => HTMLElement, propertyPanelFunc: (params: ITooltipAndPanelParams) => HTMLElement, options?: any): Promise<DG.Viewer>; | ||
export declare function getSimilaritiesMarix(dim: number, seqCol: DG.Column, dfSeq: DG.DataFrame, simArr: DG.Column[], simFunc: (col: DG.Column, mol: string) => Promise<DG.Column | null>): Promise<DG.Column[]>; | ||
export declare function getSimilaritiesMarixFromDistances(dim: number, distances: Matrix, simArr: DG.Column[]): DG.Column[]; | ||
export declare function getSimilaritiesFromDistances(dim: number, distances: Matrix, simArr: DG.Column[]): DG.Column[]; | ||
//# sourceMappingURL=activity-cliffs.d.ts.map |
@@ -17,4 +17,5 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
const molColumnNames = ['1_seq', '2_seq']; | ||
const nonNormalizedDistances = ['Levenshtein']; | ||
// Searches for activity cliffs in a chemical dataset by selected cutoff | ||
export function getActivityCliffs(df, seqCol, encodedCol, axesNames, scatterTitle, activities, similarity, similarityMetric, methodName, semType, tags, seqSpaceFunc, simFunc, tooltipFunc, propertyPanelFunc, options) { | ||
export function getActivityCliffs(df, seqCol, encodedCol, axesNames, scatterTitle, activities, similarity, similarityMetric, methodName, semType, tags, seqSpaceFunc, simMatrixFunc, tooltipFunc, propertyPanelFunc, options) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
@@ -43,6 +44,6 @@ const automaticSimilarityLimit = false; | ||
const simArr = Array(dim - 1); | ||
if (!distance || emptyValsIdxs.length !== 0) | ||
yield getSimilaritiesMarix(dim, dimensionalityReduceCol, dfSeq, simArr, simFunc); | ||
if (!distance || emptyValsIdxs.length !== 0 || nonNormalizedDistances.includes(similarityMetric)) | ||
yield simMatrixFunc(dim, dimensionalityReduceCol, dfSeq, 'seq', simArr); | ||
else | ||
getSimilaritiesMarixFromDistances(dim, distance, simArr); | ||
getSimilaritiesFromDistances(dim, distance, simArr); | ||
const optSimilarityLimit = initialSimilarityLimit; | ||
@@ -104,3 +105,3 @@ const simVals = []; | ||
const canvas = sp.getInfo()['canvas']; | ||
const linesRes = createLines(n1, n2, seqCol, activities, saliVals, semType, tags); | ||
const linesRes = createLines(n1, n2, seqCol, activities, saliVals, simVals, semType, tags); | ||
const cashedLinesData = {}; | ||
@@ -132,3 +133,3 @@ let acc; | ||
const linesDfGrid = linesRes.linesDf.plot.grid().sort(['sali'], [false]); | ||
linesDfGrid.root.style.minWidth = '650px'; | ||
linesDfGrid.root.style.minWidth = '750px'; | ||
linesDfGrid.onCellClick.subscribe(() => { | ||
@@ -275,3 +276,3 @@ zoom = true; | ||
} | ||
function createLines(n1, n2, seq, activities, saliVals, semType, tags) { | ||
function createLines(n1, n2, seq, activities, saliVals, simVals, semType, tags) { | ||
const lines = []; | ||
@@ -293,2 +294,3 @@ for (let i = 0; i < n1.length; i++) { | ||
linesDf.columns.addNewFloat('sali').init((i) => saliVals[i]); | ||
linesDf.columns.addNewFloat('sim').init((i) => simVals[i]); | ||
return { lines, linesDf }; | ||
@@ -311,7 +313,8 @@ } | ||
} | ||
export function getSimilaritiesMarixFromDistances(dim, distances, simArr) { | ||
export function getSimilaritiesFromDistances(dim, distances, simArr) { | ||
for (let i = 0; i < dim - 1; ++i) { | ||
const similarityArr = []; | ||
for (let j = i + 1; j < dim; ++j) | ||
similarityArr.push(getSimilarityFromDistance(distances[i][j])); | ||
const similarityArr = new Array(dim - i - 1).fill(0); | ||
for (let j = i + 1; j < dim; ++j) { | ||
similarityArr[j - i - 1] = getSimilarityFromDistance(distances[i][j]); | ||
} | ||
simArr[i] = DG.Column.fromFloat32Array('similarity', Float32Array.from(similarityArr)); | ||
@@ -321,2 +324,2 @@ } | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWN0aXZpdHktY2xpZmZzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiYWN0aXZpdHktY2xpZmZzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7OztBQUFBLE9BQU8sS0FBSyxJQUFJLE1BQU0sbUJBQW1CLENBQUM7QUFDMUMsT0FBTyxLQUFLLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUN0QyxPQUFPLEtBQUssRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBRXRDLE9BQU8sRUFBRSx5QkFBeUIsRUFBRSxNQUFNLGtEQUFrRCxDQUFDO0FBQzdGLE9BQU8sRUFBQyxxQkFBcUIsRUFBQyxNQUFNLCtDQUErQyxDQUFBO0FBcUNuRixJQUFJLElBQUksR0FBRyxLQUFLLENBQUM7QUFFakIsTUFBTSxjQUFjLEdBQUcsQ0FBQyxPQUFPLEVBQUUsT0FBTyxDQUFDLENBQUM7QUFHMUMsd0VBQXdFO0FBQ3hFLE1BQU0sVUFBZ0IsaUJBQWlCLENBQ25DLEVBQWdCLEVBQ2hCLE1BQWlCLEVBQ2pCLFVBQTRCLEVBQzVCLFNBQW1CLEVBQ25CLFlBQW9CLEVBQ3BCLFVBQXF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tYmVmb3JlLWRyYXctc2NlbmUnKVxuICAgIC5zdWJzY3JpYmUoKF86IGFueSkgPT4ge1xuICAgICAgY29uc3QgbGluZXMgPSByZW5kZXJMaW5lcyhzcCxcbiAgICAgICAgYXhlc05hbWVzWzBdLCBheGVzTmFtZXNbMV0sIGxpbmVzUmVzLCBzYWxpVmFscywgc2FsaU9wYWNpdHlDb2VmLCBzYWxpTWluKTtcbiAgICAgIGlmICh6b29tKSB7XG4gICAgICAgIGNvbnN0IGN1cnJlbnRMaW5lID0gbGluZXNbbGluZXNSZXMubGluZXNEZi5jdXJyZW50Um93SWR4XTtcbiAgICAgICAgc2V0VGltZW91dCgoKT0+IHtcbiAgICAgICAgICBjb25zdCB7em9vbUxlZnQsIHpvb21SaWdodCwgem9vbVRvcCwgem9vbUJvdHRvbX0gPSBnZXRab29tQ29vcmRpbmF0ZXMoXG4gICAgICAgICAgICBzcC52aWV3cG9ydC53aWR0aCxcbiAgICAgICAgICAgIHNwLnZpZXdwb3J0LmhlaWdodCxcbiAgICAgICAgICAgIHNwLmRhdGFGcmFtZS5nZXQoYXhlc05hbWVzWzBdLCBjdXJyZW50TGluZS5tb2xzWzBdKSxcbiAgICAgICAgICAgIHNwLmRhdGFGcmFtZS5nZXQoYXhlc05hbWVzWzFdLCBjdXJyZW50TGluZS5tb2xzWzBdKSxcbiAgICAgICAgICAgIHNwLmRhdGFGcmFtZS5nZXQoYXhlc05hbWVzWzBdLCBjdXJyZW50TGluZS5tb2xzWzFdKSxcbiAgICAgICAgICAgIHNwLmRhdGFGcmFtZS5nZXQoYXhlc05hbWVzWzFdLCBjdXJyZW50TGluZS5tb2xzWzFdKVxuICAgICAgICAgICkgICAgICAgIFxuICAgICAgICAgIHNwLnpvb20oem9vbUxlZnQsXG4gICAgICAgICAgICB6b29tVG9wLFxuICAgICAgICAgICAgem9vbVJpZ2h0LFxuICAgICAgICAgICAgem9vbUJvdHRvbSk7XG4gICAgICAgIH0sIDMwMCk7XG4gICAgICAgIHpv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