sci-form-wasm 0.4.3 → 0.5.1
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/package.json +1 -1
- package/sci_form_wasm.d.ts +139 -0
- package/sci_form_wasm.js +529 -0
- package/sci_form_wasm_bg.wasm +0 -0
package/package.json
CHANGED
package/sci_form_wasm.d.ts
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
|
|
4
|
+
/**
|
|
5
|
+
* Analyze aromaticity and graph-level stereocenters from a SMILES string.
|
|
6
|
+
*/
|
|
7
|
+
export function analyze_graph_features(smiles: string): string;
|
|
8
|
+
|
|
4
9
|
/**
|
|
5
10
|
* Assemble a framework crystal structure.
|
|
6
11
|
*
|
|
@@ -12,6 +17,16 @@
|
|
|
12
17
|
*/
|
|
13
18
|
export function assemble_framework(topology: string, metal: number, geometry: string, lattice_a: number, supercell: number): string;
|
|
14
19
|
|
|
20
|
+
/**
|
|
21
|
+
* Compare available methods on the same system/geometry.
|
|
22
|
+
*/
|
|
23
|
+
export function compare_methods(smiles: string, elements: string, coords_flat: string, allow_experimental_eht: boolean): string;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Compute Wiberg-like and Mayer-like bond orders.
|
|
27
|
+
*/
|
|
28
|
+
export function compute_bond_orders(elements: string, coords_flat: string): string;
|
|
29
|
+
|
|
15
30
|
/**
|
|
16
31
|
* Compute Gasteiger-Marsili partial charges from a SMILES string.
|
|
17
32
|
*
|
|
@@ -29,6 +44,11 @@ export function compute_dipole(elements: string, coords_flat: string): string;
|
|
|
29
44
|
*/
|
|
30
45
|
export function compute_dos(elements: string, coords_flat: string, sigma: number, e_min: number, e_max: number, n_points: number): string;
|
|
31
46
|
|
|
47
|
+
/**
|
|
48
|
+
* Estimate acidic/basic pKa sites from graph and charge heuristics.
|
|
49
|
+
*/
|
|
50
|
+
export function compute_empirical_pka(smiles: string): string;
|
|
51
|
+
|
|
32
52
|
/**
|
|
33
53
|
* Get ESP grid metadata (origin, spacing, dimensions) as JSON.
|
|
34
54
|
*/
|
|
@@ -41,12 +61,66 @@ export function compute_esp_grid_info(elements: string, coords_flat: string, spa
|
|
|
41
61
|
*/
|
|
42
62
|
export function compute_esp_grid_typed(elements: string, coords_flat: string, spacing: number, padding: number): Float64Array;
|
|
43
63
|
|
|
64
|
+
/**
|
|
65
|
+
* Compute atom-resolved HOMO/LUMO frontier descriptors.
|
|
66
|
+
*/
|
|
67
|
+
export function compute_frontier_descriptors(elements: string, coords_flat: string): string;
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Compute Fukui-function workflows and condensed per-atom descriptors.
|
|
71
|
+
*/
|
|
72
|
+
export function compute_fukui_descriptors(elements: string, coords_flat: string): string;
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Predict molecular properties using ML proxy models.
|
|
76
|
+
*
|
|
77
|
+
* `smiles`: SMILES string.
|
|
78
|
+
*
|
|
79
|
+
* Returns: JSON with logp, molar_refractivity, log_solubility,
|
|
80
|
+
* lipinski_violations, lipinski_passes, druglikeness.
|
|
81
|
+
*/
|
|
82
|
+
export function compute_ml_properties(smiles: string): string;
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Compute MMFF94 force field energy.
|
|
86
|
+
*
|
|
87
|
+
* `smiles`: SMILES string for bond topology.
|
|
88
|
+
* `coords`: JSON array of flat xyz coords [x0,y0,z0, ...] in Å.
|
|
89
|
+
*
|
|
90
|
+
* Returns: JSON `{"energy": <kcal/mol>}`
|
|
91
|
+
*/
|
|
92
|
+
export function compute_mmff94_energy(smiles: string, coords: string): string;
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Compute molecular descriptors from a SMILES string.
|
|
96
|
+
*
|
|
97
|
+
* Returns: JSON with molecular_weight, n_heavy_atoms, n_hbd, n_hba, fsp3,
|
|
98
|
+
* n_rotatable_bonds, n_rings, n_aromatic, wiener_index, etc.
|
|
99
|
+
*/
|
|
100
|
+
export function compute_molecular_descriptors(smiles: string): string;
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Run a PM3 semi-empirical calculation.
|
|
104
|
+
*
|
|
105
|
+
* `elements_json`: JSON array of atomic numbers, e.g. `"[6,1,1,1,1]"`.
|
|
106
|
+
* `coords_flat_json`: JSON array of flat xyz coords [x0,y0,z0, ...] in Å.
|
|
107
|
+
*
|
|
108
|
+
* Returns: JSON Pm3Result with orbital_energies, total_energy, heat_of_formation,
|
|
109
|
+
* homo_energy, lumo_energy, gap, mulliken_charges, converged.
|
|
110
|
+
*/
|
|
111
|
+
export function compute_pm3(elements_json: string, coords_flat_json: string): string;
|
|
112
|
+
|
|
44
113
|
/**
|
|
45
114
|
* Compute Mulliken & Löwdin population analysis.
|
|
46
115
|
* Elements: JSON array of atomic numbers. Coords: JSON array of flat xyz.
|
|
47
116
|
*/
|
|
48
117
|
export function compute_population(elements: string, coords_flat: string): string;
|
|
49
118
|
|
|
119
|
+
/**
|
|
120
|
+
* Build empirical local-reactivity rankings from Fukui descriptors and Mulliken charges.
|
|
121
|
+
*/
|
|
122
|
+
export function compute_reactivity_ranking(elements: string, coords_flat: string): string;
|
|
123
|
+
|
|
50
124
|
/**
|
|
51
125
|
* Compute RMSD between two coordinate sets after Kabsch alignment.
|
|
52
126
|
*/
|
|
@@ -63,11 +137,37 @@ export function compute_rmsd(coords: string, reference: string): string;
|
|
|
63
137
|
*/
|
|
64
138
|
export function compute_sasa(elements: string, coords_flat: string, probe_radius: number): string;
|
|
65
139
|
|
|
140
|
+
/**
|
|
141
|
+
* Detect metal coordination geometry and return structured topology outputs.
|
|
142
|
+
*/
|
|
143
|
+
export function compute_topology(elements: string, coords_flat: string): string;
|
|
144
|
+
|
|
66
145
|
/**
|
|
67
146
|
* Compute UFF force field energy.
|
|
68
147
|
*/
|
|
69
148
|
export function compute_uff_energy(smiles: string, coords: string): string;
|
|
70
149
|
|
|
150
|
+
/**
|
|
151
|
+
* Compute UFF energy with aromaticity-informed heuristic correction metadata.
|
|
152
|
+
*/
|
|
153
|
+
export function compute_uff_energy_with_aromatic_heuristics(smiles: string, coords: string): string;
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* Build an exploratory UV-Vis-like spectrum from low-cost EHT transitions.
|
|
157
|
+
*/
|
|
158
|
+
export function compute_uv_vis_spectrum(elements: string, coords_flat: string, sigma: number, e_min: number, e_max: number, n_points: number): string;
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* Run an xTB tight-binding calculation.
|
|
162
|
+
*
|
|
163
|
+
* `elements_json`: JSON array of atomic numbers, e.g. `"[26,6,6]"`.
|
|
164
|
+
* `coords_flat_json`: JSON array of flat xyz coords [x0,y0,z0, ...] in Å.
|
|
165
|
+
*
|
|
166
|
+
* Returns: JSON XtbResult with orbital_energies, total_energy, gap,
|
|
167
|
+
* homo_energy, lumo_energy, mulliken_charges, converged.
|
|
168
|
+
*/
|
|
169
|
+
export function compute_xtb(elements_json: string, coords_flat_json: string): string;
|
|
170
|
+
|
|
71
171
|
/**
|
|
72
172
|
* Create a unit cell and return parameters + volume as JSON.
|
|
73
173
|
*/
|
|
@@ -84,6 +184,11 @@ export function create_unit_cell(a: number, b: number, c: number, alpha: number,
|
|
|
84
184
|
*/
|
|
85
185
|
export function eht_calculate(elements: string, coords_flat: string, k: number): string;
|
|
86
186
|
|
|
187
|
+
/**
|
|
188
|
+
* Run EHT or route to UFF fallback based on support/confidence.
|
|
189
|
+
*/
|
|
190
|
+
export function eht_or_uff_fallback(smiles: string, elements: string, coords_flat: string, allow_experimental_eht: boolean): string;
|
|
191
|
+
|
|
87
192
|
/**
|
|
88
193
|
* Compute orbital grid from precomputed EHT coefficients as Float32Array.
|
|
89
194
|
*/
|
|
@@ -108,6 +213,11 @@ export function eht_orbital_grid_typed(elements: string, coords_flat: string, mo
|
|
|
108
213
|
*/
|
|
109
214
|
export function eht_orbital_mesh(elements: string, coords_flat: string, mo_index: number, spacing: number, isovalue: number): string;
|
|
110
215
|
|
|
216
|
+
/**
|
|
217
|
+
* Query EHT support metadata from a JSON element array.
|
|
218
|
+
*/
|
|
219
|
+
export function eht_support(elements: string): string;
|
|
220
|
+
|
|
111
221
|
/**
|
|
112
222
|
* Generate a 3D conformer from a SMILES string.
|
|
113
223
|
*
|
|
@@ -164,6 +274,16 @@ export function parse_smiles(smiles: string): string;
|
|
|
164
274
|
*/
|
|
165
275
|
export function split_worker_tasks(smiles_json: string, n_workers: number, seed: number): string;
|
|
166
276
|
|
|
277
|
+
/**
|
|
278
|
+
* Query operation capabilities from a JSON element array.
|
|
279
|
+
*/
|
|
280
|
+
export function system_capabilities(elements: string): string;
|
|
281
|
+
|
|
282
|
+
/**
|
|
283
|
+
* Build a structured method plan from a JSON element array.
|
|
284
|
+
*/
|
|
285
|
+
export function system_method_plan(elements: string): string;
|
|
286
|
+
|
|
167
287
|
/**
|
|
168
288
|
* Library version.
|
|
169
289
|
*/
|
|
@@ -189,24 +309,43 @@ export interface InitOutput {
|
|
|
189
309
|
readonly eht_orbital_grid_typed: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
190
310
|
readonly eht_orbital_grid_from_coefficients_typed: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
191
311
|
readonly version: (a: number) => void;
|
|
312
|
+
readonly system_capabilities: (a: number, b: number, c: number) => void;
|
|
313
|
+
readonly system_method_plan: (a: number, b: number, c: number) => void;
|
|
314
|
+
readonly compare_methods: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
315
|
+
readonly eht_support: (a: number, b: number, c: number) => void;
|
|
192
316
|
readonly embed: (a: number, b: number, c: number, d: number) => void;
|
|
193
317
|
readonly embed_coords: (a: number, b: number, c: number, d: number) => void;
|
|
194
318
|
readonly embed_batch: (a: number, b: number, c: number, d: number) => void;
|
|
195
319
|
readonly parse_smiles: (a: number, b: number, c: number) => void;
|
|
196
320
|
readonly eht_calculate: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
321
|
+
readonly eht_or_uff_fallback: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
197
322
|
readonly eht_orbital_mesh: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
198
323
|
readonly compute_charges: (a: number, b: number, c: number) => void;
|
|
199
324
|
readonly compute_sasa: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
200
325
|
readonly compute_population: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
326
|
+
readonly compute_bond_orders: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
327
|
+
readonly compute_frontier_descriptors: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
328
|
+
readonly compute_fukui_descriptors: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
329
|
+
readonly compute_reactivity_ranking: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
330
|
+
readonly compute_uv_vis_spectrum: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
|
|
331
|
+
readonly analyze_graph_features: (a: number, b: number, c: number) => void;
|
|
332
|
+
readonly compute_topology: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
201
333
|
readonly compute_dipole: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
202
334
|
readonly compute_dos: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
|
|
203
335
|
readonly compute_rmsd: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
204
336
|
readonly compute_uff_energy: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
337
|
+
readonly compute_uff_energy_with_aromatic_heuristics: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
338
|
+
readonly compute_empirical_pka: (a: number, b: number, c: number) => void;
|
|
205
339
|
readonly create_unit_cell: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
206
340
|
readonly assemble_framework: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
207
341
|
readonly pack_batch_arrow: (a: number, b: number, c: number) => void;
|
|
208
342
|
readonly split_worker_tasks: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
209
343
|
readonly estimate_workers: (a: number, b: number) => number;
|
|
344
|
+
readonly compute_mmff94_energy: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
345
|
+
readonly compute_pm3: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
346
|
+
readonly compute_xtb: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
347
|
+
readonly compute_ml_properties: (a: number, b: number, c: number) => void;
|
|
348
|
+
readonly compute_molecular_descriptors: (a: number, b: number, c: number) => void;
|
|
210
349
|
readonly __wbg_wbg_rayon_poolbuilder_free: (a: number, b: number) => void;
|
|
211
350
|
readonly wbg_rayon_poolbuilder_numThreads: (a: number) => number;
|
|
212
351
|
readonly wbg_rayon_poolbuilder_receiver: (a: number) => number;
|
package/sci_form_wasm.js
CHANGED
|
@@ -1,6 +1,30 @@
|
|
|
1
1
|
/* @ts-self-types="./sci_form_wasm.d.ts" */
|
|
2
2
|
import { startWorkers } from './snippets/wasm-bindgen-rayon-38edf6e439f6d70d/src/workerHelpers.js';
|
|
3
3
|
|
|
4
|
+
/**
|
|
5
|
+
* Analyze aromaticity and graph-level stereocenters from a SMILES string.
|
|
6
|
+
* @param {string} smiles
|
|
7
|
+
* @returns {string}
|
|
8
|
+
*/
|
|
9
|
+
export function analyze_graph_features(smiles) {
|
|
10
|
+
let deferred2_0;
|
|
11
|
+
let deferred2_1;
|
|
12
|
+
try {
|
|
13
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
14
|
+
const ptr0 = passStringToWasm0(smiles, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
15
|
+
const len0 = WASM_VECTOR_LEN;
|
|
16
|
+
wasm.analyze_graph_features(retptr, ptr0, len0);
|
|
17
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
18
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
19
|
+
deferred2_0 = r0;
|
|
20
|
+
deferred2_1 = r1;
|
|
21
|
+
return getStringFromWasm0(r0, r1);
|
|
22
|
+
} finally {
|
|
23
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
24
|
+
wasm.__wbindgen_export3(deferred2_0, deferred2_1, 1);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
4
28
|
/**
|
|
5
29
|
* Assemble a framework crystal structure.
|
|
6
30
|
*
|
|
@@ -37,6 +61,64 @@ export function assemble_framework(topology, metal, geometry, lattice_a, superce
|
|
|
37
61
|
}
|
|
38
62
|
}
|
|
39
63
|
|
|
64
|
+
/**
|
|
65
|
+
* Compare available methods on the same system/geometry.
|
|
66
|
+
* @param {string} smiles
|
|
67
|
+
* @param {string} elements
|
|
68
|
+
* @param {string} coords_flat
|
|
69
|
+
* @param {boolean} allow_experimental_eht
|
|
70
|
+
* @returns {string}
|
|
71
|
+
*/
|
|
72
|
+
export function compare_methods(smiles, elements, coords_flat, allow_experimental_eht) {
|
|
73
|
+
let deferred4_0;
|
|
74
|
+
let deferred4_1;
|
|
75
|
+
try {
|
|
76
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
77
|
+
const ptr0 = passStringToWasm0(smiles, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
78
|
+
const len0 = WASM_VECTOR_LEN;
|
|
79
|
+
const ptr1 = passStringToWasm0(elements, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
80
|
+
const len1 = WASM_VECTOR_LEN;
|
|
81
|
+
const ptr2 = passStringToWasm0(coords_flat, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
82
|
+
const len2 = WASM_VECTOR_LEN;
|
|
83
|
+
wasm.compare_methods(retptr, ptr0, len0, ptr1, len1, ptr2, len2, allow_experimental_eht);
|
|
84
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
85
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
86
|
+
deferred4_0 = r0;
|
|
87
|
+
deferred4_1 = r1;
|
|
88
|
+
return getStringFromWasm0(r0, r1);
|
|
89
|
+
} finally {
|
|
90
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
91
|
+
wasm.__wbindgen_export3(deferred4_0, deferred4_1, 1);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Compute Wiberg-like and Mayer-like bond orders.
|
|
97
|
+
* @param {string} elements
|
|
98
|
+
* @param {string} coords_flat
|
|
99
|
+
* @returns {string}
|
|
100
|
+
*/
|
|
101
|
+
export function compute_bond_orders(elements, coords_flat) {
|
|
102
|
+
let deferred3_0;
|
|
103
|
+
let deferred3_1;
|
|
104
|
+
try {
|
|
105
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
106
|
+
const ptr0 = passStringToWasm0(elements, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
107
|
+
const len0 = WASM_VECTOR_LEN;
|
|
108
|
+
const ptr1 = passStringToWasm0(coords_flat, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
109
|
+
const len1 = WASM_VECTOR_LEN;
|
|
110
|
+
wasm.compute_bond_orders(retptr, ptr0, len0, ptr1, len1);
|
|
111
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
112
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
113
|
+
deferred3_0 = r0;
|
|
114
|
+
deferred3_1 = r1;
|
|
115
|
+
return getStringFromWasm0(r0, r1);
|
|
116
|
+
} finally {
|
|
117
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
118
|
+
wasm.__wbindgen_export3(deferred3_0, deferred3_1, 1);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
40
122
|
/**
|
|
41
123
|
* Compute Gasteiger-Marsili partial charges from a SMILES string.
|
|
42
124
|
*
|
|
@@ -121,6 +203,30 @@ export function compute_dos(elements, coords_flat, sigma, e_min, e_max, n_points
|
|
|
121
203
|
}
|
|
122
204
|
}
|
|
123
205
|
|
|
206
|
+
/**
|
|
207
|
+
* Estimate acidic/basic pKa sites from graph and charge heuristics.
|
|
208
|
+
* @param {string} smiles
|
|
209
|
+
* @returns {string}
|
|
210
|
+
*/
|
|
211
|
+
export function compute_empirical_pka(smiles) {
|
|
212
|
+
let deferred2_0;
|
|
213
|
+
let deferred2_1;
|
|
214
|
+
try {
|
|
215
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
216
|
+
const ptr0 = passStringToWasm0(smiles, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
217
|
+
const len0 = WASM_VECTOR_LEN;
|
|
218
|
+
wasm.compute_empirical_pka(retptr, ptr0, len0);
|
|
219
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
220
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
221
|
+
deferred2_0 = r0;
|
|
222
|
+
deferred2_1 = r1;
|
|
223
|
+
return getStringFromWasm0(r0, r1);
|
|
224
|
+
} finally {
|
|
225
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
226
|
+
wasm.__wbindgen_export3(deferred2_0, deferred2_1, 1);
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
|
|
124
230
|
/**
|
|
125
231
|
* Get ESP grid metadata (origin, spacing, dimensions) as JSON.
|
|
126
232
|
* @param {string} elements
|
|
@@ -169,6 +275,181 @@ export function compute_esp_grid_typed(elements, coords_flat, spacing, padding)
|
|
|
169
275
|
return takeObject(ret);
|
|
170
276
|
}
|
|
171
277
|
|
|
278
|
+
/**
|
|
279
|
+
* Compute atom-resolved HOMO/LUMO frontier descriptors.
|
|
280
|
+
* @param {string} elements
|
|
281
|
+
* @param {string} coords_flat
|
|
282
|
+
* @returns {string}
|
|
283
|
+
*/
|
|
284
|
+
export function compute_frontier_descriptors(elements, coords_flat) {
|
|
285
|
+
let deferred3_0;
|
|
286
|
+
let deferred3_1;
|
|
287
|
+
try {
|
|
288
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
289
|
+
const ptr0 = passStringToWasm0(elements, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
290
|
+
const len0 = WASM_VECTOR_LEN;
|
|
291
|
+
const ptr1 = passStringToWasm0(coords_flat, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
292
|
+
const len1 = WASM_VECTOR_LEN;
|
|
293
|
+
wasm.compute_frontier_descriptors(retptr, ptr0, len0, ptr1, len1);
|
|
294
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
295
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
296
|
+
deferred3_0 = r0;
|
|
297
|
+
deferred3_1 = r1;
|
|
298
|
+
return getStringFromWasm0(r0, r1);
|
|
299
|
+
} finally {
|
|
300
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
301
|
+
wasm.__wbindgen_export3(deferred3_0, deferred3_1, 1);
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
/**
|
|
306
|
+
* Compute Fukui-function workflows and condensed per-atom descriptors.
|
|
307
|
+
* @param {string} elements
|
|
308
|
+
* @param {string} coords_flat
|
|
309
|
+
* @returns {string}
|
|
310
|
+
*/
|
|
311
|
+
export function compute_fukui_descriptors(elements, coords_flat) {
|
|
312
|
+
let deferred3_0;
|
|
313
|
+
let deferred3_1;
|
|
314
|
+
try {
|
|
315
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
316
|
+
const ptr0 = passStringToWasm0(elements, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
317
|
+
const len0 = WASM_VECTOR_LEN;
|
|
318
|
+
const ptr1 = passStringToWasm0(coords_flat, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
319
|
+
const len1 = WASM_VECTOR_LEN;
|
|
320
|
+
wasm.compute_fukui_descriptors(retptr, ptr0, len0, ptr1, len1);
|
|
321
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
322
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
323
|
+
deferred3_0 = r0;
|
|
324
|
+
deferred3_1 = r1;
|
|
325
|
+
return getStringFromWasm0(r0, r1);
|
|
326
|
+
} finally {
|
|
327
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
328
|
+
wasm.__wbindgen_export3(deferred3_0, deferred3_1, 1);
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
/**
|
|
333
|
+
* Predict molecular properties using ML proxy models.
|
|
334
|
+
*
|
|
335
|
+
* `smiles`: SMILES string.
|
|
336
|
+
*
|
|
337
|
+
* Returns: JSON with logp, molar_refractivity, log_solubility,
|
|
338
|
+
* lipinski_violations, lipinski_passes, druglikeness.
|
|
339
|
+
* @param {string} smiles
|
|
340
|
+
* @returns {string}
|
|
341
|
+
*/
|
|
342
|
+
export function compute_ml_properties(smiles) {
|
|
343
|
+
let deferred2_0;
|
|
344
|
+
let deferred2_1;
|
|
345
|
+
try {
|
|
346
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
347
|
+
const ptr0 = passStringToWasm0(smiles, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
348
|
+
const len0 = WASM_VECTOR_LEN;
|
|
349
|
+
wasm.compute_ml_properties(retptr, ptr0, len0);
|
|
350
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
351
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
352
|
+
deferred2_0 = r0;
|
|
353
|
+
deferred2_1 = r1;
|
|
354
|
+
return getStringFromWasm0(r0, r1);
|
|
355
|
+
} finally {
|
|
356
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
357
|
+
wasm.__wbindgen_export3(deferred2_0, deferred2_1, 1);
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
/**
|
|
362
|
+
* Compute MMFF94 force field energy.
|
|
363
|
+
*
|
|
364
|
+
* `smiles`: SMILES string for bond topology.
|
|
365
|
+
* `coords`: JSON array of flat xyz coords [x0,y0,z0, ...] in Å.
|
|
366
|
+
*
|
|
367
|
+
* Returns: JSON `{"energy": <kcal/mol>}`
|
|
368
|
+
* @param {string} smiles
|
|
369
|
+
* @param {string} coords
|
|
370
|
+
* @returns {string}
|
|
371
|
+
*/
|
|
372
|
+
export function compute_mmff94_energy(smiles, coords) {
|
|
373
|
+
let deferred3_0;
|
|
374
|
+
let deferred3_1;
|
|
375
|
+
try {
|
|
376
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
377
|
+
const ptr0 = passStringToWasm0(smiles, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
378
|
+
const len0 = WASM_VECTOR_LEN;
|
|
379
|
+
const ptr1 = passStringToWasm0(coords, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
380
|
+
const len1 = WASM_VECTOR_LEN;
|
|
381
|
+
wasm.compute_mmff94_energy(retptr, ptr0, len0, ptr1, len1);
|
|
382
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
383
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
384
|
+
deferred3_0 = r0;
|
|
385
|
+
deferred3_1 = r1;
|
|
386
|
+
return getStringFromWasm0(r0, r1);
|
|
387
|
+
} finally {
|
|
388
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
389
|
+
wasm.__wbindgen_export3(deferred3_0, deferred3_1, 1);
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
/**
|
|
394
|
+
* Compute molecular descriptors from a SMILES string.
|
|
395
|
+
*
|
|
396
|
+
* Returns: JSON with molecular_weight, n_heavy_atoms, n_hbd, n_hba, fsp3,
|
|
397
|
+
* n_rotatable_bonds, n_rings, n_aromatic, wiener_index, etc.
|
|
398
|
+
* @param {string} smiles
|
|
399
|
+
* @returns {string}
|
|
400
|
+
*/
|
|
401
|
+
export function compute_molecular_descriptors(smiles) {
|
|
402
|
+
let deferred2_0;
|
|
403
|
+
let deferred2_1;
|
|
404
|
+
try {
|
|
405
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
406
|
+
const ptr0 = passStringToWasm0(smiles, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
407
|
+
const len0 = WASM_VECTOR_LEN;
|
|
408
|
+
wasm.compute_molecular_descriptors(retptr, ptr0, len0);
|
|
409
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
410
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
411
|
+
deferred2_0 = r0;
|
|
412
|
+
deferred2_1 = r1;
|
|
413
|
+
return getStringFromWasm0(r0, r1);
|
|
414
|
+
} finally {
|
|
415
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
416
|
+
wasm.__wbindgen_export3(deferred2_0, deferred2_1, 1);
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
/**
|
|
421
|
+
* Run a PM3 semi-empirical calculation.
|
|
422
|
+
*
|
|
423
|
+
* `elements_json`: JSON array of atomic numbers, e.g. `"[6,1,1,1,1]"`.
|
|
424
|
+
* `coords_flat_json`: JSON array of flat xyz coords [x0,y0,z0, ...] in Å.
|
|
425
|
+
*
|
|
426
|
+
* Returns: JSON Pm3Result with orbital_energies, total_energy, heat_of_formation,
|
|
427
|
+
* homo_energy, lumo_energy, gap, mulliken_charges, converged.
|
|
428
|
+
* @param {string} elements_json
|
|
429
|
+
* @param {string} coords_flat_json
|
|
430
|
+
* @returns {string}
|
|
431
|
+
*/
|
|
432
|
+
export function compute_pm3(elements_json, coords_flat_json) {
|
|
433
|
+
let deferred3_0;
|
|
434
|
+
let deferred3_1;
|
|
435
|
+
try {
|
|
436
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
437
|
+
const ptr0 = passStringToWasm0(elements_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
438
|
+
const len0 = WASM_VECTOR_LEN;
|
|
439
|
+
const ptr1 = passStringToWasm0(coords_flat_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
440
|
+
const len1 = WASM_VECTOR_LEN;
|
|
441
|
+
wasm.compute_pm3(retptr, ptr0, len0, ptr1, len1);
|
|
442
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
443
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
444
|
+
deferred3_0 = r0;
|
|
445
|
+
deferred3_1 = r1;
|
|
446
|
+
return getStringFromWasm0(r0, r1);
|
|
447
|
+
} finally {
|
|
448
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
449
|
+
wasm.__wbindgen_export3(deferred3_0, deferred3_1, 1);
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
|
|
172
453
|
/**
|
|
173
454
|
* Compute Mulliken & Löwdin population analysis.
|
|
174
455
|
* Elements: JSON array of atomic numbers. Coords: JSON array of flat xyz.
|
|
@@ -197,6 +478,33 @@ export function compute_population(elements, coords_flat) {
|
|
|
197
478
|
}
|
|
198
479
|
}
|
|
199
480
|
|
|
481
|
+
/**
|
|
482
|
+
* Build empirical local-reactivity rankings from Fukui descriptors and Mulliken charges.
|
|
483
|
+
* @param {string} elements
|
|
484
|
+
* @param {string} coords_flat
|
|
485
|
+
* @returns {string}
|
|
486
|
+
*/
|
|
487
|
+
export function compute_reactivity_ranking(elements, coords_flat) {
|
|
488
|
+
let deferred3_0;
|
|
489
|
+
let deferred3_1;
|
|
490
|
+
try {
|
|
491
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
492
|
+
const ptr0 = passStringToWasm0(elements, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
493
|
+
const len0 = WASM_VECTOR_LEN;
|
|
494
|
+
const ptr1 = passStringToWasm0(coords_flat, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
495
|
+
const len1 = WASM_VECTOR_LEN;
|
|
496
|
+
wasm.compute_reactivity_ranking(retptr, ptr0, len0, ptr1, len1);
|
|
497
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
498
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
499
|
+
deferred3_0 = r0;
|
|
500
|
+
deferred3_1 = r1;
|
|
501
|
+
return getStringFromWasm0(r0, r1);
|
|
502
|
+
} finally {
|
|
503
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
504
|
+
wasm.__wbindgen_export3(deferred3_0, deferred3_1, 1);
|
|
505
|
+
}
|
|
506
|
+
}
|
|
507
|
+
|
|
200
508
|
/**
|
|
201
509
|
* Compute RMSD between two coordinate sets after Kabsch alignment.
|
|
202
510
|
* @param {string} coords
|
|
@@ -258,6 +566,33 @@ export function compute_sasa(elements, coords_flat, probe_radius) {
|
|
|
258
566
|
}
|
|
259
567
|
}
|
|
260
568
|
|
|
569
|
+
/**
|
|
570
|
+
* Detect metal coordination geometry and return structured topology outputs.
|
|
571
|
+
* @param {string} elements
|
|
572
|
+
* @param {string} coords_flat
|
|
573
|
+
* @returns {string}
|
|
574
|
+
*/
|
|
575
|
+
export function compute_topology(elements, coords_flat) {
|
|
576
|
+
let deferred3_0;
|
|
577
|
+
let deferred3_1;
|
|
578
|
+
try {
|
|
579
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
580
|
+
const ptr0 = passStringToWasm0(elements, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
581
|
+
const len0 = WASM_VECTOR_LEN;
|
|
582
|
+
const ptr1 = passStringToWasm0(coords_flat, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
583
|
+
const len1 = WASM_VECTOR_LEN;
|
|
584
|
+
wasm.compute_topology(retptr, ptr0, len0, ptr1, len1);
|
|
585
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
586
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
587
|
+
deferred3_0 = r0;
|
|
588
|
+
deferred3_1 = r1;
|
|
589
|
+
return getStringFromWasm0(r0, r1);
|
|
590
|
+
} finally {
|
|
591
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
592
|
+
wasm.__wbindgen_export3(deferred3_0, deferred3_1, 1);
|
|
593
|
+
}
|
|
594
|
+
}
|
|
595
|
+
|
|
261
596
|
/**
|
|
262
597
|
* Compute UFF force field energy.
|
|
263
598
|
* @param {string} smiles
|
|
@@ -285,6 +620,97 @@ export function compute_uff_energy(smiles, coords) {
|
|
|
285
620
|
}
|
|
286
621
|
}
|
|
287
622
|
|
|
623
|
+
/**
|
|
624
|
+
* Compute UFF energy with aromaticity-informed heuristic correction metadata.
|
|
625
|
+
* @param {string} smiles
|
|
626
|
+
* @param {string} coords
|
|
627
|
+
* @returns {string}
|
|
628
|
+
*/
|
|
629
|
+
export function compute_uff_energy_with_aromatic_heuristics(smiles, coords) {
|
|
630
|
+
let deferred3_0;
|
|
631
|
+
let deferred3_1;
|
|
632
|
+
try {
|
|
633
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
634
|
+
const ptr0 = passStringToWasm0(smiles, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
635
|
+
const len0 = WASM_VECTOR_LEN;
|
|
636
|
+
const ptr1 = passStringToWasm0(coords, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
637
|
+
const len1 = WASM_VECTOR_LEN;
|
|
638
|
+
wasm.compute_uff_energy_with_aromatic_heuristics(retptr, ptr0, len0, ptr1, len1);
|
|
639
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
640
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
641
|
+
deferred3_0 = r0;
|
|
642
|
+
deferred3_1 = r1;
|
|
643
|
+
return getStringFromWasm0(r0, r1);
|
|
644
|
+
} finally {
|
|
645
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
646
|
+
wasm.__wbindgen_export3(deferred3_0, deferred3_1, 1);
|
|
647
|
+
}
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
/**
|
|
651
|
+
* Build an exploratory UV-Vis-like spectrum from low-cost EHT transitions.
|
|
652
|
+
* @param {string} elements
|
|
653
|
+
* @param {string} coords_flat
|
|
654
|
+
* @param {number} sigma
|
|
655
|
+
* @param {number} e_min
|
|
656
|
+
* @param {number} e_max
|
|
657
|
+
* @param {number} n_points
|
|
658
|
+
* @returns {string}
|
|
659
|
+
*/
|
|
660
|
+
export function compute_uv_vis_spectrum(elements, coords_flat, sigma, e_min, e_max, n_points) {
|
|
661
|
+
let deferred3_0;
|
|
662
|
+
let deferred3_1;
|
|
663
|
+
try {
|
|
664
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
665
|
+
const ptr0 = passStringToWasm0(elements, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
666
|
+
const len0 = WASM_VECTOR_LEN;
|
|
667
|
+
const ptr1 = passStringToWasm0(coords_flat, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
668
|
+
const len1 = WASM_VECTOR_LEN;
|
|
669
|
+
wasm.compute_uv_vis_spectrum(retptr, ptr0, len0, ptr1, len1, sigma, e_min, e_max, n_points);
|
|
670
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
671
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
672
|
+
deferred3_0 = r0;
|
|
673
|
+
deferred3_1 = r1;
|
|
674
|
+
return getStringFromWasm0(r0, r1);
|
|
675
|
+
} finally {
|
|
676
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
677
|
+
wasm.__wbindgen_export3(deferred3_0, deferred3_1, 1);
|
|
678
|
+
}
|
|
679
|
+
}
|
|
680
|
+
|
|
681
|
+
/**
|
|
682
|
+
* Run an xTB tight-binding calculation.
|
|
683
|
+
*
|
|
684
|
+
* `elements_json`: JSON array of atomic numbers, e.g. `"[26,6,6]"`.
|
|
685
|
+
* `coords_flat_json`: JSON array of flat xyz coords [x0,y0,z0, ...] in Å.
|
|
686
|
+
*
|
|
687
|
+
* Returns: JSON XtbResult with orbital_energies, total_energy, gap,
|
|
688
|
+
* homo_energy, lumo_energy, mulliken_charges, converged.
|
|
689
|
+
* @param {string} elements_json
|
|
690
|
+
* @param {string} coords_flat_json
|
|
691
|
+
* @returns {string}
|
|
692
|
+
*/
|
|
693
|
+
export function compute_xtb(elements_json, coords_flat_json) {
|
|
694
|
+
let deferred3_0;
|
|
695
|
+
let deferred3_1;
|
|
696
|
+
try {
|
|
697
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
698
|
+
const ptr0 = passStringToWasm0(elements_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
699
|
+
const len0 = WASM_VECTOR_LEN;
|
|
700
|
+
const ptr1 = passStringToWasm0(coords_flat_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
701
|
+
const len1 = WASM_VECTOR_LEN;
|
|
702
|
+
wasm.compute_xtb(retptr, ptr0, len0, ptr1, len1);
|
|
703
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
704
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
705
|
+
deferred3_0 = r0;
|
|
706
|
+
deferred3_1 = r1;
|
|
707
|
+
return getStringFromWasm0(r0, r1);
|
|
708
|
+
} finally {
|
|
709
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
710
|
+
wasm.__wbindgen_export3(deferred3_0, deferred3_1, 1);
|
|
711
|
+
}
|
|
712
|
+
}
|
|
713
|
+
|
|
288
714
|
/**
|
|
289
715
|
* Create a unit cell and return parameters + volume as JSON.
|
|
290
716
|
* @param {number} a
|
|
@@ -346,6 +772,37 @@ export function eht_calculate(elements, coords_flat, k) {
|
|
|
346
772
|
}
|
|
347
773
|
}
|
|
348
774
|
|
|
775
|
+
/**
|
|
776
|
+
* Run EHT or route to UFF fallback based on support/confidence.
|
|
777
|
+
* @param {string} smiles
|
|
778
|
+
* @param {string} elements
|
|
779
|
+
* @param {string} coords_flat
|
|
780
|
+
* @param {boolean} allow_experimental_eht
|
|
781
|
+
* @returns {string}
|
|
782
|
+
*/
|
|
783
|
+
export function eht_or_uff_fallback(smiles, elements, coords_flat, allow_experimental_eht) {
|
|
784
|
+
let deferred4_0;
|
|
785
|
+
let deferred4_1;
|
|
786
|
+
try {
|
|
787
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
788
|
+
const ptr0 = passStringToWasm0(smiles, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
789
|
+
const len0 = WASM_VECTOR_LEN;
|
|
790
|
+
const ptr1 = passStringToWasm0(elements, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
791
|
+
const len1 = WASM_VECTOR_LEN;
|
|
792
|
+
const ptr2 = passStringToWasm0(coords_flat, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
793
|
+
const len2 = WASM_VECTOR_LEN;
|
|
794
|
+
wasm.eht_or_uff_fallback(retptr, ptr0, len0, ptr1, len1, ptr2, len2, allow_experimental_eht);
|
|
795
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
796
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
797
|
+
deferred4_0 = r0;
|
|
798
|
+
deferred4_1 = r1;
|
|
799
|
+
return getStringFromWasm0(r0, r1);
|
|
800
|
+
} finally {
|
|
801
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
802
|
+
wasm.__wbindgen_export3(deferred4_0, deferred4_1, 1);
|
|
803
|
+
}
|
|
804
|
+
}
|
|
805
|
+
|
|
349
806
|
/**
|
|
350
807
|
* Compute orbital grid from precomputed EHT coefficients as Float32Array.
|
|
351
808
|
* @param {string} elements
|
|
@@ -422,6 +879,30 @@ export function eht_orbital_mesh(elements, coords_flat, mo_index, spacing, isova
|
|
|
422
879
|
}
|
|
423
880
|
}
|
|
424
881
|
|
|
882
|
+
/**
|
|
883
|
+
* Query EHT support metadata from a JSON element array.
|
|
884
|
+
* @param {string} elements
|
|
885
|
+
* @returns {string}
|
|
886
|
+
*/
|
|
887
|
+
export function eht_support(elements) {
|
|
888
|
+
let deferred2_0;
|
|
889
|
+
let deferred2_1;
|
|
890
|
+
try {
|
|
891
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
892
|
+
const ptr0 = passStringToWasm0(elements, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
893
|
+
const len0 = WASM_VECTOR_LEN;
|
|
894
|
+
wasm.eht_support(retptr, ptr0, len0);
|
|
895
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
896
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
897
|
+
deferred2_0 = r0;
|
|
898
|
+
deferred2_1 = r1;
|
|
899
|
+
return getStringFromWasm0(r0, r1);
|
|
900
|
+
} finally {
|
|
901
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
902
|
+
wasm.__wbindgen_export3(deferred2_0, deferred2_1, 1);
|
|
903
|
+
}
|
|
904
|
+
}
|
|
905
|
+
|
|
425
906
|
/**
|
|
426
907
|
* Generate a 3D conformer from a SMILES string.
|
|
427
908
|
*
|
|
@@ -618,6 +1099,54 @@ export function split_worker_tasks(smiles_json, n_workers, seed) {
|
|
|
618
1099
|
}
|
|
619
1100
|
}
|
|
620
1101
|
|
|
1102
|
+
/**
|
|
1103
|
+
* Query operation capabilities from a JSON element array.
|
|
1104
|
+
* @param {string} elements
|
|
1105
|
+
* @returns {string}
|
|
1106
|
+
*/
|
|
1107
|
+
export function system_capabilities(elements) {
|
|
1108
|
+
let deferred2_0;
|
|
1109
|
+
let deferred2_1;
|
|
1110
|
+
try {
|
|
1111
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1112
|
+
const ptr0 = passStringToWasm0(elements, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1113
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1114
|
+
wasm.system_capabilities(retptr, ptr0, len0);
|
|
1115
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1116
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1117
|
+
deferred2_0 = r0;
|
|
1118
|
+
deferred2_1 = r1;
|
|
1119
|
+
return getStringFromWasm0(r0, r1);
|
|
1120
|
+
} finally {
|
|
1121
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1122
|
+
wasm.__wbindgen_export3(deferred2_0, deferred2_1, 1);
|
|
1123
|
+
}
|
|
1124
|
+
}
|
|
1125
|
+
|
|
1126
|
+
/**
|
|
1127
|
+
* Build a structured method plan from a JSON element array.
|
|
1128
|
+
* @param {string} elements
|
|
1129
|
+
* @returns {string}
|
|
1130
|
+
*/
|
|
1131
|
+
export function system_method_plan(elements) {
|
|
1132
|
+
let deferred2_0;
|
|
1133
|
+
let deferred2_1;
|
|
1134
|
+
try {
|
|
1135
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1136
|
+
const ptr0 = passStringToWasm0(elements, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1137
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1138
|
+
wasm.system_method_plan(retptr, ptr0, len0);
|
|
1139
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1140
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1141
|
+
deferred2_0 = r0;
|
|
1142
|
+
deferred2_1 = r1;
|
|
1143
|
+
return getStringFromWasm0(r0, r1);
|
|
1144
|
+
} finally {
|
|
1145
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1146
|
+
wasm.__wbindgen_export3(deferred2_0, deferred2_1, 1);
|
|
1147
|
+
}
|
|
1148
|
+
}
|
|
1149
|
+
|
|
621
1150
|
/**
|
|
622
1151
|
* Library version.
|
|
623
1152
|
* @returns {string}
|
package/sci_form_wasm_bg.wasm
CHANGED
|
Binary file
|