@kent-tokyo/chematic 0.29.0 → 0.31.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/chematic_wasm.d.ts +30 -0
- package/chematic_wasm.js +98 -0
- package/chematic_wasm_bg.wasm +0 -0
- package/package.json +1 -1
package/chematic_wasm.d.ts
CHANGED
|
@@ -593,6 +593,11 @@ export function canonical_tautomer_with_blocked_atoms_json(mol: MolHandle, block
|
|
|
593
593
|
*/
|
|
594
594
|
export function cdxml_to_smiles_json(cdxml: string): string;
|
|
595
595
|
|
|
596
|
+
/**
|
|
597
|
+
* Compute the charge Parent and return a status-shaped JSON result.
|
|
598
|
+
*/
|
|
599
|
+
export function charge_parent_json(mol: MolHandle): string;
|
|
600
|
+
|
|
596
601
|
/**
|
|
597
602
|
* The `chematic-wasm` crate version (matches the workspace release version).
|
|
598
603
|
*
|
|
@@ -944,6 +949,11 @@ export function fcfp6_bitvec(mol: MolHandle): Uint8Array;
|
|
|
944
949
|
*/
|
|
945
950
|
export function find_reaction_center_json(reaction_smiles: string): string;
|
|
946
951
|
|
|
952
|
+
/**
|
|
953
|
+
* Compute the fragment Parent and return a status-shaped JSON result.
|
|
954
|
+
*/
|
|
955
|
+
export function fragment_parent_json(mol: MolHandle): string;
|
|
956
|
+
|
|
947
957
|
/**
|
|
948
958
|
* Gasteiger-Marsili PEOE partial charges as a JSON array of f64.
|
|
949
959
|
*/
|
|
@@ -1158,6 +1168,11 @@ export function invert_stereocenter_at(mol: MolHandle, atom_idx: number): MolHan
|
|
|
1158
1168
|
*/
|
|
1159
1169
|
export function is_valid_smiles(s: string): boolean;
|
|
1160
1170
|
|
|
1171
|
+
/**
|
|
1172
|
+
* Compute the isotope Parent and return a status-shaped JSON result.
|
|
1173
|
+
*/
|
|
1174
|
+
export function isotope_parent_json(mol: MolHandle): string;
|
|
1175
|
+
|
|
1161
1176
|
/**
|
|
1162
1177
|
* Per-atom Labute approximate surface area contributions as a JSON array of f64.
|
|
1163
1178
|
*
|
|
@@ -2290,6 +2305,16 @@ export function standardize_smiles_report_json(smiles: string, largest_fragment_
|
|
|
2290
2305
|
|
|
2291
2306
|
export function start(): void;
|
|
2292
2307
|
|
|
2308
|
+
/**
|
|
2309
|
+
* Compute the stereo Parent and return a status-shaped JSON result.
|
|
2310
|
+
*/
|
|
2311
|
+
export function stereo_parent_json(mol: MolHandle): string;
|
|
2312
|
+
|
|
2313
|
+
/**
|
|
2314
|
+
* Compute the composed Super Parent with explicit resource limits.
|
|
2315
|
+
*/
|
|
2316
|
+
export function super_parent_json(mol: MolHandle, max_transforms: number, max_tautomers: number, timeout_ms?: bigint | null): string;
|
|
2317
|
+
|
|
2293
2318
|
/**
|
|
2294
2319
|
* Tanimoto similarity between two molecules using AtomPair fingerprints.
|
|
2295
2320
|
*/
|
|
@@ -2570,6 +2595,7 @@ export interface InitOutput {
|
|
|
2570
2595
|
readonly canonical_tautomer: (a: number) => number;
|
|
2571
2596
|
readonly canonical_tautomer_with_blocked_atoms_json: (a: number, b: number, c: number) => [number, number];
|
|
2572
2597
|
readonly cdxml_to_smiles_json: (a: number, b: number) => [number, number, number, number];
|
|
2598
|
+
readonly charge_parent_json: (a: number) => [number, number];
|
|
2573
2599
|
readonly chematic_version: () => [number, number];
|
|
2574
2600
|
readonly cip_assignments_accurate_json: (a: number) => [number, number];
|
|
2575
2601
|
readonly cip_assignments_json: (a: number) => [number, number];
|
|
@@ -2629,6 +2655,7 @@ export interface InitOutput {
|
|
|
2629
2655
|
readonly fcfp4_bitvec: (a: number) => [number, number];
|
|
2630
2656
|
readonly fcfp6_bitvec: (a: number) => [number, number];
|
|
2631
2657
|
readonly find_reaction_center_json: (a: number, b: number) => [number, number];
|
|
2658
|
+
readonly fragment_parent_json: (a: number) => [number, number];
|
|
2632
2659
|
readonly gasteiger_charges_json: (a: number) => [number, number];
|
|
2633
2660
|
readonly generate_3d_coords_json: (a: number) => [number, number];
|
|
2634
2661
|
readonly generate_3d_etkdg_coords_json: (a: number) => [number, number];
|
|
@@ -2652,6 +2679,7 @@ export interface InitOutput {
|
|
|
2652
2679
|
readonly inchikey_from_smiles: (a: number, b: number) => [number, number];
|
|
2653
2680
|
readonly invert_stereocenter_at: (a: number, b: number) => [number, number, number];
|
|
2654
2681
|
readonly is_valid_smiles: (a: number, b: number) => number;
|
|
2682
|
+
readonly isotope_parent_json: (a: number) => [number, number];
|
|
2655
2683
|
readonly labute_asa_per_atom_json: (a: number) => [number, number];
|
|
2656
2684
|
readonly lammps_data_to_json: (a: number, b: number, c: number, d: number) => [number, number, number, number];
|
|
2657
2685
|
readonly lammps_dump_cartesian_positions_f64: (a: number, b: number) => [number, number, number];
|
|
@@ -2843,6 +2871,8 @@ export interface InitOutput {
|
|
|
2843
2871
|
readonly sssr_rings_json: (a: number) => [number, number];
|
|
2844
2872
|
readonly standardize_smiles: (a: number, b: number) => [number, number];
|
|
2845
2873
|
readonly standardize_smiles_report_json: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number];
|
|
2874
|
+
readonly stereo_parent_json: (a: number) => [number, number];
|
|
2875
|
+
readonly super_parent_json: (a: number, b: number, c: number, d: number, e: bigint) => [number, number];
|
|
2846
2876
|
readonly tanimoto_atom_pair: (a: number, b: number) => number;
|
|
2847
2877
|
readonly tanimoto_ecfp4: (a: number, b: number) => number;
|
|
2848
2878
|
readonly tanimoto_ecfp6: (a: number, b: number) => number;
|
package/chematic_wasm.js
CHANGED
|
@@ -1398,6 +1398,25 @@ export function cdxml_to_smiles_json(cdxml) {
|
|
|
1398
1398
|
}
|
|
1399
1399
|
}
|
|
1400
1400
|
|
|
1401
|
+
/**
|
|
1402
|
+
* Compute the charge Parent and return a status-shaped JSON result.
|
|
1403
|
+
* @param {MolHandle} mol
|
|
1404
|
+
* @returns {string}
|
|
1405
|
+
*/
|
|
1406
|
+
export function charge_parent_json(mol) {
|
|
1407
|
+
let deferred1_0;
|
|
1408
|
+
let deferred1_1;
|
|
1409
|
+
try {
|
|
1410
|
+
_assertClass(mol, MolHandle);
|
|
1411
|
+
const ret = wasm.charge_parent_json(mol.__wbg_ptr);
|
|
1412
|
+
deferred1_0 = ret[0];
|
|
1413
|
+
deferred1_1 = ret[1];
|
|
1414
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
1415
|
+
} finally {
|
|
1416
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
1417
|
+
}
|
|
1418
|
+
}
|
|
1419
|
+
|
|
1401
1420
|
/**
|
|
1402
1421
|
* The `chematic-wasm` crate version (matches the workspace release version).
|
|
1403
1422
|
*
|
|
@@ -2268,6 +2287,25 @@ export function find_reaction_center_json(reaction_smiles) {
|
|
|
2268
2287
|
}
|
|
2269
2288
|
}
|
|
2270
2289
|
|
|
2290
|
+
/**
|
|
2291
|
+
* Compute the fragment Parent and return a status-shaped JSON result.
|
|
2292
|
+
* @param {MolHandle} mol
|
|
2293
|
+
* @returns {string}
|
|
2294
|
+
*/
|
|
2295
|
+
export function fragment_parent_json(mol) {
|
|
2296
|
+
let deferred1_0;
|
|
2297
|
+
let deferred1_1;
|
|
2298
|
+
try {
|
|
2299
|
+
_assertClass(mol, MolHandle);
|
|
2300
|
+
const ret = wasm.fragment_parent_json(mol.__wbg_ptr);
|
|
2301
|
+
deferred1_0 = ret[0];
|
|
2302
|
+
deferred1_1 = ret[1];
|
|
2303
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
2304
|
+
} finally {
|
|
2305
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
2306
|
+
}
|
|
2307
|
+
}
|
|
2308
|
+
|
|
2271
2309
|
/**
|
|
2272
2310
|
* Gasteiger-Marsili PEOE partial charges as a JSON array of f64.
|
|
2273
2311
|
* @param {MolHandle} mol
|
|
@@ -2800,6 +2838,25 @@ export function is_valid_smiles(s) {
|
|
|
2800
2838
|
return ret !== 0;
|
|
2801
2839
|
}
|
|
2802
2840
|
|
|
2841
|
+
/**
|
|
2842
|
+
* Compute the isotope Parent and return a status-shaped JSON result.
|
|
2843
|
+
* @param {MolHandle} mol
|
|
2844
|
+
* @returns {string}
|
|
2845
|
+
*/
|
|
2846
|
+
export function isotope_parent_json(mol) {
|
|
2847
|
+
let deferred1_0;
|
|
2848
|
+
let deferred1_1;
|
|
2849
|
+
try {
|
|
2850
|
+
_assertClass(mol, MolHandle);
|
|
2851
|
+
const ret = wasm.isotope_parent_json(mol.__wbg_ptr);
|
|
2852
|
+
deferred1_0 = ret[0];
|
|
2853
|
+
deferred1_1 = ret[1];
|
|
2854
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
2855
|
+
} finally {
|
|
2856
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
2857
|
+
}
|
|
2858
|
+
}
|
|
2859
|
+
|
|
2803
2860
|
/**
|
|
2804
2861
|
* Per-atom Labute approximate surface area contributions as a JSON array of f64.
|
|
2805
2862
|
*
|
|
@@ -5785,6 +5842,47 @@ export function start() {
|
|
|
5785
5842
|
wasm.start();
|
|
5786
5843
|
}
|
|
5787
5844
|
|
|
5845
|
+
/**
|
|
5846
|
+
* Compute the stereo Parent and return a status-shaped JSON result.
|
|
5847
|
+
* @param {MolHandle} mol
|
|
5848
|
+
* @returns {string}
|
|
5849
|
+
*/
|
|
5850
|
+
export function stereo_parent_json(mol) {
|
|
5851
|
+
let deferred1_0;
|
|
5852
|
+
let deferred1_1;
|
|
5853
|
+
try {
|
|
5854
|
+
_assertClass(mol, MolHandle);
|
|
5855
|
+
const ret = wasm.stereo_parent_json(mol.__wbg_ptr);
|
|
5856
|
+
deferred1_0 = ret[0];
|
|
5857
|
+
deferred1_1 = ret[1];
|
|
5858
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
5859
|
+
} finally {
|
|
5860
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
5861
|
+
}
|
|
5862
|
+
}
|
|
5863
|
+
|
|
5864
|
+
/**
|
|
5865
|
+
* Compute the composed Super Parent with explicit resource limits.
|
|
5866
|
+
* @param {MolHandle} mol
|
|
5867
|
+
* @param {number} max_transforms
|
|
5868
|
+
* @param {number} max_tautomers
|
|
5869
|
+
* @param {bigint | null} [timeout_ms]
|
|
5870
|
+
* @returns {string}
|
|
5871
|
+
*/
|
|
5872
|
+
export function super_parent_json(mol, max_transforms, max_tautomers, timeout_ms) {
|
|
5873
|
+
let deferred1_0;
|
|
5874
|
+
let deferred1_1;
|
|
5875
|
+
try {
|
|
5876
|
+
_assertClass(mol, MolHandle);
|
|
5877
|
+
const ret = wasm.super_parent_json(mol.__wbg_ptr, max_transforms, max_tautomers, !isLikeNone(timeout_ms), isLikeNone(timeout_ms) ? BigInt(0) : timeout_ms);
|
|
5878
|
+
deferred1_0 = ret[0];
|
|
5879
|
+
deferred1_1 = ret[1];
|
|
5880
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
5881
|
+
} finally {
|
|
5882
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
5883
|
+
}
|
|
5884
|
+
}
|
|
5885
|
+
|
|
5788
5886
|
/**
|
|
5789
5887
|
* Tanimoto similarity between two molecules using AtomPair fingerprints.
|
|
5790
5888
|
* @param {MolHandle} a
|
package/chematic_wasm_bg.wasm
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"kent-tokyo <kent-tokyo@users.noreply.github.com>"
|
|
6
6
|
],
|
|
7
7
|
"description": "WebAssembly bindings for chematic — use chematic from JavaScript/TypeScript",
|
|
8
|
-
"version": "0.
|
|
8
|
+
"version": "0.31.0",
|
|
9
9
|
"license": "MIT OR Apache-2.0",
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|