@kent-tokyo/chematic 0.1.10 → 0.1.20

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 CHANGED
@@ -13,11 +13,23 @@ npm install @kent-tokyo/chematic
13
13
  ## Features
14
14
 
15
15
  - Parse SMILES strings into molecule handles
16
- - Molecular descriptors: MW, TPSA, LogP, Fsp3, QED, exact mass, rotatable bonds, HBD/HBA, aromatic ring count
17
- - Lipinski Rule-of-Five check
16
+ - Molecular descriptors: MW, TPSA, LogP, Fsp3, QED, exact mass, rotatable bonds, HBD/HBA, aromatic ring count, Labute ASA
17
+ - Drug-likeness filters: Lipinski, Veber, Egan, REOS, Ghose
18
+ - EState indices (Hall & Kier 1991): per-atom values, sum/max/min
19
+ - Gasteiger-Marsili PEOE partial charges: per-heavy-atom charges
20
+ - VSA descriptors: SlogP_VSA (×12), SMR_VSA (×10), PEOE_VSA (×14)
21
+ - SA score: synthetic accessibility estimate [1, 10]
22
+ - Functional group identification (Ertl 2017 IFG)
18
23
  - Canonical SMILES generation
19
- - ECFP4, AtomPair, and Topological Torsion fingerprints with Tanimoto similarity
24
+ - ECFP4/6, AtomPair, Torsion, and path fingerprints with Tanimoto similarity
20
25
  - BRICS fragment count
26
+ - SDF/MOL block parsing
27
+ - Topological descriptors: Wiener index, Hall-Kier κ, χ connectivity indices, Bertz CT
28
+ - Shape descriptors (with 3D coordinates): PMI, NPR, radius of gyration, asphericity
29
+ - 2D SVG depiction with CPK colors and atom/bond highlighting
30
+ - SVG grid layout for multiple molecules
31
+ - Reaction SMILES/SMIRKS parsing and transform
32
+ - Add/remove explicit hydrogens
21
33
 
22
34
  ## Usage
23
35
 
@@ -28,6 +40,11 @@ import init, {
28
40
  tanimoto_atom_pair,
29
41
  tanimoto_torsion,
30
42
  brics_fragment_count,
43
+ gasteiger_charges_json,
44
+ slogp_vsa_json,
45
+ smr_vsa_json,
46
+ peoe_vsa_json,
47
+ identify_functional_groups,
31
48
  } from '@kent-tokyo/chematic';
32
49
 
33
50
  await init();
@@ -60,6 +77,25 @@ console.log(tanimoto_atom_pair(mol, caffeine)); // AtomPair Tanimoto
60
77
  console.log(tanimoto_torsion(mol, caffeine)); // Torsion Tanimoto
61
78
  ```
62
79
 
80
+ ```js
81
+ // Sprint Q: New descriptors (v0.1.15)
82
+ console.log(mol.sa_score()); // synthetic accessibility [1,10]
83
+ console.log(mol.labute_asa()); // Labute approx. surface area (Ų)
84
+
85
+ // Gasteiger partial charges (per heavy atom)
86
+ const charges = JSON.parse(gasteiger_charges_json(mol));
87
+ console.log(charges); // [-0.08, 0.12, -0.43, ...]
88
+
89
+ // VSA descriptor bins
90
+ const slogpVsa = JSON.parse(slogp_vsa_json(mol));
91
+ const smrVsa = JSON.parse(smr_vsa_json(mol));
92
+ const peoeVsa = JSON.parse(peoe_vsa_json(mol));
93
+
94
+ // Functional group identification
95
+ const ifg = JSON.parse(identify_functional_groups(mol));
96
+ console.log(ifg); // [{"atoms":[1,2,3],"types":"OC=O"}, ...]
97
+ ```
98
+
63
99
  ## Building from source
64
100
 
65
101
  ```sh