sci-form-wasm 1.0.0 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -20
- package/alpha/index.d.ts +1 -1
- package/cjs/alpha/index.d.ts +1 -1
- package/cjs/sci_form_wasm.d.ts +134 -1
- package/cjs/sci_form_wasm.js +814 -17
- package/cjs/sci_form_wasm_bg.wasm +0 -0
- package/cjs/sci_form_wasm_bg.wasm.d.ts +115 -89
- package/package.json +1 -1
- package/sci_form_wasm.d.ts +290 -131
- package/sci_form_wasm.js +804 -33
- package/sci_form_wasm_bg.wasm +0 -0
package/sci_form_wasm.js
CHANGED
|
@@ -166,6 +166,28 @@ export class LiveSimulation {
|
|
|
166
166
|
}
|
|
167
167
|
if (Symbol.dispose) LiveSimulation.prototype[Symbol.dispose] = LiveSimulation.prototype.free;
|
|
168
168
|
|
|
169
|
+
/**
|
|
170
|
+
* List every NMR-active isotope registered for an element.
|
|
171
|
+
* @param {number} element
|
|
172
|
+
* @returns {string}
|
|
173
|
+
*/
|
|
174
|
+
export function active_nmr_isotopes(element) {
|
|
175
|
+
let deferred1_0;
|
|
176
|
+
let deferred1_1;
|
|
177
|
+
try {
|
|
178
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
179
|
+
wasm.active_nmr_isotopes(retptr, element);
|
|
180
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
181
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
182
|
+
deferred1_0 = r0;
|
|
183
|
+
deferred1_1 = r1;
|
|
184
|
+
return getStringFromWasm0(r0, r1);
|
|
185
|
+
} finally {
|
|
186
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
187
|
+
wasm.__wbindgen_export4(deferred1_0, deferred1_1, 1);
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
|
|
169
191
|
/**
|
|
170
192
|
* List all 230 space groups as `[number, symbol]` pairs.
|
|
171
193
|
* @returns {string}
|
|
@@ -631,7 +653,7 @@ export function alpha_gsm_interpolate(reactant_json, product_json, t) {
|
|
|
631
653
|
*
|
|
632
654
|
* Returns JSON: `{ "alpha_modules": ["dft", "reaxff", …],
|
|
633
655
|
* "stability": "alpha — experimental, …",
|
|
634
|
-
* "version": "
|
|
656
|
+
* "version": "2.0.0" }`
|
|
635
657
|
* @returns {string}
|
|
636
658
|
*/
|
|
637
659
|
export function alpha_modules_info() {
|
|
@@ -2304,6 +2326,36 @@ export function compute_aevs_tm(elements_json, coords_flat_json) {
|
|
|
2304
2326
|
}
|
|
2305
2327
|
}
|
|
2306
2328
|
|
|
2329
|
+
/**
|
|
2330
|
+
* Run the all-nuclide NMR driver from a JSON GiaoNmrConfig.
|
|
2331
|
+
* @param {string} elements
|
|
2332
|
+
* @param {string} coords_flat
|
|
2333
|
+
* @param {string} config_json
|
|
2334
|
+
* @returns {string}
|
|
2335
|
+
*/
|
|
2336
|
+
export function compute_all_nmr(elements, coords_flat, config_json) {
|
|
2337
|
+
let deferred4_0;
|
|
2338
|
+
let deferred4_1;
|
|
2339
|
+
try {
|
|
2340
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2341
|
+
const ptr0 = passStringToWasm0(elements, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
2342
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2343
|
+
const ptr1 = passStringToWasm0(coords_flat, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
2344
|
+
const len1 = WASM_VECTOR_LEN;
|
|
2345
|
+
const ptr2 = passStringToWasm0(config_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
2346
|
+
const len2 = WASM_VECTOR_LEN;
|
|
2347
|
+
wasm.compute_all_nmr(retptr, ptr0, len0, ptr1, len1, ptr2, len2);
|
|
2348
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2349
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2350
|
+
deferred4_0 = r0;
|
|
2351
|
+
deferred4_1 = r1;
|
|
2352
|
+
return getStringFromWasm0(r0, r1);
|
|
2353
|
+
} finally {
|
|
2354
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
2355
|
+
wasm.__wbindgen_export4(deferred4_0, deferred4_1, 1);
|
|
2356
|
+
}
|
|
2357
|
+
}
|
|
2358
|
+
|
|
2307
2359
|
/**
|
|
2308
2360
|
* Compute ANI neural-network potential energy.
|
|
2309
2361
|
* @param {string} elements_json
|
|
@@ -3037,6 +3089,36 @@ export function compute_ensemble_j_couplings(smiles, conformer_coords_json, ener
|
|
|
3037
3089
|
}
|
|
3038
3090
|
}
|
|
3039
3091
|
|
|
3092
|
+
/**
|
|
3093
|
+
* Isotropic EPR hyperfine coupling. `nucleus = 0` evaluates all known nuclei.
|
|
3094
|
+
* @param {string} elements
|
|
3095
|
+
* @param {string} coords_flat
|
|
3096
|
+
* @param {number} nucleus
|
|
3097
|
+
* @param {number} charge
|
|
3098
|
+
* @param {number} multiplicity
|
|
3099
|
+
* @returns {string}
|
|
3100
|
+
*/
|
|
3101
|
+
export function compute_epr_hyperfine(elements, coords_flat, nucleus, charge, multiplicity) {
|
|
3102
|
+
let deferred3_0;
|
|
3103
|
+
let deferred3_1;
|
|
3104
|
+
try {
|
|
3105
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
3106
|
+
const ptr0 = passStringToWasm0(elements, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
3107
|
+
const len0 = WASM_VECTOR_LEN;
|
|
3108
|
+
const ptr1 = passStringToWasm0(coords_flat, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
3109
|
+
const len1 = WASM_VECTOR_LEN;
|
|
3110
|
+
wasm.compute_epr_hyperfine(retptr, ptr0, len0, ptr1, len1, nucleus, charge, multiplicity);
|
|
3111
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
3112
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
3113
|
+
deferred3_0 = r0;
|
|
3114
|
+
deferred3_1 = r1;
|
|
3115
|
+
return getStringFromWasm0(r0, r1);
|
|
3116
|
+
} finally {
|
|
3117
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
3118
|
+
wasm.__wbindgen_export4(deferred3_0, deferred3_1, 1);
|
|
3119
|
+
}
|
|
3120
|
+
}
|
|
3121
|
+
|
|
3040
3122
|
/**
|
|
3041
3123
|
* Compute the full electrostatic potential grid as JSON.
|
|
3042
3124
|
* @param {string} elements
|
|
@@ -3342,6 +3424,36 @@ export function compute_gb_solvation(elements, coords_flat, charges, solvent_die
|
|
|
3342
3424
|
}
|
|
3343
3425
|
}
|
|
3344
3426
|
|
|
3427
|
+
/**
|
|
3428
|
+
* GCMC adsorption isotherm from JSON framework, guest and config payloads.
|
|
3429
|
+
* @param {string} framework_json
|
|
3430
|
+
* @param {string} guest_json
|
|
3431
|
+
* @param {string} config_json
|
|
3432
|
+
* @returns {string}
|
|
3433
|
+
*/
|
|
3434
|
+
export function compute_gcmc_isotherm(framework_json, guest_json, config_json) {
|
|
3435
|
+
let deferred4_0;
|
|
3436
|
+
let deferred4_1;
|
|
3437
|
+
try {
|
|
3438
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
3439
|
+
const ptr0 = passStringToWasm0(framework_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
3440
|
+
const len0 = WASM_VECTOR_LEN;
|
|
3441
|
+
const ptr1 = passStringToWasm0(guest_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
3442
|
+
const len1 = WASM_VECTOR_LEN;
|
|
3443
|
+
const ptr2 = passStringToWasm0(config_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
3444
|
+
const len2 = WASM_VECTOR_LEN;
|
|
3445
|
+
wasm.compute_gcmc_isotherm(retptr, ptr0, len0, ptr1, len1, ptr2, len2);
|
|
3446
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
3447
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
3448
|
+
deferred4_0 = r0;
|
|
3449
|
+
deferred4_1 = r1;
|
|
3450
|
+
return getStringFromWasm0(r0, r1);
|
|
3451
|
+
} finally {
|
|
3452
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
3453
|
+
wasm.__wbindgen_export4(deferred4_0, deferred4_1, 1);
|
|
3454
|
+
}
|
|
3455
|
+
}
|
|
3456
|
+
|
|
3345
3457
|
/**
|
|
3346
3458
|
* Compute Gouy-Chapman-Stern profile (compact + diffuse).
|
|
3347
3459
|
*
|
|
@@ -4165,6 +4277,33 @@ export function compute_molecular_descriptors(smiles) {
|
|
|
4165
4277
|
}
|
|
4166
4278
|
}
|
|
4167
4279
|
|
|
4280
|
+
/**
|
|
4281
|
+
* Conventional closed-shell MP2 correlation energy.
|
|
4282
|
+
* @param {string} elements
|
|
4283
|
+
* @param {string} coords_flat
|
|
4284
|
+
* @returns {string}
|
|
4285
|
+
*/
|
|
4286
|
+
export function compute_mp2_energy(elements, coords_flat) {
|
|
4287
|
+
let deferred3_0;
|
|
4288
|
+
let deferred3_1;
|
|
4289
|
+
try {
|
|
4290
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
4291
|
+
const ptr0 = passStringToWasm0(elements, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
4292
|
+
const len0 = WASM_VECTOR_LEN;
|
|
4293
|
+
const ptr1 = passStringToWasm0(coords_flat, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
4294
|
+
const len1 = WASM_VECTOR_LEN;
|
|
4295
|
+
wasm.compute_mp2_energy(retptr, ptr0, len0, ptr1, len1);
|
|
4296
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
4297
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
4298
|
+
deferred3_0 = r0;
|
|
4299
|
+
deferred3_1 = r1;
|
|
4300
|
+
return getStringFromWasm0(r0, r1);
|
|
4301
|
+
} finally {
|
|
4302
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
4303
|
+
wasm.__wbindgen_export4(deferred3_0, deferred3_1, 1);
|
|
4304
|
+
}
|
|
4305
|
+
}
|
|
4306
|
+
|
|
4168
4307
|
/**
|
|
4169
4308
|
* Build a simplified NEB path with a configurable energy backend.
|
|
4170
4309
|
*
|
|
@@ -4368,6 +4507,37 @@ export function compute_orbital_mesh_accelerated(elements_json, coords_flat_json
|
|
|
4368
4507
|
return takeObject(ret);
|
|
4369
4508
|
}
|
|
4370
4509
|
|
|
4510
|
+
/**
|
|
4511
|
+
* Restricted closed-shell PBE0 single point. Returns JSON `DftResult`.
|
|
4512
|
+
*
|
|
4513
|
+
* Same as `alpha_compute_dft(elements, coords, "pbe0")` with an explicit
|
|
4514
|
+
* iteration cap; open-shell systems return an error.
|
|
4515
|
+
* @param {string} elements
|
|
4516
|
+
* @param {string} coords_flat
|
|
4517
|
+
* @param {number} max_iterations
|
|
4518
|
+
* @returns {string}
|
|
4519
|
+
*/
|
|
4520
|
+
export function compute_pbe0_energy(elements, coords_flat, max_iterations) {
|
|
4521
|
+
let deferred3_0;
|
|
4522
|
+
let deferred3_1;
|
|
4523
|
+
try {
|
|
4524
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
4525
|
+
const ptr0 = passStringToWasm0(elements, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
4526
|
+
const len0 = WASM_VECTOR_LEN;
|
|
4527
|
+
const ptr1 = passStringToWasm0(coords_flat, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
4528
|
+
const len1 = WASM_VECTOR_LEN;
|
|
4529
|
+
wasm.compute_pbe0_energy(retptr, ptr0, len0, ptr1, len1, max_iterations);
|
|
4530
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
4531
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
4532
|
+
deferred3_0 = r0;
|
|
4533
|
+
deferred3_1 = r1;
|
|
4534
|
+
return getStringFromWasm0(r0, r1);
|
|
4535
|
+
} finally {
|
|
4536
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
4537
|
+
wasm.__wbindgen_export4(deferred3_0, deferred3_1, 1);
|
|
4538
|
+
}
|
|
4539
|
+
}
|
|
4540
|
+
|
|
4371
4541
|
/**
|
|
4372
4542
|
* Alias of [`compute_periodic_dos`], the name of the Rust root function.
|
|
4373
4543
|
*
|
|
@@ -4472,6 +4642,73 @@ export function compute_phase_portrait_chart(network_json, n_steps) {
|
|
|
4472
4642
|
}
|
|
4473
4643
|
}
|
|
4474
4644
|
|
|
4645
|
+
/**
|
|
4646
|
+
* Absolute pKa from an explicit acid/conjugate-base pair.
|
|
4647
|
+
* @param {string} acid_smiles
|
|
4648
|
+
* @param {string} base_smiles
|
|
4649
|
+
* @param {string} method_name
|
|
4650
|
+
* @returns {string}
|
|
4651
|
+
*/
|
|
4652
|
+
export function compute_pka(acid_smiles, base_smiles, method_name) {
|
|
4653
|
+
let deferred4_0;
|
|
4654
|
+
let deferred4_1;
|
|
4655
|
+
try {
|
|
4656
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
4657
|
+
const ptr0 = passStringToWasm0(acid_smiles, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
4658
|
+
const len0 = WASM_VECTOR_LEN;
|
|
4659
|
+
const ptr1 = passStringToWasm0(base_smiles, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
4660
|
+
const len1 = WASM_VECTOR_LEN;
|
|
4661
|
+
const ptr2 = passStringToWasm0(method_name, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
4662
|
+
const len2 = WASM_VECTOR_LEN;
|
|
4663
|
+
wasm.compute_pka(retptr, ptr0, len0, ptr1, len1, ptr2, len2);
|
|
4664
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
4665
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
4666
|
+
deferred4_0 = r0;
|
|
4667
|
+
deferred4_1 = r1;
|
|
4668
|
+
return getStringFromWasm0(r0, r1);
|
|
4669
|
+
} finally {
|
|
4670
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
4671
|
+
wasm.__wbindgen_export4(deferred4_0, deferred4_1, 1);
|
|
4672
|
+
}
|
|
4673
|
+
}
|
|
4674
|
+
|
|
4675
|
+
/**
|
|
4676
|
+
* Relative pKa against a reference acid with a known experimental value.
|
|
4677
|
+
* @param {string} acid_smiles
|
|
4678
|
+
* @param {string} base_smiles
|
|
4679
|
+
* @param {string} reference_acid
|
|
4680
|
+
* @param {string} reference_base
|
|
4681
|
+
* @param {number} reference_pka
|
|
4682
|
+
* @param {string} method_name
|
|
4683
|
+
* @returns {string}
|
|
4684
|
+
*/
|
|
4685
|
+
export function compute_pka_relative(acid_smiles, base_smiles, reference_acid, reference_base, reference_pka, method_name) {
|
|
4686
|
+
let deferred6_0;
|
|
4687
|
+
let deferred6_1;
|
|
4688
|
+
try {
|
|
4689
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
4690
|
+
const ptr0 = passStringToWasm0(acid_smiles, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
4691
|
+
const len0 = WASM_VECTOR_LEN;
|
|
4692
|
+
const ptr1 = passStringToWasm0(base_smiles, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
4693
|
+
const len1 = WASM_VECTOR_LEN;
|
|
4694
|
+
const ptr2 = passStringToWasm0(reference_acid, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
4695
|
+
const len2 = WASM_VECTOR_LEN;
|
|
4696
|
+
const ptr3 = passStringToWasm0(reference_base, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
4697
|
+
const len3 = WASM_VECTOR_LEN;
|
|
4698
|
+
const ptr4 = passStringToWasm0(method_name, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
4699
|
+
const len4 = WASM_VECTOR_LEN;
|
|
4700
|
+
wasm.compute_pka_relative(retptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, reference_pka, ptr4, len4);
|
|
4701
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
4702
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
4703
|
+
deferred6_0 = r0;
|
|
4704
|
+
deferred6_1 = r1;
|
|
4705
|
+
return getStringFromWasm0(r0, r1);
|
|
4706
|
+
} finally {
|
|
4707
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
4708
|
+
wasm.__wbindgen_export4(deferred6_0, deferred6_1, 1);
|
|
4709
|
+
}
|
|
4710
|
+
}
|
|
4711
|
+
|
|
4475
4712
|
/**
|
|
4476
4713
|
* Run a PM3 semi-empirical calculation.
|
|
4477
4714
|
* @param {string} elements_json
|
|
@@ -4553,6 +4790,64 @@ export function compute_population(elements, coords_flat) {
|
|
|
4553
4790
|
}
|
|
4554
4791
|
}
|
|
4555
4792
|
|
|
4793
|
+
/**
|
|
4794
|
+
* Mechanical-embedding QM/MM energy from serialized system/config payloads.
|
|
4795
|
+
* @param {string} system_json
|
|
4796
|
+
* @param {string} config_json
|
|
4797
|
+
* @returns {string}
|
|
4798
|
+
*/
|
|
4799
|
+
export function compute_qmmm_energy(system_json, config_json) {
|
|
4800
|
+
let deferred3_0;
|
|
4801
|
+
let deferred3_1;
|
|
4802
|
+
try {
|
|
4803
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
4804
|
+
const ptr0 = passStringToWasm0(system_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
4805
|
+
const len0 = WASM_VECTOR_LEN;
|
|
4806
|
+
const ptr1 = passStringToWasm0(config_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
4807
|
+
const len1 = WASM_VECTOR_LEN;
|
|
4808
|
+
wasm.compute_qmmm_energy(retptr, ptr0, len0, ptr1, len1);
|
|
4809
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
4810
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
4811
|
+
deferred3_0 = r0;
|
|
4812
|
+
deferred3_1 = r1;
|
|
4813
|
+
return getStringFromWasm0(r0, r1);
|
|
4814
|
+
} finally {
|
|
4815
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
4816
|
+
wasm.__wbindgen_export4(deferred3_0, deferred3_1, 1);
|
|
4817
|
+
}
|
|
4818
|
+
}
|
|
4819
|
+
|
|
4820
|
+
/**
|
|
4821
|
+
* Raman activities from the response polarizability and UFF modes.
|
|
4822
|
+
* @param {string} smiles
|
|
4823
|
+
* @param {string} elements
|
|
4824
|
+
* @param {string} coords_flat
|
|
4825
|
+
* @param {number} step_angstrom
|
|
4826
|
+
* @returns {string}
|
|
4827
|
+
*/
|
|
4828
|
+
export function compute_raman_spectrum(smiles, elements, coords_flat, step_angstrom) {
|
|
4829
|
+
let deferred4_0;
|
|
4830
|
+
let deferred4_1;
|
|
4831
|
+
try {
|
|
4832
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
4833
|
+
const ptr0 = passStringToWasm0(smiles, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
4834
|
+
const len0 = WASM_VECTOR_LEN;
|
|
4835
|
+
const ptr1 = passStringToWasm0(elements, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
4836
|
+
const len1 = WASM_VECTOR_LEN;
|
|
4837
|
+
const ptr2 = passStringToWasm0(coords_flat, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
4838
|
+
const len2 = WASM_VECTOR_LEN;
|
|
4839
|
+
wasm.compute_raman_spectrum(retptr, ptr0, len0, ptr1, len1, ptr2, len2, step_angstrom);
|
|
4840
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
4841
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
4842
|
+
deferred4_0 = r0;
|
|
4843
|
+
deferred4_1 = r1;
|
|
4844
|
+
return getStringFromWasm0(r0, r1);
|
|
4845
|
+
} finally {
|
|
4846
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
4847
|
+
wasm.__wbindgen_export4(deferred4_0, deferred4_1, 1);
|
|
4848
|
+
}
|
|
4849
|
+
}
|
|
4850
|
+
|
|
4556
4851
|
/**
|
|
4557
4852
|
* Compute radial distribution function (RDF) descriptors.
|
|
4558
4853
|
*
|
|
@@ -4695,30 +4990,99 @@ export function compute_reactivity_ranking(elements, coords_flat) {
|
|
|
4695
4990
|
}
|
|
4696
4991
|
|
|
4697
4992
|
/**
|
|
4698
|
-
*
|
|
4699
|
-
*
|
|
4700
|
-
*
|
|
4701
|
-
*
|
|
4702
|
-
*
|
|
4703
|
-
* A `NaN` RMSD is never emitted — it is not valid JSON (blocker C-C4).
|
|
4704
|
-
* @param {string} coords
|
|
4705
|
-
* @param {string} reference
|
|
4993
|
+
* Absolute redox potential from an explicit oxidised/reduced pair.
|
|
4994
|
+
* @param {string} oxidized_smiles
|
|
4995
|
+
* @param {string} reduced_smiles
|
|
4996
|
+
* @param {number} n_electrons
|
|
4997
|
+
* @param {string} method_name
|
|
4706
4998
|
* @returns {string}
|
|
4707
4999
|
*/
|
|
4708
|
-
export function
|
|
4709
|
-
let
|
|
4710
|
-
let
|
|
5000
|
+
export function compute_redox_potential(oxidized_smiles, reduced_smiles, n_electrons, method_name) {
|
|
5001
|
+
let deferred4_0;
|
|
5002
|
+
let deferred4_1;
|
|
4711
5003
|
try {
|
|
4712
5004
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
4713
|
-
const ptr0 = passStringToWasm0(
|
|
5005
|
+
const ptr0 = passStringToWasm0(oxidized_smiles, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
4714
5006
|
const len0 = WASM_VECTOR_LEN;
|
|
4715
|
-
const ptr1 = passStringToWasm0(
|
|
5007
|
+
const ptr1 = passStringToWasm0(reduced_smiles, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
4716
5008
|
const len1 = WASM_VECTOR_LEN;
|
|
4717
|
-
|
|
5009
|
+
const ptr2 = passStringToWasm0(method_name, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
5010
|
+
const len2 = WASM_VECTOR_LEN;
|
|
5011
|
+
wasm.compute_redox_potential(retptr, ptr0, len0, ptr1, len1, n_electrons, ptr2, len2);
|
|
4718
5012
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
4719
5013
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
4720
|
-
|
|
4721
|
-
|
|
5014
|
+
deferred4_0 = r0;
|
|
5015
|
+
deferred4_1 = r1;
|
|
5016
|
+
return getStringFromWasm0(r0, r1);
|
|
5017
|
+
} finally {
|
|
5018
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
5019
|
+
wasm.__wbindgen_export4(deferred4_0, deferred4_1, 1);
|
|
5020
|
+
}
|
|
5021
|
+
}
|
|
5022
|
+
|
|
5023
|
+
/**
|
|
5024
|
+
* Relative redox potential against a reference couple with a known value.
|
|
5025
|
+
* @param {string} oxidized_smiles
|
|
5026
|
+
* @param {string} reduced_smiles
|
|
5027
|
+
* @param {number} n_electrons
|
|
5028
|
+
* @param {string} reference_oxidized
|
|
5029
|
+
* @param {string} reference_reduced
|
|
5030
|
+
* @param {number} reference_potential_v
|
|
5031
|
+
* @param {string} method_name
|
|
5032
|
+
* @returns {string}
|
|
5033
|
+
*/
|
|
5034
|
+
export function compute_redox_potential_relative(oxidized_smiles, reduced_smiles, n_electrons, reference_oxidized, reference_reduced, reference_potential_v, method_name) {
|
|
5035
|
+
let deferred6_0;
|
|
5036
|
+
let deferred6_1;
|
|
5037
|
+
try {
|
|
5038
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
5039
|
+
const ptr0 = passStringToWasm0(oxidized_smiles, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
5040
|
+
const len0 = WASM_VECTOR_LEN;
|
|
5041
|
+
const ptr1 = passStringToWasm0(reduced_smiles, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
5042
|
+
const len1 = WASM_VECTOR_LEN;
|
|
5043
|
+
const ptr2 = passStringToWasm0(reference_oxidized, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
5044
|
+
const len2 = WASM_VECTOR_LEN;
|
|
5045
|
+
const ptr3 = passStringToWasm0(reference_reduced, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
5046
|
+
const len3 = WASM_VECTOR_LEN;
|
|
5047
|
+
const ptr4 = passStringToWasm0(method_name, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
5048
|
+
const len4 = WASM_VECTOR_LEN;
|
|
5049
|
+
wasm.compute_redox_potential_relative(retptr, ptr0, len0, ptr1, len1, n_electrons, ptr2, len2, ptr3, len3, reference_potential_v, ptr4, len4);
|
|
5050
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
5051
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
5052
|
+
deferred6_0 = r0;
|
|
5053
|
+
deferred6_1 = r1;
|
|
5054
|
+
return getStringFromWasm0(r0, r1);
|
|
5055
|
+
} finally {
|
|
5056
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
5057
|
+
wasm.__wbindgen_export4(deferred6_0, deferred6_1, 1);
|
|
5058
|
+
}
|
|
5059
|
+
}
|
|
5060
|
+
|
|
5061
|
+
/**
|
|
5062
|
+
* Compute RMSD between two coordinate sets after Kabsch alignment.
|
|
5063
|
+
*
|
|
5064
|
+
* Returns JSON `{"rmsd": 0.123456}` on success, or the canonical
|
|
5065
|
+
* `{"error": "..."}` payload when the two coordinate sets cannot be
|
|
5066
|
+
* compared (different lengths, or a length that is not a multiple of 3).
|
|
5067
|
+
* A `NaN` RMSD is never emitted — it is not valid JSON (blocker C-C4).
|
|
5068
|
+
* @param {string} coords
|
|
5069
|
+
* @param {string} reference
|
|
5070
|
+
* @returns {string}
|
|
5071
|
+
*/
|
|
5072
|
+
export function compute_rmsd(coords, reference) {
|
|
5073
|
+
let deferred3_0;
|
|
5074
|
+
let deferred3_1;
|
|
5075
|
+
try {
|
|
5076
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
5077
|
+
const ptr0 = passStringToWasm0(coords, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
5078
|
+
const len0 = WASM_VECTOR_LEN;
|
|
5079
|
+
const ptr1 = passStringToWasm0(reference, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
5080
|
+
const len1 = WASM_VECTOR_LEN;
|
|
5081
|
+
wasm.compute_rmsd(retptr, ptr0, len0, ptr1, len1);
|
|
5082
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
5083
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
5084
|
+
deferred3_0 = r0;
|
|
5085
|
+
deferred3_1 = r1;
|
|
4722
5086
|
return getStringFromWasm0(r0, r1);
|
|
4723
5087
|
} finally {
|
|
4724
5088
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
@@ -4752,6 +5116,37 @@ export function compute_rmsd_matrix(conformers_json) {
|
|
|
4752
5116
|
}
|
|
4753
5117
|
}
|
|
4754
5118
|
|
|
5119
|
+
/**
|
|
5120
|
+
* ROA screening intensities from Raman activities and the VCD magnetic term.
|
|
5121
|
+
* @param {string} smiles
|
|
5122
|
+
* @param {string} elements
|
|
5123
|
+
* @param {string} coords_flat
|
|
5124
|
+
* @param {number} min_frequency_cm1
|
|
5125
|
+
* @returns {string}
|
|
5126
|
+
*/
|
|
5127
|
+
export function compute_roa_spectrum(smiles, elements, coords_flat, min_frequency_cm1) {
|
|
5128
|
+
let deferred4_0;
|
|
5129
|
+
let deferred4_1;
|
|
5130
|
+
try {
|
|
5131
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
5132
|
+
const ptr0 = passStringToWasm0(smiles, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
5133
|
+
const len0 = WASM_VECTOR_LEN;
|
|
5134
|
+
const ptr1 = passStringToWasm0(elements, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
5135
|
+
const len1 = WASM_VECTOR_LEN;
|
|
5136
|
+
const ptr2 = passStringToWasm0(coords_flat, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
5137
|
+
const len2 = WASM_VECTOR_LEN;
|
|
5138
|
+
wasm.compute_roa_spectrum(retptr, ptr0, len0, ptr1, len1, ptr2, len2, min_frequency_cm1);
|
|
5139
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
5140
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
5141
|
+
deferred4_0 = r0;
|
|
5142
|
+
deferred4_1 = r1;
|
|
5143
|
+
return getStringFromWasm0(r0, r1);
|
|
5144
|
+
} finally {
|
|
5145
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
5146
|
+
wasm.__wbindgen_export4(deferred4_0, deferred4_1, 1);
|
|
5147
|
+
}
|
|
5148
|
+
}
|
|
5149
|
+
|
|
4755
5150
|
/**
|
|
4756
5151
|
* Run a Restricted Open-shell Hartree-Fock (ROHF) calculation.
|
|
4757
5152
|
*
|
|
@@ -5213,6 +5608,37 @@ export function compute_uv_vis_spectrum(elements, coords_flat, sigma, e_min, e_m
|
|
|
5213
5608
|
}
|
|
5214
5609
|
}
|
|
5215
5610
|
|
|
5611
|
+
/**
|
|
5612
|
+
* VCD rotational strengths with the nuclear charge-current screening model.
|
|
5613
|
+
* @param {string} smiles
|
|
5614
|
+
* @param {string} elements
|
|
5615
|
+
* @param {string} coords_flat
|
|
5616
|
+
* @param {number} min_frequency_cm1
|
|
5617
|
+
* @returns {string}
|
|
5618
|
+
*/
|
|
5619
|
+
export function compute_vcd_spectrum(smiles, elements, coords_flat, min_frequency_cm1) {
|
|
5620
|
+
let deferred4_0;
|
|
5621
|
+
let deferred4_1;
|
|
5622
|
+
try {
|
|
5623
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
5624
|
+
const ptr0 = passStringToWasm0(smiles, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
5625
|
+
const len0 = WASM_VECTOR_LEN;
|
|
5626
|
+
const ptr1 = passStringToWasm0(elements, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
5627
|
+
const len1 = WASM_VECTOR_LEN;
|
|
5628
|
+
const ptr2 = passStringToWasm0(coords_flat, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
5629
|
+
const len2 = WASM_VECTOR_LEN;
|
|
5630
|
+
wasm.compute_vcd_spectrum(retptr, ptr0, len0, ptr1, len1, ptr2, len2, min_frequency_cm1);
|
|
5631
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
5632
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
5633
|
+
deferred4_0 = r0;
|
|
5634
|
+
deferred4_1 = r1;
|
|
5635
|
+
return getStringFromWasm0(r0, r1);
|
|
5636
|
+
} finally {
|
|
5637
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
5638
|
+
wasm.__wbindgen_export4(deferred4_0, deferred4_1, 1);
|
|
5639
|
+
}
|
|
5640
|
+
}
|
|
5641
|
+
|
|
5216
5642
|
/**
|
|
5217
5643
|
* Perform vibrational analysis via numerical Hessian.
|
|
5218
5644
|
* @param {string} elements_json
|
|
@@ -5307,6 +5733,38 @@ export function compute_whim(elements_json, coords_flat_json, weighting) {
|
|
|
5307
5733
|
}
|
|
5308
5734
|
}
|
|
5309
5735
|
|
|
5736
|
+
/**
|
|
5737
|
+
* Koopmans core-level XPS binding energies.
|
|
5738
|
+
* @param {string} elements
|
|
5739
|
+
* @param {string} coords_flat
|
|
5740
|
+
* @param {string} elements_filter_json
|
|
5741
|
+
* @param {number} charge
|
|
5742
|
+
* @param {number} multiplicity
|
|
5743
|
+
* @returns {string}
|
|
5744
|
+
*/
|
|
5745
|
+
export function compute_xps_binding_energies(elements, coords_flat, elements_filter_json, charge, multiplicity) {
|
|
5746
|
+
let deferred4_0;
|
|
5747
|
+
let deferred4_1;
|
|
5748
|
+
try {
|
|
5749
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
5750
|
+
const ptr0 = passStringToWasm0(elements, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
5751
|
+
const len0 = WASM_VECTOR_LEN;
|
|
5752
|
+
const ptr1 = passStringToWasm0(coords_flat, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
5753
|
+
const len1 = WASM_VECTOR_LEN;
|
|
5754
|
+
const ptr2 = passStringToWasm0(elements_filter_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
5755
|
+
const len2 = WASM_VECTOR_LEN;
|
|
5756
|
+
wasm.compute_xps_binding_energies(retptr, ptr0, len0, ptr1, len1, ptr2, len2, charge, multiplicity);
|
|
5757
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
5758
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
5759
|
+
deferred4_0 = r0;
|
|
5760
|
+
deferred4_1 = r1;
|
|
5761
|
+
return getStringFromWasm0(r0, r1);
|
|
5762
|
+
} finally {
|
|
5763
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
5764
|
+
wasm.__wbindgen_export4(deferred4_0, deferred4_1, 1);
|
|
5765
|
+
}
|
|
5766
|
+
}
|
|
5767
|
+
|
|
5310
5768
|
/**
|
|
5311
5769
|
* Run an xTB tight-binding calculation.
|
|
5312
5770
|
* @param {string} elements_json
|
|
@@ -5361,6 +5819,34 @@ export function compute_xtb_gradient(elements_json, coords_flat_json) {
|
|
|
5361
5819
|
}
|
|
5362
5820
|
}
|
|
5363
5821
|
|
|
5822
|
+
/**
|
|
5823
|
+
* Fit a split-conformal calibration radius.
|
|
5824
|
+
* @param {string} predictions_json
|
|
5825
|
+
* @param {string} targets_json
|
|
5826
|
+
* @param {number} coverage
|
|
5827
|
+
* @returns {string}
|
|
5828
|
+
*/
|
|
5829
|
+
export function conformal_calibrate(predictions_json, targets_json, coverage) {
|
|
5830
|
+
let deferred3_0;
|
|
5831
|
+
let deferred3_1;
|
|
5832
|
+
try {
|
|
5833
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
5834
|
+
const ptr0 = passStringToWasm0(predictions_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
5835
|
+
const len0 = WASM_VECTOR_LEN;
|
|
5836
|
+
const ptr1 = passStringToWasm0(targets_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
5837
|
+
const len1 = WASM_VECTOR_LEN;
|
|
5838
|
+
wasm.conformal_calibrate(retptr, ptr0, len0, ptr1, len1, coverage);
|
|
5839
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
5840
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
5841
|
+
deferred3_0 = r0;
|
|
5842
|
+
deferred3_1 = r1;
|
|
5843
|
+
return getStringFromWasm0(r0, r1);
|
|
5844
|
+
} finally {
|
|
5845
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
5846
|
+
wasm.__wbindgen_export4(deferred3_0, deferred3_1, 1);
|
|
5847
|
+
}
|
|
5848
|
+
}
|
|
5849
|
+
|
|
5364
5850
|
/**
|
|
5365
5851
|
* Create a unit cell and return parameters + volume as JSON.
|
|
5366
5852
|
* @param {number} a
|
|
@@ -5421,6 +5907,30 @@ export function detect_hapticity(elements_json, coords_flat_json, bonds_json) {
|
|
|
5421
5907
|
}
|
|
5422
5908
|
}
|
|
5423
5909
|
|
|
5910
|
+
/**
|
|
5911
|
+
* Rule-based reaction-network discovery from a JSON TemplateNetworkConfig.
|
|
5912
|
+
* @param {string} config_json
|
|
5913
|
+
* @returns {string}
|
|
5914
|
+
*/
|
|
5915
|
+
export function discover_reaction_network(config_json) {
|
|
5916
|
+
let deferred2_0;
|
|
5917
|
+
let deferred2_1;
|
|
5918
|
+
try {
|
|
5919
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
5920
|
+
const ptr0 = passStringToWasm0(config_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
5921
|
+
const len0 = WASM_VECTOR_LEN;
|
|
5922
|
+
wasm.discover_reaction_network(retptr, ptr0, len0);
|
|
5923
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
5924
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
5925
|
+
deferred2_0 = r0;
|
|
5926
|
+
deferred2_1 = r1;
|
|
5927
|
+
return getStringFromWasm0(r0, r1);
|
|
5928
|
+
} finally {
|
|
5929
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
5930
|
+
wasm.__wbindgen_export4(deferred2_0, deferred2_1, 1);
|
|
5931
|
+
}
|
|
5932
|
+
}
|
|
5933
|
+
|
|
5424
5934
|
/**
|
|
5425
5935
|
* Run an EHT calculation on a molecule.
|
|
5426
5936
|
*
|
|
@@ -5928,6 +6438,36 @@ export function embed_seed64(smiles, seed) {
|
|
|
5928
6438
|
}
|
|
5929
6439
|
}
|
|
5930
6440
|
|
|
6441
|
+
/**
|
|
6442
|
+
* Estimate an alchemical free-energy difference from JSON samples.
|
|
6443
|
+
* @param {string} samples_json
|
|
6444
|
+
* @param {string} estimator
|
|
6445
|
+
* @param {string} config_json
|
|
6446
|
+
* @returns {string}
|
|
6447
|
+
*/
|
|
6448
|
+
export function estimate_free_energy(samples_json, estimator, config_json) {
|
|
6449
|
+
let deferred4_0;
|
|
6450
|
+
let deferred4_1;
|
|
6451
|
+
try {
|
|
6452
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
6453
|
+
const ptr0 = passStringToWasm0(samples_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
6454
|
+
const len0 = WASM_VECTOR_LEN;
|
|
6455
|
+
const ptr1 = passStringToWasm0(estimator, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
6456
|
+
const len1 = WASM_VECTOR_LEN;
|
|
6457
|
+
const ptr2 = passStringToWasm0(config_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
6458
|
+
const len2 = WASM_VECTOR_LEN;
|
|
6459
|
+
wasm.estimate_free_energy(retptr, ptr0, len0, ptr1, len1, ptr2, len2);
|
|
6460
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
6461
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
6462
|
+
deferred4_0 = r0;
|
|
6463
|
+
deferred4_1 = r1;
|
|
6464
|
+
return getStringFromWasm0(r0, r1);
|
|
6465
|
+
} finally {
|
|
6466
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
6467
|
+
wasm.__wbindgen_export4(deferred4_0, deferred4_1, 1);
|
|
6468
|
+
}
|
|
6469
|
+
}
|
|
6470
|
+
|
|
5931
6471
|
/**
|
|
5932
6472
|
* Estimate optimal number of Web Workers for a batch size.
|
|
5933
6473
|
* @param {number} n_items
|
|
@@ -6625,6 +7165,207 @@ export function predict_nmr_shifts_for_nucleus(smiles, nucleus) {
|
|
|
6625
7165
|
}
|
|
6626
7166
|
}
|
|
6627
7167
|
|
|
7168
|
+
/**
|
|
7169
|
+
* Refine a barrier with GSM from flat coordinate arrays.
|
|
7170
|
+
* @param {string} smiles
|
|
7171
|
+
* @param {string} reactant_coords
|
|
7172
|
+
* @param {string} product_coords
|
|
7173
|
+
* @param {string} method
|
|
7174
|
+
* @param {string} config_json
|
|
7175
|
+
* @returns {string}
|
|
7176
|
+
*/
|
|
7177
|
+
export function refine_barrier_with_gsm(smiles, reactant_coords, product_coords, method, config_json) {
|
|
7178
|
+
let deferred6_0;
|
|
7179
|
+
let deferred6_1;
|
|
7180
|
+
try {
|
|
7181
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
7182
|
+
const ptr0 = passStringToWasm0(smiles, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
7183
|
+
const len0 = WASM_VECTOR_LEN;
|
|
7184
|
+
const ptr1 = passStringToWasm0(reactant_coords, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
7185
|
+
const len1 = WASM_VECTOR_LEN;
|
|
7186
|
+
const ptr2 = passStringToWasm0(product_coords, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
7187
|
+
const len2 = WASM_VECTOR_LEN;
|
|
7188
|
+
const ptr3 = passStringToWasm0(method, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
7189
|
+
const len3 = WASM_VECTOR_LEN;
|
|
7190
|
+
const ptr4 = passStringToWasm0(config_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
7191
|
+
const len4 = WASM_VECTOR_LEN;
|
|
7192
|
+
wasm.refine_barrier_with_gsm(retptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4, len4);
|
|
7193
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
7194
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
7195
|
+
deferred6_0 = r0;
|
|
7196
|
+
deferred6_1 = r1;
|
|
7197
|
+
return getStringFromWasm0(r0, r1);
|
|
7198
|
+
} finally {
|
|
7199
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
7200
|
+
wasm.__wbindgen_export4(deferred6_0, deferred6_1, 1);
|
|
7201
|
+
}
|
|
7202
|
+
}
|
|
7203
|
+
|
|
7204
|
+
/**
|
|
7205
|
+
* Reweight a biased 1D CV trace from JSON.
|
|
7206
|
+
* @param {string} trace_json
|
|
7207
|
+
* @param {string} config_json
|
|
7208
|
+
* @returns {string}
|
|
7209
|
+
*/
|
|
7210
|
+
export function reweight_free_energy(trace_json, config_json) {
|
|
7211
|
+
let deferred3_0;
|
|
7212
|
+
let deferred3_1;
|
|
7213
|
+
try {
|
|
7214
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
7215
|
+
const ptr0 = passStringToWasm0(trace_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
7216
|
+
const len0 = WASM_VECTOR_LEN;
|
|
7217
|
+
const ptr1 = passStringToWasm0(config_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
7218
|
+
const len1 = WASM_VECTOR_LEN;
|
|
7219
|
+
wasm.reweight_free_energy(retptr, ptr0, len0, ptr1, len1);
|
|
7220
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
7221
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
7222
|
+
deferred3_0 = r0;
|
|
7223
|
+
deferred3_1 = r1;
|
|
7224
|
+
return getStringFromWasm0(r0, r1);
|
|
7225
|
+
} finally {
|
|
7226
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
7227
|
+
wasm.__wbindgen_export4(deferred3_0, deferred3_1, 1);
|
|
7228
|
+
}
|
|
7229
|
+
}
|
|
7230
|
+
|
|
7231
|
+
/**
|
|
7232
|
+
* Reweight a 2D OPES trace from JSON.
|
|
7233
|
+
* @param {string} trace_json
|
|
7234
|
+
* @param {string} config_json
|
|
7235
|
+
* @returns {string}
|
|
7236
|
+
*/
|
|
7237
|
+
export function reweight_free_energy_2d(trace_json, config_json) {
|
|
7238
|
+
let deferred3_0;
|
|
7239
|
+
let deferred3_1;
|
|
7240
|
+
try {
|
|
7241
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
7242
|
+
const ptr0 = passStringToWasm0(trace_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
7243
|
+
const len0 = WASM_VECTOR_LEN;
|
|
7244
|
+
const ptr1 = passStringToWasm0(config_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
7245
|
+
const len1 = WASM_VECTOR_LEN;
|
|
7246
|
+
wasm.reweight_free_energy_2d(retptr, ptr0, len0, ptr1, len1);
|
|
7247
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
7248
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
7249
|
+
deferred3_0 = r0;
|
|
7250
|
+
deferred3_1 = r1;
|
|
7251
|
+
return getStringFromWasm0(r0, r1);
|
|
7252
|
+
} finally {
|
|
7253
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
7254
|
+
wasm.__wbindgen_export4(deferred3_0, deferred3_1, 1);
|
|
7255
|
+
}
|
|
7256
|
+
}
|
|
7257
|
+
|
|
7258
|
+
/**
|
|
7259
|
+
* Block-averaged reweighting of a correlated 1D CV trace from JSON.
|
|
7260
|
+
* @param {string} trace_json
|
|
7261
|
+
* @param {string} config_json
|
|
7262
|
+
* @returns {string}
|
|
7263
|
+
*/
|
|
7264
|
+
export function reweight_free_energy_correlated(trace_json, config_json) {
|
|
7265
|
+
let deferred3_0;
|
|
7266
|
+
let deferred3_1;
|
|
7267
|
+
try {
|
|
7268
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
7269
|
+
const ptr0 = passStringToWasm0(trace_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
7270
|
+
const len0 = WASM_VECTOR_LEN;
|
|
7271
|
+
const ptr1 = passStringToWasm0(config_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
7272
|
+
const len1 = WASM_VECTOR_LEN;
|
|
7273
|
+
wasm.reweight_free_energy_correlated(retptr, ptr0, len0, ptr1, len1);
|
|
7274
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
7275
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
7276
|
+
deferred3_0 = r0;
|
|
7277
|
+
deferred3_1 = r1;
|
|
7278
|
+
return getStringFromWasm0(r0, r1);
|
|
7279
|
+
} finally {
|
|
7280
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
7281
|
+
wasm.__wbindgen_export4(deferred3_0, deferred3_1, 1);
|
|
7282
|
+
}
|
|
7283
|
+
}
|
|
7284
|
+
|
|
7285
|
+
/**
|
|
7286
|
+
* Gillespie kinetic Monte Carlo from a JSON KmcConfig.
|
|
7287
|
+
* @param {string} config_json
|
|
7288
|
+
* @returns {string}
|
|
7289
|
+
*/
|
|
7290
|
+
export function run_kinetic_monte_carlo(config_json) {
|
|
7291
|
+
let deferred2_0;
|
|
7292
|
+
let deferred2_1;
|
|
7293
|
+
try {
|
|
7294
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
7295
|
+
const ptr0 = passStringToWasm0(config_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
7296
|
+
const len0 = WASM_VECTOR_LEN;
|
|
7297
|
+
wasm.run_kinetic_monte_carlo(retptr, ptr0, len0);
|
|
7298
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
7299
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
7300
|
+
deferred2_0 = r0;
|
|
7301
|
+
deferred2_1 = r1;
|
|
7302
|
+
return getStringFromWasm0(r0, r1);
|
|
7303
|
+
} finally {
|
|
7304
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
7305
|
+
wasm.__wbindgen_export4(deferred2_0, deferred2_1, 1);
|
|
7306
|
+
}
|
|
7307
|
+
}
|
|
7308
|
+
|
|
7309
|
+
/**
|
|
7310
|
+
* Well-tempered metadynamics on a UFF molecule from a JSON config.
|
|
7311
|
+
* @param {string} smiles
|
|
7312
|
+
* @param {string} coords_flat
|
|
7313
|
+
* @param {string} config_json
|
|
7314
|
+
* @returns {string}
|
|
7315
|
+
*/
|
|
7316
|
+
export function run_uff_metadynamics(smiles, coords_flat, config_json) {
|
|
7317
|
+
let deferred4_0;
|
|
7318
|
+
let deferred4_1;
|
|
7319
|
+
try {
|
|
7320
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
7321
|
+
const ptr0 = passStringToWasm0(smiles, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
7322
|
+
const len0 = WASM_VECTOR_LEN;
|
|
7323
|
+
const ptr1 = passStringToWasm0(coords_flat, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
7324
|
+
const len1 = WASM_VECTOR_LEN;
|
|
7325
|
+
const ptr2 = passStringToWasm0(config_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
7326
|
+
const len2 = WASM_VECTOR_LEN;
|
|
7327
|
+
wasm.run_uff_metadynamics(retptr, ptr0, len0, ptr1, len1, ptr2, len2);
|
|
7328
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
7329
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
7330
|
+
deferred4_0 = r0;
|
|
7331
|
+
deferred4_1 = r1;
|
|
7332
|
+
return getStringFromWasm0(r0, r1);
|
|
7333
|
+
} finally {
|
|
7334
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
7335
|
+
wasm.__wbindgen_export4(deferred4_0, deferred4_1, 1);
|
|
7336
|
+
}
|
|
7337
|
+
}
|
|
7338
|
+
|
|
7339
|
+
/**
|
|
7340
|
+
* OPES-style enhanced sampling on a UFF molecule from a JSON config.
|
|
7341
|
+
* @param {string} smiles
|
|
7342
|
+
* @param {string} coords_flat
|
|
7343
|
+
* @param {string} config_json
|
|
7344
|
+
* @returns {string}
|
|
7345
|
+
*/
|
|
7346
|
+
export function run_uff_opes(smiles, coords_flat, config_json) {
|
|
7347
|
+
let deferred4_0;
|
|
7348
|
+
let deferred4_1;
|
|
7349
|
+
try {
|
|
7350
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
7351
|
+
const ptr0 = passStringToWasm0(smiles, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
7352
|
+
const len0 = WASM_VECTOR_LEN;
|
|
7353
|
+
const ptr1 = passStringToWasm0(coords_flat, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
7354
|
+
const len1 = WASM_VECTOR_LEN;
|
|
7355
|
+
const ptr2 = passStringToWasm0(config_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
7356
|
+
const len2 = WASM_VECTOR_LEN;
|
|
7357
|
+
wasm.run_uff_opes(retptr, ptr0, len0, ptr1, len1, ptr2, len2);
|
|
7358
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
7359
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
7360
|
+
deferred4_0 = r0;
|
|
7361
|
+
deferred4_1 = r1;
|
|
7362
|
+
return getStringFromWasm0(r0, r1);
|
|
7363
|
+
} finally {
|
|
7364
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
7365
|
+
wasm.__wbindgen_export4(deferred4_0, deferred4_1, 1);
|
|
7366
|
+
}
|
|
7367
|
+
}
|
|
7368
|
+
|
|
6628
7369
|
/**
|
|
6629
7370
|
* Search conformers by sampling, torsion refinement, and UFF ranking.
|
|
6630
7371
|
*
|
|
@@ -6686,6 +7427,36 @@ export function search_conformers_with_uff_seed64(smiles, n_samples, seed, rmsd_
|
|
|
6686
7427
|
}
|
|
6687
7428
|
}
|
|
6688
7429
|
|
|
7430
|
+
/**
|
|
7431
|
+
* Solve 3D-RISM from grid arrays and a JSON config.
|
|
7432
|
+
* @param {string} beta_u
|
|
7433
|
+
* @param {string} susceptibility
|
|
7434
|
+
* @param {string} config_json
|
|
7435
|
+
* @returns {string}
|
|
7436
|
+
*/
|
|
7437
|
+
export function solve_3d_rism(beta_u, susceptibility, config_json) {
|
|
7438
|
+
let deferred4_0;
|
|
7439
|
+
let deferred4_1;
|
|
7440
|
+
try {
|
|
7441
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
7442
|
+
const ptr0 = passStringToWasm0(beta_u, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
7443
|
+
const len0 = WASM_VECTOR_LEN;
|
|
7444
|
+
const ptr1 = passStringToWasm0(susceptibility, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
7445
|
+
const len1 = WASM_VECTOR_LEN;
|
|
7446
|
+
const ptr2 = passStringToWasm0(config_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
7447
|
+
const len2 = WASM_VECTOR_LEN;
|
|
7448
|
+
wasm.solve_3d_rism(retptr, ptr0, len0, ptr1, len1, ptr2, len2);
|
|
7449
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
7450
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
7451
|
+
deferred4_0 = r0;
|
|
7452
|
+
deferred4_1 = r1;
|
|
7453
|
+
return getStringFromWasm0(r0, r1);
|
|
7454
|
+
} finally {
|
|
7455
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
7456
|
+
wasm.__wbindgen_export4(deferred4_0, deferred4_1, 1);
|
|
7457
|
+
}
|
|
7458
|
+
}
|
|
7459
|
+
|
|
6689
7460
|
/**
|
|
6690
7461
|
* Solve the extended Hückel problem for a geometry.
|
|
6691
7462
|
*
|
|
@@ -7719,7 +8490,7 @@ function __wbg_get_imports() {
|
|
|
7719
8490
|
const a = state0.a;
|
|
7720
8491
|
state0.a = 0;
|
|
7721
8492
|
try {
|
|
7722
|
-
return
|
|
8493
|
+
return __wasm_bindgen_func_elem_629(a, state0.b, arg0, arg1);
|
|
7723
8494
|
} finally {
|
|
7724
8495
|
state0.a = a;
|
|
7725
8496
|
}
|
|
@@ -7737,7 +8508,7 @@ function __wbg_get_imports() {
|
|
|
7737
8508
|
const a = state0.a;
|
|
7738
8509
|
state0.a = 0;
|
|
7739
8510
|
try {
|
|
7740
|
-
return
|
|
8511
|
+
return __wasm_bindgen_func_elem_629(a, state0.b, arg0, arg1);
|
|
7741
8512
|
} finally {
|
|
7742
8513
|
state0.a = a;
|
|
7743
8514
|
}
|
|
@@ -8023,18 +8794,18 @@ function __wbg_get_imports() {
|
|
|
8023
8794
|
return addHeapObject(ret);
|
|
8024
8795
|
},
|
|
8025
8796
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
8026
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
8027
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
8797
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 154, function: Function { arguments: [Externref], shim_idx: 155, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
8798
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_4323, __wasm_bindgen_func_elem_4333);
|
|
8028
8799
|
return addHeapObject(ret);
|
|
8029
8800
|
},
|
|
8030
8801
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
8031
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
8032
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
8802
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 154, function: Function { arguments: [Externref], shim_idx: 33, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
8803
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_4323, __wasm_bindgen_func_elem_647);
|
|
8033
8804
|
return addHeapObject(ret);
|
|
8034
8805
|
},
|
|
8035
8806
|
__wbindgen_cast_0000000000000003: function(arg0, arg1) {
|
|
8036
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
8037
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
8807
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 154, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 155, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
8808
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_4323, __wasm_bindgen_func_elem_4333_2);
|
|
8038
8809
|
return addHeapObject(ret);
|
|
8039
8810
|
},
|
|
8040
8811
|
__wbindgen_cast_0000000000000004: function(arg0) {
|
|
@@ -8080,18 +8851,18 @@ function __wbg_get_imports() {
|
|
|
8080
8851
|
};
|
|
8081
8852
|
}
|
|
8082
8853
|
|
|
8083
|
-
function
|
|
8084
|
-
wasm.
|
|
8854
|
+
function __wasm_bindgen_func_elem_4333(arg0, arg1, arg2) {
|
|
8855
|
+
wasm.__wasm_bindgen_func_elem_4333(arg0, arg1, addHeapObject(arg2));
|
|
8085
8856
|
}
|
|
8086
8857
|
|
|
8087
|
-
function
|
|
8088
|
-
wasm.
|
|
8858
|
+
function __wasm_bindgen_func_elem_4333_2(arg0, arg1, arg2) {
|
|
8859
|
+
wasm.__wasm_bindgen_func_elem_4333_2(arg0, arg1, addHeapObject(arg2));
|
|
8089
8860
|
}
|
|
8090
8861
|
|
|
8091
|
-
function
|
|
8862
|
+
function __wasm_bindgen_func_elem_647(arg0, arg1, arg2) {
|
|
8092
8863
|
try {
|
|
8093
8864
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
8094
|
-
wasm.
|
|
8865
|
+
wasm.__wasm_bindgen_func_elem_647(retptr, arg0, arg1, addHeapObject(arg2));
|
|
8095
8866
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
8096
8867
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
8097
8868
|
if (r1) {
|
|
@@ -8102,8 +8873,8 @@ function __wasm_bindgen_func_elem_624(arg0, arg1, arg2) {
|
|
|
8102
8873
|
}
|
|
8103
8874
|
}
|
|
8104
8875
|
|
|
8105
|
-
function
|
|
8106
|
-
wasm.
|
|
8876
|
+
function __wasm_bindgen_func_elem_629(arg0, arg1, arg2, arg3) {
|
|
8877
|
+
wasm.__wasm_bindgen_func_elem_629(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
8107
8878
|
}
|
|
8108
8879
|
|
|
8109
8880
|
|