sci-form-wasm 0.10.1 → 0.10.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "sci-form-wasm",
3
3
  "type": "module",
4
4
  "description": "WASM/TypeScript bindings for high-performance 3D molecular conformer generation",
5
- "version": "0.10.1",
5
+ "version": "0.10.6",
6
6
  "license": "MIT",
7
7
  "repository": {
8
8
  "type": "git",
@@ -80,6 +80,10 @@ export function compute_empirical_pka(smiles: string): string;
80
80
  */
81
81
  export function compute_esp(elements: string, coords_flat: string, spacing: number, padding: number): string;
82
82
 
83
+ export function compute_esp_grid_accelerated(elements: string, coords_flat: string, spacing: number, padding: number, execution_mode: string): Promise<string>;
84
+
85
+ export function compute_esp_grid_accelerated_typed(elements: string, coords_flat: string, spacing: number, padding: number, execution_mode: string): Promise<Float64Array>;
86
+
83
87
  /**
84
88
  * Get ESP grid metadata (origin, spacing, dimensions) as JSON.
85
89
  */
@@ -171,6 +175,11 @@ export function compute_molecular_descriptors(smiles: string): string;
171
175
  */
172
176
  export function compute_nmr_spectrum(smiles: string, nucleus: string, gamma: number, ppm_min: number, ppm_max: number, n_points: number): string;
173
177
 
178
+ /**
179
+ * Generate a complete NMR spectrum using optional 3D coordinates for ³J couplings.
180
+ */
181
+ export function compute_nmr_spectrum_with_coords(smiles: string, coords_flat_json: string, nucleus: string, gamma: number, ppm_min: number, ppm_max: number, n_points: number): string;
182
+
174
183
  /**
175
184
  * Non-polar solvation energy from SASA with atomic solvation parameters.
176
185
  *
@@ -190,6 +199,8 @@ export function compute_nonpolar_solvation(elements: string, coords_flat: string
190
199
  */
191
200
  export function compute_orbital_mesh(elements_json: string, coords_flat_json: string, method: string, mo_index: number, spacing: number, padding: number, isovalue: number): string;
192
201
 
202
+ export function compute_orbital_mesh_accelerated(elements_json: string, coords_flat_json: string, method: string, mo_index: number, spacing: number, padding: number, isovalue: number, execution_mode: string): Promise<string>;
203
+
193
204
  /**
194
205
  * Run a PM3 semi-empirical calculation.
195
206
  */
@@ -277,6 +288,11 @@ export function compute_uv_vis_spectrum(elements: string, coords_flat: string, s
277
288
  */
278
289
  export function compute_vibrational_analysis(elements_json: string, coords_flat_json: string, method: string, step_size: number): string;
279
290
 
291
+ /**
292
+ * Perform vibrational analysis using the fast UFF analytical Hessian path.
293
+ */
294
+ export function compute_vibrational_analysis_uff(smiles: string, elements_json: string, coords_flat_json: string, step_size: number): string;
295
+
280
296
  /**
281
297
  * Run an xTB tight-binding calculation.
282
298
  */
@@ -296,11 +312,19 @@ export function create_unit_cell(a: number, b: number, c: number, alpha: number,
296
312
  */
297
313
  export function eht_calculate(elements: string, coords_flat: string, k: number): string;
298
314
 
315
+ export function eht_density_grid_accelerated(elements: string, coords_flat: string, spacing: number, padding: number, execution_mode: string): Promise<string>;
316
+
317
+ export function eht_density_grid_accelerated_typed(elements: string, coords_flat: string, spacing: number, padding: number, execution_mode: string): Promise<Float32Array>;
318
+
299
319
  /**
300
320
  * Run EHT or route to UFF fallback based on support/confidence.
301
321
  */
302
322
  export function eht_or_uff_fallback(smiles: string, elements: string, coords_flat: string, allow_experimental_eht: boolean): string;
303
323
 
324
+ export function eht_orbital_grid_accelerated(elements: string, coords_flat: string, mo_index: number, spacing: number, padding: number, execution_mode: string): Promise<string>;
325
+
326
+ export function eht_orbital_grid_accelerated_typed(elements: string, coords_flat: string, mo_index: number, spacing: number, padding: number, execution_mode: string): Promise<Float32Array>;
327
+
304
328
  /**
305
329
  * Compute orbital grid from precomputed EHT coefficients as Float32Array.
306
330
  */
@@ -358,6 +382,8 @@ export function estimate_workers(n_items: number, max_workers: number): number;
358
382
 
359
383
  export function initThreadPool(num_threads: number): Promise<any>;
360
384
 
385
+ export function init_webgpu(): Promise<string>;
386
+
361
387
  /**
362
388
  * Pack a batch of conformer results into Arrow-compatible columnar format.
363
389
  */
@@ -417,74 +443,87 @@ export class wbg_rayon_PoolBuilder {
417
443
 
418
444
  export function wbg_rayon_start_worker(receiver: number): void;
419
445
 
446
+ export function webgpu_status(): string;
447
+
420
448
  export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
421
449
 
422
450
  export interface InitOutput {
423
- readonly compute_charges: (a: number, b: number, c: number) => void;
424
- readonly compute_sasa: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
425
- readonly compute_population: (a: number, b: number, c: number, d: number, e: number) => void;
426
- readonly compute_bond_orders: (a: number, b: number, c: number, d: number, e: number) => void;
427
- readonly compute_dipole: (a: number, b: number, c: number, d: number, e: number) => void;
428
- readonly compute_dos: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
429
- readonly compute_rmsd: (a: number, b: number, c: number, d: number, e: number) => void;
430
- readonly compute_pm3: (a: number, b: number, c: number, d: number, e: number) => void;
431
- readonly compute_xtb: (a: number, b: number, c: number, d: number, e: number) => void;
432
- readonly compute_hf3c: (a: number, b: number, c: number, d: number, e: number) => void;
433
- readonly compute_hf3c_custom: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
434
- readonly compute_ani: (a: number, b: number, c: number, d: number, e: number) => void;
435
- readonly create_unit_cell: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
436
- readonly assemble_framework: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
437
- readonly compute_nonpolar_solvation: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
438
- readonly compute_gb_solvation: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => void;
439
- readonly compute_md_trajectory: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
440
- readonly compute_md_trajectory_nvt: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => void;
441
- readonly compute_simplified_neb_path: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => void;
442
- readonly search_conformers_with_uff: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
451
+ readonly compute_uff_energy: (a: number, b: number, c: number, d: number, e: number) => void;
452
+ readonly compute_uff_energy_with_aromatic_heuristics: (a: number, b: number, c: number, d: number, e: number) => void;
453
+ readonly compute_mmff94_energy: (a: number, b: number, c: number, d: number, e: number) => void;
454
+ readonly compute_empirical_pka: (a: number, b: number, c: number) => void;
443
455
  readonly compute_frontier_descriptors: (a: number, b: number, c: number, d: number, e: number) => void;
444
456
  readonly compute_fukui_descriptors: (a: number, b: number, c: number, d: number, e: number) => void;
445
457
  readonly compute_reactivity_ranking: (a: number, b: number, c: number, d: number, e: number) => void;
446
458
  readonly compute_uv_vis_spectrum: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
447
459
  readonly analyze_graph_features: (a: number, b: number, c: number) => void;
448
460
  readonly compute_topology: (a: number, b: number, c: number, d: number, e: number) => void;
461
+ readonly compute_stda_uvvis: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => void;
462
+ readonly compute_vibrational_analysis: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
463
+ readonly compute_vibrational_analysis_uff: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
464
+ readonly compute_ir_spectrum: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
465
+ readonly predict_nmr_shifts: (a: number, b: number, c: number) => void;
466
+ readonly predict_nmr_couplings: (a: number, b: number, c: number, d: number, e: number) => void;
467
+ readonly compute_nmr_spectrum: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
468
+ readonly compute_nmr_spectrum_with_coords: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => void;
469
+ readonly compute_hose_codes: (a: number, b: number, c: number, d: number) => void;
470
+ readonly analyze_stereo: (a: number, b: number, c: number, d: number, e: number) => void;
449
471
  readonly version: (a: number) => void;
450
472
  readonly system_capabilities: (a: number, b: number, c: number) => void;
451
473
  readonly system_method_plan: (a: number, b: number, c: number) => void;
452
474
  readonly compare_methods: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
453
- readonly compute_uff_energy: (a: number, b: number, c: number, d: number, e: number) => void;
454
- readonly compute_uff_energy_with_aromatic_heuristics: (a: number, b: number, c: number, d: number, e: number) => void;
455
- readonly compute_mmff94_energy: (a: number, b: number, c: number, d: number, e: number) => void;
456
- readonly compute_empirical_pka: (a: number, b: number, c: number) => void;
457
- readonly eht_calculate: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
458
- readonly eht_or_uff_fallback: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
459
- readonly eht_orbital_mesh: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
460
- readonly eht_support: (a: number, b: number, c: number) => void;
461
- readonly eht_orbital_grid_typed: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
462
- readonly eht_orbital_grid_from_coefficients_typed: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
463
- readonly eht_volumetric_grid_info: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
464
- readonly compute_orbital_mesh: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => void;
475
+ readonly compute_md_trajectory: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
476
+ readonly compute_md_trajectory_nvt: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => void;
477
+ readonly compute_simplified_neb_path: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => void;
478
+ readonly search_conformers_with_uff: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
465
479
  readonly compute_sssr: (a: number, b: number, c: number) => void;
466
480
  readonly compute_ecfp: (a: number, b: number, c: number, d: number, e: number) => void;
467
481
  readonly compute_tanimoto: (a: number, b: number, c: number, d: number, e: number) => void;
468
482
  readonly butina_cluster: (a: number, b: number, c: number, d: number) => void;
469
483
  readonly compute_rmsd_matrix: (a: number, b: number, c: number) => void;
484
+ readonly compute_pm3: (a: number, b: number, c: number, d: number, e: number) => void;
485
+ readonly compute_xtb: (a: number, b: number, c: number, d: number, e: number) => void;
486
+ readonly compute_hf3c: (a: number, b: number, c: number, d: number, e: number) => void;
487
+ readonly compute_hf3c_custom: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
488
+ readonly compute_ani: (a: number, b: number, c: number, d: number, e: number) => void;
489
+ readonly init_webgpu: () => number;
490
+ readonly webgpu_status: (a: number) => void;
470
491
  readonly compute_esp: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
471
492
  readonly compute_esp_grid_typed: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
472
493
  readonly compute_esp_grid_info: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
473
- readonly analyze_stereo: (a: number, b: number, c: number, d: number, e: number) => void;
494
+ readonly compute_esp_grid_accelerated: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
495
+ readonly compute_esp_grid_accelerated_typed: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
496
+ readonly eht_calculate: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
497
+ readonly eht_or_uff_fallback: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
498
+ readonly eht_orbital_mesh: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
499
+ readonly eht_support: (a: number, b: number, c: number) => void;
500
+ readonly eht_orbital_grid_typed: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
501
+ readonly eht_orbital_grid_from_coefficients_typed: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
502
+ readonly eht_volumetric_grid_info: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
503
+ readonly eht_orbital_grid_accelerated: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => number;
504
+ readonly eht_density_grid_accelerated: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
505
+ readonly eht_orbital_grid_accelerated_typed: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => number;
506
+ readonly eht_density_grid_accelerated_typed: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
507
+ readonly compute_orbital_mesh: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => void;
508
+ readonly compute_orbital_mesh_accelerated: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number) => number;
509
+ readonly compute_charges: (a: number, b: number, c: number) => void;
510
+ readonly compute_sasa: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
511
+ readonly compute_population: (a: number, b: number, c: number, d: number, e: number) => void;
512
+ readonly compute_bond_orders: (a: number, b: number, c: number, d: number, e: number) => void;
513
+ readonly compute_dipole: (a: number, b: number, c: number, d: number, e: number) => void;
514
+ readonly compute_dos: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
515
+ readonly compute_rmsd: (a: number, b: number, c: number, d: number, e: number) => void;
516
+ readonly compute_nonpolar_solvation: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
517
+ readonly compute_gb_solvation: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => void;
474
518
  readonly embed: (a: number, b: number, c: number, d: number) => void;
475
519
  readonly embed_coords: (a: number, b: number, c: number, d: number) => void;
476
520
  readonly embed_coords_typed: (a: number, b: number, c: number) => number;
477
521
  readonly embed_batch: (a: number, b: number, c: number, d: number) => void;
478
522
  readonly parse_smiles: (a: number, b: number, c: number) => void;
523
+ readonly create_unit_cell: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
524
+ readonly assemble_framework: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
479
525
  readonly compute_ml_properties: (a: number, b: number, c: number) => void;
480
526
  readonly compute_molecular_descriptors: (a: number, b: number, c: number) => void;
481
- readonly compute_stda_uvvis: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => void;
482
- readonly compute_vibrational_analysis: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
483
- readonly compute_ir_spectrum: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
484
- readonly predict_nmr_shifts: (a: number, b: number, c: number) => void;
485
- readonly predict_nmr_couplings: (a: number, b: number, c: number, d: number, e: number) => void;
486
- readonly compute_nmr_spectrum: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
487
- readonly compute_hose_codes: (a: number, b: number, c: number, d: number) => void;
488
527
  readonly pack_batch_arrow: (a: number, b: number, c: number) => void;
489
528
  readonly split_worker_tasks: (a: number, b: number, c: number, d: number, e: number) => void;
490
529
  readonly estimate_workers: (a: number, b: number) => number;
@@ -494,11 +533,17 @@ export interface InitOutput {
494
533
  readonly wbg_rayon_poolbuilder_build: (a: number) => void;
495
534
  readonly initThreadPool: (a: number) => number;
496
535
  readonly wbg_rayon_start_worker: (a: number) => void;
536
+ readonly __wasm_bindgen_func_elem_2470: (a: number, b: number) => void;
537
+ readonly __wasm_bindgen_func_elem_709: (a: number, b: number, c: number, d: number) => void;
538
+ readonly __wasm_bindgen_func_elem_623: (a: number, b: number, c: number, d: number) => void;
539
+ readonly __wasm_bindgen_func_elem_2476: (a: number, b: number, c: number) => void;
540
+ readonly __wasm_bindgen_func_elem_2476_2: (a: number, b: number, c: number) => void;
497
541
  readonly memory: WebAssembly.Memory;
498
- readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
499
542
  readonly __wbindgen_export: (a: number, b: number) => number;
500
543
  readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
501
- readonly __wbindgen_export3: (a: number, b: number, c: number) => void;
544
+ readonly __wbindgen_export3: (a: number) => void;
545
+ readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
546
+ readonly __wbindgen_export4: (a: number, b: number, c: number) => void;
502
547
  readonly __wbindgen_thread_destroy: (a?: number, b?: number, c?: number) => void;
503
548
  readonly __wbindgen_start: (a: number) => void;
504
549
  }