sci-form-wasm 2.0.0 → 2.2.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 +9 -8
- package/cjs/sci_form_wasm.d.ts +138 -0
- package/cjs/sci_form_wasm.js +1492 -670
- package/cjs/sci_form_wasm_bg.wasm +0 -0
- package/cjs/sci_form_wasm_bg.wasm.d.ts +151 -124
- package/package.json +1 -1
- package/sci_form_wasm.d.ts +321 -156
- package/sci_form_wasm.js +812 -17
- package/sci_form_wasm_bg.wasm +0 -0
package/sci_form_wasm.js
CHANGED
|
@@ -166,6 +166,52 @@ export class LiveSimulation {
|
|
|
166
166
|
}
|
|
167
167
|
if (Symbol.dispose) LiveSimulation.prototype[Symbol.dispose] = LiveSimulation.prototype.free;
|
|
168
168
|
|
|
169
|
+
/**
|
|
170
|
+
* Propose active-learning labels from a JSON request.
|
|
171
|
+
* @param {string} request_json
|
|
172
|
+
* @returns {string}
|
|
173
|
+
*/
|
|
174
|
+
export function active_learning_propose(request_json) {
|
|
175
|
+
let deferred2_0;
|
|
176
|
+
let deferred2_1;
|
|
177
|
+
try {
|
|
178
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
179
|
+
const ptr0 = passStringToWasm0(request_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
180
|
+
const len0 = WASM_VECTOR_LEN;
|
|
181
|
+
wasm.active_learning_propose(retptr, ptr0, len0);
|
|
182
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
183
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
184
|
+
deferred2_0 = r0;
|
|
185
|
+
deferred2_1 = r1;
|
|
186
|
+
return getStringFromWasm0(r0, r1);
|
|
187
|
+
} finally {
|
|
188
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
189
|
+
wasm.__wbindgen_export4(deferred2_0, deferred2_1, 1);
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* List every NMR-active isotope registered for an element.
|
|
195
|
+
* @param {number} element
|
|
196
|
+
* @returns {string}
|
|
197
|
+
*/
|
|
198
|
+
export function active_nmr_isotopes(element) {
|
|
199
|
+
let deferred1_0;
|
|
200
|
+
let deferred1_1;
|
|
201
|
+
try {
|
|
202
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
203
|
+
wasm.active_nmr_isotopes(retptr, element);
|
|
204
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
205
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
206
|
+
deferred1_0 = r0;
|
|
207
|
+
deferred1_1 = r1;
|
|
208
|
+
return getStringFromWasm0(r0, r1);
|
|
209
|
+
} finally {
|
|
210
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
211
|
+
wasm.__wbindgen_export4(deferred1_0, deferred1_1, 1);
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
|
|
169
215
|
/**
|
|
170
216
|
* List all 230 space groups as `[number, symbol]` pairs.
|
|
171
217
|
* @returns {string}
|
|
@@ -2304,6 +2350,36 @@ export function compute_aevs_tm(elements_json, coords_flat_json) {
|
|
|
2304
2350
|
}
|
|
2305
2351
|
}
|
|
2306
2352
|
|
|
2353
|
+
/**
|
|
2354
|
+
* Run the all-nuclide NMR driver from a JSON GiaoNmrConfig.
|
|
2355
|
+
* @param {string} elements
|
|
2356
|
+
* @param {string} coords_flat
|
|
2357
|
+
* @param {string} config_json
|
|
2358
|
+
* @returns {string}
|
|
2359
|
+
*/
|
|
2360
|
+
export function compute_all_nmr(elements, coords_flat, config_json) {
|
|
2361
|
+
let deferred4_0;
|
|
2362
|
+
let deferred4_1;
|
|
2363
|
+
try {
|
|
2364
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2365
|
+
const ptr0 = passStringToWasm0(elements, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
2366
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2367
|
+
const ptr1 = passStringToWasm0(coords_flat, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
2368
|
+
const len1 = WASM_VECTOR_LEN;
|
|
2369
|
+
const ptr2 = passStringToWasm0(config_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
2370
|
+
const len2 = WASM_VECTOR_LEN;
|
|
2371
|
+
wasm.compute_all_nmr(retptr, ptr0, len0, ptr1, len1, ptr2, len2);
|
|
2372
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2373
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2374
|
+
deferred4_0 = r0;
|
|
2375
|
+
deferred4_1 = r1;
|
|
2376
|
+
return getStringFromWasm0(r0, r1);
|
|
2377
|
+
} finally {
|
|
2378
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
2379
|
+
wasm.__wbindgen_export4(deferred4_0, deferred4_1, 1);
|
|
2380
|
+
}
|
|
2381
|
+
}
|
|
2382
|
+
|
|
2307
2383
|
/**
|
|
2308
2384
|
* Compute ANI neural-network potential energy.
|
|
2309
2385
|
* @param {string} elements_json
|
|
@@ -3037,6 +3113,36 @@ export function compute_ensemble_j_couplings(smiles, conformer_coords_json, ener
|
|
|
3037
3113
|
}
|
|
3038
3114
|
}
|
|
3039
3115
|
|
|
3116
|
+
/**
|
|
3117
|
+
* Isotropic EPR hyperfine coupling. `nucleus = 0` evaluates all known nuclei.
|
|
3118
|
+
* @param {string} elements
|
|
3119
|
+
* @param {string} coords_flat
|
|
3120
|
+
* @param {number} nucleus
|
|
3121
|
+
* @param {number} charge
|
|
3122
|
+
* @param {number} multiplicity
|
|
3123
|
+
* @returns {string}
|
|
3124
|
+
*/
|
|
3125
|
+
export function compute_epr_hyperfine(elements, coords_flat, nucleus, charge, multiplicity) {
|
|
3126
|
+
let deferred3_0;
|
|
3127
|
+
let deferred3_1;
|
|
3128
|
+
try {
|
|
3129
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
3130
|
+
const ptr0 = passStringToWasm0(elements, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
3131
|
+
const len0 = WASM_VECTOR_LEN;
|
|
3132
|
+
const ptr1 = passStringToWasm0(coords_flat, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
3133
|
+
const len1 = WASM_VECTOR_LEN;
|
|
3134
|
+
wasm.compute_epr_hyperfine(retptr, ptr0, len0, ptr1, len1, nucleus, charge, multiplicity);
|
|
3135
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
3136
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
3137
|
+
deferred3_0 = r0;
|
|
3138
|
+
deferred3_1 = r1;
|
|
3139
|
+
return getStringFromWasm0(r0, r1);
|
|
3140
|
+
} finally {
|
|
3141
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
3142
|
+
wasm.__wbindgen_export4(deferred3_0, deferred3_1, 1);
|
|
3143
|
+
}
|
|
3144
|
+
}
|
|
3145
|
+
|
|
3040
3146
|
/**
|
|
3041
3147
|
* Compute the full electrostatic potential grid as JSON.
|
|
3042
3148
|
* @param {string} elements
|
|
@@ -3342,6 +3448,36 @@ export function compute_gb_solvation(elements, coords_flat, charges, solvent_die
|
|
|
3342
3448
|
}
|
|
3343
3449
|
}
|
|
3344
3450
|
|
|
3451
|
+
/**
|
|
3452
|
+
* GCMC adsorption isotherm from JSON framework, guest and config payloads.
|
|
3453
|
+
* @param {string} framework_json
|
|
3454
|
+
* @param {string} guest_json
|
|
3455
|
+
* @param {string} config_json
|
|
3456
|
+
* @returns {string}
|
|
3457
|
+
*/
|
|
3458
|
+
export function compute_gcmc_isotherm(framework_json, guest_json, config_json) {
|
|
3459
|
+
let deferred4_0;
|
|
3460
|
+
let deferred4_1;
|
|
3461
|
+
try {
|
|
3462
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
3463
|
+
const ptr0 = passStringToWasm0(framework_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
3464
|
+
const len0 = WASM_VECTOR_LEN;
|
|
3465
|
+
const ptr1 = passStringToWasm0(guest_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
3466
|
+
const len1 = WASM_VECTOR_LEN;
|
|
3467
|
+
const ptr2 = passStringToWasm0(config_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
3468
|
+
const len2 = WASM_VECTOR_LEN;
|
|
3469
|
+
wasm.compute_gcmc_isotherm(retptr, ptr0, len0, ptr1, len1, ptr2, len2);
|
|
3470
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
3471
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
3472
|
+
deferred4_0 = r0;
|
|
3473
|
+
deferred4_1 = r1;
|
|
3474
|
+
return getStringFromWasm0(r0, r1);
|
|
3475
|
+
} finally {
|
|
3476
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
3477
|
+
wasm.__wbindgen_export4(deferred4_0, deferred4_1, 1);
|
|
3478
|
+
}
|
|
3479
|
+
}
|
|
3480
|
+
|
|
3345
3481
|
/**
|
|
3346
3482
|
* Compute Gouy-Chapman-Stern profile (compact + diffuse).
|
|
3347
3483
|
*
|
|
@@ -4165,6 +4301,33 @@ export function compute_molecular_descriptors(smiles) {
|
|
|
4165
4301
|
}
|
|
4166
4302
|
}
|
|
4167
4303
|
|
|
4304
|
+
/**
|
|
4305
|
+
* Conventional closed-shell MP2 correlation energy.
|
|
4306
|
+
* @param {string} elements
|
|
4307
|
+
* @param {string} coords_flat
|
|
4308
|
+
* @returns {string}
|
|
4309
|
+
*/
|
|
4310
|
+
export function compute_mp2_energy(elements, coords_flat) {
|
|
4311
|
+
let deferred3_0;
|
|
4312
|
+
let deferred3_1;
|
|
4313
|
+
try {
|
|
4314
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
4315
|
+
const ptr0 = passStringToWasm0(elements, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
4316
|
+
const len0 = WASM_VECTOR_LEN;
|
|
4317
|
+
const ptr1 = passStringToWasm0(coords_flat, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
4318
|
+
const len1 = WASM_VECTOR_LEN;
|
|
4319
|
+
wasm.compute_mp2_energy(retptr, ptr0, len0, ptr1, len1);
|
|
4320
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
4321
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
4322
|
+
deferred3_0 = r0;
|
|
4323
|
+
deferred3_1 = r1;
|
|
4324
|
+
return getStringFromWasm0(r0, r1);
|
|
4325
|
+
} finally {
|
|
4326
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
4327
|
+
wasm.__wbindgen_export4(deferred3_0, deferred3_1, 1);
|
|
4328
|
+
}
|
|
4329
|
+
}
|
|
4330
|
+
|
|
4168
4331
|
/**
|
|
4169
4332
|
* Build a simplified NEB path with a configurable energy backend.
|
|
4170
4333
|
*
|
|
@@ -4368,6 +4531,37 @@ export function compute_orbital_mesh_accelerated(elements_json, coords_flat_json
|
|
|
4368
4531
|
return takeObject(ret);
|
|
4369
4532
|
}
|
|
4370
4533
|
|
|
4534
|
+
/**
|
|
4535
|
+
* Restricted closed-shell PBE0 single point. Returns JSON `DftResult`.
|
|
4536
|
+
*
|
|
4537
|
+
* Same as `alpha_compute_dft(elements, coords, "pbe0")` with an explicit
|
|
4538
|
+
* iteration cap; open-shell systems return an error.
|
|
4539
|
+
* @param {string} elements
|
|
4540
|
+
* @param {string} coords_flat
|
|
4541
|
+
* @param {number} max_iterations
|
|
4542
|
+
* @returns {string}
|
|
4543
|
+
*/
|
|
4544
|
+
export function compute_pbe0_energy(elements, coords_flat, max_iterations) {
|
|
4545
|
+
let deferred3_0;
|
|
4546
|
+
let deferred3_1;
|
|
4547
|
+
try {
|
|
4548
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
4549
|
+
const ptr0 = passStringToWasm0(elements, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
4550
|
+
const len0 = WASM_VECTOR_LEN;
|
|
4551
|
+
const ptr1 = passStringToWasm0(coords_flat, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
4552
|
+
const len1 = WASM_VECTOR_LEN;
|
|
4553
|
+
wasm.compute_pbe0_energy(retptr, ptr0, len0, ptr1, len1, max_iterations);
|
|
4554
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
4555
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
4556
|
+
deferred3_0 = r0;
|
|
4557
|
+
deferred3_1 = r1;
|
|
4558
|
+
return getStringFromWasm0(r0, r1);
|
|
4559
|
+
} finally {
|
|
4560
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
4561
|
+
wasm.__wbindgen_export4(deferred3_0, deferred3_1, 1);
|
|
4562
|
+
}
|
|
4563
|
+
}
|
|
4564
|
+
|
|
4371
4565
|
/**
|
|
4372
4566
|
* Alias of [`compute_periodic_dos`], the name of the Rust root function.
|
|
4373
4567
|
*
|
|
@@ -4472,6 +4666,73 @@ export function compute_phase_portrait_chart(network_json, n_steps) {
|
|
|
4472
4666
|
}
|
|
4473
4667
|
}
|
|
4474
4668
|
|
|
4669
|
+
/**
|
|
4670
|
+
* Absolute pKa from an explicit acid/conjugate-base pair.
|
|
4671
|
+
* @param {string} acid_smiles
|
|
4672
|
+
* @param {string} base_smiles
|
|
4673
|
+
* @param {string} method_name
|
|
4674
|
+
* @returns {string}
|
|
4675
|
+
*/
|
|
4676
|
+
export function compute_pka(acid_smiles, base_smiles, method_name) {
|
|
4677
|
+
let deferred4_0;
|
|
4678
|
+
let deferred4_1;
|
|
4679
|
+
try {
|
|
4680
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
4681
|
+
const ptr0 = passStringToWasm0(acid_smiles, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
4682
|
+
const len0 = WASM_VECTOR_LEN;
|
|
4683
|
+
const ptr1 = passStringToWasm0(base_smiles, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
4684
|
+
const len1 = WASM_VECTOR_LEN;
|
|
4685
|
+
const ptr2 = passStringToWasm0(method_name, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
4686
|
+
const len2 = WASM_VECTOR_LEN;
|
|
4687
|
+
wasm.compute_pka(retptr, ptr0, len0, ptr1, len1, ptr2, len2);
|
|
4688
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
4689
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
4690
|
+
deferred4_0 = r0;
|
|
4691
|
+
deferred4_1 = r1;
|
|
4692
|
+
return getStringFromWasm0(r0, r1);
|
|
4693
|
+
} finally {
|
|
4694
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
4695
|
+
wasm.__wbindgen_export4(deferred4_0, deferred4_1, 1);
|
|
4696
|
+
}
|
|
4697
|
+
}
|
|
4698
|
+
|
|
4699
|
+
/**
|
|
4700
|
+
* Relative pKa against a reference acid with a known experimental value.
|
|
4701
|
+
* @param {string} acid_smiles
|
|
4702
|
+
* @param {string} base_smiles
|
|
4703
|
+
* @param {string} reference_acid
|
|
4704
|
+
* @param {string} reference_base
|
|
4705
|
+
* @param {number} reference_pka
|
|
4706
|
+
* @param {string} method_name
|
|
4707
|
+
* @returns {string}
|
|
4708
|
+
*/
|
|
4709
|
+
export function compute_pka_relative(acid_smiles, base_smiles, reference_acid, reference_base, reference_pka, method_name) {
|
|
4710
|
+
let deferred6_0;
|
|
4711
|
+
let deferred6_1;
|
|
4712
|
+
try {
|
|
4713
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
4714
|
+
const ptr0 = passStringToWasm0(acid_smiles, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
4715
|
+
const len0 = WASM_VECTOR_LEN;
|
|
4716
|
+
const ptr1 = passStringToWasm0(base_smiles, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
4717
|
+
const len1 = WASM_VECTOR_LEN;
|
|
4718
|
+
const ptr2 = passStringToWasm0(reference_acid, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
4719
|
+
const len2 = WASM_VECTOR_LEN;
|
|
4720
|
+
const ptr3 = passStringToWasm0(reference_base, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
4721
|
+
const len3 = WASM_VECTOR_LEN;
|
|
4722
|
+
const ptr4 = passStringToWasm0(method_name, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
4723
|
+
const len4 = WASM_VECTOR_LEN;
|
|
4724
|
+
wasm.compute_pka_relative(retptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, reference_pka, ptr4, len4);
|
|
4725
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
4726
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
4727
|
+
deferred6_0 = r0;
|
|
4728
|
+
deferred6_1 = r1;
|
|
4729
|
+
return getStringFromWasm0(r0, r1);
|
|
4730
|
+
} finally {
|
|
4731
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
4732
|
+
wasm.__wbindgen_export4(deferred6_0, deferred6_1, 1);
|
|
4733
|
+
}
|
|
4734
|
+
}
|
|
4735
|
+
|
|
4475
4736
|
/**
|
|
4476
4737
|
* Run a PM3 semi-empirical calculation.
|
|
4477
4738
|
* @param {string} elements_json
|
|
@@ -4553,6 +4814,64 @@ export function compute_population(elements, coords_flat) {
|
|
|
4553
4814
|
}
|
|
4554
4815
|
}
|
|
4555
4816
|
|
|
4817
|
+
/**
|
|
4818
|
+
* Mechanical-embedding QM/MM energy from serialized system/config payloads.
|
|
4819
|
+
* @param {string} system_json
|
|
4820
|
+
* @param {string} config_json
|
|
4821
|
+
* @returns {string}
|
|
4822
|
+
*/
|
|
4823
|
+
export function compute_qmmm_energy(system_json, config_json) {
|
|
4824
|
+
let deferred3_0;
|
|
4825
|
+
let deferred3_1;
|
|
4826
|
+
try {
|
|
4827
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
4828
|
+
const ptr0 = passStringToWasm0(system_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
4829
|
+
const len0 = WASM_VECTOR_LEN;
|
|
4830
|
+
const ptr1 = passStringToWasm0(config_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
4831
|
+
const len1 = WASM_VECTOR_LEN;
|
|
4832
|
+
wasm.compute_qmmm_energy(retptr, ptr0, len0, ptr1, len1);
|
|
4833
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
4834
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
4835
|
+
deferred3_0 = r0;
|
|
4836
|
+
deferred3_1 = r1;
|
|
4837
|
+
return getStringFromWasm0(r0, r1);
|
|
4838
|
+
} finally {
|
|
4839
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
4840
|
+
wasm.__wbindgen_export4(deferred3_0, deferred3_1, 1);
|
|
4841
|
+
}
|
|
4842
|
+
}
|
|
4843
|
+
|
|
4844
|
+
/**
|
|
4845
|
+
* Raman activities from the response polarizability and UFF modes.
|
|
4846
|
+
* @param {string} smiles
|
|
4847
|
+
* @param {string} elements
|
|
4848
|
+
* @param {string} coords_flat
|
|
4849
|
+
* @param {number} step_angstrom
|
|
4850
|
+
* @returns {string}
|
|
4851
|
+
*/
|
|
4852
|
+
export function compute_raman_spectrum(smiles, elements, coords_flat, step_angstrom) {
|
|
4853
|
+
let deferred4_0;
|
|
4854
|
+
let deferred4_1;
|
|
4855
|
+
try {
|
|
4856
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
4857
|
+
const ptr0 = passStringToWasm0(smiles, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
4858
|
+
const len0 = WASM_VECTOR_LEN;
|
|
4859
|
+
const ptr1 = passStringToWasm0(elements, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
4860
|
+
const len1 = WASM_VECTOR_LEN;
|
|
4861
|
+
const ptr2 = passStringToWasm0(coords_flat, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
4862
|
+
const len2 = WASM_VECTOR_LEN;
|
|
4863
|
+
wasm.compute_raman_spectrum(retptr, ptr0, len0, ptr1, len1, ptr2, len2, step_angstrom);
|
|
4864
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
4865
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
4866
|
+
deferred4_0 = r0;
|
|
4867
|
+
deferred4_1 = r1;
|
|
4868
|
+
return getStringFromWasm0(r0, r1);
|
|
4869
|
+
} finally {
|
|
4870
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
4871
|
+
wasm.__wbindgen_export4(deferred4_0, deferred4_1, 1);
|
|
4872
|
+
}
|
|
4873
|
+
}
|
|
4874
|
+
|
|
4556
4875
|
/**
|
|
4557
4876
|
* Compute radial distribution function (RDF) descriptors.
|
|
4558
4877
|
*
|
|
@@ -4695,7 +5014,76 @@ export function compute_reactivity_ranking(elements, coords_flat) {
|
|
|
4695
5014
|
}
|
|
4696
5015
|
|
|
4697
5016
|
/**
|
|
4698
|
-
*
|
|
5017
|
+
* Absolute redox potential from an explicit oxidised/reduced pair.
|
|
5018
|
+
* @param {string} oxidized_smiles
|
|
5019
|
+
* @param {string} reduced_smiles
|
|
5020
|
+
* @param {number} n_electrons
|
|
5021
|
+
* @param {string} method_name
|
|
5022
|
+
* @returns {string}
|
|
5023
|
+
*/
|
|
5024
|
+
export function compute_redox_potential(oxidized_smiles, reduced_smiles, n_electrons, method_name) {
|
|
5025
|
+
let deferred4_0;
|
|
5026
|
+
let deferred4_1;
|
|
5027
|
+
try {
|
|
5028
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
5029
|
+
const ptr0 = passStringToWasm0(oxidized_smiles, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
5030
|
+
const len0 = WASM_VECTOR_LEN;
|
|
5031
|
+
const ptr1 = passStringToWasm0(reduced_smiles, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
5032
|
+
const len1 = WASM_VECTOR_LEN;
|
|
5033
|
+
const ptr2 = passStringToWasm0(method_name, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
5034
|
+
const len2 = WASM_VECTOR_LEN;
|
|
5035
|
+
wasm.compute_redox_potential(retptr, ptr0, len0, ptr1, len1, n_electrons, ptr2, len2);
|
|
5036
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
5037
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
5038
|
+
deferred4_0 = r0;
|
|
5039
|
+
deferred4_1 = r1;
|
|
5040
|
+
return getStringFromWasm0(r0, r1);
|
|
5041
|
+
} finally {
|
|
5042
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
5043
|
+
wasm.__wbindgen_export4(deferred4_0, deferred4_1, 1);
|
|
5044
|
+
}
|
|
5045
|
+
}
|
|
5046
|
+
|
|
5047
|
+
/**
|
|
5048
|
+
* Relative redox potential against a reference couple with a known value.
|
|
5049
|
+
* @param {string} oxidized_smiles
|
|
5050
|
+
* @param {string} reduced_smiles
|
|
5051
|
+
* @param {number} n_electrons
|
|
5052
|
+
* @param {string} reference_oxidized
|
|
5053
|
+
* @param {string} reference_reduced
|
|
5054
|
+
* @param {number} reference_potential_v
|
|
5055
|
+
* @param {string} method_name
|
|
5056
|
+
* @returns {string}
|
|
5057
|
+
*/
|
|
5058
|
+
export function compute_redox_potential_relative(oxidized_smiles, reduced_smiles, n_electrons, reference_oxidized, reference_reduced, reference_potential_v, method_name) {
|
|
5059
|
+
let deferred6_0;
|
|
5060
|
+
let deferred6_1;
|
|
5061
|
+
try {
|
|
5062
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
5063
|
+
const ptr0 = passStringToWasm0(oxidized_smiles, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
5064
|
+
const len0 = WASM_VECTOR_LEN;
|
|
5065
|
+
const ptr1 = passStringToWasm0(reduced_smiles, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
5066
|
+
const len1 = WASM_VECTOR_LEN;
|
|
5067
|
+
const ptr2 = passStringToWasm0(reference_oxidized, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
5068
|
+
const len2 = WASM_VECTOR_LEN;
|
|
5069
|
+
const ptr3 = passStringToWasm0(reference_reduced, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
5070
|
+
const len3 = WASM_VECTOR_LEN;
|
|
5071
|
+
const ptr4 = passStringToWasm0(method_name, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
5072
|
+
const len4 = WASM_VECTOR_LEN;
|
|
5073
|
+
wasm.compute_redox_potential_relative(retptr, ptr0, len0, ptr1, len1, n_electrons, ptr2, len2, ptr3, len3, reference_potential_v, ptr4, len4);
|
|
5074
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
5075
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
5076
|
+
deferred6_0 = r0;
|
|
5077
|
+
deferred6_1 = r1;
|
|
5078
|
+
return getStringFromWasm0(r0, r1);
|
|
5079
|
+
} finally {
|
|
5080
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
5081
|
+
wasm.__wbindgen_export4(deferred6_0, deferred6_1, 1);
|
|
5082
|
+
}
|
|
5083
|
+
}
|
|
5084
|
+
|
|
5085
|
+
/**
|
|
5086
|
+
* Compute RMSD between two coordinate sets after Kabsch alignment.
|
|
4699
5087
|
*
|
|
4700
5088
|
* Returns JSON `{"rmsd": 0.123456}` on success, or the canonical
|
|
4701
5089
|
* `{"error": "..."}` payload when the two coordinate sets cannot be
|
|
@@ -4752,6 +5140,37 @@ export function compute_rmsd_matrix(conformers_json) {
|
|
|
4752
5140
|
}
|
|
4753
5141
|
}
|
|
4754
5142
|
|
|
5143
|
+
/**
|
|
5144
|
+
* ROA screening intensities from Raman activities and the VCD magnetic term.
|
|
5145
|
+
* @param {string} smiles
|
|
5146
|
+
* @param {string} elements
|
|
5147
|
+
* @param {string} coords_flat
|
|
5148
|
+
* @param {number} min_frequency_cm1
|
|
5149
|
+
* @returns {string}
|
|
5150
|
+
*/
|
|
5151
|
+
export function compute_roa_spectrum(smiles, elements, coords_flat, min_frequency_cm1) {
|
|
5152
|
+
let deferred4_0;
|
|
5153
|
+
let deferred4_1;
|
|
5154
|
+
try {
|
|
5155
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
5156
|
+
const ptr0 = passStringToWasm0(smiles, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
5157
|
+
const len0 = WASM_VECTOR_LEN;
|
|
5158
|
+
const ptr1 = passStringToWasm0(elements, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
5159
|
+
const len1 = WASM_VECTOR_LEN;
|
|
5160
|
+
const ptr2 = passStringToWasm0(coords_flat, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
5161
|
+
const len2 = WASM_VECTOR_LEN;
|
|
5162
|
+
wasm.compute_roa_spectrum(retptr, ptr0, len0, ptr1, len1, ptr2, len2, min_frequency_cm1);
|
|
5163
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
5164
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
5165
|
+
deferred4_0 = r0;
|
|
5166
|
+
deferred4_1 = r1;
|
|
5167
|
+
return getStringFromWasm0(r0, r1);
|
|
5168
|
+
} finally {
|
|
5169
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
5170
|
+
wasm.__wbindgen_export4(deferred4_0, deferred4_1, 1);
|
|
5171
|
+
}
|
|
5172
|
+
}
|
|
5173
|
+
|
|
4755
5174
|
/**
|
|
4756
5175
|
* Run a Restricted Open-shell Hartree-Fock (ROHF) calculation.
|
|
4757
5176
|
*
|
|
@@ -5213,6 +5632,37 @@ export function compute_uv_vis_spectrum(elements, coords_flat, sigma, e_min, e_m
|
|
|
5213
5632
|
}
|
|
5214
5633
|
}
|
|
5215
5634
|
|
|
5635
|
+
/**
|
|
5636
|
+
* VCD rotational strengths with the nuclear charge-current screening model.
|
|
5637
|
+
* @param {string} smiles
|
|
5638
|
+
* @param {string} elements
|
|
5639
|
+
* @param {string} coords_flat
|
|
5640
|
+
* @param {number} min_frequency_cm1
|
|
5641
|
+
* @returns {string}
|
|
5642
|
+
*/
|
|
5643
|
+
export function compute_vcd_spectrum(smiles, elements, coords_flat, min_frequency_cm1) {
|
|
5644
|
+
let deferred4_0;
|
|
5645
|
+
let deferred4_1;
|
|
5646
|
+
try {
|
|
5647
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
5648
|
+
const ptr0 = passStringToWasm0(smiles, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
5649
|
+
const len0 = WASM_VECTOR_LEN;
|
|
5650
|
+
const ptr1 = passStringToWasm0(elements, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
5651
|
+
const len1 = WASM_VECTOR_LEN;
|
|
5652
|
+
const ptr2 = passStringToWasm0(coords_flat, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
5653
|
+
const len2 = WASM_VECTOR_LEN;
|
|
5654
|
+
wasm.compute_vcd_spectrum(retptr, ptr0, len0, ptr1, len1, ptr2, len2, min_frequency_cm1);
|
|
5655
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
5656
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
5657
|
+
deferred4_0 = r0;
|
|
5658
|
+
deferred4_1 = r1;
|
|
5659
|
+
return getStringFromWasm0(r0, r1);
|
|
5660
|
+
} finally {
|
|
5661
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
5662
|
+
wasm.__wbindgen_export4(deferred4_0, deferred4_1, 1);
|
|
5663
|
+
}
|
|
5664
|
+
}
|
|
5665
|
+
|
|
5216
5666
|
/**
|
|
5217
5667
|
* Perform vibrational analysis via numerical Hessian.
|
|
5218
5668
|
* @param {string} elements_json
|
|
@@ -5307,6 +5757,38 @@ export function compute_whim(elements_json, coords_flat_json, weighting) {
|
|
|
5307
5757
|
}
|
|
5308
5758
|
}
|
|
5309
5759
|
|
|
5760
|
+
/**
|
|
5761
|
+
* Koopmans core-level XPS binding energies.
|
|
5762
|
+
* @param {string} elements
|
|
5763
|
+
* @param {string} coords_flat
|
|
5764
|
+
* @param {string} elements_filter_json
|
|
5765
|
+
* @param {number} charge
|
|
5766
|
+
* @param {number} multiplicity
|
|
5767
|
+
* @returns {string}
|
|
5768
|
+
*/
|
|
5769
|
+
export function compute_xps_binding_energies(elements, coords_flat, elements_filter_json, charge, multiplicity) {
|
|
5770
|
+
let deferred4_0;
|
|
5771
|
+
let deferred4_1;
|
|
5772
|
+
try {
|
|
5773
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
5774
|
+
const ptr0 = passStringToWasm0(elements, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
5775
|
+
const len0 = WASM_VECTOR_LEN;
|
|
5776
|
+
const ptr1 = passStringToWasm0(coords_flat, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
5777
|
+
const len1 = WASM_VECTOR_LEN;
|
|
5778
|
+
const ptr2 = passStringToWasm0(elements_filter_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
5779
|
+
const len2 = WASM_VECTOR_LEN;
|
|
5780
|
+
wasm.compute_xps_binding_energies(retptr, ptr0, len0, ptr1, len1, ptr2, len2, charge, multiplicity);
|
|
5781
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
5782
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
5783
|
+
deferred4_0 = r0;
|
|
5784
|
+
deferred4_1 = r1;
|
|
5785
|
+
return getStringFromWasm0(r0, r1);
|
|
5786
|
+
} finally {
|
|
5787
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
5788
|
+
wasm.__wbindgen_export4(deferred4_0, deferred4_1, 1);
|
|
5789
|
+
}
|
|
5790
|
+
}
|
|
5791
|
+
|
|
5310
5792
|
/**
|
|
5311
5793
|
* Run an xTB tight-binding calculation.
|
|
5312
5794
|
* @param {string} elements_json
|
|
@@ -5361,6 +5843,34 @@ export function compute_xtb_gradient(elements_json, coords_flat_json) {
|
|
|
5361
5843
|
}
|
|
5362
5844
|
}
|
|
5363
5845
|
|
|
5846
|
+
/**
|
|
5847
|
+
* Fit a split-conformal calibration radius.
|
|
5848
|
+
* @param {string} predictions_json
|
|
5849
|
+
* @param {string} targets_json
|
|
5850
|
+
* @param {number} coverage
|
|
5851
|
+
* @returns {string}
|
|
5852
|
+
*/
|
|
5853
|
+
export function conformal_calibrate(predictions_json, targets_json, coverage) {
|
|
5854
|
+
let deferred3_0;
|
|
5855
|
+
let deferred3_1;
|
|
5856
|
+
try {
|
|
5857
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
5858
|
+
const ptr0 = passStringToWasm0(predictions_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
5859
|
+
const len0 = WASM_VECTOR_LEN;
|
|
5860
|
+
const ptr1 = passStringToWasm0(targets_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
5861
|
+
const len1 = WASM_VECTOR_LEN;
|
|
5862
|
+
wasm.conformal_calibrate(retptr, ptr0, len0, ptr1, len1, coverage);
|
|
5863
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
5864
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
5865
|
+
deferred3_0 = r0;
|
|
5866
|
+
deferred3_1 = r1;
|
|
5867
|
+
return getStringFromWasm0(r0, r1);
|
|
5868
|
+
} finally {
|
|
5869
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
5870
|
+
wasm.__wbindgen_export4(deferred3_0, deferred3_1, 1);
|
|
5871
|
+
}
|
|
5872
|
+
}
|
|
5873
|
+
|
|
5364
5874
|
/**
|
|
5365
5875
|
* Create a unit cell and return parameters + volume as JSON.
|
|
5366
5876
|
* @param {number} a
|
|
@@ -5421,6 +5931,30 @@ export function detect_hapticity(elements_json, coords_flat_json, bonds_json) {
|
|
|
5421
5931
|
}
|
|
5422
5932
|
}
|
|
5423
5933
|
|
|
5934
|
+
/**
|
|
5935
|
+
* Rule-based reaction-network discovery from a JSON TemplateNetworkConfig.
|
|
5936
|
+
* @param {string} config_json
|
|
5937
|
+
* @returns {string}
|
|
5938
|
+
*/
|
|
5939
|
+
export function discover_reaction_network(config_json) {
|
|
5940
|
+
let deferred2_0;
|
|
5941
|
+
let deferred2_1;
|
|
5942
|
+
try {
|
|
5943
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
5944
|
+
const ptr0 = passStringToWasm0(config_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
5945
|
+
const len0 = WASM_VECTOR_LEN;
|
|
5946
|
+
wasm.discover_reaction_network(retptr, ptr0, len0);
|
|
5947
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
5948
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
5949
|
+
deferred2_0 = r0;
|
|
5950
|
+
deferred2_1 = r1;
|
|
5951
|
+
return getStringFromWasm0(r0, r1);
|
|
5952
|
+
} finally {
|
|
5953
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
5954
|
+
wasm.__wbindgen_export4(deferred2_0, deferred2_1, 1);
|
|
5955
|
+
}
|
|
5956
|
+
}
|
|
5957
|
+
|
|
5424
5958
|
/**
|
|
5425
5959
|
* Run an EHT calculation on a molecule.
|
|
5426
5960
|
*
|
|
@@ -5928,6 +6462,36 @@ export function embed_seed64(smiles, seed) {
|
|
|
5928
6462
|
}
|
|
5929
6463
|
}
|
|
5930
6464
|
|
|
6465
|
+
/**
|
|
6466
|
+
* Estimate an alchemical free-energy difference from JSON samples.
|
|
6467
|
+
* @param {string} samples_json
|
|
6468
|
+
* @param {string} estimator
|
|
6469
|
+
* @param {string} config_json
|
|
6470
|
+
* @returns {string}
|
|
6471
|
+
*/
|
|
6472
|
+
export function estimate_free_energy(samples_json, estimator, config_json) {
|
|
6473
|
+
let deferred4_0;
|
|
6474
|
+
let deferred4_1;
|
|
6475
|
+
try {
|
|
6476
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
6477
|
+
const ptr0 = passStringToWasm0(samples_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
6478
|
+
const len0 = WASM_VECTOR_LEN;
|
|
6479
|
+
const ptr1 = passStringToWasm0(estimator, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
6480
|
+
const len1 = WASM_VECTOR_LEN;
|
|
6481
|
+
const ptr2 = passStringToWasm0(config_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
6482
|
+
const len2 = WASM_VECTOR_LEN;
|
|
6483
|
+
wasm.estimate_free_energy(retptr, ptr0, len0, ptr1, len1, ptr2, len2);
|
|
6484
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
6485
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
6486
|
+
deferred4_0 = r0;
|
|
6487
|
+
deferred4_1 = r1;
|
|
6488
|
+
return getStringFromWasm0(r0, r1);
|
|
6489
|
+
} finally {
|
|
6490
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
6491
|
+
wasm.__wbindgen_export4(deferred4_0, deferred4_1, 1);
|
|
6492
|
+
}
|
|
6493
|
+
}
|
|
6494
|
+
|
|
5931
6495
|
/**
|
|
5932
6496
|
* Estimate optimal number of Web Workers for a batch size.
|
|
5933
6497
|
* @param {number} n_items
|
|
@@ -6625,6 +7189,207 @@ export function predict_nmr_shifts_for_nucleus(smiles, nucleus) {
|
|
|
6625
7189
|
}
|
|
6626
7190
|
}
|
|
6627
7191
|
|
|
7192
|
+
/**
|
|
7193
|
+
* Refine a barrier with GSM from flat coordinate arrays.
|
|
7194
|
+
* @param {string} smiles
|
|
7195
|
+
* @param {string} reactant_coords
|
|
7196
|
+
* @param {string} product_coords
|
|
7197
|
+
* @param {string} method
|
|
7198
|
+
* @param {string} config_json
|
|
7199
|
+
* @returns {string}
|
|
7200
|
+
*/
|
|
7201
|
+
export function refine_barrier_with_gsm(smiles, reactant_coords, product_coords, method, config_json) {
|
|
7202
|
+
let deferred6_0;
|
|
7203
|
+
let deferred6_1;
|
|
7204
|
+
try {
|
|
7205
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
7206
|
+
const ptr0 = passStringToWasm0(smiles, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
7207
|
+
const len0 = WASM_VECTOR_LEN;
|
|
7208
|
+
const ptr1 = passStringToWasm0(reactant_coords, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
7209
|
+
const len1 = WASM_VECTOR_LEN;
|
|
7210
|
+
const ptr2 = passStringToWasm0(product_coords, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
7211
|
+
const len2 = WASM_VECTOR_LEN;
|
|
7212
|
+
const ptr3 = passStringToWasm0(method, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
7213
|
+
const len3 = WASM_VECTOR_LEN;
|
|
7214
|
+
const ptr4 = passStringToWasm0(config_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
7215
|
+
const len4 = WASM_VECTOR_LEN;
|
|
7216
|
+
wasm.refine_barrier_with_gsm(retptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4, len4);
|
|
7217
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
7218
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
7219
|
+
deferred6_0 = r0;
|
|
7220
|
+
deferred6_1 = r1;
|
|
7221
|
+
return getStringFromWasm0(r0, r1);
|
|
7222
|
+
} finally {
|
|
7223
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
7224
|
+
wasm.__wbindgen_export4(deferred6_0, deferred6_1, 1);
|
|
7225
|
+
}
|
|
7226
|
+
}
|
|
7227
|
+
|
|
7228
|
+
/**
|
|
7229
|
+
* Reweight a biased 1D CV trace from JSON.
|
|
7230
|
+
* @param {string} trace_json
|
|
7231
|
+
* @param {string} config_json
|
|
7232
|
+
* @returns {string}
|
|
7233
|
+
*/
|
|
7234
|
+
export function reweight_free_energy(trace_json, config_json) {
|
|
7235
|
+
let deferred3_0;
|
|
7236
|
+
let deferred3_1;
|
|
7237
|
+
try {
|
|
7238
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
7239
|
+
const ptr0 = passStringToWasm0(trace_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
7240
|
+
const len0 = WASM_VECTOR_LEN;
|
|
7241
|
+
const ptr1 = passStringToWasm0(config_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
7242
|
+
const len1 = WASM_VECTOR_LEN;
|
|
7243
|
+
wasm.reweight_free_energy(retptr, ptr0, len0, ptr1, len1);
|
|
7244
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
7245
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
7246
|
+
deferred3_0 = r0;
|
|
7247
|
+
deferred3_1 = r1;
|
|
7248
|
+
return getStringFromWasm0(r0, r1);
|
|
7249
|
+
} finally {
|
|
7250
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
7251
|
+
wasm.__wbindgen_export4(deferred3_0, deferred3_1, 1);
|
|
7252
|
+
}
|
|
7253
|
+
}
|
|
7254
|
+
|
|
7255
|
+
/**
|
|
7256
|
+
* Reweight a 2D OPES trace from JSON.
|
|
7257
|
+
* @param {string} trace_json
|
|
7258
|
+
* @param {string} config_json
|
|
7259
|
+
* @returns {string}
|
|
7260
|
+
*/
|
|
7261
|
+
export function reweight_free_energy_2d(trace_json, config_json) {
|
|
7262
|
+
let deferred3_0;
|
|
7263
|
+
let deferred3_1;
|
|
7264
|
+
try {
|
|
7265
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
7266
|
+
const ptr0 = passStringToWasm0(trace_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
7267
|
+
const len0 = WASM_VECTOR_LEN;
|
|
7268
|
+
const ptr1 = passStringToWasm0(config_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
7269
|
+
const len1 = WASM_VECTOR_LEN;
|
|
7270
|
+
wasm.reweight_free_energy_2d(retptr, ptr0, len0, ptr1, len1);
|
|
7271
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
7272
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
7273
|
+
deferred3_0 = r0;
|
|
7274
|
+
deferred3_1 = r1;
|
|
7275
|
+
return getStringFromWasm0(r0, r1);
|
|
7276
|
+
} finally {
|
|
7277
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
7278
|
+
wasm.__wbindgen_export4(deferred3_0, deferred3_1, 1);
|
|
7279
|
+
}
|
|
7280
|
+
}
|
|
7281
|
+
|
|
7282
|
+
/**
|
|
7283
|
+
* Block-averaged reweighting of a correlated 1D CV trace from JSON.
|
|
7284
|
+
* @param {string} trace_json
|
|
7285
|
+
* @param {string} config_json
|
|
7286
|
+
* @returns {string}
|
|
7287
|
+
*/
|
|
7288
|
+
export function reweight_free_energy_correlated(trace_json, config_json) {
|
|
7289
|
+
let deferred3_0;
|
|
7290
|
+
let deferred3_1;
|
|
7291
|
+
try {
|
|
7292
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
7293
|
+
const ptr0 = passStringToWasm0(trace_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
7294
|
+
const len0 = WASM_VECTOR_LEN;
|
|
7295
|
+
const ptr1 = passStringToWasm0(config_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
7296
|
+
const len1 = WASM_VECTOR_LEN;
|
|
7297
|
+
wasm.reweight_free_energy_correlated(retptr, ptr0, len0, ptr1, len1);
|
|
7298
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
7299
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
7300
|
+
deferred3_0 = r0;
|
|
7301
|
+
deferred3_1 = r1;
|
|
7302
|
+
return getStringFromWasm0(r0, r1);
|
|
7303
|
+
} finally {
|
|
7304
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
7305
|
+
wasm.__wbindgen_export4(deferred3_0, deferred3_1, 1);
|
|
7306
|
+
}
|
|
7307
|
+
}
|
|
7308
|
+
|
|
7309
|
+
/**
|
|
7310
|
+
* Gillespie kinetic Monte Carlo from a JSON KmcConfig.
|
|
7311
|
+
* @param {string} config_json
|
|
7312
|
+
* @returns {string}
|
|
7313
|
+
*/
|
|
7314
|
+
export function run_kinetic_monte_carlo(config_json) {
|
|
7315
|
+
let deferred2_0;
|
|
7316
|
+
let deferred2_1;
|
|
7317
|
+
try {
|
|
7318
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
7319
|
+
const ptr0 = passStringToWasm0(config_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
7320
|
+
const len0 = WASM_VECTOR_LEN;
|
|
7321
|
+
wasm.run_kinetic_monte_carlo(retptr, ptr0, len0);
|
|
7322
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
7323
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
7324
|
+
deferred2_0 = r0;
|
|
7325
|
+
deferred2_1 = r1;
|
|
7326
|
+
return getStringFromWasm0(r0, r1);
|
|
7327
|
+
} finally {
|
|
7328
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
7329
|
+
wasm.__wbindgen_export4(deferred2_0, deferred2_1, 1);
|
|
7330
|
+
}
|
|
7331
|
+
}
|
|
7332
|
+
|
|
7333
|
+
/**
|
|
7334
|
+
* Well-tempered metadynamics on a UFF molecule from a JSON config.
|
|
7335
|
+
* @param {string} smiles
|
|
7336
|
+
* @param {string} coords_flat
|
|
7337
|
+
* @param {string} config_json
|
|
7338
|
+
* @returns {string}
|
|
7339
|
+
*/
|
|
7340
|
+
export function run_uff_metadynamics(smiles, coords_flat, config_json) {
|
|
7341
|
+
let deferred4_0;
|
|
7342
|
+
let deferred4_1;
|
|
7343
|
+
try {
|
|
7344
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
7345
|
+
const ptr0 = passStringToWasm0(smiles, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
7346
|
+
const len0 = WASM_VECTOR_LEN;
|
|
7347
|
+
const ptr1 = passStringToWasm0(coords_flat, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
7348
|
+
const len1 = WASM_VECTOR_LEN;
|
|
7349
|
+
const ptr2 = passStringToWasm0(config_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
7350
|
+
const len2 = WASM_VECTOR_LEN;
|
|
7351
|
+
wasm.run_uff_metadynamics(retptr, ptr0, len0, ptr1, len1, ptr2, len2);
|
|
7352
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
7353
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
7354
|
+
deferred4_0 = r0;
|
|
7355
|
+
deferred4_1 = r1;
|
|
7356
|
+
return getStringFromWasm0(r0, r1);
|
|
7357
|
+
} finally {
|
|
7358
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
7359
|
+
wasm.__wbindgen_export4(deferred4_0, deferred4_1, 1);
|
|
7360
|
+
}
|
|
7361
|
+
}
|
|
7362
|
+
|
|
7363
|
+
/**
|
|
7364
|
+
* OPES-style enhanced sampling on a UFF molecule from a JSON config.
|
|
7365
|
+
* @param {string} smiles
|
|
7366
|
+
* @param {string} coords_flat
|
|
7367
|
+
* @param {string} config_json
|
|
7368
|
+
* @returns {string}
|
|
7369
|
+
*/
|
|
7370
|
+
export function run_uff_opes(smiles, coords_flat, config_json) {
|
|
7371
|
+
let deferred4_0;
|
|
7372
|
+
let deferred4_1;
|
|
7373
|
+
try {
|
|
7374
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
7375
|
+
const ptr0 = passStringToWasm0(smiles, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
7376
|
+
const len0 = WASM_VECTOR_LEN;
|
|
7377
|
+
const ptr1 = passStringToWasm0(coords_flat, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
7378
|
+
const len1 = WASM_VECTOR_LEN;
|
|
7379
|
+
const ptr2 = passStringToWasm0(config_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
7380
|
+
const len2 = WASM_VECTOR_LEN;
|
|
7381
|
+
wasm.run_uff_opes(retptr, ptr0, len0, ptr1, len1, ptr2, len2);
|
|
7382
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
7383
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
7384
|
+
deferred4_0 = r0;
|
|
7385
|
+
deferred4_1 = r1;
|
|
7386
|
+
return getStringFromWasm0(r0, r1);
|
|
7387
|
+
} finally {
|
|
7388
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
7389
|
+
wasm.__wbindgen_export4(deferred4_0, deferred4_1, 1);
|
|
7390
|
+
}
|
|
7391
|
+
}
|
|
7392
|
+
|
|
6628
7393
|
/**
|
|
6629
7394
|
* Search conformers by sampling, torsion refinement, and UFF ranking.
|
|
6630
7395
|
*
|
|
@@ -6686,6 +7451,36 @@ export function search_conformers_with_uff_seed64(smiles, n_samples, seed, rmsd_
|
|
|
6686
7451
|
}
|
|
6687
7452
|
}
|
|
6688
7453
|
|
|
7454
|
+
/**
|
|
7455
|
+
* Solve 3D-RISM from grid arrays and a JSON config.
|
|
7456
|
+
* @param {string} beta_u
|
|
7457
|
+
* @param {string} susceptibility
|
|
7458
|
+
* @param {string} config_json
|
|
7459
|
+
* @returns {string}
|
|
7460
|
+
*/
|
|
7461
|
+
export function solve_3d_rism(beta_u, susceptibility, config_json) {
|
|
7462
|
+
let deferred4_0;
|
|
7463
|
+
let deferred4_1;
|
|
7464
|
+
try {
|
|
7465
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
7466
|
+
const ptr0 = passStringToWasm0(beta_u, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
7467
|
+
const len0 = WASM_VECTOR_LEN;
|
|
7468
|
+
const ptr1 = passStringToWasm0(susceptibility, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
7469
|
+
const len1 = WASM_VECTOR_LEN;
|
|
7470
|
+
const ptr2 = passStringToWasm0(config_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
7471
|
+
const len2 = WASM_VECTOR_LEN;
|
|
7472
|
+
wasm.solve_3d_rism(retptr, ptr0, len0, ptr1, len1, ptr2, len2);
|
|
7473
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
7474
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
7475
|
+
deferred4_0 = r0;
|
|
7476
|
+
deferred4_1 = r1;
|
|
7477
|
+
return getStringFromWasm0(r0, r1);
|
|
7478
|
+
} finally {
|
|
7479
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
7480
|
+
wasm.__wbindgen_export4(deferred4_0, deferred4_1, 1);
|
|
7481
|
+
}
|
|
7482
|
+
}
|
|
7483
|
+
|
|
6689
7484
|
/**
|
|
6690
7485
|
* Solve the extended Hückel problem for a geometry.
|
|
6691
7486
|
*
|
|
@@ -7719,7 +8514,7 @@ function __wbg_get_imports() {
|
|
|
7719
8514
|
const a = state0.a;
|
|
7720
8515
|
state0.a = 0;
|
|
7721
8516
|
try {
|
|
7722
|
-
return
|
|
8517
|
+
return __wasm_bindgen_func_elem_632(a, state0.b, arg0, arg1);
|
|
7723
8518
|
} finally {
|
|
7724
8519
|
state0.a = a;
|
|
7725
8520
|
}
|
|
@@ -7737,7 +8532,7 @@ function __wbg_get_imports() {
|
|
|
7737
8532
|
const a = state0.a;
|
|
7738
8533
|
state0.a = 0;
|
|
7739
8534
|
try {
|
|
7740
|
-
return
|
|
8535
|
+
return __wasm_bindgen_func_elem_632(a, state0.b, arg0, arg1);
|
|
7741
8536
|
} finally {
|
|
7742
8537
|
state0.a = a;
|
|
7743
8538
|
}
|
|
@@ -8023,18 +8818,18 @@ function __wbg_get_imports() {
|
|
|
8023
8818
|
return addHeapObject(ret);
|
|
8024
8819
|
},
|
|
8025
8820
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
8026
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
8027
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
8821
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 168, function: Function { arguments: [Externref], shim_idx: 169, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
8822
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_4341, __wasm_bindgen_func_elem_4350);
|
|
8028
8823
|
return addHeapObject(ret);
|
|
8029
8824
|
},
|
|
8030
8825
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
8031
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
8032
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
8826
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 168, function: Function { arguments: [Externref], shim_idx: 33, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
8827
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_4341, __wasm_bindgen_func_elem_650);
|
|
8033
8828
|
return addHeapObject(ret);
|
|
8034
8829
|
},
|
|
8035
8830
|
__wbindgen_cast_0000000000000003: function(arg0, arg1) {
|
|
8036
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
8037
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
8831
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 168, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 169, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
8832
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_4341, __wasm_bindgen_func_elem_4350_2);
|
|
8038
8833
|
return addHeapObject(ret);
|
|
8039
8834
|
},
|
|
8040
8835
|
__wbindgen_cast_0000000000000004: function(arg0) {
|
|
@@ -8080,18 +8875,18 @@ function __wbg_get_imports() {
|
|
|
8080
8875
|
};
|
|
8081
8876
|
}
|
|
8082
8877
|
|
|
8083
|
-
function
|
|
8084
|
-
wasm.
|
|
8878
|
+
function __wasm_bindgen_func_elem_4350(arg0, arg1, arg2) {
|
|
8879
|
+
wasm.__wasm_bindgen_func_elem_4350(arg0, arg1, addHeapObject(arg2));
|
|
8085
8880
|
}
|
|
8086
8881
|
|
|
8087
|
-
function
|
|
8088
|
-
wasm.
|
|
8882
|
+
function __wasm_bindgen_func_elem_4350_2(arg0, arg1, arg2) {
|
|
8883
|
+
wasm.__wasm_bindgen_func_elem_4350_2(arg0, arg1, addHeapObject(arg2));
|
|
8089
8884
|
}
|
|
8090
8885
|
|
|
8091
|
-
function
|
|
8886
|
+
function __wasm_bindgen_func_elem_650(arg0, arg1, arg2) {
|
|
8092
8887
|
try {
|
|
8093
8888
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
8094
|
-
wasm.
|
|
8889
|
+
wasm.__wasm_bindgen_func_elem_650(retptr, arg0, arg1, addHeapObject(arg2));
|
|
8095
8890
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
8096
8891
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
8097
8892
|
if (r1) {
|
|
@@ -8102,8 +8897,8 @@ function __wasm_bindgen_func_elem_781(arg0, arg1, arg2) {
|
|
|
8102
8897
|
}
|
|
8103
8898
|
}
|
|
8104
8899
|
|
|
8105
|
-
function
|
|
8106
|
-
wasm.
|
|
8900
|
+
function __wasm_bindgen_func_elem_632(arg0, arg1, arg2, arg3) {
|
|
8901
|
+
wasm.__wasm_bindgen_func_elem_632(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
8107
8902
|
}
|
|
8108
8903
|
|
|
8109
8904
|
|