sci-form-wasm 0.12.4 → 0.14.2
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/README.md +46 -5
- package/package.json +1 -1
- package/sci_form_wasm.d.ts +219 -79
- package/sci_form_wasm.js +568 -15
- package/sci_form_wasm_bg.wasm +0 -0
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
**High-performance 3D molecular conformer generation and quantum-chemistry-inspired property computation**, written in pure Rust.
|
|
4
4
|
|
|
5
|
-
Generates chemically valid 3D coordinates from SMILES strings with RDKit-quality accuracy (ETKDGv2), and provides a full suite of computational chemistry tools: Extended Hückel Theory, electrostatic potentials, density of states, population analysis, molecular alignment, force field energy evaluation (UFF + MMFF94), partial charges, SASA, and materials framework assembly.
|
|
5
|
+
Generates chemically valid 3D coordinates from SMILES strings with RDKit-quality accuracy (ETKDGv2), and provides a full suite of computational chemistry tools: Extended Hückel Theory, semi-empirical quantum chemistry (PM3, PM3(tm), GFN0/GFN1/GFN2-xTB), ab-initio methods (HF-3c, UHF/ROHF, CISD), neural network potentials (ANI-2x, ANI-TM), electrostatic potentials, density of states, population analysis, molecular alignment, force field energy evaluation (UFF + MMFF94), partial charges, SASA, stereochemistry, NMR/IR/UV-Vis spectroscopy, CIF crystallography, and materials framework assembly.
|
|
6
6
|
|
|
7
7
|
Native bindings for **Rust**, **Python**, **TypeScript/JavaScript (WASM)**, and a **cross-platform CLI**.
|
|
8
8
|
|
|
@@ -21,11 +21,33 @@ Native bindings for **Rust**, **Python**, **TypeScript/JavaScript (WASM)**, and
|
|
|
21
21
|
|
|
22
22
|
### Quantum Chemistry (EHT)
|
|
23
23
|
- **Extended Hückel Theory** — Wolfsberg-Helmholtz Hamiltonian, Löwdin orthogonalization, HOMO/LUMO gaps
|
|
24
|
-
- **Mulliken & Löwdin population analysis** — atomic orbital contributions per atom
|
|
24
|
+
- **Mulliken & Löwdin population analysis** — atomic orbital contributions per atom (parallel, Z=1–86 including lanthanides)
|
|
25
25
|
- **Molecular dipole moment** — bond dipoles + lone-pair contributions in Debye
|
|
26
26
|
- **Volumetric orbital grids** — STO-3G basis, chunked evaluation for large molecules, marching cubes isosurfaces
|
|
27
27
|
- **Density of States** — total DOS + per-atom PDOS with Gaussian smearing, JSON export, MSE metric
|
|
28
28
|
|
|
29
|
+
### Semi-Empirical & Tight-Binding Methods
|
|
30
|
+
- **PM3 / PM3(tm)** — NDDO semi-empirical SCF with Gaussian core-core corrections, heat of formation, HOMO/LUMO; transition metal support (Ti–Au)
|
|
31
|
+
- **GFN0/GFN1/GFN2-xTB** — Tight-binding DFT family with Broyden SCC mixing, shell-resolved charges, D3/D4 dispersion, halogen bonding
|
|
32
|
+
- **EEQ Charges** — Extended Electronegativity Equalization with improved Gaussian damping
|
|
33
|
+
|
|
34
|
+
### Ab-Initio Methods
|
|
35
|
+
- **HF-3c** — Minimal-basis Hartree-Fock with D3-BJ dispersion, gCP, and SRB corrections
|
|
36
|
+
- **UHF / ROHF** — Unrestricted and restricted open-shell Hartree-Fock SCF with configurable level shift and damping
|
|
37
|
+
- **CISD** — Configuration Interaction Singles+Doubles for excited states
|
|
38
|
+
- **AO→MO Integral Transform** — 4-index integral transform with 4-fold symmetry for post-HF methods
|
|
39
|
+
|
|
40
|
+
### Spectroscopy
|
|
41
|
+
- **UV-Vis** — sTDA-xTB vertical excitations, Gaussian/Lorentzian broadening
|
|
42
|
+
- **IR** — Numerical Hessian vibrational analysis, dipole intensities, thermochemistry (RRHO), peak assignment
|
|
43
|
+
- **NMR** — Chemical shifts via HOSE codes, J-coupling (Karplus 2J–5J including long-range), ensemble averaging
|
|
44
|
+
|
|
45
|
+
### Machine Learning
|
|
46
|
+
- **ANI-2x / ANI-TM** — Neural network potentials with analytical gradients (24 elements including transition metals)
|
|
47
|
+
- **ML Properties** — LogP, molar refractivity, solubility, Lipinski Ro5, druglikeness
|
|
48
|
+
- **3D Descriptors** — WHIM, RDF, GETAWAY molecular descriptors
|
|
49
|
+
- **ML Models** — Decision Trees, Random Forest, Gradient Boosting with cross-validation
|
|
50
|
+
|
|
29
51
|
### Experimental RHF Engine
|
|
30
52
|
- **Isolated `experimental_2` namespace** — next-generation Roothaan-Hall RHF engine without affecting stable APIs
|
|
31
53
|
- **Analytical Gaussian integrals** — overlap, kinetic, nuclear attraction, core Hamiltonian, and two-electron ERIs
|
|
@@ -59,11 +81,13 @@ Native bindings for **Rust**, **Python**, **TypeScript/JavaScript (WASM)**, and
|
|
|
59
81
|
- **Periodic unit cells** — lattice parameters (a, b, c, α, β, γ) to Cartesian tensor
|
|
60
82
|
- **Secondary Building Units (SBUs)** — node/linker topology with coordination sites
|
|
61
83
|
- **Framework assembly** — MOF-type crystal structure generation from SBUs + topology
|
|
84
|
+
- **230 space groups** — full ITC space group library with equivalent position generation
|
|
85
|
+
- **CIF import/export** — parse and write CIF 1.1 crystallographic files with uncertainty notation support
|
|
62
86
|
|
|
63
87
|
### Platform
|
|
64
88
|
- **Multi-platform** — Rust lib, Python (PyO3), TypeScript/JS (WASM), CLI (Linux/macOS/Windows)
|
|
65
89
|
- **Zero runtime dependencies** — pure Rust, no C++ toolchain needed
|
|
66
|
-
- **SMILES
|
|
90
|
+
- **SMILES, SMARTS, SMIRKS** — full parser, substructure matcher, and reaction transforms (multi-component); 60+ bracket elements
|
|
67
91
|
|
|
68
92
|
---
|
|
69
93
|
|
|
@@ -73,9 +97,9 @@ Native bindings for **Rust**, **Python**, **TypeScript/JavaScript (WASM)**, and
|
|
|
73
97
|
|
|
74
98
|
```toml
|
|
75
99
|
[dependencies]
|
|
76
|
-
sci-form = "0.
|
|
100
|
+
sci-form = "0.13"
|
|
77
101
|
# For parallel batch + ESP:
|
|
78
|
-
sci-form = { version = "0.
|
|
102
|
+
sci-form = { version = "0.13", features = ["parallel"] }
|
|
79
103
|
```
|
|
80
104
|
|
|
81
105
|
```rust
|
|
@@ -321,7 +345,14 @@ More detailed coverage notes live in [TESTING.md](TESTING.md), and the broader p
|
|
|
321
345
|
| `sci_form::compute_esp` | Electrostatic potential grid (Mulliken charges) |
|
|
322
346
|
| `sci_form::compute_dos` | Density of states + PDOS (EHT orbital energies) |
|
|
323
347
|
| `sci_form::compute_rmsd` | RMSD after Kabsch alignment |
|
|
348
|
+
| `sci_form::compute_pm3` | PM3/PM3(tm) semi-empirical SCF |
|
|
349
|
+
| `sci_form::compute_xtb` | GFN0-xTB tight-binding with Broyden SCC |
|
|
350
|
+
| `sci_form::compute_uhf` | Unrestricted Hartree-Fock SCF |
|
|
351
|
+
| `sci_form::compute_rohf` | Restricted open-shell Hartree-Fock SCF |
|
|
324
352
|
| `sci_form::compute_uff_energy` | UFF force field energy evaluation |
|
|
353
|
+
| `sci_form::compute_mmff94_energy` | MMFF94 force field energy evaluation |
|
|
354
|
+
| `sci_form::parse_cif` | CIF crystallographic file import |
|
|
355
|
+
| `sci_form::write_cif` | CIF crystallographic file export |
|
|
325
356
|
| `sci_form::create_unit_cell` | Periodic unit cell from lattice parameters |
|
|
326
357
|
| `sci_form::assemble_framework` | MOF-type framework assembly from SBUs |
|
|
327
358
|
|
|
@@ -330,13 +361,23 @@ More detailed coverage notes live in [TESTING.md](TESTING.md), and the broader p
|
|
|
330
361
|
| Module Path | Key API |
|
|
331
362
|
|-------------|---------|
|
|
332
363
|
| `sci_form::eht` | `solve_eht()`, `EhtResult`, `evaluate_orbital_on_grid_chunked()`, `marching_cubes()` |
|
|
364
|
+
| `sci_form::pm3` | `compute_pm3()`, PM3/PM3(tm) SCF, Gaussian core-core corrections |
|
|
365
|
+
| `sci_form::xtb` | `compute_xtb()`, GFN0 SCC with Broyden mixing; `xtb::gfn1`, `xtb::gfn2` |
|
|
366
|
+
| `sci_form::scf::uhf` | `run_uhf()`, `run_rohf()`, open-shell SCF with spin contamination analysis |
|
|
367
|
+
| `sci_form::hf` | `solve_hf3c()`, CISD, `mo_transform::ao_to_mo_transform()` |
|
|
333
368
|
| `sci_form::esp` | `compute_esp_grid_parallel()`, `esp_color_map()`, `esp_grid_to_colors()`, `export_cube()`, `read_cube()` |
|
|
334
369
|
| `sci_form::dos` | `compute_dos()`, `compute_pdos()`, `dos_mse()`, `export_dos_json()` |
|
|
335
370
|
| `sci_form::alignment` | `align_coordinates()`, `align_quaternion()`, `compute_rmsd()` |
|
|
336
371
|
| `sci_form::forcefield` | `build_uff_force_field()`, `Mmff94Builder::build()` |
|
|
337
372
|
| `sci_form::charges::gasteiger` | `gasteiger_marsili_charges()` |
|
|
373
|
+
| `sci_form::charges_eeq` | `compute_eeq_charges()` — improved Gaussian damping |
|
|
338
374
|
| `sci_form::surface::sasa` | `compute_sasa()` |
|
|
339
375
|
| `sci_form::materials` | `UnitCell`, `Sbu`, `Topology`, `assemble_framework()` |
|
|
376
|
+
| `sci_form::materials::cif` | `parse_cif()`, `write_cif()`, `CifStructure`, `CifAtomSite` |
|
|
377
|
+
| `sci_form::nmr` | `predict_nmr_shifts()`, `predict_j_couplings()` (2J–5J) |
|
|
378
|
+
| `sci_form::smirks` | `apply_smirks()`, `apply_smirks_multi()`, `parse_smirks()` |
|
|
379
|
+
| `sci_form::stereo` | `analyze_stereo()` — R/S, E/Z, helical, atropisomeric |
|
|
380
|
+
| `sci_form::population` | `compute_population()`, `compute_bond_orders()`, parallel variants |
|
|
340
381
|
| `sci_form::transport` | `pack_batch_arrow()`, `ChunkedIterator`, `WorkerTask` |
|
|
341
382
|
|
|
342
383
|
---
|
package/package.json
CHANGED
package/sci_form_wasm.d.ts
CHANGED
|
@@ -154,6 +154,18 @@ export function alpha_compute_reaxff_gradient(elements_json: string, coords_flat
|
|
|
154
154
|
*/
|
|
155
155
|
export function alpha_eri_ssss(shell_a_json: string, shell_b_json: string, shell_c_json: string, shell_d_json: string): string;
|
|
156
156
|
|
|
157
|
+
/**
|
|
158
|
+
* Plan which GSM backends are available for a molecule.
|
|
159
|
+
*/
|
|
160
|
+
export function alpha_gsm_backend_plan(smiles: string): string;
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* Compare one or more GSM backends on the same geometry.
|
|
164
|
+
*
|
|
165
|
+
* `methods_json` can be `[]` to evaluate the full backend list.
|
|
166
|
+
*/
|
|
167
|
+
export function alpha_gsm_compare_backends(smiles: string, coords_flat_json: string, methods_json: string): string;
|
|
168
|
+
|
|
157
169
|
/**
|
|
158
170
|
* Grow the reaction string and find the transition state node between
|
|
159
171
|
* reactant and product geometries using UFF energy.
|
|
@@ -166,6 +178,12 @@ export function alpha_eri_ssss(shell_a_json: string, shell_b_json: string, shell
|
|
|
166
178
|
*/
|
|
167
179
|
export function alpha_gsm_find_ts(smiles: string, reactant_coords_json: string, product_coords_json: string, config_json: string): string;
|
|
168
180
|
|
|
181
|
+
/**
|
|
182
|
+
* Grow the reaction string and find the transition state node between
|
|
183
|
+
* reactant and product geometries using the selected backend.
|
|
184
|
+
*/
|
|
185
|
+
export function alpha_gsm_find_ts_with_method(smiles: string, reactant_coords_json: string, product_coords_json: string, config_json: string, method: string): string;
|
|
186
|
+
|
|
169
187
|
/**
|
|
170
188
|
* Interpolate a node along the reaction path at parameter t ∈ [0, 1].
|
|
171
189
|
*
|
|
@@ -240,6 +258,22 @@ export function analyze_graph_features(smiles: string): string;
|
|
|
240
258
|
*/
|
|
241
259
|
export function analyze_stereo(smiles: string, coords_flat: string): string;
|
|
242
260
|
|
|
261
|
+
/**
|
|
262
|
+
* Apply a SMIRKS reaction transform to a molecule.
|
|
263
|
+
*
|
|
264
|
+
* Returns JSON `SmirksResult`:
|
|
265
|
+
* ```json
|
|
266
|
+
* {
|
|
267
|
+
* "products": ["[C](=O)[O-]"],
|
|
268
|
+
* "atom_mapping": {0: 0, 1: 1},
|
|
269
|
+
* "n_transforms": 1,
|
|
270
|
+
* "success": true,
|
|
271
|
+
* "messages": []
|
|
272
|
+
* }
|
|
273
|
+
* ```
|
|
274
|
+
*/
|
|
275
|
+
export function apply_smirks(smirks: string, smiles: string): string;
|
|
276
|
+
|
|
243
277
|
/**
|
|
244
278
|
* Assemble a framework crystal structure.
|
|
245
279
|
*
|
|
@@ -251,6 +285,8 @@ export function analyze_stereo(smiles: string, coords_flat: string): string;
|
|
|
251
285
|
*/
|
|
252
286
|
export function assemble_framework(topology: string, metal: number, geometry: string, lattice_a: number, supercell: number): string;
|
|
253
287
|
|
|
288
|
+
export function benchmark_function_wasm(): string;
|
|
289
|
+
|
|
254
290
|
/**
|
|
255
291
|
* Compute constant-potential charges using the CPM model.
|
|
256
292
|
*
|
|
@@ -351,6 +387,12 @@ export function beta_solve_eht_randnla(elements_json: string, coords_flat_json:
|
|
|
351
387
|
*/
|
|
352
388
|
export function butina_cluster(conformers_json: string, rmsd_cutoff: number): string;
|
|
353
389
|
|
|
390
|
+
export function cache_results_wasm(): string;
|
|
391
|
+
|
|
392
|
+
export function chart_from_json_wasm(json_str: string): string;
|
|
393
|
+
|
|
394
|
+
export function chart_to_json_wasm(): string;
|
|
395
|
+
|
|
354
396
|
/**
|
|
355
397
|
* Compare available methods on the same system/geometry.
|
|
356
398
|
*/
|
|
@@ -494,6 +536,16 @@ export function compute_md_trajectory(smiles: string, coords_json: string, n_ste
|
|
|
494
536
|
*/
|
|
495
537
|
export function compute_md_trajectory_nvt(smiles: string, coords_json: string, n_steps: number, dt_fs: number, seed: number, target_temp_k: number, thermostat_tau_fs: number): string;
|
|
496
538
|
|
|
539
|
+
/**
|
|
540
|
+
* Run velocity-Verlet MD with a configurable energy backend.
|
|
541
|
+
*
|
|
542
|
+
* `backend`: `"uff"`, `"pm3"`, `"xtb"`.
|
|
543
|
+
* `target_temp_k`: if > 0, enables Berendsen thermostat with 100 fs coupling.
|
|
544
|
+
*
|
|
545
|
+
* Returns JSON `MdTrajectory`.
|
|
546
|
+
*/
|
|
547
|
+
export function compute_md_trajectory_with_method(smiles: string, coords_json: string, elements_json: string, n_steps: number, dt_fs: number, seed: number, target_temp_k: number, backend: string): string;
|
|
548
|
+
|
|
497
549
|
/**
|
|
498
550
|
* Predict molecular properties using ML proxy models.
|
|
499
551
|
*/
|
|
@@ -509,6 +561,15 @@ export function compute_mmff94_energy(smiles: string, coords: string): string;
|
|
|
509
561
|
*/
|
|
510
562
|
export function compute_molecular_descriptors(smiles: string): string;
|
|
511
563
|
|
|
564
|
+
/**
|
|
565
|
+
* Build a simplified NEB path with a configurable energy backend.
|
|
566
|
+
*
|
|
567
|
+
* `method`: `"uff"`, `"mmff94"`, `"pm3"`, `"xtb"`, `"gfn1"`, `"gfn2"`, `"hf3c"`.
|
|
568
|
+
*
|
|
569
|
+
* Returns JSON `NebPathResult` with images, energies, TS info.
|
|
570
|
+
*/
|
|
571
|
+
export function compute_neb_path_with_method(smiles: string, start_coords_json: string, end_coords_json: string, n_images: number, n_iter: number, spring_k: number, step_size: number, method: string): string;
|
|
572
|
+
|
|
512
573
|
/**
|
|
513
574
|
* Generate a complete NMR spectrum.
|
|
514
575
|
*
|
|
@@ -721,10 +782,41 @@ export function embed_coords_typed(smiles: string, seed: number): Float64Array;
|
|
|
721
782
|
*/
|
|
722
783
|
export function estimate_workers(n_items: number, max_workers: number): number;
|
|
723
784
|
|
|
785
|
+
export function experimental_result_to_json_wasm(): string;
|
|
786
|
+
|
|
787
|
+
export function experimental_result_to_sdf_wasm(): string;
|
|
788
|
+
|
|
724
789
|
export function initThreadPool(num_threads: number): Promise<any>;
|
|
725
790
|
|
|
726
791
|
export function init_webgpu(): Promise<string>;
|
|
727
792
|
|
|
793
|
+
/**
|
|
794
|
+
* List available NEB backend methods for a given set of elements.
|
|
795
|
+
*
|
|
796
|
+
* Returns JSON array of `{"method": string, "available": bool, "note": string}`.
|
|
797
|
+
*/
|
|
798
|
+
export function list_neb_backends(elements_json: string): string;
|
|
799
|
+
|
|
800
|
+
export function merge_experiment_results_wasm(): string;
|
|
801
|
+
|
|
802
|
+
/**
|
|
803
|
+
* Evaluate the energy (kcal/mol) and gradient of a geometry with a given NEB backend.
|
|
804
|
+
*
|
|
805
|
+
* `method`: `"uff"`, `"mmff94"`, `"pm3"`, `"xtb"`, `"gfn1"`, `"gfn2"`, `"hf3c"`.
|
|
806
|
+
*
|
|
807
|
+
* Returns JSON `{"energy": <f64>, "gradient": [<f64>...], "method": "<str>"}`.
|
|
808
|
+
*/
|
|
809
|
+
export function neb_energy_and_gradient(method: string, smiles: string, coords_json: string): string;
|
|
810
|
+
|
|
811
|
+
/**
|
|
812
|
+
* Evaluate the energy (kcal/mol) of a geometry with a given NEB backend.
|
|
813
|
+
*
|
|
814
|
+
* `method`: `"uff"`, `"mmff94"`, `"pm3"`, `"xtb"`, `"gfn1"`, `"gfn2"`, `"hf3c"`.
|
|
815
|
+
*
|
|
816
|
+
* Returns JSON `{"energy": <f64>, "method": "<str>"}`.
|
|
817
|
+
*/
|
|
818
|
+
export function neb_single_point_energy(method: string, smiles: string, coords_json: string): string;
|
|
819
|
+
|
|
728
820
|
/**
|
|
729
821
|
* Pack a batch of conformer results into Arrow-compatible columnar format.
|
|
730
822
|
*/
|
|
@@ -735,6 +827,24 @@ export function pack_batch_arrow(results_json: string): string;
|
|
|
735
827
|
*/
|
|
736
828
|
export function parse_smiles(smiles: string): string;
|
|
737
829
|
|
|
830
|
+
/**
|
|
831
|
+
* Parse a SMIRKS reaction transform string.
|
|
832
|
+
*
|
|
833
|
+
* Returns JSON `SmirksTransform`:
|
|
834
|
+
* ```json
|
|
835
|
+
* {
|
|
836
|
+
* "reactant_smarts": ["[C:1](=O)[OH:2]"],
|
|
837
|
+
* "product_smarts": ["[C:1](=O)[O-:2]"],
|
|
838
|
+
* "atom_map": {1: 1, 2: 2},
|
|
839
|
+
* "bond_changes": [...],
|
|
840
|
+
* "smirks": "[C:1](=O)[OH:2]>>[C:1](=O)[O-:2]"
|
|
841
|
+
* }
|
|
842
|
+
* ```
|
|
843
|
+
*/
|
|
844
|
+
export function parse_smirks(smirks: string): string;
|
|
845
|
+
|
|
846
|
+
export function pipeline_validator_wasm(): boolean;
|
|
847
|
+
|
|
738
848
|
/**
|
|
739
849
|
* Predict J-coupling constants.
|
|
740
850
|
*/
|
|
@@ -750,6 +860,8 @@ export function predict_nmr_shifts(smiles: string): string;
|
|
|
750
860
|
*/
|
|
751
861
|
export function predict_nmr_shifts_for_nucleus(smiles: string, nucleus: string): string;
|
|
752
862
|
|
|
863
|
+
export function report_generator_wasm(): string;
|
|
864
|
+
|
|
753
865
|
/**
|
|
754
866
|
* Search conformers by sampling, torsion refinement, and UFF ranking.
|
|
755
867
|
*
|
|
@@ -773,6 +885,12 @@ export function system_capabilities(elements: string): string;
|
|
|
773
885
|
*/
|
|
774
886
|
export function system_method_plan(elements: string): string;
|
|
775
887
|
|
|
888
|
+
export function trace_function_calls_wasm(): string;
|
|
889
|
+
|
|
890
|
+
export function validate_chart_schema_wasm(json_str: string): boolean;
|
|
891
|
+
|
|
892
|
+
export function validate_experimental_result_wasm(): boolean;
|
|
893
|
+
|
|
776
894
|
/**
|
|
777
895
|
* Library version.
|
|
778
896
|
*/
|
|
@@ -794,26 +912,30 @@ export function webgpu_status(): string;
|
|
|
794
912
|
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
|
795
913
|
|
|
796
914
|
export interface InitOutput {
|
|
797
|
-
readonly
|
|
798
|
-
readonly
|
|
799
|
-
readonly
|
|
800
|
-
readonly
|
|
801
|
-
readonly
|
|
802
|
-
readonly
|
|
803
|
-
readonly
|
|
804
|
-
readonly
|
|
805
|
-
readonly
|
|
806
|
-
readonly
|
|
807
|
-
readonly
|
|
808
|
-
readonly
|
|
809
|
-
readonly
|
|
810
|
-
readonly
|
|
811
|
-
readonly
|
|
812
|
-
readonly
|
|
813
|
-
readonly
|
|
814
|
-
readonly
|
|
815
|
-
readonly
|
|
816
|
-
readonly
|
|
915
|
+
readonly eht_calculate: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
916
|
+
readonly eht_or_uff_fallback: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
917
|
+
readonly eht_orbital_mesh: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
918
|
+
readonly eht_support: (a: number, b: number, c: number) => void;
|
|
919
|
+
readonly eht_orbital_grid_typed: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
920
|
+
readonly eht_orbital_grid_from_coefficients_typed: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
921
|
+
readonly eht_volumetric_grid_info: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
922
|
+
readonly eht_orbital_grid_accelerated: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => number;
|
|
923
|
+
readonly eht_density_grid_accelerated: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
924
|
+
readonly eht_orbital_grid_accelerated_typed: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => number;
|
|
925
|
+
readonly eht_density_grid_accelerated_typed: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
926
|
+
readonly create_unit_cell: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
927
|
+
readonly assemble_framework: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
928
|
+
readonly compute_frontier_descriptors: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
929
|
+
readonly compute_fukui_descriptors: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
930
|
+
readonly compute_reactivity_ranking: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
931
|
+
readonly compute_uv_vis_spectrum: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
|
|
932
|
+
readonly analyze_graph_features: (a: number, b: number, c: number) => void;
|
|
933
|
+
readonly compute_topology: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
934
|
+
readonly compute_sssr: (a: number, b: number, c: number) => void;
|
|
935
|
+
readonly compute_ecfp: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
936
|
+
readonly compute_tanimoto: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
937
|
+
readonly butina_cluster: (a: number, b: number, c: number, d: number) => void;
|
|
938
|
+
readonly compute_rmsd_matrix: (a: number, b: number, c: number) => void;
|
|
817
939
|
readonly __wbg_livesimulation_free: (a: number, b: number) => void;
|
|
818
940
|
readonly livesimulation_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
819
941
|
readonly livesimulation_step: (a: number, b: number, c: number) => void;
|
|
@@ -828,29 +950,6 @@ export interface InitOutput {
|
|
|
828
950
|
readonly livesimulation_kinetic_energy: (a: number) => number;
|
|
829
951
|
readonly livesimulation_step_count: (a: number) => number;
|
|
830
952
|
readonly livesimulation_set_temperature: (a: number, b: number, c: bigint) => void;
|
|
831
|
-
readonly compute_md_trajectory: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
832
|
-
readonly compute_md_trajectory_nvt: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => void;
|
|
833
|
-
readonly compute_simplified_neb_path: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => void;
|
|
834
|
-
readonly search_conformers_with_uff: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
835
|
-
readonly eht_calculate: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
836
|
-
readonly eht_or_uff_fallback: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
837
|
-
readonly eht_orbital_mesh: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
838
|
-
readonly eht_support: (a: number, b: number, c: number) => void;
|
|
839
|
-
readonly eht_orbital_grid_typed: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
840
|
-
readonly eht_orbital_grid_from_coefficients_typed: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
841
|
-
readonly eht_volumetric_grid_info: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
842
|
-
readonly eht_orbital_grid_accelerated: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => number;
|
|
843
|
-
readonly eht_density_grid_accelerated: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
844
|
-
readonly eht_orbital_grid_accelerated_typed: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => number;
|
|
845
|
-
readonly eht_density_grid_accelerated_typed: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
846
|
-
readonly beta_compute_kpm_dos: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
847
|
-
readonly beta_compute_kpm_mulliken: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
848
|
-
readonly beta_compute_mbh_frequencies: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
849
|
-
readonly beta_solve_eht_randnla: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
850
|
-
readonly beta_psd_distance: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
851
|
-
readonly beta_psd_projection: (a: number, b: number, c: number, d: number) => void;
|
|
852
|
-
readonly beta_compute_cpm_charges: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
853
|
-
readonly beta_modules_info: (a: number) => void;
|
|
854
953
|
readonly alpha_compute_dft: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
855
954
|
readonly alpha_compute_reaxff_gradient: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
856
955
|
readonly alpha_compute_reaxff_energy: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
@@ -863,20 +962,12 @@ export interface InitOutput {
|
|
|
863
962
|
readonly alpha_rotate_dihedral_cga: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => void;
|
|
864
963
|
readonly alpha_refine_torsion_cga: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => void;
|
|
865
964
|
readonly alpha_gsm_interpolate: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
965
|
+
readonly alpha_gsm_backend_plan: (a: number, b: number, c: number) => void;
|
|
966
|
+
readonly alpha_gsm_compare_backends: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
866
967
|
readonly alpha_gsm_find_ts: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
|
|
968
|
+
readonly alpha_gsm_find_ts_with_method: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => void;
|
|
867
969
|
readonly alpha_sdr_embed: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
868
970
|
readonly alpha_modules_info: (a: number) => void;
|
|
869
|
-
readonly init_webgpu: () => number;
|
|
870
|
-
readonly webgpu_status: (a: number) => void;
|
|
871
|
-
readonly compute_esp: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
872
|
-
readonly compute_esp_grid_typed: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
873
|
-
readonly compute_esp_grid_info: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
874
|
-
readonly compute_esp_grid_accelerated: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
875
|
-
readonly compute_esp_grid_accelerated_typed: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
876
|
-
readonly compute_uff_energy: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
877
|
-
readonly compute_uff_energy_with_aromatic_heuristics: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
878
|
-
readonly compute_mmff94_energy: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
879
|
-
readonly compute_empirical_pka: (a: number, b: number, c: number) => void;
|
|
880
971
|
readonly compute_pm3: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
881
972
|
readonly compute_xtb: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
882
973
|
readonly compute_gfn1: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
@@ -885,13 +976,10 @@ export interface InitOutput {
|
|
|
885
976
|
readonly compute_hf3c_custom: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
886
977
|
readonly compute_ani: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
887
978
|
readonly compute_dft: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
888
|
-
readonly
|
|
889
|
-
readonly
|
|
890
|
-
readonly
|
|
891
|
-
readonly
|
|
892
|
-
readonly parse_smiles: (a: number, b: number, c: number) => void;
|
|
893
|
-
readonly compute_orbital_mesh: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => void;
|
|
894
|
-
readonly compute_orbital_mesh_accelerated: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number) => number;
|
|
979
|
+
readonly compute_uff_energy: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
980
|
+
readonly compute_uff_energy_with_aromatic_heuristics: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
981
|
+
readonly compute_mmff94_energy: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
982
|
+
readonly compute_empirical_pka: (a: number, b: number, c: number) => void;
|
|
895
983
|
readonly compute_ml_properties: (a: number, b: number, c: number) => void;
|
|
896
984
|
readonly compute_molecular_descriptors: (a: number, b: number, c: number) => void;
|
|
897
985
|
readonly compute_charges: (a: number, b: number, c: number) => void;
|
|
@@ -901,31 +989,83 @@ export interface InitOutput {
|
|
|
901
989
|
readonly compute_dipole: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
902
990
|
readonly compute_dos: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
|
|
903
991
|
readonly compute_rmsd: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
992
|
+
readonly compute_stda_uvvis: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => void;
|
|
993
|
+
readonly compute_vibrational_analysis: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
994
|
+
readonly compute_vibrational_analysis_uff: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
995
|
+
readonly compute_ir_spectrum: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
996
|
+
readonly predict_nmr_shifts: (a: number, b: number, c: number) => void;
|
|
997
|
+
readonly predict_nmr_shifts_for_nucleus: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
998
|
+
readonly compute_giao_nmr: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number) => void;
|
|
999
|
+
readonly predict_nmr_couplings: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
1000
|
+
readonly compute_nmr_spectrum: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
|
|
1001
|
+
readonly compute_nmr_spectrum_with_coords: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => void;
|
|
1002
|
+
readonly compute_hose_codes: (a: number, b: number, c: number, d: number) => void;
|
|
1003
|
+
readonly pack_batch_arrow: (a: number, b: number, c: number) => void;
|
|
1004
|
+
readonly split_worker_tasks: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
1005
|
+
readonly estimate_workers: (a: number, b: number) => number;
|
|
1006
|
+
readonly version: (a: number) => void;
|
|
1007
|
+
readonly system_capabilities: (a: number, b: number, c: number) => void;
|
|
1008
|
+
readonly system_method_plan: (a: number, b: number, c: number) => void;
|
|
1009
|
+
readonly compare_methods: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
1010
|
+
readonly beta_compute_kpm_dos: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
1011
|
+
readonly beta_compute_kpm_mulliken: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
1012
|
+
readonly beta_compute_mbh_frequencies: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
1013
|
+
readonly beta_solve_eht_randnla: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
1014
|
+
readonly beta_psd_distance: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
1015
|
+
readonly beta_psd_projection: (a: number, b: number, c: number, d: number) => void;
|
|
1016
|
+
readonly beta_compute_cpm_charges: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
1017
|
+
readonly beta_modules_info: (a: number) => void;
|
|
1018
|
+
readonly compute_md_trajectory: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
1019
|
+
readonly compute_md_trajectory_nvt: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => void;
|
|
1020
|
+
readonly compute_simplified_neb_path: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => void;
|
|
1021
|
+
readonly search_conformers_with_uff: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
1022
|
+
readonly embed: (a: number, b: number, c: number, d: number) => void;
|
|
1023
|
+
readonly embed_coords: (a: number, b: number, c: number, d: number) => void;
|
|
1024
|
+
readonly embed_coords_typed: (a: number, b: number, c: number) => number;
|
|
1025
|
+
readonly embed_batch: (a: number, b: number, c: number, d: number) => void;
|
|
1026
|
+
readonly parse_smiles: (a: number, b: number, c: number) => void;
|
|
1027
|
+
readonly compute_esp: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
1028
|
+
readonly compute_esp_grid_typed: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
1029
|
+
readonly compute_esp_grid_info: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
1030
|
+
readonly compute_esp_grid_accelerated: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
1031
|
+
readonly compute_esp_grid_accelerated_typed: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
1032
|
+
readonly chart_to_json_wasm: (a: number) => void;
|
|
1033
|
+
readonly chart_from_json_wasm: (a: number, b: number, c: number) => void;
|
|
1034
|
+
readonly validate_chart_schema_wasm: (a: number, b: number) => number;
|
|
1035
|
+
readonly merge_experiment_results_wasm: (a: number) => void;
|
|
1036
|
+
readonly experimental_result_to_sdf_wasm: (a: number) => void;
|
|
1037
|
+
readonly experimental_result_to_json_wasm: (a: number) => void;
|
|
1038
|
+
readonly benchmark_function_wasm: (a: number) => void;
|
|
1039
|
+
readonly trace_function_calls_wasm: (a: number) => void;
|
|
1040
|
+
readonly report_generator_wasm: (a: number) => void;
|
|
1041
|
+
readonly pipeline_validator_wasm: () => number;
|
|
1042
|
+
readonly cache_results_wasm: (a: number) => void;
|
|
1043
|
+
readonly init_webgpu: () => number;
|
|
1044
|
+
readonly webgpu_status: (a: number) => void;
|
|
1045
|
+
readonly compute_orbital_mesh: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => void;
|
|
1046
|
+
readonly compute_orbital_mesh_accelerated: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number) => number;
|
|
1047
|
+
readonly parse_smirks: (a: number, b: number, c: number) => void;
|
|
1048
|
+
readonly apply_smirks: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
1049
|
+
readonly compute_neb_path_with_method: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number) => void;
|
|
1050
|
+
readonly neb_single_point_energy: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
1051
|
+
readonly neb_energy_and_gradient: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
1052
|
+
readonly compute_md_trajectory_with_method: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number) => void;
|
|
1053
|
+
readonly list_neb_backends: (a: number, b: number, c: number) => void;
|
|
1054
|
+
readonly compute_nonpolar_solvation: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
1055
|
+
readonly compute_gb_solvation: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => void;
|
|
904
1056
|
readonly analyze_stereo: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
905
|
-
readonly create_unit_cell: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
906
|
-
readonly assemble_framework: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
907
|
-
readonly compute_frontier_descriptors: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
908
|
-
readonly compute_fukui_descriptors: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
909
|
-
readonly compute_reactivity_ranking: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
910
|
-
readonly compute_uv_vis_spectrum: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
|
|
911
|
-
readonly analyze_graph_features: (a: number, b: number, c: number) => void;
|
|
912
|
-
readonly compute_topology: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
913
|
-
readonly compute_sssr: (a: number, b: number, c: number) => void;
|
|
914
|
-
readonly compute_ecfp: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
915
|
-
readonly compute_tanimoto: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
916
|
-
readonly butina_cluster: (a: number, b: number, c: number, d: number) => void;
|
|
917
|
-
readonly compute_rmsd_matrix: (a: number, b: number, c: number) => void;
|
|
918
1057
|
readonly __wbg_wbg_rayon_poolbuilder_free: (a: number, b: number) => void;
|
|
919
1058
|
readonly wbg_rayon_poolbuilder_numThreads: (a: number) => number;
|
|
920
1059
|
readonly wbg_rayon_poolbuilder_receiver: (a: number) => number;
|
|
921
1060
|
readonly wbg_rayon_poolbuilder_build: (a: number) => void;
|
|
922
1061
|
readonly initThreadPool: (a: number) => number;
|
|
923
1062
|
readonly wbg_rayon_start_worker: (a: number) => void;
|
|
924
|
-
readonly
|
|
925
|
-
readonly
|
|
926
|
-
readonly
|
|
927
|
-
readonly
|
|
928
|
-
readonly
|
|
1063
|
+
readonly validate_experimental_result_wasm: () => number;
|
|
1064
|
+
readonly __wasm_bindgen_func_elem_2936: (a: number, b: number) => void;
|
|
1065
|
+
readonly __wasm_bindgen_func_elem_718: (a: number, b: number, c: number, d: number) => void;
|
|
1066
|
+
readonly __wasm_bindgen_func_elem_632: (a: number, b: number, c: number, d: number) => void;
|
|
1067
|
+
readonly __wasm_bindgen_func_elem_2942: (a: number, b: number, c: number) => void;
|
|
1068
|
+
readonly __wasm_bindgen_func_elem_2942_2: (a: number, b: number, c: number) => void;
|
|
929
1069
|
readonly memory: WebAssembly.Memory;
|
|
930
1070
|
readonly __wbindgen_export: (a: number, b: number) => number;
|
|
931
1071
|
readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
package/sci_form_wasm.js
CHANGED
|
@@ -437,6 +437,62 @@ export function alpha_eri_ssss(shell_a_json, shell_b_json, shell_c_json, shell_d
|
|
|
437
437
|
}
|
|
438
438
|
}
|
|
439
439
|
|
|
440
|
+
/**
|
|
441
|
+
* Plan which GSM backends are available for a molecule.
|
|
442
|
+
* @param {string} smiles
|
|
443
|
+
* @returns {string}
|
|
444
|
+
*/
|
|
445
|
+
export function alpha_gsm_backend_plan(smiles) {
|
|
446
|
+
let deferred2_0;
|
|
447
|
+
let deferred2_1;
|
|
448
|
+
try {
|
|
449
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
450
|
+
const ptr0 = passStringToWasm0(smiles, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
451
|
+
const len0 = WASM_VECTOR_LEN;
|
|
452
|
+
wasm.alpha_gsm_backend_plan(retptr, ptr0, len0);
|
|
453
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
454
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
455
|
+
deferred2_0 = r0;
|
|
456
|
+
deferred2_1 = r1;
|
|
457
|
+
return getStringFromWasm0(r0, r1);
|
|
458
|
+
} finally {
|
|
459
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
460
|
+
wasm.__wbindgen_export4(deferred2_0, deferred2_1, 1);
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
/**
|
|
465
|
+
* Compare one or more GSM backends on the same geometry.
|
|
466
|
+
*
|
|
467
|
+
* `methods_json` can be `[]` to evaluate the full backend list.
|
|
468
|
+
* @param {string} smiles
|
|
469
|
+
* @param {string} coords_flat_json
|
|
470
|
+
* @param {string} methods_json
|
|
471
|
+
* @returns {string}
|
|
472
|
+
*/
|
|
473
|
+
export function alpha_gsm_compare_backends(smiles, coords_flat_json, methods_json) {
|
|
474
|
+
let deferred4_0;
|
|
475
|
+
let deferred4_1;
|
|
476
|
+
try {
|
|
477
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
478
|
+
const ptr0 = passStringToWasm0(smiles, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
479
|
+
const len0 = WASM_VECTOR_LEN;
|
|
480
|
+
const ptr1 = passStringToWasm0(coords_flat_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
481
|
+
const len1 = WASM_VECTOR_LEN;
|
|
482
|
+
const ptr2 = passStringToWasm0(methods_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
483
|
+
const len2 = WASM_VECTOR_LEN;
|
|
484
|
+
wasm.alpha_gsm_compare_backends(retptr, ptr0, len0, ptr1, len1, ptr2, len2);
|
|
485
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
486
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
487
|
+
deferred4_0 = r0;
|
|
488
|
+
deferred4_1 = r1;
|
|
489
|
+
return getStringFromWasm0(r0, r1);
|
|
490
|
+
} finally {
|
|
491
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
492
|
+
wasm.__wbindgen_export4(deferred4_0, deferred4_1, 1);
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
|
|
440
496
|
/**
|
|
441
497
|
* Grow the reaction string and find the transition state node between
|
|
442
498
|
* reactant and product geometries using UFF energy.
|
|
@@ -477,6 +533,43 @@ export function alpha_gsm_find_ts(smiles, reactant_coords_json, product_coords_j
|
|
|
477
533
|
}
|
|
478
534
|
}
|
|
479
535
|
|
|
536
|
+
/**
|
|
537
|
+
* Grow the reaction string and find the transition state node between
|
|
538
|
+
* reactant and product geometries using the selected backend.
|
|
539
|
+
* @param {string} smiles
|
|
540
|
+
* @param {string} reactant_coords_json
|
|
541
|
+
* @param {string} product_coords_json
|
|
542
|
+
* @param {string} config_json
|
|
543
|
+
* @param {string} method
|
|
544
|
+
* @returns {string}
|
|
545
|
+
*/
|
|
546
|
+
export function alpha_gsm_find_ts_with_method(smiles, reactant_coords_json, product_coords_json, config_json, method) {
|
|
547
|
+
let deferred6_0;
|
|
548
|
+
let deferred6_1;
|
|
549
|
+
try {
|
|
550
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
551
|
+
const ptr0 = passStringToWasm0(smiles, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
552
|
+
const len0 = WASM_VECTOR_LEN;
|
|
553
|
+
const ptr1 = passStringToWasm0(reactant_coords_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
554
|
+
const len1 = WASM_VECTOR_LEN;
|
|
555
|
+
const ptr2 = passStringToWasm0(product_coords_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
556
|
+
const len2 = WASM_VECTOR_LEN;
|
|
557
|
+
const ptr3 = passStringToWasm0(config_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
558
|
+
const len3 = WASM_VECTOR_LEN;
|
|
559
|
+
const ptr4 = passStringToWasm0(method, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
560
|
+
const len4 = WASM_VECTOR_LEN;
|
|
561
|
+
wasm.alpha_gsm_find_ts_with_method(retptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4, len4);
|
|
562
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
563
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
564
|
+
deferred6_0 = r0;
|
|
565
|
+
deferred6_1 = r1;
|
|
566
|
+
return getStringFromWasm0(r0, r1);
|
|
567
|
+
} finally {
|
|
568
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
569
|
+
wasm.__wbindgen_export4(deferred6_0, deferred6_1, 1);
|
|
570
|
+
}
|
|
571
|
+
}
|
|
572
|
+
|
|
480
573
|
/**
|
|
481
574
|
* Interpolate a node along the reaction path at parameter t ∈ [0, 1].
|
|
482
575
|
*
|
|
@@ -736,6 +829,44 @@ export function analyze_stereo(smiles, coords_flat) {
|
|
|
736
829
|
}
|
|
737
830
|
}
|
|
738
831
|
|
|
832
|
+
/**
|
|
833
|
+
* Apply a SMIRKS reaction transform to a molecule.
|
|
834
|
+
*
|
|
835
|
+
* Returns JSON `SmirksResult`:
|
|
836
|
+
* ```json
|
|
837
|
+
* {
|
|
838
|
+
* "products": ["[C](=O)[O-]"],
|
|
839
|
+
* "atom_mapping": {0: 0, 1: 1},
|
|
840
|
+
* "n_transforms": 1,
|
|
841
|
+
* "success": true,
|
|
842
|
+
* "messages": []
|
|
843
|
+
* }
|
|
844
|
+
* ```
|
|
845
|
+
* @param {string} smirks
|
|
846
|
+
* @param {string} smiles
|
|
847
|
+
* @returns {string}
|
|
848
|
+
*/
|
|
849
|
+
export function apply_smirks(smirks, smiles) {
|
|
850
|
+
let deferred3_0;
|
|
851
|
+
let deferred3_1;
|
|
852
|
+
try {
|
|
853
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
854
|
+
const ptr0 = passStringToWasm0(smirks, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
855
|
+
const len0 = WASM_VECTOR_LEN;
|
|
856
|
+
const ptr1 = passStringToWasm0(smiles, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
857
|
+
const len1 = WASM_VECTOR_LEN;
|
|
858
|
+
wasm.apply_smirks(retptr, ptr0, len0, ptr1, len1);
|
|
859
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
860
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
861
|
+
deferred3_0 = r0;
|
|
862
|
+
deferred3_1 = r1;
|
|
863
|
+
return getStringFromWasm0(r0, r1);
|
|
864
|
+
} finally {
|
|
865
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
866
|
+
wasm.__wbindgen_export4(deferred3_0, deferred3_1, 1);
|
|
867
|
+
}
|
|
868
|
+
}
|
|
869
|
+
|
|
739
870
|
/**
|
|
740
871
|
* Assemble a framework crystal structure.
|
|
741
872
|
*
|
|
@@ -772,6 +903,26 @@ export function assemble_framework(topology, metal, geometry, lattice_a, superce
|
|
|
772
903
|
}
|
|
773
904
|
}
|
|
774
905
|
|
|
906
|
+
/**
|
|
907
|
+
* @returns {string}
|
|
908
|
+
*/
|
|
909
|
+
export function benchmark_function_wasm() {
|
|
910
|
+
let deferred1_0;
|
|
911
|
+
let deferred1_1;
|
|
912
|
+
try {
|
|
913
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
914
|
+
wasm.benchmark_function_wasm(retptr);
|
|
915
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
916
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
917
|
+
deferred1_0 = r0;
|
|
918
|
+
deferred1_1 = r1;
|
|
919
|
+
return getStringFromWasm0(r0, r1);
|
|
920
|
+
} finally {
|
|
921
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
922
|
+
wasm.__wbindgen_export4(deferred1_0, deferred1_1, 1);
|
|
923
|
+
}
|
|
924
|
+
}
|
|
925
|
+
|
|
775
926
|
/**
|
|
776
927
|
* Compute constant-potential charges using the CPM model.
|
|
777
928
|
*
|
|
@@ -1071,6 +1222,69 @@ export function butina_cluster(conformers_json, rmsd_cutoff) {
|
|
|
1071
1222
|
}
|
|
1072
1223
|
}
|
|
1073
1224
|
|
|
1225
|
+
/**
|
|
1226
|
+
* @returns {string}
|
|
1227
|
+
*/
|
|
1228
|
+
export function cache_results_wasm() {
|
|
1229
|
+
let deferred1_0;
|
|
1230
|
+
let deferred1_1;
|
|
1231
|
+
try {
|
|
1232
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1233
|
+
wasm.cache_results_wasm(retptr);
|
|
1234
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1235
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1236
|
+
deferred1_0 = r0;
|
|
1237
|
+
deferred1_1 = r1;
|
|
1238
|
+
return getStringFromWasm0(r0, r1);
|
|
1239
|
+
} finally {
|
|
1240
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1241
|
+
wasm.__wbindgen_export4(deferred1_0, deferred1_1, 1);
|
|
1242
|
+
}
|
|
1243
|
+
}
|
|
1244
|
+
|
|
1245
|
+
/**
|
|
1246
|
+
* @param {string} json_str
|
|
1247
|
+
* @returns {string}
|
|
1248
|
+
*/
|
|
1249
|
+
export function chart_from_json_wasm(json_str) {
|
|
1250
|
+
let deferred2_0;
|
|
1251
|
+
let deferred2_1;
|
|
1252
|
+
try {
|
|
1253
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1254
|
+
const ptr0 = passStringToWasm0(json_str, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1255
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1256
|
+
wasm.chart_from_json_wasm(retptr, ptr0, len0);
|
|
1257
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1258
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1259
|
+
deferred2_0 = r0;
|
|
1260
|
+
deferred2_1 = r1;
|
|
1261
|
+
return getStringFromWasm0(r0, r1);
|
|
1262
|
+
} finally {
|
|
1263
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1264
|
+
wasm.__wbindgen_export4(deferred2_0, deferred2_1, 1);
|
|
1265
|
+
}
|
|
1266
|
+
}
|
|
1267
|
+
|
|
1268
|
+
/**
|
|
1269
|
+
* @returns {string}
|
|
1270
|
+
*/
|
|
1271
|
+
export function chart_to_json_wasm() {
|
|
1272
|
+
let deferred1_0;
|
|
1273
|
+
let deferred1_1;
|
|
1274
|
+
try {
|
|
1275
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1276
|
+
wasm.chart_to_json_wasm(retptr);
|
|
1277
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1278
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1279
|
+
deferred1_0 = r0;
|
|
1280
|
+
deferred1_1 = r1;
|
|
1281
|
+
return getStringFromWasm0(r0, r1);
|
|
1282
|
+
} finally {
|
|
1283
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1284
|
+
wasm.__wbindgen_export4(deferred1_0, deferred1_1, 1);
|
|
1285
|
+
}
|
|
1286
|
+
}
|
|
1287
|
+
|
|
1074
1288
|
/**
|
|
1075
1289
|
* Compare available methods on the same system/geometry.
|
|
1076
1290
|
* @param {string} smiles
|
|
@@ -1798,6 +2012,48 @@ export function compute_md_trajectory_nvt(smiles, coords_json, n_steps, dt_fs, s
|
|
|
1798
2012
|
}
|
|
1799
2013
|
}
|
|
1800
2014
|
|
|
2015
|
+
/**
|
|
2016
|
+
* Run velocity-Verlet MD with a configurable energy backend.
|
|
2017
|
+
*
|
|
2018
|
+
* `backend`: `"uff"`, `"pm3"`, `"xtb"`.
|
|
2019
|
+
* `target_temp_k`: if > 0, enables Berendsen thermostat with 100 fs coupling.
|
|
2020
|
+
*
|
|
2021
|
+
* Returns JSON `MdTrajectory`.
|
|
2022
|
+
* @param {string} smiles
|
|
2023
|
+
* @param {string} coords_json
|
|
2024
|
+
* @param {string} elements_json
|
|
2025
|
+
* @param {number} n_steps
|
|
2026
|
+
* @param {number} dt_fs
|
|
2027
|
+
* @param {number} seed
|
|
2028
|
+
* @param {number} target_temp_k
|
|
2029
|
+
* @param {string} backend
|
|
2030
|
+
* @returns {string}
|
|
2031
|
+
*/
|
|
2032
|
+
export function compute_md_trajectory_with_method(smiles, coords_json, elements_json, n_steps, dt_fs, seed, target_temp_k, backend) {
|
|
2033
|
+
let deferred5_0;
|
|
2034
|
+
let deferred5_1;
|
|
2035
|
+
try {
|
|
2036
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2037
|
+
const ptr0 = passStringToWasm0(smiles, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
2038
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2039
|
+
const ptr1 = passStringToWasm0(coords_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
2040
|
+
const len1 = WASM_VECTOR_LEN;
|
|
2041
|
+
const ptr2 = passStringToWasm0(elements_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
2042
|
+
const len2 = WASM_VECTOR_LEN;
|
|
2043
|
+
const ptr3 = passStringToWasm0(backend, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
2044
|
+
const len3 = WASM_VECTOR_LEN;
|
|
2045
|
+
wasm.compute_md_trajectory_with_method(retptr, ptr0, len0, ptr1, len1, ptr2, len2, n_steps, dt_fs, seed, target_temp_k, ptr3, len3);
|
|
2046
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2047
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2048
|
+
deferred5_0 = r0;
|
|
2049
|
+
deferred5_1 = r1;
|
|
2050
|
+
return getStringFromWasm0(r0, r1);
|
|
2051
|
+
} finally {
|
|
2052
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
2053
|
+
wasm.__wbindgen_export4(deferred5_0, deferred5_1, 1);
|
|
2054
|
+
}
|
|
2055
|
+
}
|
|
2056
|
+
|
|
1801
2057
|
/**
|
|
1802
2058
|
* Predict molecular properties using ML proxy models.
|
|
1803
2059
|
* @param {string} smiles
|
|
@@ -1873,6 +2129,47 @@ export function compute_molecular_descriptors(smiles) {
|
|
|
1873
2129
|
}
|
|
1874
2130
|
}
|
|
1875
2131
|
|
|
2132
|
+
/**
|
|
2133
|
+
* Build a simplified NEB path with a configurable energy backend.
|
|
2134
|
+
*
|
|
2135
|
+
* `method`: `"uff"`, `"mmff94"`, `"pm3"`, `"xtb"`, `"gfn1"`, `"gfn2"`, `"hf3c"`.
|
|
2136
|
+
*
|
|
2137
|
+
* Returns JSON `NebPathResult` with images, energies, TS info.
|
|
2138
|
+
* @param {string} smiles
|
|
2139
|
+
* @param {string} start_coords_json
|
|
2140
|
+
* @param {string} end_coords_json
|
|
2141
|
+
* @param {number} n_images
|
|
2142
|
+
* @param {number} n_iter
|
|
2143
|
+
* @param {number} spring_k
|
|
2144
|
+
* @param {number} step_size
|
|
2145
|
+
* @param {string} method
|
|
2146
|
+
* @returns {string}
|
|
2147
|
+
*/
|
|
2148
|
+
export function compute_neb_path_with_method(smiles, start_coords_json, end_coords_json, n_images, n_iter, spring_k, step_size, method) {
|
|
2149
|
+
let deferred5_0;
|
|
2150
|
+
let deferred5_1;
|
|
2151
|
+
try {
|
|
2152
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2153
|
+
const ptr0 = passStringToWasm0(smiles, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
2154
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2155
|
+
const ptr1 = passStringToWasm0(start_coords_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
2156
|
+
const len1 = WASM_VECTOR_LEN;
|
|
2157
|
+
const ptr2 = passStringToWasm0(end_coords_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
2158
|
+
const len2 = WASM_VECTOR_LEN;
|
|
2159
|
+
const ptr3 = passStringToWasm0(method, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
2160
|
+
const len3 = WASM_VECTOR_LEN;
|
|
2161
|
+
wasm.compute_neb_path_with_method(retptr, ptr0, len0, ptr1, len1, ptr2, len2, n_images, n_iter, spring_k, step_size, ptr3, len3);
|
|
2162
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2163
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2164
|
+
deferred5_0 = r0;
|
|
2165
|
+
deferred5_1 = r1;
|
|
2166
|
+
return getStringFromWasm0(r0, r1);
|
|
2167
|
+
} finally {
|
|
2168
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
2169
|
+
wasm.__wbindgen_export4(deferred5_0, deferred5_1, 1);
|
|
2170
|
+
}
|
|
2171
|
+
}
|
|
2172
|
+
|
|
1876
2173
|
/**
|
|
1877
2174
|
* Generate a complete NMR spectrum.
|
|
1878
2175
|
*
|
|
@@ -2921,6 +3218,46 @@ export function estimate_workers(n_items, max_workers) {
|
|
|
2921
3218
|
return ret >>> 0;
|
|
2922
3219
|
}
|
|
2923
3220
|
|
|
3221
|
+
/**
|
|
3222
|
+
* @returns {string}
|
|
3223
|
+
*/
|
|
3224
|
+
export function experimental_result_to_json_wasm() {
|
|
3225
|
+
let deferred1_0;
|
|
3226
|
+
let deferred1_1;
|
|
3227
|
+
try {
|
|
3228
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
3229
|
+
wasm.experimental_result_to_json_wasm(retptr);
|
|
3230
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
3231
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
3232
|
+
deferred1_0 = r0;
|
|
3233
|
+
deferred1_1 = r1;
|
|
3234
|
+
return getStringFromWasm0(r0, r1);
|
|
3235
|
+
} finally {
|
|
3236
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
3237
|
+
wasm.__wbindgen_export4(deferred1_0, deferred1_1, 1);
|
|
3238
|
+
}
|
|
3239
|
+
}
|
|
3240
|
+
|
|
3241
|
+
/**
|
|
3242
|
+
* @returns {string}
|
|
3243
|
+
*/
|
|
3244
|
+
export function experimental_result_to_sdf_wasm() {
|
|
3245
|
+
let deferred1_0;
|
|
3246
|
+
let deferred1_1;
|
|
3247
|
+
try {
|
|
3248
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
3249
|
+
wasm.experimental_result_to_sdf_wasm(retptr);
|
|
3250
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
3251
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
3252
|
+
deferred1_0 = r0;
|
|
3253
|
+
deferred1_1 = r1;
|
|
3254
|
+
return getStringFromWasm0(r0, r1);
|
|
3255
|
+
} finally {
|
|
3256
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
3257
|
+
wasm.__wbindgen_export4(deferred1_0, deferred1_1, 1);
|
|
3258
|
+
}
|
|
3259
|
+
}
|
|
3260
|
+
|
|
2924
3261
|
/**
|
|
2925
3262
|
* @param {number} num_threads
|
|
2926
3263
|
* @returns {Promise<any>}
|
|
@@ -2938,6 +3275,120 @@ export function init_webgpu() {
|
|
|
2938
3275
|
return takeObject(ret);
|
|
2939
3276
|
}
|
|
2940
3277
|
|
|
3278
|
+
/**
|
|
3279
|
+
* List available NEB backend methods for a given set of elements.
|
|
3280
|
+
*
|
|
3281
|
+
* Returns JSON array of `{"method": string, "available": bool, "note": string}`.
|
|
3282
|
+
* @param {string} elements_json
|
|
3283
|
+
* @returns {string}
|
|
3284
|
+
*/
|
|
3285
|
+
export function list_neb_backends(elements_json) {
|
|
3286
|
+
let deferred2_0;
|
|
3287
|
+
let deferred2_1;
|
|
3288
|
+
try {
|
|
3289
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
3290
|
+
const ptr0 = passStringToWasm0(elements_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
3291
|
+
const len0 = WASM_VECTOR_LEN;
|
|
3292
|
+
wasm.list_neb_backends(retptr, ptr0, len0);
|
|
3293
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
3294
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
3295
|
+
deferred2_0 = r0;
|
|
3296
|
+
deferred2_1 = r1;
|
|
3297
|
+
return getStringFromWasm0(r0, r1);
|
|
3298
|
+
} finally {
|
|
3299
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
3300
|
+
wasm.__wbindgen_export4(deferred2_0, deferred2_1, 1);
|
|
3301
|
+
}
|
|
3302
|
+
}
|
|
3303
|
+
|
|
3304
|
+
/**
|
|
3305
|
+
* @returns {string}
|
|
3306
|
+
*/
|
|
3307
|
+
export function merge_experiment_results_wasm() {
|
|
3308
|
+
let deferred1_0;
|
|
3309
|
+
let deferred1_1;
|
|
3310
|
+
try {
|
|
3311
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
3312
|
+
wasm.merge_experiment_results_wasm(retptr);
|
|
3313
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
3314
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
3315
|
+
deferred1_0 = r0;
|
|
3316
|
+
deferred1_1 = r1;
|
|
3317
|
+
return getStringFromWasm0(r0, r1);
|
|
3318
|
+
} finally {
|
|
3319
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
3320
|
+
wasm.__wbindgen_export4(deferred1_0, deferred1_1, 1);
|
|
3321
|
+
}
|
|
3322
|
+
}
|
|
3323
|
+
|
|
3324
|
+
/**
|
|
3325
|
+
* Evaluate the energy (kcal/mol) and gradient of a geometry with a given NEB backend.
|
|
3326
|
+
*
|
|
3327
|
+
* `method`: `"uff"`, `"mmff94"`, `"pm3"`, `"xtb"`, `"gfn1"`, `"gfn2"`, `"hf3c"`.
|
|
3328
|
+
*
|
|
3329
|
+
* Returns JSON `{"energy": <f64>, "gradient": [<f64>...], "method": "<str>"}`.
|
|
3330
|
+
* @param {string} method
|
|
3331
|
+
* @param {string} smiles
|
|
3332
|
+
* @param {string} coords_json
|
|
3333
|
+
* @returns {string}
|
|
3334
|
+
*/
|
|
3335
|
+
export function neb_energy_and_gradient(method, smiles, coords_json) {
|
|
3336
|
+
let deferred4_0;
|
|
3337
|
+
let deferred4_1;
|
|
3338
|
+
try {
|
|
3339
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
3340
|
+
const ptr0 = passStringToWasm0(method, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
3341
|
+
const len0 = WASM_VECTOR_LEN;
|
|
3342
|
+
const ptr1 = passStringToWasm0(smiles, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
3343
|
+
const len1 = WASM_VECTOR_LEN;
|
|
3344
|
+
const ptr2 = passStringToWasm0(coords_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
3345
|
+
const len2 = WASM_VECTOR_LEN;
|
|
3346
|
+
wasm.neb_energy_and_gradient(retptr, ptr0, len0, ptr1, len1, ptr2, len2);
|
|
3347
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
3348
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
3349
|
+
deferred4_0 = r0;
|
|
3350
|
+
deferred4_1 = r1;
|
|
3351
|
+
return getStringFromWasm0(r0, r1);
|
|
3352
|
+
} finally {
|
|
3353
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
3354
|
+
wasm.__wbindgen_export4(deferred4_0, deferred4_1, 1);
|
|
3355
|
+
}
|
|
3356
|
+
}
|
|
3357
|
+
|
|
3358
|
+
/**
|
|
3359
|
+
* Evaluate the energy (kcal/mol) of a geometry with a given NEB backend.
|
|
3360
|
+
*
|
|
3361
|
+
* `method`: `"uff"`, `"mmff94"`, `"pm3"`, `"xtb"`, `"gfn1"`, `"gfn2"`, `"hf3c"`.
|
|
3362
|
+
*
|
|
3363
|
+
* Returns JSON `{"energy": <f64>, "method": "<str>"}`.
|
|
3364
|
+
* @param {string} method
|
|
3365
|
+
* @param {string} smiles
|
|
3366
|
+
* @param {string} coords_json
|
|
3367
|
+
* @returns {string}
|
|
3368
|
+
*/
|
|
3369
|
+
export function neb_single_point_energy(method, smiles, coords_json) {
|
|
3370
|
+
let deferred4_0;
|
|
3371
|
+
let deferred4_1;
|
|
3372
|
+
try {
|
|
3373
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
3374
|
+
const ptr0 = passStringToWasm0(method, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
3375
|
+
const len0 = WASM_VECTOR_LEN;
|
|
3376
|
+
const ptr1 = passStringToWasm0(smiles, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
3377
|
+
const len1 = WASM_VECTOR_LEN;
|
|
3378
|
+
const ptr2 = passStringToWasm0(coords_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
3379
|
+
const len2 = WASM_VECTOR_LEN;
|
|
3380
|
+
wasm.neb_single_point_energy(retptr, ptr0, len0, ptr1, len1, ptr2, len2);
|
|
3381
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
3382
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
3383
|
+
deferred4_0 = r0;
|
|
3384
|
+
deferred4_1 = r1;
|
|
3385
|
+
return getStringFromWasm0(r0, r1);
|
|
3386
|
+
} finally {
|
|
3387
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
3388
|
+
wasm.__wbindgen_export4(deferred4_0, deferred4_1, 1);
|
|
3389
|
+
}
|
|
3390
|
+
}
|
|
3391
|
+
|
|
2941
3392
|
/**
|
|
2942
3393
|
* Pack a batch of conformer results into Arrow-compatible columnar format.
|
|
2943
3394
|
* @param {string} results_json
|
|
@@ -2986,6 +3437,49 @@ export function parse_smiles(smiles) {
|
|
|
2986
3437
|
}
|
|
2987
3438
|
}
|
|
2988
3439
|
|
|
3440
|
+
/**
|
|
3441
|
+
* Parse a SMIRKS reaction transform string.
|
|
3442
|
+
*
|
|
3443
|
+
* Returns JSON `SmirksTransform`:
|
|
3444
|
+
* ```json
|
|
3445
|
+
* {
|
|
3446
|
+
* "reactant_smarts": ["[C:1](=O)[OH:2]"],
|
|
3447
|
+
* "product_smarts": ["[C:1](=O)[O-:2]"],
|
|
3448
|
+
* "atom_map": {1: 1, 2: 2},
|
|
3449
|
+
* "bond_changes": [...],
|
|
3450
|
+
* "smirks": "[C:1](=O)[OH:2]>>[C:1](=O)[O-:2]"
|
|
3451
|
+
* }
|
|
3452
|
+
* ```
|
|
3453
|
+
* @param {string} smirks
|
|
3454
|
+
* @returns {string}
|
|
3455
|
+
*/
|
|
3456
|
+
export function parse_smirks(smirks) {
|
|
3457
|
+
let deferred2_0;
|
|
3458
|
+
let deferred2_1;
|
|
3459
|
+
try {
|
|
3460
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
3461
|
+
const ptr0 = passStringToWasm0(smirks, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
3462
|
+
const len0 = WASM_VECTOR_LEN;
|
|
3463
|
+
wasm.parse_smirks(retptr, ptr0, len0);
|
|
3464
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
3465
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
3466
|
+
deferred2_0 = r0;
|
|
3467
|
+
deferred2_1 = r1;
|
|
3468
|
+
return getStringFromWasm0(r0, r1);
|
|
3469
|
+
} finally {
|
|
3470
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
3471
|
+
wasm.__wbindgen_export4(deferred2_0, deferred2_1, 1);
|
|
3472
|
+
}
|
|
3473
|
+
}
|
|
3474
|
+
|
|
3475
|
+
/**
|
|
3476
|
+
* @returns {boolean}
|
|
3477
|
+
*/
|
|
3478
|
+
export function pipeline_validator_wasm() {
|
|
3479
|
+
const ret = wasm.pipeline_validator_wasm();
|
|
3480
|
+
return ret !== 0;
|
|
3481
|
+
}
|
|
3482
|
+
|
|
2989
3483
|
/**
|
|
2990
3484
|
* Predict J-coupling constants.
|
|
2991
3485
|
* @param {string} smiles
|
|
@@ -3064,6 +3558,26 @@ export function predict_nmr_shifts_for_nucleus(smiles, nucleus) {
|
|
|
3064
3558
|
}
|
|
3065
3559
|
}
|
|
3066
3560
|
|
|
3561
|
+
/**
|
|
3562
|
+
* @returns {string}
|
|
3563
|
+
*/
|
|
3564
|
+
export function report_generator_wasm() {
|
|
3565
|
+
let deferred1_0;
|
|
3566
|
+
let deferred1_1;
|
|
3567
|
+
try {
|
|
3568
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
3569
|
+
wasm.report_generator_wasm(retptr);
|
|
3570
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
3571
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
3572
|
+
deferred1_0 = r0;
|
|
3573
|
+
deferred1_1 = r1;
|
|
3574
|
+
return getStringFromWasm0(r0, r1);
|
|
3575
|
+
} finally {
|
|
3576
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
3577
|
+
wasm.__wbindgen_export4(deferred1_0, deferred1_1, 1);
|
|
3578
|
+
}
|
|
3579
|
+
}
|
|
3580
|
+
|
|
3067
3581
|
/**
|
|
3068
3582
|
* Search conformers by sampling, torsion refinement, and UFF ranking.
|
|
3069
3583
|
*
|
|
@@ -3168,6 +3682,45 @@ export function system_method_plan(elements) {
|
|
|
3168
3682
|
}
|
|
3169
3683
|
}
|
|
3170
3684
|
|
|
3685
|
+
/**
|
|
3686
|
+
* @returns {string}
|
|
3687
|
+
*/
|
|
3688
|
+
export function trace_function_calls_wasm() {
|
|
3689
|
+
let deferred1_0;
|
|
3690
|
+
let deferred1_1;
|
|
3691
|
+
try {
|
|
3692
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
3693
|
+
wasm.trace_function_calls_wasm(retptr);
|
|
3694
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
3695
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
3696
|
+
deferred1_0 = r0;
|
|
3697
|
+
deferred1_1 = r1;
|
|
3698
|
+
return getStringFromWasm0(r0, r1);
|
|
3699
|
+
} finally {
|
|
3700
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
3701
|
+
wasm.__wbindgen_export4(deferred1_0, deferred1_1, 1);
|
|
3702
|
+
}
|
|
3703
|
+
}
|
|
3704
|
+
|
|
3705
|
+
/**
|
|
3706
|
+
* @param {string} json_str
|
|
3707
|
+
* @returns {boolean}
|
|
3708
|
+
*/
|
|
3709
|
+
export function validate_chart_schema_wasm(json_str) {
|
|
3710
|
+
const ptr0 = passStringToWasm0(json_str, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
3711
|
+
const len0 = WASM_VECTOR_LEN;
|
|
3712
|
+
const ret = wasm.validate_chart_schema_wasm(ptr0, len0);
|
|
3713
|
+
return ret !== 0;
|
|
3714
|
+
}
|
|
3715
|
+
|
|
3716
|
+
/**
|
|
3717
|
+
* @returns {boolean}
|
|
3718
|
+
*/
|
|
3719
|
+
export function validate_experimental_result_wasm() {
|
|
3720
|
+
const ret = wasm.validate_experimental_result_wasm();
|
|
3721
|
+
return ret !== 0;
|
|
3722
|
+
}
|
|
3723
|
+
|
|
3171
3724
|
/**
|
|
3172
3725
|
* Library version.
|
|
3173
3726
|
* @returns {string}
|
|
@@ -3579,7 +4132,7 @@ function __wbg_get_imports(memory) {
|
|
|
3579
4132
|
const a = state0.a;
|
|
3580
4133
|
state0.a = 0;
|
|
3581
4134
|
try {
|
|
3582
|
-
return
|
|
4135
|
+
return __wasm_bindgen_func_elem_632(a, state0.b, arg0, arg1);
|
|
3583
4136
|
} finally {
|
|
3584
4137
|
state0.a = a;
|
|
3585
4138
|
}
|
|
@@ -3597,7 +4150,7 @@ function __wbg_get_imports(memory) {
|
|
|
3597
4150
|
const a = state0.a;
|
|
3598
4151
|
state0.a = 0;
|
|
3599
4152
|
try {
|
|
3600
|
-
return
|
|
4153
|
+
return __wasm_bindgen_func_elem_632(a, state0.b, arg0, arg1);
|
|
3601
4154
|
} finally {
|
|
3602
4155
|
state0.a = a;
|
|
3603
4156
|
}
|
|
@@ -3884,17 +4437,17 @@ function __wbg_get_imports(memory) {
|
|
|
3884
4437
|
},
|
|
3885
4438
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
3886
4439
|
// Cast intrinsic for `Closure(Closure { dtor_idx: 125, function: Function { arguments: [Externref], shim_idx: 126, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3887
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
4440
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_2936, __wasm_bindgen_func_elem_2942);
|
|
3888
4441
|
return addHeapObject(ret);
|
|
3889
4442
|
},
|
|
3890
4443
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
3891
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 125, function: Function { arguments: [Externref], shim_idx:
|
|
3892
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
4444
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 125, function: Function { arguments: [Externref], shim_idx: 35, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
4445
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_2936, __wasm_bindgen_func_elem_718);
|
|
3893
4446
|
return addHeapObject(ret);
|
|
3894
4447
|
},
|
|
3895
4448
|
__wbindgen_cast_0000000000000003: function(arg0, arg1) {
|
|
3896
4449
|
// Cast intrinsic for `Closure(Closure { dtor_idx: 125, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 126, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3897
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
4450
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_2936, __wasm_bindgen_func_elem_2942_2);
|
|
3898
4451
|
return addHeapObject(ret);
|
|
3899
4452
|
},
|
|
3900
4453
|
__wbindgen_cast_0000000000000004: function(arg0) {
|
|
@@ -3933,7 +4486,7 @@ function __wbg_get_imports(memory) {
|
|
|
3933
4486
|
__wbindgen_object_drop_ref: function(arg0) {
|
|
3934
4487
|
takeObject(arg0);
|
|
3935
4488
|
},
|
|
3936
|
-
memory: memory || new WebAssembly.Memory({initial:
|
|
4489
|
+
memory: memory || new WebAssembly.Memory({initial:24,maximum:16384,shared:true}),
|
|
3937
4490
|
};
|
|
3938
4491
|
return {
|
|
3939
4492
|
__proto__: null,
|
|
@@ -3941,18 +4494,18 @@ function __wbg_get_imports(memory) {
|
|
|
3941
4494
|
};
|
|
3942
4495
|
}
|
|
3943
4496
|
|
|
3944
|
-
function
|
|
3945
|
-
wasm.
|
|
4497
|
+
function __wasm_bindgen_func_elem_2942(arg0, arg1, arg2) {
|
|
4498
|
+
wasm.__wasm_bindgen_func_elem_2942(arg0, arg1, addHeapObject(arg2));
|
|
3946
4499
|
}
|
|
3947
4500
|
|
|
3948
|
-
function
|
|
3949
|
-
wasm.
|
|
4501
|
+
function __wasm_bindgen_func_elem_2942_2(arg0, arg1, arg2) {
|
|
4502
|
+
wasm.__wasm_bindgen_func_elem_2942_2(arg0, arg1, addHeapObject(arg2));
|
|
3950
4503
|
}
|
|
3951
4504
|
|
|
3952
|
-
function
|
|
4505
|
+
function __wasm_bindgen_func_elem_718(arg0, arg1, arg2) {
|
|
3953
4506
|
try {
|
|
3954
4507
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
3955
|
-
wasm.
|
|
4508
|
+
wasm.__wasm_bindgen_func_elem_718(retptr, arg0, arg1, addHeapObject(arg2));
|
|
3956
4509
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
3957
4510
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
3958
4511
|
if (r1) {
|
|
@@ -3963,8 +4516,8 @@ function __wasm_bindgen_func_elem_823(arg0, arg1, arg2) {
|
|
|
3963
4516
|
}
|
|
3964
4517
|
}
|
|
3965
4518
|
|
|
3966
|
-
function
|
|
3967
|
-
wasm.
|
|
4519
|
+
function __wasm_bindgen_func_elem_632(arg0, arg1, arg2, arg3) {
|
|
4520
|
+
wasm.__wasm_bindgen_func_elem_632(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
3968
4521
|
}
|
|
3969
4522
|
|
|
3970
4523
|
|
package/sci_form_wasm_bg.wasm
CHANGED
|
Binary file
|