datagrok-api
Advanced tools
Comparing version 0.89.6 to 0.89.7
@@ -0,0 +0,0 @@ import * as _chem from './src/chem'; |
@@ -0,0 +0,0 @@ import * as _chem from './src/chem.js'; |
@@ -0,0 +0,0 @@ import * as _chem from './src/chem'; |
@@ -0,0 +0,0 @@ import * as _chem from './src/chem'; |
@@ -0,0 +0,0 @@ { |
{ | ||
"name": "datagrok-api", | ||
"version": "0.89.6", | ||
"version": "0.89.7", | ||
"description": "", | ||
@@ -23,2 +23,2 @@ "dependencies": { | ||
} | ||
} | ||
} |
@@ -0,0 +0,0 @@ /** |
@@ -20,3 +20,3 @@ /** | ||
* @param {Column} column - Molecule column to search in | ||
* @param {string} pattern - Reference molecule in one of formats supported by RDKit: | ||
* @param {string} molecule - Reference molecule in one of formats supported by RDKit: | ||
* smiles, cxsmiles, molblock, v3Kmolblock | ||
@@ -28,3 +28,3 @@ * @param {boolean} settings.sorted - | ||
* */ | ||
export async function similarityScoring(column, pattern, settings = { sorted: false }) { | ||
export async function similarityScoring(column, molecule = null, settings = { sorted: false }) { | ||
@@ -34,8 +34,10 @@ let foo = await grok.functions.eval('Chem:similarityScoring'); | ||
'molStringsColumn': column, | ||
'molString': pattern, | ||
'molString': molecule == null ? "" : molecule, | ||
'sorted': settings.sorted | ||
}); | ||
await call.call(); | ||
let result = call.getParamValue('result'); | ||
return settings.sorted ? result : result.columns.byIndex(0); | ||
if (molecule != null && molecule !== "") { | ||
let result = call.getParamValue('result'); | ||
return settings.sorted ? result : result.columns.byIndex(0); | ||
} | ||
@@ -70,3 +72,3 @@ } | ||
'molStringsColumn': column, | ||
'molString': pattern, | ||
'molString': pattern == null ? "" : pattern, | ||
'substructLibrary': | ||
@@ -73,0 +75,0 @@ (settings && settings.hasOwnProperty('substructLibrary') && settings.substructLibrary === false) ? |
@@ -0,0 +0,0 @@ export const enum AGG { |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ import { |
@@ -0,0 +0,0 @@ import { |
@@ -0,0 +0,0 @@ import {DataFrame} from "./dataframe"; |
@@ -0,0 +0,0 @@ import {DataFrame} from "./dataframe"; |
@@ -0,0 +0,0 @@ import {Observable} from 'rxjs'; |
@@ -509,2 +509,7 @@ import * as rxjs from 'rxjs'; | ||
/** Checks whether the column passes the specified [filter]. | ||
* [filter] can be either specific data [type] such as 'int' or 'string', more broadly - 'numerical', or 'categorical', or null for any columns. | ||
* @returns {boolean} */ | ||
matches(filter) { return grok_Column_Matches(this.d, filter); } | ||
/** Basic descriptive statistics. The result is cached. | ||
@@ -511,0 +516,0 @@ * @returns {Stats} */ |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ import {toJs} from "./wrappers"; |
@@ -0,0 +0,0 @@ import {SEMTYPE, TYPE} from "./const"; |
@@ -528,2 +528,6 @@ import {TYPE} from "./const"; | ||
/** Column type filter | ||
* @type {string}*/ | ||
get columnFilter() { return grok_Property_Get_ColumnTypeFilter(this.d); } | ||
/** Creates a property | ||
@@ -530,0 +534,0 @@ * @param {string} name |
@@ -0,0 +0,0 @@ import {Observable} from "rxjs"; |
@@ -0,0 +0,0 @@ import * as rxjs from "rxjs"; |
@@ -0,0 +0,0 @@ import {Script} from "./entities"; |
@@ -0,0 +0,0 @@ import {paramsToJs, toDart, toJs} from "./wrappers"; |
@@ -0,0 +0,0 @@ import {Cell, Column, Row} from "./dataframe"; |
@@ -0,0 +0,0 @@ import {Viewer} from "./viewer.js"; |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ import {DataFrame} from "./dataframe"; |
@@ -0,0 +0,0 @@ import {DataFrame} from "./dataframe"; |
@@ -0,0 +0,0 @@ export function range(length: number): Generator<number, void> |
@@ -0,0 +0,0 @@ import {Balloon} from "./widgets"; |
@@ -0,0 +0,0 @@ import {Menu, ToolboxPage, Widget} from "./widgets"; |
@@ -0,0 +0,0 @@ import {VIEW_TYPE, VIEWER} from "./const"; |
@@ -0,0 +0,0 @@ import {VIEWER} from './const'; |
@@ -0,0 +0,0 @@ /** A viewer that is typically docked inside a [TableView]. */ |
@@ -0,0 +0,0 @@ import {Observable} from "rxjs"; |
@@ -552,2 +552,5 @@ import {toDart, toJs} from "./wrappers"; | ||
set caption(c) { return grok_ColumnComboBox_Set_Caption(this.d, c); } | ||
/** @type {Property} */ | ||
get property() { return toJs(grok_ColumnComboBox_Get_Property(this.d)); } | ||
} |
@@ -0,0 +0,0 @@ import {Property} from "./entities"; |
@@ -0,0 +0,0 @@ export function paramsToJs(params: any): any |
@@ -0,0 +0,0 @@ |
@@ -0,0 +0,0 @@ { |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ const path = require('path'); |
364064
8424