@kent-tokyo/chematic 0.1.25 → 0.1.36
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/chematic_wasm.d.ts +293 -4
- package/chematic_wasm.js +750 -4
- package/chematic_wasm_bg.wasm +0 -0
- package/package.json +2 -2
package/chematic_wasm.d.ts
CHANGED
|
@@ -318,6 +318,14 @@ export class MolHandle {
|
|
|
318
318
|
* Sum of EState indices over all heavy atoms.
|
|
319
319
|
*/
|
|
320
320
|
sum_estate(): number;
|
|
321
|
+
/**
|
|
322
|
+
* InChI string representation of the molecule.
|
|
323
|
+
*/
|
|
324
|
+
to_inchi(): string;
|
|
325
|
+
/**
|
|
326
|
+
* InChIKey (27-character identifier) for the molecule.
|
|
327
|
+
*/
|
|
328
|
+
to_inchikey(): string;
|
|
321
329
|
/**
|
|
322
330
|
* Topological polar surface area (Ų).
|
|
323
331
|
*/
|
|
@@ -343,6 +351,14 @@ export function add_hydrogens(mol: MolHandle): MolHandle;
|
|
|
343
351
|
*/
|
|
344
352
|
export function atom_pair_bitvec(mol: MolHandle): Uint8Array;
|
|
345
353
|
|
|
354
|
+
/**
|
|
355
|
+
* Check whether a reaction SMILES is atom-balanced.
|
|
356
|
+
*
|
|
357
|
+
* Returns JSON: `{ "balanced": true|false, "diff": ["C: 1 reactant vs 2 product", ...] }`
|
|
358
|
+
* Returns `"error:<msg>"` on parse failure.
|
|
359
|
+
*/
|
|
360
|
+
export function balance_check_json(reaction_smiles: string): string;
|
|
361
|
+
|
|
346
362
|
/**
|
|
347
363
|
* Number of BRICS fragments produced by fragmenting the molecule.
|
|
348
364
|
*
|
|
@@ -399,6 +415,49 @@ export function cdxml_to_smiles_json(cdxml: string): string;
|
|
|
399
415
|
*/
|
|
400
416
|
export function cip_assignments_json(mol: MolHandle): string;
|
|
401
417
|
|
|
418
|
+
/**
|
|
419
|
+
* Compare multiple SMILES strings (up to 256 by default).
|
|
420
|
+
* Accepts a delimiter-separated list (e.g., newline or comma).
|
|
421
|
+
*
|
|
422
|
+
* # Example (JS)
|
|
423
|
+
* ```javascript
|
|
424
|
+
* const smilesList = "c1ccccc1\nCc1ccccc1\nCCc1ccccc1";
|
|
425
|
+
* const json = module.compare_molecules_batch_json(smilesList, "\n");
|
|
426
|
+
* const comparison = JSON.parse(json);
|
|
427
|
+
* ```
|
|
428
|
+
*/
|
|
429
|
+
export function compare_molecules_batch_json(smiles_batch: string, delimiter: string): string;
|
|
430
|
+
|
|
431
|
+
/**
|
|
432
|
+
* Compare two or more SMILES strings (JSON string output).
|
|
433
|
+
* Returns the JSON representation of a `MoleculeComparison` struct.
|
|
434
|
+
*
|
|
435
|
+
* # Example (JS)
|
|
436
|
+
* ```javascript
|
|
437
|
+
* const json = module.compare_molecules_json("c1ccccc1", "Cc1ccccc1");
|
|
438
|
+
* const comparison = JSON.parse(json);
|
|
439
|
+
* console.log(comparison.pairwise[0].similarities.ecfp4_tanimoto);
|
|
440
|
+
* ```
|
|
441
|
+
*/
|
|
442
|
+
export function compare_molecules_json(smiles1: string, smiles2: string): string;
|
|
443
|
+
|
|
444
|
+
/**
|
|
445
|
+
* Compute direct Coulomb energy for a molecule with Gasteiger partial charges.
|
|
446
|
+
*
|
|
447
|
+
* Returns JSON object: `{ "coulomb_energy": E, "unit": "kcal/mol" }`
|
|
448
|
+
*
|
|
449
|
+
* # Arguments
|
|
450
|
+
* * `mol` - Molecule to evaluate
|
|
451
|
+
*
|
|
452
|
+
* # Example (JavaScript)
|
|
453
|
+
* ```js
|
|
454
|
+
* const mol = parse_smiles("CCO");
|
|
455
|
+
* const result = coulomb_energy_json(mol);
|
|
456
|
+
* // { "coulomb_energy": -12.34, "unit": "kcal/mol" }
|
|
457
|
+
* ```
|
|
458
|
+
*/
|
|
459
|
+
export function coulomb_energy_json(mol: MolHandle): string;
|
|
460
|
+
|
|
402
461
|
/**
|
|
403
462
|
* Return the CPK color (CSS hex string) for the given element symbol.
|
|
404
463
|
*
|
|
@@ -497,11 +556,29 @@ export function dice_maccs(a: MolHandle, b: MolHandle): number;
|
|
|
497
556
|
*/
|
|
498
557
|
export function ecfp4_bitvec(mol: MolHandle): Uint8Array;
|
|
499
558
|
|
|
559
|
+
/**
|
|
560
|
+
* Like `ecfp4_bitvec` but with explicit chirality control.
|
|
561
|
+
*
|
|
562
|
+
* When `use_chirality=true`, tetrahedral stereochemistry is included in the
|
|
563
|
+
* initial atom hash, making enantiomers have different fingerprints.
|
|
564
|
+
* When `false` (default), chirality is ignored.
|
|
565
|
+
*/
|
|
566
|
+
export function ecfp4_bitvec_with_chirality(mol: MolHandle, use_chirality: boolean): Uint8Array;
|
|
567
|
+
|
|
500
568
|
/**
|
|
501
569
|
* ECFP6 (radius-3) fingerprint as a bit-packed byte vector (256 bytes = 2048 bits).
|
|
502
570
|
*/
|
|
503
571
|
export function ecfp6_bitvec(mol: MolHandle): Uint8Array;
|
|
504
572
|
|
|
573
|
+
/**
|
|
574
|
+
* Like `ecfp6_bitvec` but with explicit chirality control.
|
|
575
|
+
*
|
|
576
|
+
* When `use_chirality=true`, tetrahedral stereochemistry is included in the
|
|
577
|
+
* initial atom hash, making enantiomers have different fingerprints.
|
|
578
|
+
* When `false` (default), chirality is ignored.
|
|
579
|
+
*/
|
|
580
|
+
export function ecfp6_bitvec_with_chirality(mol: MolHandle, use_chirality: boolean): Uint8Array;
|
|
581
|
+
|
|
505
582
|
/**
|
|
506
583
|
* Compute a fingerprint bit-vector with configurable ECFP radius and bit width.
|
|
507
584
|
*
|
|
@@ -511,8 +588,12 @@ export function ecfp6_bitvec(mol: MolHandle): Uint8Array;
|
|
|
511
588
|
*
|
|
512
589
|
* The hash modulo is applied at fingerprint-generation time (`id % nbits`),
|
|
513
590
|
* so no post-processing fold is needed.
|
|
591
|
+
* Compute a custom ECFP (Extended Connectivity FingerPrint) with specified radius and bit count.
|
|
592
|
+
*
|
|
593
|
+
* When `use_chirality=true`, tetrahedral stereochemistry is included in the initial
|
|
594
|
+
* atom hash. When `false` (default), chirality is ignored.
|
|
514
595
|
*/
|
|
515
|
-
export function ecfp_bitvec_custom(mol: MolHandle, radius: number, nbits: number): Uint8Array;
|
|
596
|
+
export function ecfp_bitvec_custom(mol: MolHandle, radius: number, nbits: number, use_chirality: boolean): Uint8Array;
|
|
516
597
|
|
|
517
598
|
/**
|
|
518
599
|
* Enumerate all stereoisomers arising from unspecified tetrahedral stereocenters.
|
|
@@ -551,11 +632,32 @@ export function fcfp4_bitvec(mol: MolHandle): Uint8Array;
|
|
|
551
632
|
*/
|
|
552
633
|
export function fcfp6_bitvec(mol: MolHandle): Uint8Array;
|
|
553
634
|
|
|
635
|
+
/**
|
|
636
|
+
* Analyze a reaction SMILES and return the reaction center as JSON.
|
|
637
|
+
*
|
|
638
|
+
* JSON schema: `{ broken: [[a1,a2],...], formed: [[a1,a2],...], changed: [a,...] }`
|
|
639
|
+
* where atom indices are 0-based within the first reactant molecule.
|
|
640
|
+
* Returns an error string prefixed with `"error:"` on failure.
|
|
641
|
+
*/
|
|
642
|
+
export function find_reaction_center_json(reaction_smiles: string): string;
|
|
643
|
+
|
|
554
644
|
/**
|
|
555
645
|
* Gasteiger-Marsili PEOE partial charges as a JSON array of f64.
|
|
556
646
|
*/
|
|
557
647
|
export function gasteiger_charges_json(mol: MolHandle): string;
|
|
558
648
|
|
|
649
|
+
/**
|
|
650
|
+
* Generate 3D coordinates from SMILES (raw distance geometry, no minimization).
|
|
651
|
+
* Returns PDB format string with atoms positioned in 3D space.
|
|
652
|
+
*
|
|
653
|
+
* # Example (JS)
|
|
654
|
+
* ```javascript
|
|
655
|
+
* const pdbStr = module.generate_3d_from_smiles("c1ccccc1");
|
|
656
|
+
* console.log(pdbStr); // PDB file content
|
|
657
|
+
* ```
|
|
658
|
+
*/
|
|
659
|
+
export function generate_3d_from_smiles(smiles: string): string;
|
|
660
|
+
|
|
559
661
|
/**
|
|
560
662
|
* Generate energy-minimized 3D coordinates and return a PDB string.
|
|
561
663
|
*
|
|
@@ -565,6 +667,19 @@ export function gasteiger_charges_json(mol: MolHandle): string;
|
|
|
565
667
|
*/
|
|
566
668
|
export function generate_3d_minimized_pdb(mol: MolHandle): string;
|
|
567
669
|
|
|
670
|
+
/**
|
|
671
|
+
* Generate 3D coordinates and minimize from SMILES string.
|
|
672
|
+
* Pipeline: distance geometry → DREIDING minimization.
|
|
673
|
+
* Better geometry quality than raw DG; suitable for graphics.
|
|
674
|
+
*
|
|
675
|
+
* # Example (JS)
|
|
676
|
+
* ```javascript
|
|
677
|
+
* const pdbStr = module.generate_3d_optimized_pdb("c1ccccc1");
|
|
678
|
+
* console.log(pdbStr); // PDB file with optimized geometry
|
|
679
|
+
* ```
|
|
680
|
+
*/
|
|
681
|
+
export function generate_3d_optimized_pdb(smiles: string): string;
|
|
682
|
+
|
|
568
683
|
/**
|
|
569
684
|
* Generate 3D coordinates for the molecule and return a PDB string.
|
|
570
685
|
*
|
|
@@ -629,6 +744,28 @@ export function get_descriptors_json(mol: MolHandle): string;
|
|
|
629
744
|
*/
|
|
630
745
|
export function identify_functional_groups(mol: MolHandle): string;
|
|
631
746
|
|
|
747
|
+
/**
|
|
748
|
+
* Generate InChI string from SMILES.
|
|
749
|
+
*
|
|
750
|
+
* Returns `"error:<msg>"` on parse failure.
|
|
751
|
+
*/
|
|
752
|
+
export function inchi_from_smiles(smiles: string): string;
|
|
753
|
+
|
|
754
|
+
/**
|
|
755
|
+
* Generate InChIKey from SMILES (27-character identifier).
|
|
756
|
+
*
|
|
757
|
+
* Returns `"error:<msg>"` on parse failure.
|
|
758
|
+
*/
|
|
759
|
+
export function inchikey_from_smiles(smiles: string): string;
|
|
760
|
+
|
|
761
|
+
/**
|
|
762
|
+
* Invert the stereochemistry of a tetrahedral stereocenter (U/D wedge bonds).
|
|
763
|
+
*
|
|
764
|
+
* If the atom has no wedge/dash bonds, returns an unchanged copy.
|
|
765
|
+
* Returns error if atom_idx is invalid.
|
|
766
|
+
*/
|
|
767
|
+
export function invert_stereocenter_at(mol: MolHandle, atom_idx: number): MolHandle;
|
|
768
|
+
|
|
632
769
|
/**
|
|
633
770
|
* Returns `true` if the SMILES string can be parsed without error.
|
|
634
771
|
*/
|
|
@@ -689,6 +826,20 @@ export function maxmin_picks_ecfp4_json(smiles_json: string, n: number): string;
|
|
|
689
826
|
*/
|
|
690
827
|
export function mcs_smiles_json(smiles_json: string): string;
|
|
691
828
|
|
|
829
|
+
/**
|
|
830
|
+
* Optimize molecular geometry using DREIDING force field.
|
|
831
|
+
*
|
|
832
|
+
* Performs geometry minimization with DREIDING force field parameters.
|
|
833
|
+
* Returns minimized coordinate PDB.
|
|
834
|
+
*
|
|
835
|
+
* # Arguments
|
|
836
|
+
* * `mol` - Molecule to optimize
|
|
837
|
+
*
|
|
838
|
+
* # Returns
|
|
839
|
+
* PDB format string with optimized coordinates
|
|
840
|
+
*/
|
|
841
|
+
export function minimize_dreiding_json(mol: MolHandle): string;
|
|
842
|
+
|
|
692
843
|
/**
|
|
693
844
|
* Find matched molecular pairs in a set of molecules as JSON.
|
|
694
845
|
*
|
|
@@ -714,6 +865,13 @@ export function mcs_smiles_json(smiles_json: string): string;
|
|
|
714
865
|
*/
|
|
715
866
|
export function mmp_pairs_json(smiles_json: string): string;
|
|
716
867
|
|
|
868
|
+
/**
|
|
869
|
+
* Parse a Tripos MOL2 string and return SMILES.
|
|
870
|
+
*
|
|
871
|
+
* Returns `"error:<msg>"` on failure.
|
|
872
|
+
*/
|
|
873
|
+
export function mol2_to_smiles(mol2_str: string): string;
|
|
874
|
+
|
|
717
875
|
/**
|
|
718
876
|
* Parse a MOL V2000 string and return 2D coordinates as a JSON array.
|
|
719
877
|
*
|
|
@@ -825,6 +983,19 @@ export function mol_with_bond_added(mol: MolHandle, a: number, b: number, order:
|
|
|
825
983
|
*/
|
|
826
984
|
export function mol_with_bond_removed(mol: MolHandle, idx: number): MolHandle;
|
|
827
985
|
|
|
986
|
+
/**
|
|
987
|
+
* Generate a complete molecular report (JSON string) from a SMILES.
|
|
988
|
+
* Returns the JSON representation of a `MoleculeReport` struct.
|
|
989
|
+
*
|
|
990
|
+
* # Example (JS)
|
|
991
|
+
* ```javascript
|
|
992
|
+
* const json = module.molecule_report_json("CC(=O)Oc1ccccc1C(=O)O");
|
|
993
|
+
* const report = JSON.parse(json);
|
|
994
|
+
* console.log(report.canonical_smiles, report.descriptors.tpsa);
|
|
995
|
+
* ```
|
|
996
|
+
*/
|
|
997
|
+
export function molecule_report_json(smiles: string): string;
|
|
998
|
+
|
|
828
999
|
/**
|
|
829
1000
|
* Per-atom molar refractivity contributions as a JSON array of f64.
|
|
830
1001
|
*/
|
|
@@ -837,6 +1008,15 @@ export function mr_per_atom_json(mol: MolHandle): string;
|
|
|
837
1008
|
*/
|
|
838
1009
|
export function murcko_scaffold(mol: MolHandle): MolHandle;
|
|
839
1010
|
|
|
1011
|
+
/**
|
|
1012
|
+
* Find the k nearest neighbours of a query SMILES in a list of db SMILES.
|
|
1013
|
+
*
|
|
1014
|
+
* `db_smiles_json`: JSON array of SMILES strings, e.g. `["CC","c1ccccc1"]`.
|
|
1015
|
+
* Returns JSON: `[{"index":0,"tanimoto":0.95},...]` sorted by descending Tanimoto.
|
|
1016
|
+
* Returns `"error:<msg>"` on parse failure.
|
|
1017
|
+
*/
|
|
1018
|
+
export function nearest_neighbors_json(query_smiles: string, db_smiles_json: string, k: number): string;
|
|
1019
|
+
|
|
840
1020
|
/**
|
|
841
1021
|
* Neutralize formal charges on `mol` by proton addition/removal.
|
|
842
1022
|
*
|
|
@@ -844,6 +1024,12 @@ export function murcko_scaffold(mol: MolHandle): MolHandle;
|
|
|
844
1024
|
*/
|
|
845
1025
|
export function neutralize_charges(mol: MolHandle): MolHandle;
|
|
846
1026
|
|
|
1027
|
+
/**
|
|
1028
|
+
* Parse and re-serialize CXSMILES, preserving supported CX metadata.
|
|
1029
|
+
* Returns error if atom count exceeds 10,000.
|
|
1030
|
+
*/
|
|
1031
|
+
export function normalize_cxsmiles(s: string): string;
|
|
1032
|
+
|
|
847
1033
|
/**
|
|
848
1034
|
* Parse and re-serialise a reaction SMILES string, returning the normalised form.
|
|
849
1035
|
*
|
|
@@ -860,10 +1046,26 @@ export function normalize_reaction_smiles(rxn_smiles: string): string;
|
|
|
860
1046
|
*/
|
|
861
1047
|
export function pains_matches_json(mol: MolHandle): string;
|
|
862
1048
|
|
|
1049
|
+
/**
|
|
1050
|
+
* Parse CXSMARTS and return preserved metadata as JSON.
|
|
1051
|
+
* Returns error if atom count exceeds 10,000.
|
|
1052
|
+
*/
|
|
1053
|
+
export function parse_cxsmarts_json(s: string): string;
|
|
1054
|
+
|
|
1055
|
+
/**
|
|
1056
|
+
* Parse CXSMILES and return preserved metadata as JSON.
|
|
1057
|
+
*
|
|
1058
|
+
* Supported CX fields: atom labels (`$...$`), `atomProp`, atom radicals (`^n:`),
|
|
1059
|
+
* and zero-order bonds (`Z:`). The `cxsmiles` field is a re-serialized
|
|
1060
|
+
* round-trip form using the supported fields.
|
|
1061
|
+
* Returns error if atom count exceeds 10,000.
|
|
1062
|
+
*/
|
|
1063
|
+
export function parse_cxsmiles_json(s: string): string;
|
|
1064
|
+
|
|
863
1065
|
/**
|
|
864
1066
|
* Parse a SMILES string into a `MolHandle`.
|
|
865
1067
|
*
|
|
866
|
-
* Returns a JS error string on parse failure.
|
|
1068
|
+
* Returns a JS error string on parse failure or if atom count exceeds 10,000.
|
|
867
1069
|
*/
|
|
868
1070
|
export function parse_smiles(s: string): MolHandle;
|
|
869
1071
|
|
|
@@ -900,6 +1102,15 @@ export function remove_hydrogens(mol: MolHandle): MolHandle;
|
|
|
900
1102
|
*/
|
|
901
1103
|
export function rgroup_decompose_json(smiles_json: string, core_smarts: string): string;
|
|
902
1104
|
|
|
1105
|
+
/**
|
|
1106
|
+
* Run molecular dynamics simulation and return trajectory as JSON.
|
|
1107
|
+
*
|
|
1108
|
+
* Returns JSON object with trajectory frames: `{ "frames": [{ "step": N, "potential": E, "kinetic": K, "temp": T }, …] }`
|
|
1109
|
+
* Uses NVT ensemble (Berendsen thermostat) at 300 K by default.
|
|
1110
|
+
* Note: Limited to molecules with ~50 atoms or fewer for practical WASM performance.
|
|
1111
|
+
*/
|
|
1112
|
+
export function run_md_json(mol: MolHandle, steps: number, temp_k: number): string;
|
|
1113
|
+
|
|
903
1114
|
/**
|
|
904
1115
|
* Apply a SMIRKS reaction template and return product SMILES as a JSON string.
|
|
905
1116
|
*
|
|
@@ -914,6 +1125,23 @@ export function run_reactants(smirks: string, reactants_smiles: string): string;
|
|
|
914
1125
|
*/
|
|
915
1126
|
export function sa_score(mol: MolHandle): number;
|
|
916
1127
|
|
|
1128
|
+
/**
|
|
1129
|
+
* Screen a batch of SMILES strings (JSON string output).
|
|
1130
|
+
* Returns per-record results including pass/fail with error details.
|
|
1131
|
+
* Includes MaxMin diversity picking and Butina clustering by default.
|
|
1132
|
+
*
|
|
1133
|
+
* # Example (JS)
|
|
1134
|
+
* ```javascript
|
|
1135
|
+
* const smilesList = "c1ccccc1\nCC\nCCC";
|
|
1136
|
+
* const json = module.screen_smiles_json(smilesList, "\n");
|
|
1137
|
+
* const report = JSON.parse(json);
|
|
1138
|
+
* console.log(report.records); // Array of ScreeningRecord
|
|
1139
|
+
* console.log(report.maxmin_picks); // Diversity-selected indices
|
|
1140
|
+
* console.log(report.butina_clusters); // Clustering result
|
|
1141
|
+
* ```
|
|
1142
|
+
*/
|
|
1143
|
+
export function screen_smiles_json(smiles_batch: string, delimiter: string): string;
|
|
1144
|
+
|
|
917
1145
|
/**
|
|
918
1146
|
* Serialize multiple molecules with properties to an SDF string.
|
|
919
1147
|
*
|
|
@@ -975,6 +1203,15 @@ export function slogp_vsa_json(mol: MolHandle): string;
|
|
|
975
1203
|
*/
|
|
976
1204
|
export function smarts_match_atoms(smarts: string, mol: MolHandle): string;
|
|
977
1205
|
|
|
1206
|
+
/**
|
|
1207
|
+
* Like `smarts_match_atoms` but with explicit chirality matching control.
|
|
1208
|
+
*
|
|
1209
|
+
* When `use_chirality=true`, SMARTS chirality primitives `[@]` and `[@@]` are
|
|
1210
|
+
* matched against the target molecule's stereochemistry. When `false`, chirality
|
|
1211
|
+
* is ignored (RDKit default).
|
|
1212
|
+
*/
|
|
1213
|
+
export function smarts_match_atoms_with_chirality(smarts: string, mol: MolHandle, use_chirality: boolean): string;
|
|
1214
|
+
|
|
978
1215
|
/**
|
|
979
1216
|
* Serialise a JSON array of SMILES to an SDF string.
|
|
980
1217
|
*
|
|
@@ -983,6 +1220,13 @@ export function smarts_match_atoms(smarts: string, mol: MolHandle): string;
|
|
|
983
1220
|
*/
|
|
984
1221
|
export function smiles_array_to_sdf(smiles_json: string): string;
|
|
985
1222
|
|
|
1223
|
+
/**
|
|
1224
|
+
* Convert a SMILES to a minimal Tripos MOL2 string (no 3D coordinates).
|
|
1225
|
+
*
|
|
1226
|
+
* Returns `"error:<msg>"` on parse failure.
|
|
1227
|
+
*/
|
|
1228
|
+
export function smiles_to_mol2(smiles: string): string;
|
|
1229
|
+
|
|
986
1230
|
/**
|
|
987
1231
|
* Render a highlighted SVG from a SMILES string in one call.
|
|
988
1232
|
*
|
|
@@ -1007,6 +1251,22 @@ export function smr_vsa_json(mol: MolHandle): string;
|
|
|
1007
1251
|
*/
|
|
1008
1252
|
export function sssr_rings_json(mol: MolHandle): string;
|
|
1009
1253
|
|
|
1254
|
+
/**
|
|
1255
|
+
* Standardize a SMILES string and return the canonical SMILES of the result.
|
|
1256
|
+
*
|
|
1257
|
+
* Applies: largest fragment extraction → charge neutralization.
|
|
1258
|
+
* Returns `"error:<msg>"` on parse failure.
|
|
1259
|
+
*/
|
|
1260
|
+
export function standardize_smiles(smiles: string): string;
|
|
1261
|
+
|
|
1262
|
+
/**
|
|
1263
|
+
* Standardize a SMILES string and return result SMILES plus an audit report as JSON.
|
|
1264
|
+
*
|
|
1265
|
+
* Boolean flags map directly to `StandardizeOptions`.
|
|
1266
|
+
* Returns `"error:<msg>"` on parse or serialization failure.
|
|
1267
|
+
*/
|
|
1268
|
+
export function standardize_smiles_report_json(smiles: string, largest_fragment_only: boolean, neutralize_charges: boolean, remove_explicit_h: boolean, canonical_tautomer: boolean): string;
|
|
1269
|
+
|
|
1010
1270
|
export function start(): void;
|
|
1011
1271
|
|
|
1012
1272
|
/**
|
|
@@ -1106,6 +1366,7 @@ export interface InitOutput {
|
|
|
1106
1366
|
readonly __wbg_molhandle_free: (a: number, b: number) => void;
|
|
1107
1367
|
readonly add_hydrogens: (a: number) => number;
|
|
1108
1368
|
readonly atom_pair_bitvec: (a: number) => [number, number];
|
|
1369
|
+
readonly balance_check_json: (a: number, b: number) => [number, number];
|
|
1109
1370
|
readonly brics_fragment_count: (a: number) => number;
|
|
1110
1371
|
readonly brics_fragments_json: (a: number) => [number, number];
|
|
1111
1372
|
readonly butina_cluster_ecfp4_json: (a: number, b: number, c: number) => [number, number, number, number];
|
|
@@ -1121,6 +1382,7 @@ export interface InitOutput {
|
|
|
1121
1382
|
readonly conformerhandle_mol: (a: number) => number;
|
|
1122
1383
|
readonly conformerhandle_new: (a: number, b: number) => [number, number, number];
|
|
1123
1384
|
readonly conformerhandle_remove_conformer: (a: number, b: number) => number;
|
|
1385
|
+
readonly coulomb_energy_json: (a: number) => [number, number];
|
|
1124
1386
|
readonly cpk_color: (a: number, b: number) => [number, number];
|
|
1125
1387
|
readonly depict_data_json: (a: number) => [number, number];
|
|
1126
1388
|
readonly depict_data_with_coords_json: (a: number, b: number, c: number) => [number, number];
|
|
@@ -1145,13 +1407,16 @@ export interface InitOutput {
|
|
|
1145
1407
|
readonly dice_ecfp6: (a: number, b: number) => number;
|
|
1146
1408
|
readonly dice_maccs: (a: number, b: number) => number;
|
|
1147
1409
|
readonly ecfp4_bitvec: (a: number) => [number, number];
|
|
1410
|
+
readonly ecfp4_bitvec_with_chirality: (a: number, b: number) => [number, number];
|
|
1148
1411
|
readonly ecfp6_bitvec: (a: number) => [number, number];
|
|
1149
|
-
readonly
|
|
1412
|
+
readonly ecfp6_bitvec_with_chirality: (a: number, b: number) => [number, number];
|
|
1413
|
+
readonly ecfp_bitvec_custom: (a: number, b: number, c: number, d: number) => [number, number];
|
|
1150
1414
|
readonly enumerate_stereo_isomers_json: (a: number) => [number, number, number, number];
|
|
1151
1415
|
readonly enumerate_tautomers_json: (a: number) => [number, number];
|
|
1152
1416
|
readonly estate_indices_json: (a: number) => [number, number];
|
|
1153
1417
|
readonly fcfp4_bitvec: (a: number) => [number, number];
|
|
1154
1418
|
readonly fcfp6_bitvec: (a: number) => [number, number];
|
|
1419
|
+
readonly find_reaction_center_json: (a: number, b: number) => [number, number];
|
|
1155
1420
|
readonly gasteiger_charges_json: (a: number) => [number, number];
|
|
1156
1421
|
readonly generate_3d_minimized_pdb: (a: number) => [number, number];
|
|
1157
1422
|
readonly generate_3d_pdb: (a: number) => [number, number];
|
|
@@ -1161,6 +1426,9 @@ export interface InitOutput {
|
|
|
1161
1426
|
readonly get_bond_info: (a: number, b: number) => [number, number];
|
|
1162
1427
|
readonly get_descriptors_json: (a: number) => [number, number];
|
|
1163
1428
|
readonly identify_functional_groups: (a: number) => [number, number];
|
|
1429
|
+
readonly inchi_from_smiles: (a: number, b: number) => [number, number];
|
|
1430
|
+
readonly inchikey_from_smiles: (a: number, b: number) => [number, number];
|
|
1431
|
+
readonly invert_stereocenter_at: (a: number, b: number) => [number, number, number];
|
|
1164
1432
|
readonly is_valid_smiles: (a: number, b: number) => number;
|
|
1165
1433
|
readonly labute_asa_per_atom_json: (a: number) => [number, number];
|
|
1166
1434
|
readonly largest_fragment: (a: number) => number;
|
|
@@ -1169,7 +1437,9 @@ export interface InitOutput {
|
|
|
1169
1437
|
readonly match_smarts_smiles: (a: number, b: number, c: number, d: number) => [number, number, number, number];
|
|
1170
1438
|
readonly maxmin_picks_ecfp4_json: (a: number, b: number, c: number) => [number, number, number, number];
|
|
1171
1439
|
readonly mcs_smiles_json: (a: number, b: number) => [number, number, number, number];
|
|
1440
|
+
readonly minimize_dreiding_json: (a: number) => [number, number];
|
|
1172
1441
|
readonly mmp_pairs_json: (a: number, b: number) => [number, number, number, number];
|
|
1442
|
+
readonly mol2_to_smiles: (a: number, b: number) => [number, number];
|
|
1173
1443
|
readonly mol_block_coords_json: (a: number, b: number) => [number, number, number, number];
|
|
1174
1444
|
readonly mol_block_from_smiles: (a: number, b: number) => [number, number, number, number];
|
|
1175
1445
|
readonly mol_from_cdxml: (a: number, b: number) => [number, number, number];
|
|
@@ -1237,18 +1507,25 @@ export interface InitOutput {
|
|
|
1237
1507
|
readonly molhandle_ring_count: (a: number) => number;
|
|
1238
1508
|
readonly molhandle_rotatable_bond_count: (a: number) => number;
|
|
1239
1509
|
readonly molhandle_sum_estate: (a: number) => number;
|
|
1510
|
+
readonly molhandle_to_inchi: (a: number) => [number, number];
|
|
1511
|
+
readonly molhandle_to_inchikey: (a: number) => [number, number];
|
|
1240
1512
|
readonly molhandle_tpsa: (a: number) => number;
|
|
1241
1513
|
readonly molhandle_veber_passes: (a: number) => number;
|
|
1242
1514
|
readonly molhandle_wiener_index: (a: number) => number;
|
|
1243
1515
|
readonly mr_per_atom_json: (a: number) => [number, number];
|
|
1244
1516
|
readonly murcko_scaffold: (a: number) => number;
|
|
1517
|
+
readonly nearest_neighbors_json: (a: number, b: number, c: number, d: number, e: number) => [number, number];
|
|
1245
1518
|
readonly neutralize_charges: (a: number) => number;
|
|
1519
|
+
readonly normalize_cxsmiles: (a: number, b: number) => [number, number, number, number];
|
|
1246
1520
|
readonly normalize_reaction_smiles: (a: number, b: number) => [number, number, number, number];
|
|
1247
1521
|
readonly pains_matches_json: (a: number) => [number, number];
|
|
1522
|
+
readonly parse_cxsmarts_json: (a: number, b: number) => [number, number, number, number];
|
|
1523
|
+
readonly parse_cxsmiles_json: (a: number, b: number) => [number, number, number, number];
|
|
1248
1524
|
readonly parse_smiles: (a: number, b: number) => [number, number, number];
|
|
1249
1525
|
readonly peoe_vsa_json: (a: number) => [number, number];
|
|
1250
1526
|
readonly remove_hydrogens: (a: number) => number;
|
|
1251
1527
|
readonly rgroup_decompose_json: (a: number, b: number, c: number, d: number) => [number, number, number, number];
|
|
1528
|
+
readonly run_md_json: (a: number, b: number, c: number) => [number, number];
|
|
1252
1529
|
readonly run_reactants: (a: number, b: number, c: number, d: number) => [number, number, number, number];
|
|
1253
1530
|
readonly sa_score: (a: number) => number;
|
|
1254
1531
|
readonly sdf_from_records_json: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number, number];
|
|
@@ -1257,10 +1534,14 @@ export interface InitOutput {
|
|
|
1257
1534
|
readonly shape_descriptors_json: (a: number) => [number, number];
|
|
1258
1535
|
readonly slogp_vsa_json: (a: number) => [number, number];
|
|
1259
1536
|
readonly smarts_match_atoms: (a: number, b: number, c: number) => [number, number, number, number];
|
|
1537
|
+
readonly smarts_match_atoms_with_chirality: (a: number, b: number, c: number, d: number) => [number, number, number, number];
|
|
1260
1538
|
readonly smiles_array_to_sdf: (a: number, b: number) => [number, number, number, number];
|
|
1539
|
+
readonly smiles_to_mol2: (a: number, b: number) => [number, number];
|
|
1261
1540
|
readonly smiles_to_svg_highlighted: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => [number, number, number, number];
|
|
1262
1541
|
readonly smr_vsa_json: (a: number) => [number, number];
|
|
1263
1542
|
readonly sssr_rings_json: (a: number) => [number, number];
|
|
1543
|
+
readonly standardize_smiles: (a: number, b: number) => [number, number];
|
|
1544
|
+
readonly standardize_smiles_report_json: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number];
|
|
1264
1545
|
readonly tanimoto_atom_pair: (a: number, b: number) => number;
|
|
1265
1546
|
readonly tanimoto_ecfp4: (a: number, b: number) => number;
|
|
1266
1547
|
readonly tanimoto_ecfp6: (a: number, b: number) => number;
|
|
@@ -1278,9 +1559,17 @@ export interface InitOutput {
|
|
|
1278
1559
|
readonly write_smiles: (a: number) => [number, number];
|
|
1279
1560
|
readonly start: () => void;
|
|
1280
1561
|
readonly molhandle_atom_count: (a: number) => number;
|
|
1281
|
-
readonly
|
|
1562
|
+
readonly compare_molecules_batch_json: (a: number, b: number, c: number, d: number) => [number, number, number, number];
|
|
1563
|
+
readonly compare_molecules_json: (a: number, b: number, c: number, d: number) => [number, number, number, number];
|
|
1564
|
+
readonly generate_3d_from_smiles: (a: number, b: number) => [number, number, number, number];
|
|
1565
|
+
readonly generate_3d_optimized_pdb: (a: number, b: number) => [number, number, number, number];
|
|
1566
|
+
readonly molecule_report_json: (a: number, b: number) => [number, number, number, number];
|
|
1567
|
+
readonly screen_smiles_json: (a: number, b: number, c: number, d: number) => [number, number];
|
|
1282
1568
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
1283
1569
|
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
1570
|
+
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
1571
|
+
readonly __wbindgen_exn_store: (a: number) => void;
|
|
1572
|
+
readonly __externref_table_alloc: () => number;
|
|
1284
1573
|
readonly __wbindgen_externrefs: WebAssembly.Table;
|
|
1285
1574
|
readonly __externref_table_dealloc: (a: number) => void;
|
|
1286
1575
|
readonly __wbindgen_start: () => void;
|