sci-form-wasm 0.10.5 → 0.11.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/package.json +1 -1
- package/sci_form_wasm.d.ts +87 -51
- package/sci_form_wasm.js +198 -17
- package/sci_form_wasm_bg.wasm +0 -0
package/package.json
CHANGED
package/sci_form_wasm.d.ts
CHANGED
|
@@ -112,6 +112,21 @@ export function compute_fukui_descriptors(elements: string, coords_flat: string)
|
|
|
112
112
|
*/
|
|
113
113
|
export function compute_gb_solvation(elements: string, coords_flat: string, charges: string, solvent_dielectric: number, solute_dielectric: number, probe_radius: number): string;
|
|
114
114
|
|
|
115
|
+
/**
|
|
116
|
+
* Run a GFN1-xTB tight-binding calculation.
|
|
117
|
+
*/
|
|
118
|
+
export function compute_gfn1(elements_json: string, coords_flat_json: string): string;
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Run a GFN2-xTB tight-binding calculation.
|
|
122
|
+
*/
|
|
123
|
+
export function compute_gfn2(elements_json: string, coords_flat_json: string): string;
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* Run the public SCF-backed GIAO NMR route for a specific nucleus.
|
|
127
|
+
*/
|
|
128
|
+
export function compute_giao_nmr(elements_json: string, coords_flat_json: string, nucleus: string, charge: number, multiplicity: number, max_scf_iter: number, allow_basis_fallback: boolean, use_parallel_eri: boolean): string;
|
|
129
|
+
|
|
115
130
|
/**
|
|
116
131
|
* Run a HF-3c calculation with default configuration.
|
|
117
132
|
*/
|
|
@@ -171,10 +186,15 @@ export function compute_molecular_descriptors(smiles: string): string;
|
|
|
171
186
|
/**
|
|
172
187
|
* Generate a complete NMR spectrum.
|
|
173
188
|
*
|
|
174
|
-
* `nucleus`:
|
|
189
|
+
* `nucleus`: any supported nucleus alias, such as "1H", "13C", "35Cl", "79Br", or "195Pt".
|
|
175
190
|
*/
|
|
176
191
|
export function compute_nmr_spectrum(smiles: string, nucleus: string, gamma: number, ppm_min: number, ppm_max: number, n_points: number): string;
|
|
177
192
|
|
|
193
|
+
/**
|
|
194
|
+
* Generate a complete NMR spectrum using optional 3D coordinates for ³J couplings.
|
|
195
|
+
*/
|
|
196
|
+
export function compute_nmr_spectrum_with_coords(smiles: string, coords_flat_json: string, nucleus: string, gamma: number, ppm_min: number, ppm_max: number, n_points: number): string;
|
|
197
|
+
|
|
178
198
|
/**
|
|
179
199
|
* Non-polar solvation energy from SASA with atomic solvation parameters.
|
|
180
200
|
*
|
|
@@ -283,6 +303,11 @@ export function compute_uv_vis_spectrum(elements: string, coords_flat: string, s
|
|
|
283
303
|
*/
|
|
284
304
|
export function compute_vibrational_analysis(elements_json: string, coords_flat_json: string, method: string, step_size: number): string;
|
|
285
305
|
|
|
306
|
+
/**
|
|
307
|
+
* Perform vibrational analysis using the fast UFF analytical Hessian path.
|
|
308
|
+
*/
|
|
309
|
+
export function compute_vibrational_analysis_uff(smiles: string, elements_json: string, coords_flat_json: string, step_size: number): string;
|
|
310
|
+
|
|
286
311
|
/**
|
|
287
312
|
* Run an xTB tight-binding calculation.
|
|
288
313
|
*/
|
|
@@ -394,6 +419,11 @@ export function predict_nmr_couplings(smiles: string, coords_flat_json: string):
|
|
|
394
419
|
*/
|
|
395
420
|
export function predict_nmr_shifts(smiles: string): string;
|
|
396
421
|
|
|
422
|
+
/**
|
|
423
|
+
* Predict NMR chemical shifts for a specific nucleus.
|
|
424
|
+
*/
|
|
425
|
+
export function predict_nmr_shifts_for_nucleus(smiles: string, nucleus: string): string;
|
|
426
|
+
|
|
397
427
|
/**
|
|
398
428
|
* Search conformers by sampling, torsion refinement, and UFF ranking.
|
|
399
429
|
*
|
|
@@ -438,94 +468,100 @@ export function webgpu_status(): string;
|
|
|
438
468
|
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
|
439
469
|
|
|
440
470
|
export interface InitOutput {
|
|
471
|
+
readonly eht_calculate: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
472
|
+
readonly eht_or_uff_fallback: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
473
|
+
readonly eht_orbital_mesh: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
474
|
+
readonly eht_support: (a: number, b: number, c: number) => void;
|
|
475
|
+
readonly eht_orbital_grid_typed: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
476
|
+
readonly eht_orbital_grid_from_coefficients_typed: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
477
|
+
readonly eht_volumetric_grid_info: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
478
|
+
readonly eht_orbital_grid_accelerated: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => number;
|
|
479
|
+
readonly eht_density_grid_accelerated: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
480
|
+
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;
|
|
481
|
+
readonly eht_density_grid_accelerated_typed: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
441
482
|
readonly compute_md_trajectory: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
442
483
|
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;
|
|
443
484
|
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;
|
|
444
485
|
readonly search_conformers_with_uff: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
445
|
-
readonly
|
|
446
|
-
readonly
|
|
447
|
-
readonly
|
|
448
|
-
readonly
|
|
449
|
-
readonly compute_population: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
450
|
-
readonly compute_bond_orders: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
451
|
-
readonly compute_dipole: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
452
|
-
readonly compute_dos: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
|
|
453
|
-
readonly compute_rmsd: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
486
|
+
readonly compute_uff_energy: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
487
|
+
readonly compute_uff_energy_with_aromatic_heuristics: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
488
|
+
readonly compute_mmff94_energy: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
489
|
+
readonly compute_empirical_pka: (a: number, b: number, c: number) => void;
|
|
454
490
|
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;
|
|
455
491
|
readonly compute_vibrational_analysis: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
492
|
+
readonly compute_vibrational_analysis_uff: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
456
493
|
readonly compute_ir_spectrum: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
457
494
|
readonly predict_nmr_shifts: (a: number, b: number, c: number) => void;
|
|
495
|
+
readonly predict_nmr_shifts_for_nucleus: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
496
|
+
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;
|
|
458
497
|
readonly predict_nmr_couplings: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
459
498
|
readonly compute_nmr_spectrum: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
|
|
499
|
+
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;
|
|
460
500
|
readonly compute_hose_codes: (a: number, b: number, c: number, d: number) => void;
|
|
461
|
-
readonly
|
|
462
|
-
readonly
|
|
501
|
+
readonly compute_sssr: (a: number, b: number, c: number) => void;
|
|
502
|
+
readonly compute_ecfp: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
503
|
+
readonly compute_tanimoto: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
504
|
+
readonly butina_cluster: (a: number, b: number, c: number, d: number) => void;
|
|
505
|
+
readonly compute_rmsd_matrix: (a: number, b: number, c: number) => void;
|
|
463
506
|
readonly compute_pm3: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
464
507
|
readonly compute_xtb: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
508
|
+
readonly compute_gfn1: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
509
|
+
readonly compute_gfn2: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
465
510
|
readonly compute_hf3c: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
466
511
|
readonly compute_hf3c_custom: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
467
512
|
readonly compute_ani: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
468
513
|
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;
|
|
469
514
|
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;
|
|
515
|
+
readonly compute_charges: (a: number, b: number, c: number) => void;
|
|
516
|
+
readonly compute_sasa: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
517
|
+
readonly compute_population: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
518
|
+
readonly compute_bond_orders: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
519
|
+
readonly compute_dipole: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
520
|
+
readonly compute_dos: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
|
|
521
|
+
readonly compute_rmsd: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
522
|
+
readonly compute_nonpolar_solvation: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
523
|
+
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;
|
|
470
524
|
readonly analyze_stereo: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
525
|
+
readonly embed: (a: number, b: number, c: number, d: number) => void;
|
|
526
|
+
readonly embed_coords: (a: number, b: number, c: number, d: number) => void;
|
|
527
|
+
readonly embed_coords_typed: (a: number, b: number, c: number) => number;
|
|
528
|
+
readonly embed_batch: (a: number, b: number, c: number, d: number) => void;
|
|
529
|
+
readonly parse_smiles: (a: number, b: number, c: number) => void;
|
|
530
|
+
readonly create_unit_cell: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
531
|
+
readonly assemble_framework: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
532
|
+
readonly compute_ml_properties: (a: number, b: number, c: number) => void;
|
|
533
|
+
readonly compute_molecular_descriptors: (a: number, b: number, c: number) => void;
|
|
471
534
|
readonly compute_frontier_descriptors: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
472
535
|
readonly compute_fukui_descriptors: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
473
536
|
readonly compute_reactivity_ranking: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
474
537
|
readonly compute_uv_vis_spectrum: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
|
|
475
538
|
readonly analyze_graph_features: (a: number, b: number, c: number) => void;
|
|
476
539
|
readonly compute_topology: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
477
|
-
readonly eht_calculate: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
478
|
-
readonly eht_or_uff_fallback: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
479
|
-
readonly eht_orbital_mesh: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
480
|
-
readonly eht_support: (a: number, b: number, c: number) => void;
|
|
481
|
-
readonly eht_orbital_grid_typed: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
482
|
-
readonly eht_orbital_grid_from_coefficients_typed: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
483
|
-
readonly eht_volumetric_grid_info: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
484
|
-
readonly eht_orbital_grid_accelerated: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => number;
|
|
485
|
-
readonly eht_density_grid_accelerated: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
486
|
-
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;
|
|
487
|
-
readonly eht_density_grid_accelerated_typed: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
488
|
-
readonly compute_esp: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
489
|
-
readonly compute_esp_grid_typed: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
490
|
-
readonly compute_esp_grid_info: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
491
|
-
readonly compute_esp_grid_accelerated: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
492
|
-
readonly compute_esp_grid_accelerated_typed: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
493
|
-
readonly compute_uff_energy: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
494
|
-
readonly compute_uff_energy_with_aromatic_heuristics: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
495
|
-
readonly compute_mmff94_energy: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
496
|
-
readonly compute_empirical_pka: (a: number, b: number, c: number) => void;
|
|
497
|
-
readonly compute_sssr: (a: number, b: number, c: number) => void;
|
|
498
|
-
readonly compute_ecfp: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
499
|
-
readonly compute_tanimoto: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
500
|
-
readonly butina_cluster: (a: number, b: number, c: number, d: number) => void;
|
|
501
|
-
readonly compute_rmsd_matrix: (a: number, b: number, c: number) => void;
|
|
502
540
|
readonly version: (a: number) => void;
|
|
503
541
|
readonly system_capabilities: (a: number, b: number, c: number) => void;
|
|
504
542
|
readonly system_method_plan: (a: number, b: number, c: number) => void;
|
|
505
543
|
readonly compare_methods: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
506
|
-
readonly embed: (a: number, b: number, c: number, d: number) => void;
|
|
507
|
-
readonly embed_coords: (a: number, b: number, c: number, d: number) => void;
|
|
508
|
-
readonly embed_coords_typed: (a: number, b: number, c: number) => number;
|
|
509
|
-
readonly embed_batch: (a: number, b: number, c: number, d: number) => void;
|
|
510
|
-
readonly parse_smiles: (a: number, b: number, c: number) => void;
|
|
511
|
-
readonly compute_ml_properties: (a: number, b: number, c: number) => void;
|
|
512
|
-
readonly compute_molecular_descriptors: (a: number, b: number, c: number) => void;
|
|
513
|
-
readonly compute_nonpolar_solvation: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
514
|
-
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;
|
|
515
544
|
readonly pack_batch_arrow: (a: number, b: number, c: number) => void;
|
|
516
545
|
readonly split_worker_tasks: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
517
546
|
readonly estimate_workers: (a: number, b: number) => number;
|
|
547
|
+
readonly init_webgpu: () => number;
|
|
548
|
+
readonly webgpu_status: (a: number) => void;
|
|
549
|
+
readonly compute_esp: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
550
|
+
readonly compute_esp_grid_typed: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
551
|
+
readonly compute_esp_grid_info: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
552
|
+
readonly compute_esp_grid_accelerated: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
553
|
+
readonly compute_esp_grid_accelerated_typed: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
518
554
|
readonly __wbg_wbg_rayon_poolbuilder_free: (a: number, b: number) => void;
|
|
519
555
|
readonly wbg_rayon_poolbuilder_numThreads: (a: number) => number;
|
|
520
556
|
readonly wbg_rayon_poolbuilder_receiver: (a: number) => number;
|
|
521
557
|
readonly wbg_rayon_poolbuilder_build: (a: number) => void;
|
|
522
558
|
readonly initThreadPool: (a: number) => number;
|
|
523
559
|
readonly wbg_rayon_start_worker: (a: number) => void;
|
|
524
|
-
readonly
|
|
525
|
-
readonly
|
|
526
|
-
readonly
|
|
527
|
-
readonly
|
|
528
|
-
readonly
|
|
560
|
+
readonly __wasm_bindgen_func_elem_2596: (a: number, b: number) => void;
|
|
561
|
+
readonly __wasm_bindgen_func_elem_718: (a: number, b: number, c: number, d: number) => void;
|
|
562
|
+
readonly __wasm_bindgen_func_elem_632: (a: number, b: number, c: number, d: number) => void;
|
|
563
|
+
readonly __wasm_bindgen_func_elem_2602: (a: number, b: number, c: number) => void;
|
|
564
|
+
readonly __wasm_bindgen_func_elem_2602_2: (a: number, b: number, c: number) => void;
|
|
529
565
|
readonly memory: WebAssembly.Memory;
|
|
530
566
|
readonly __wbindgen_export: (a: number, b: number) => number;
|
|
531
567
|
readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
package/sci_form_wasm.js
CHANGED
|
@@ -541,6 +541,95 @@ export function compute_gb_solvation(elements, coords_flat, charges, solvent_die
|
|
|
541
541
|
}
|
|
542
542
|
}
|
|
543
543
|
|
|
544
|
+
/**
|
|
545
|
+
* Run a GFN1-xTB tight-binding calculation.
|
|
546
|
+
* @param {string} elements_json
|
|
547
|
+
* @param {string} coords_flat_json
|
|
548
|
+
* @returns {string}
|
|
549
|
+
*/
|
|
550
|
+
export function compute_gfn1(elements_json, coords_flat_json) {
|
|
551
|
+
let deferred3_0;
|
|
552
|
+
let deferred3_1;
|
|
553
|
+
try {
|
|
554
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
555
|
+
const ptr0 = passStringToWasm0(elements_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
556
|
+
const len0 = WASM_VECTOR_LEN;
|
|
557
|
+
const ptr1 = passStringToWasm0(coords_flat_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
558
|
+
const len1 = WASM_VECTOR_LEN;
|
|
559
|
+
wasm.compute_gfn1(retptr, ptr0, len0, ptr1, len1);
|
|
560
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
561
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
562
|
+
deferred3_0 = r0;
|
|
563
|
+
deferred3_1 = r1;
|
|
564
|
+
return getStringFromWasm0(r0, r1);
|
|
565
|
+
} finally {
|
|
566
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
567
|
+
wasm.__wbindgen_export4(deferred3_0, deferred3_1, 1);
|
|
568
|
+
}
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
/**
|
|
572
|
+
* Run a GFN2-xTB tight-binding calculation.
|
|
573
|
+
* @param {string} elements_json
|
|
574
|
+
* @param {string} coords_flat_json
|
|
575
|
+
* @returns {string}
|
|
576
|
+
*/
|
|
577
|
+
export function compute_gfn2(elements_json, coords_flat_json) {
|
|
578
|
+
let deferred3_0;
|
|
579
|
+
let deferred3_1;
|
|
580
|
+
try {
|
|
581
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
582
|
+
const ptr0 = passStringToWasm0(elements_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
583
|
+
const len0 = WASM_VECTOR_LEN;
|
|
584
|
+
const ptr1 = passStringToWasm0(coords_flat_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
585
|
+
const len1 = WASM_VECTOR_LEN;
|
|
586
|
+
wasm.compute_gfn2(retptr, ptr0, len0, ptr1, len1);
|
|
587
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
588
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
589
|
+
deferred3_0 = r0;
|
|
590
|
+
deferred3_1 = r1;
|
|
591
|
+
return getStringFromWasm0(r0, r1);
|
|
592
|
+
} finally {
|
|
593
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
594
|
+
wasm.__wbindgen_export4(deferred3_0, deferred3_1, 1);
|
|
595
|
+
}
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
/**
|
|
599
|
+
* Run the public SCF-backed GIAO NMR route for a specific nucleus.
|
|
600
|
+
* @param {string} elements_json
|
|
601
|
+
* @param {string} coords_flat_json
|
|
602
|
+
* @param {string} nucleus
|
|
603
|
+
* @param {number} charge
|
|
604
|
+
* @param {number} multiplicity
|
|
605
|
+
* @param {number} max_scf_iter
|
|
606
|
+
* @param {boolean} allow_basis_fallback
|
|
607
|
+
* @param {boolean} use_parallel_eri
|
|
608
|
+
* @returns {string}
|
|
609
|
+
*/
|
|
610
|
+
export function compute_giao_nmr(elements_json, coords_flat_json, nucleus, charge, multiplicity, max_scf_iter, allow_basis_fallback, use_parallel_eri) {
|
|
611
|
+
let deferred4_0;
|
|
612
|
+
let deferred4_1;
|
|
613
|
+
try {
|
|
614
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
615
|
+
const ptr0 = passStringToWasm0(elements_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
616
|
+
const len0 = WASM_VECTOR_LEN;
|
|
617
|
+
const ptr1 = passStringToWasm0(coords_flat_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
618
|
+
const len1 = WASM_VECTOR_LEN;
|
|
619
|
+
const ptr2 = passStringToWasm0(nucleus, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
620
|
+
const len2 = WASM_VECTOR_LEN;
|
|
621
|
+
wasm.compute_giao_nmr(retptr, ptr0, len0, ptr1, len1, ptr2, len2, charge, multiplicity, max_scf_iter, allow_basis_fallback, use_parallel_eri);
|
|
622
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
623
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
624
|
+
deferred4_0 = r0;
|
|
625
|
+
deferred4_1 = r1;
|
|
626
|
+
return getStringFromWasm0(r0, r1);
|
|
627
|
+
} finally {
|
|
628
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
629
|
+
wasm.__wbindgen_export4(deferred4_0, deferred4_1, 1);
|
|
630
|
+
}
|
|
631
|
+
}
|
|
632
|
+
|
|
544
633
|
/**
|
|
545
634
|
* Run a HF-3c calculation with default configuration.
|
|
546
635
|
* @param {string} elements_json
|
|
@@ -802,7 +891,7 @@ export function compute_molecular_descriptors(smiles) {
|
|
|
802
891
|
/**
|
|
803
892
|
* Generate a complete NMR spectrum.
|
|
804
893
|
*
|
|
805
|
-
* `nucleus`:
|
|
894
|
+
* `nucleus`: any supported nucleus alias, such as "1H", "13C", "35Cl", "79Br", or "195Pt".
|
|
806
895
|
* @param {string} smiles
|
|
807
896
|
* @param {string} nucleus
|
|
808
897
|
* @param {number} gamma
|
|
@@ -832,6 +921,40 @@ export function compute_nmr_spectrum(smiles, nucleus, gamma, ppm_min, ppm_max, n
|
|
|
832
921
|
}
|
|
833
922
|
}
|
|
834
923
|
|
|
924
|
+
/**
|
|
925
|
+
* Generate a complete NMR spectrum using optional 3D coordinates for ³J couplings.
|
|
926
|
+
* @param {string} smiles
|
|
927
|
+
* @param {string} coords_flat_json
|
|
928
|
+
* @param {string} nucleus
|
|
929
|
+
* @param {number} gamma
|
|
930
|
+
* @param {number} ppm_min
|
|
931
|
+
* @param {number} ppm_max
|
|
932
|
+
* @param {number} n_points
|
|
933
|
+
* @returns {string}
|
|
934
|
+
*/
|
|
935
|
+
export function compute_nmr_spectrum_with_coords(smiles, coords_flat_json, nucleus, gamma, ppm_min, ppm_max, n_points) {
|
|
936
|
+
let deferred4_0;
|
|
937
|
+
let deferred4_1;
|
|
938
|
+
try {
|
|
939
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
940
|
+
const ptr0 = passStringToWasm0(smiles, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
941
|
+
const len0 = WASM_VECTOR_LEN;
|
|
942
|
+
const ptr1 = passStringToWasm0(coords_flat_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
943
|
+
const len1 = WASM_VECTOR_LEN;
|
|
944
|
+
const ptr2 = passStringToWasm0(nucleus, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
945
|
+
const len2 = WASM_VECTOR_LEN;
|
|
946
|
+
wasm.compute_nmr_spectrum_with_coords(retptr, ptr0, len0, ptr1, len1, ptr2, len2, gamma, ppm_min, ppm_max, n_points);
|
|
947
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
948
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
949
|
+
deferred4_0 = r0;
|
|
950
|
+
deferred4_1 = r1;
|
|
951
|
+
return getStringFromWasm0(r0, r1);
|
|
952
|
+
} finally {
|
|
953
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
954
|
+
wasm.__wbindgen_export4(deferred4_0, deferred4_1, 1);
|
|
955
|
+
}
|
|
956
|
+
}
|
|
957
|
+
|
|
835
958
|
/**
|
|
836
959
|
* Non-polar solvation energy from SASA with atomic solvation parameters.
|
|
837
960
|
*
|
|
@@ -1361,6 +1484,37 @@ export function compute_vibrational_analysis(elements_json, coords_flat_json, me
|
|
|
1361
1484
|
}
|
|
1362
1485
|
}
|
|
1363
1486
|
|
|
1487
|
+
/**
|
|
1488
|
+
* Perform vibrational analysis using the fast UFF analytical Hessian path.
|
|
1489
|
+
* @param {string} smiles
|
|
1490
|
+
* @param {string} elements_json
|
|
1491
|
+
* @param {string} coords_flat_json
|
|
1492
|
+
* @param {number} step_size
|
|
1493
|
+
* @returns {string}
|
|
1494
|
+
*/
|
|
1495
|
+
export function compute_vibrational_analysis_uff(smiles, elements_json, coords_flat_json, step_size) {
|
|
1496
|
+
let deferred4_0;
|
|
1497
|
+
let deferred4_1;
|
|
1498
|
+
try {
|
|
1499
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1500
|
+
const ptr0 = passStringToWasm0(smiles, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1501
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1502
|
+
const ptr1 = passStringToWasm0(elements_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1503
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1504
|
+
const ptr2 = passStringToWasm0(coords_flat_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1505
|
+
const len2 = WASM_VECTOR_LEN;
|
|
1506
|
+
wasm.compute_vibrational_analysis_uff(retptr, ptr0, len0, ptr1, len1, ptr2, len2, step_size);
|
|
1507
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1508
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1509
|
+
deferred4_0 = r0;
|
|
1510
|
+
deferred4_1 = r1;
|
|
1511
|
+
return getStringFromWasm0(r0, r1);
|
|
1512
|
+
} finally {
|
|
1513
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1514
|
+
wasm.__wbindgen_export4(deferred4_0, deferred4_1, 1);
|
|
1515
|
+
}
|
|
1516
|
+
}
|
|
1517
|
+
|
|
1364
1518
|
/**
|
|
1365
1519
|
* Run an xTB tight-binding calculation.
|
|
1366
1520
|
* @param {string} elements_json
|
|
@@ -1898,6 +2052,33 @@ export function predict_nmr_shifts(smiles) {
|
|
|
1898
2052
|
}
|
|
1899
2053
|
}
|
|
1900
2054
|
|
|
2055
|
+
/**
|
|
2056
|
+
* Predict NMR chemical shifts for a specific nucleus.
|
|
2057
|
+
* @param {string} smiles
|
|
2058
|
+
* @param {string} nucleus
|
|
2059
|
+
* @returns {string}
|
|
2060
|
+
*/
|
|
2061
|
+
export function predict_nmr_shifts_for_nucleus(smiles, nucleus) {
|
|
2062
|
+
let deferred3_0;
|
|
2063
|
+
let deferred3_1;
|
|
2064
|
+
try {
|
|
2065
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2066
|
+
const ptr0 = passStringToWasm0(smiles, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
2067
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2068
|
+
const ptr1 = passStringToWasm0(nucleus, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
2069
|
+
const len1 = WASM_VECTOR_LEN;
|
|
2070
|
+
wasm.predict_nmr_shifts_for_nucleus(retptr, ptr0, len0, ptr1, len1);
|
|
2071
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2072
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2073
|
+
deferred3_0 = r0;
|
|
2074
|
+
deferred3_1 = r1;
|
|
2075
|
+
return getStringFromWasm0(r0, r1);
|
|
2076
|
+
} finally {
|
|
2077
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
2078
|
+
wasm.__wbindgen_export4(deferred3_0, deferred3_1, 1);
|
|
2079
|
+
}
|
|
2080
|
+
}
|
|
2081
|
+
|
|
1901
2082
|
/**
|
|
1902
2083
|
* Search conformers by sampling, torsion refinement, and UFF ranking.
|
|
1903
2084
|
*
|
|
@@ -2413,7 +2594,7 @@ function __wbg_get_imports(memory) {
|
|
|
2413
2594
|
const a = state0.a;
|
|
2414
2595
|
state0.a = 0;
|
|
2415
2596
|
try {
|
|
2416
|
-
return
|
|
2597
|
+
return __wasm_bindgen_func_elem_632(a, state0.b, arg0, arg1);
|
|
2417
2598
|
} finally {
|
|
2418
2599
|
state0.a = a;
|
|
2419
2600
|
}
|
|
@@ -2431,7 +2612,7 @@ function __wbg_get_imports(memory) {
|
|
|
2431
2612
|
const a = state0.a;
|
|
2432
2613
|
state0.a = 0;
|
|
2433
2614
|
try {
|
|
2434
|
-
return
|
|
2615
|
+
return __wasm_bindgen_func_elem_632(a, state0.b, arg0, arg1);
|
|
2435
2616
|
} finally {
|
|
2436
2617
|
state0.a = a;
|
|
2437
2618
|
}
|
|
@@ -2717,18 +2898,18 @@ function __wbg_get_imports(memory) {
|
|
|
2717
2898
|
return addHeapObject(ret);
|
|
2718
2899
|
},
|
|
2719
2900
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
2720
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
2721
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
2901
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 9, function: Function { arguments: [Externref], shim_idx: 10, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
2902
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_2596, __wasm_bindgen_func_elem_2602);
|
|
2722
2903
|
return addHeapObject(ret);
|
|
2723
2904
|
},
|
|
2724
2905
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
2725
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
2726
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
2906
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 9, function: Function { arguments: [Externref], shim_idx: 47, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
2907
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_2596, __wasm_bindgen_func_elem_718);
|
|
2727
2908
|
return addHeapObject(ret);
|
|
2728
2909
|
},
|
|
2729
2910
|
__wbindgen_cast_0000000000000003: function(arg0, arg1) {
|
|
2730
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
2731
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
2911
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 9, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 10, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
2912
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_2596, __wasm_bindgen_func_elem_2602_2);
|
|
2732
2913
|
return addHeapObject(ret);
|
|
2733
2914
|
},
|
|
2734
2915
|
__wbindgen_cast_0000000000000004: function(arg0) {
|
|
@@ -2775,18 +2956,18 @@ function __wbg_get_imports(memory) {
|
|
|
2775
2956
|
};
|
|
2776
2957
|
}
|
|
2777
2958
|
|
|
2778
|
-
function
|
|
2779
|
-
wasm.
|
|
2959
|
+
function __wasm_bindgen_func_elem_2602(arg0, arg1, arg2) {
|
|
2960
|
+
wasm.__wasm_bindgen_func_elem_2602(arg0, arg1, addHeapObject(arg2));
|
|
2780
2961
|
}
|
|
2781
2962
|
|
|
2782
|
-
function
|
|
2783
|
-
wasm.
|
|
2963
|
+
function __wasm_bindgen_func_elem_2602_2(arg0, arg1, arg2) {
|
|
2964
|
+
wasm.__wasm_bindgen_func_elem_2602_2(arg0, arg1, addHeapObject(arg2));
|
|
2784
2965
|
}
|
|
2785
2966
|
|
|
2786
|
-
function
|
|
2967
|
+
function __wasm_bindgen_func_elem_718(arg0, arg1, arg2) {
|
|
2787
2968
|
try {
|
|
2788
2969
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2789
|
-
wasm.
|
|
2970
|
+
wasm.__wasm_bindgen_func_elem_718(retptr, arg0, arg1, addHeapObject(arg2));
|
|
2790
2971
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2791
2972
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2792
2973
|
if (r1) {
|
|
@@ -2797,8 +2978,8 @@ function __wasm_bindgen_func_elem_707(arg0, arg1, arg2) {
|
|
|
2797
2978
|
}
|
|
2798
2979
|
}
|
|
2799
2980
|
|
|
2800
|
-
function
|
|
2801
|
-
wasm.
|
|
2981
|
+
function __wasm_bindgen_func_elem_632(arg0, arg1, arg2, arg3) {
|
|
2982
|
+
wasm.__wasm_bindgen_func_elem_632(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
2802
2983
|
}
|
|
2803
2984
|
|
|
2804
2985
|
|
package/sci_form_wasm_bg.wasm
CHANGED
|
Binary file
|