sci-form-wasm 0.10.6 → 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 +63 -39
- package/sci_form_wasm.js +133 -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,7 +186,7 @@ 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
|
|
|
@@ -404,6 +419,11 @@ export function predict_nmr_couplings(smiles: string, coords_flat_json: string):
|
|
|
404
419
|
*/
|
|
405
420
|
export function predict_nmr_shifts(smiles: string): string;
|
|
406
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
|
+
|
|
407
427
|
/**
|
|
408
428
|
* Search conformers by sampling, torsion refinement, and UFF ranking.
|
|
409
429
|
*
|
|
@@ -448,34 +468,36 @@ export function webgpu_status(): string;
|
|
|
448
468
|
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
|
449
469
|
|
|
450
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;
|
|
482
|
+
readonly compute_md_trajectory: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
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;
|
|
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;
|
|
485
|
+
readonly search_conformers_with_uff: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
451
486
|
readonly compute_uff_energy: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
452
487
|
readonly compute_uff_energy_with_aromatic_heuristics: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
453
488
|
readonly compute_mmff94_energy: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
454
489
|
readonly compute_empirical_pka: (a: number, b: number, c: number) => void;
|
|
455
|
-
readonly compute_frontier_descriptors: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
456
|
-
readonly compute_fukui_descriptors: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
457
|
-
readonly compute_reactivity_ranking: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
458
|
-
readonly compute_uv_vis_spectrum: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
|
|
459
|
-
readonly analyze_graph_features: (a: number, b: number, c: number) => void;
|
|
460
|
-
readonly compute_topology: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
461
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;
|
|
462
491
|
readonly compute_vibrational_analysis: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
463
492
|
readonly compute_vibrational_analysis_uff: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
464
493
|
readonly compute_ir_spectrum: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
465
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;
|
|
466
497
|
readonly predict_nmr_couplings: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
467
498
|
readonly compute_nmr_spectrum: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
|
|
468
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;
|
|
469
500
|
readonly compute_hose_codes: (a: number, b: number, c: number, d: number) => void;
|
|
470
|
-
readonly analyze_stereo: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
471
|
-
readonly version: (a: number) => void;
|
|
472
|
-
readonly system_capabilities: (a: number, b: number, c: number) => void;
|
|
473
|
-
readonly system_method_plan: (a: number, b: number, c: number) => void;
|
|
474
|
-
readonly compare_methods: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
475
|
-
readonly compute_md_trajectory: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
476
|
-
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;
|
|
477
|
-
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;
|
|
478
|
-
readonly search_conformers_with_uff: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
479
501
|
readonly compute_sssr: (a: number, b: number, c: number) => void;
|
|
480
502
|
readonly compute_ecfp: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
481
503
|
readonly compute_tanimoto: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
@@ -483,27 +505,11 @@ export interface InitOutput {
|
|
|
483
505
|
readonly compute_rmsd_matrix: (a: number, b: number, c: number) => void;
|
|
484
506
|
readonly compute_pm3: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
485
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;
|
|
486
510
|
readonly compute_hf3c: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
487
511
|
readonly compute_hf3c_custom: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
488
512
|
readonly compute_ani: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
489
|
-
readonly init_webgpu: () => number;
|
|
490
|
-
readonly webgpu_status: (a: number) => void;
|
|
491
|
-
readonly compute_esp: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
492
|
-
readonly compute_esp_grid_typed: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
493
|
-
readonly compute_esp_grid_info: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
494
|
-
readonly compute_esp_grid_accelerated: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
495
|
-
readonly compute_esp_grid_accelerated_typed: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
496
|
-
readonly eht_calculate: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
497
|
-
readonly eht_or_uff_fallback: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
498
|
-
readonly eht_orbital_mesh: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
499
|
-
readonly eht_support: (a: number, b: number, c: number) => void;
|
|
500
|
-
readonly eht_orbital_grid_typed: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
501
|
-
readonly eht_orbital_grid_from_coefficients_typed: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
502
|
-
readonly eht_volumetric_grid_info: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
503
|
-
readonly eht_orbital_grid_accelerated: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => number;
|
|
504
|
-
readonly eht_density_grid_accelerated: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
505
|
-
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;
|
|
506
|
-
readonly eht_density_grid_accelerated_typed: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
507
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;
|
|
508
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;
|
|
509
515
|
readonly compute_charges: (a: number, b: number, c: number) => void;
|
|
@@ -515,6 +521,7 @@ export interface InitOutput {
|
|
|
515
521
|
readonly compute_rmsd: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
516
522
|
readonly compute_nonpolar_solvation: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
517
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;
|
|
524
|
+
readonly analyze_stereo: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
518
525
|
readonly embed: (a: number, b: number, c: number, d: number) => void;
|
|
519
526
|
readonly embed_coords: (a: number, b: number, c: number, d: number) => void;
|
|
520
527
|
readonly embed_coords_typed: (a: number, b: number, c: number) => number;
|
|
@@ -524,20 +531,37 @@ export interface InitOutput {
|
|
|
524
531
|
readonly assemble_framework: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
525
532
|
readonly compute_ml_properties: (a: number, b: number, c: number) => void;
|
|
526
533
|
readonly compute_molecular_descriptors: (a: number, b: number, c: number) => void;
|
|
534
|
+
readonly compute_frontier_descriptors: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
535
|
+
readonly compute_fukui_descriptors: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
536
|
+
readonly compute_reactivity_ranking: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
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;
|
|
538
|
+
readonly analyze_graph_features: (a: number, b: number, c: number) => void;
|
|
539
|
+
readonly compute_topology: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
540
|
+
readonly version: (a: number) => void;
|
|
541
|
+
readonly system_capabilities: (a: number, b: number, c: number) => void;
|
|
542
|
+
readonly system_method_plan: (a: number, b: number, c: number) => void;
|
|
543
|
+
readonly compare_methods: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
527
544
|
readonly pack_batch_arrow: (a: number, b: number, c: number) => void;
|
|
528
545
|
readonly split_worker_tasks: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
529
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;
|
|
530
554
|
readonly __wbg_wbg_rayon_poolbuilder_free: (a: number, b: number) => void;
|
|
531
555
|
readonly wbg_rayon_poolbuilder_numThreads: (a: number) => number;
|
|
532
556
|
readonly wbg_rayon_poolbuilder_receiver: (a: number) => number;
|
|
533
557
|
readonly wbg_rayon_poolbuilder_build: (a: number) => void;
|
|
534
558
|
readonly initThreadPool: (a: number) => number;
|
|
535
559
|
readonly wbg_rayon_start_worker: (a: number) => void;
|
|
536
|
-
readonly
|
|
537
|
-
readonly
|
|
538
|
-
readonly
|
|
539
|
-
readonly
|
|
540
|
-
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;
|
|
541
565
|
readonly memory: WebAssembly.Memory;
|
|
542
566
|
readonly __wbindgen_export: (a: number, b: number) => number;
|
|
543
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
|
|
@@ -1963,6 +2052,33 @@ export function predict_nmr_shifts(smiles) {
|
|
|
1963
2052
|
}
|
|
1964
2053
|
}
|
|
1965
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
|
+
|
|
1966
2082
|
/**
|
|
1967
2083
|
* Search conformers by sampling, torsion refinement, and UFF ranking.
|
|
1968
2084
|
*
|
|
@@ -2478,7 +2594,7 @@ function __wbg_get_imports(memory) {
|
|
|
2478
2594
|
const a = state0.a;
|
|
2479
2595
|
state0.a = 0;
|
|
2480
2596
|
try {
|
|
2481
|
-
return
|
|
2597
|
+
return __wasm_bindgen_func_elem_632(a, state0.b, arg0, arg1);
|
|
2482
2598
|
} finally {
|
|
2483
2599
|
state0.a = a;
|
|
2484
2600
|
}
|
|
@@ -2496,7 +2612,7 @@ function __wbg_get_imports(memory) {
|
|
|
2496
2612
|
const a = state0.a;
|
|
2497
2613
|
state0.a = 0;
|
|
2498
2614
|
try {
|
|
2499
|
-
return
|
|
2615
|
+
return __wasm_bindgen_func_elem_632(a, state0.b, arg0, arg1);
|
|
2500
2616
|
} finally {
|
|
2501
2617
|
state0.a = a;
|
|
2502
2618
|
}
|
|
@@ -2782,18 +2898,18 @@ function __wbg_get_imports(memory) {
|
|
|
2782
2898
|
return addHeapObject(ret);
|
|
2783
2899
|
},
|
|
2784
2900
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
2785
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
2786
|
-
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);
|
|
2787
2903
|
return addHeapObject(ret);
|
|
2788
2904
|
},
|
|
2789
2905
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
2790
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
2791
|
-
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);
|
|
2792
2908
|
return addHeapObject(ret);
|
|
2793
2909
|
},
|
|
2794
2910
|
__wbindgen_cast_0000000000000003: function(arg0, arg1) {
|
|
2795
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
2796
|
-
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);
|
|
2797
2913
|
return addHeapObject(ret);
|
|
2798
2914
|
},
|
|
2799
2915
|
__wbindgen_cast_0000000000000004: function(arg0) {
|
|
@@ -2840,18 +2956,18 @@ function __wbg_get_imports(memory) {
|
|
|
2840
2956
|
};
|
|
2841
2957
|
}
|
|
2842
2958
|
|
|
2843
|
-
function
|
|
2844
|
-
wasm.
|
|
2959
|
+
function __wasm_bindgen_func_elem_2602(arg0, arg1, arg2) {
|
|
2960
|
+
wasm.__wasm_bindgen_func_elem_2602(arg0, arg1, addHeapObject(arg2));
|
|
2845
2961
|
}
|
|
2846
2962
|
|
|
2847
|
-
function
|
|
2848
|
-
wasm.
|
|
2963
|
+
function __wasm_bindgen_func_elem_2602_2(arg0, arg1, arg2) {
|
|
2964
|
+
wasm.__wasm_bindgen_func_elem_2602_2(arg0, arg1, addHeapObject(arg2));
|
|
2849
2965
|
}
|
|
2850
2966
|
|
|
2851
|
-
function
|
|
2967
|
+
function __wasm_bindgen_func_elem_718(arg0, arg1, arg2) {
|
|
2852
2968
|
try {
|
|
2853
2969
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2854
|
-
wasm.
|
|
2970
|
+
wasm.__wasm_bindgen_func_elem_718(retptr, arg0, arg1, addHeapObject(arg2));
|
|
2855
2971
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2856
2972
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2857
2973
|
if (r1) {
|
|
@@ -2862,8 +2978,8 @@ function __wasm_bindgen_func_elem_709(arg0, arg1, arg2) {
|
|
|
2862
2978
|
}
|
|
2863
2979
|
}
|
|
2864
2980
|
|
|
2865
|
-
function
|
|
2866
|
-
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));
|
|
2867
2983
|
}
|
|
2868
2984
|
|
|
2869
2985
|
|
package/sci_form_wasm_bg.wasm
CHANGED
|
Binary file
|