Changelog¶
v0.3.7 (2026-10-24)¶
Fixed¶
pharmacophore(2D pharmacophore fingerprint) no longer raisesIndexError: distance bin not foundfor about 1 in 5 drug-like molecules (21.8% of 2,006 PubChemQC molecules tested). The RDKit signature factory was built with triangle pruning, which assumes the three distances of a 3-point pharmacophore obey the triangle inequality; distances between multi-atom features such as aromatic rings do not always do so. The factory is now built withtrianglePruneBins=False. Breaking: the fingerprint grows from 2,988 to 3,348 bits and bit positions change; retrain any model built on it. Molecules that worked before set the same number of bits.
v0.3.6 (2026-10-21)¶
Added¶
- 15 new fingerprint types (55 total: 37 2D + 10 3D + 8 graph): SECFP, ErG, Pharmacophore2D, Layered, Pattern, E3FP, MQN, GhoseCrippen, BCUT2D, SHED, FunctionalGroups, Physiochemical, CATS2D, Mordred, RDKit2D
Changed¶
- Breaking: the 27 per-fingerprint sklearn classes (
ECFPTransformer,MACCSTransformer, ...) are replaced by oneFingerprintTransformer(fp_type, n_bits=None, n_jobs=1, sparse=False)that covers every fingerprint type. Replace e.g.ECFPTransformer()withFingerprintTransformer("ecfp4").get_transformer()andTRANSFORMERSstill work.
Fixed¶
- MHFP, MAP4, SECFP, Lingo and Signature now give the same bits in every Python session.
They hashed strings with built-in
hash(), which is salted per process, so output changed between sessions and differed betweenn_jobs > 1workers within a single matrix. Breaking: these five fingerprints produce different bits than before; retrain any model built on them. MAP4C and all other fingerprints are unchanged. mapchiralis now a declared dependency, so MAP4C works after a plainpip install molfp(it previously raised ImportError unless mapchiral was installed separately).mordredcommunityis now a declared dependency for Mordred descriptors. The originalmordredpackage is unmaintained and returns errors for ~24% of descriptors on current numpy.e3fpis now a declared dependency, so E3FP works after a plainpip install molfp.- Physiochemical and RDKit2D descriptors now use a fixed list of 210 RDKit descriptors in a
fixed order. They previously followed RDKit's
descList, whose length and column order change between RDKit releases (209 in 2023.03, 210 in 2024.03, 217 in 2025.09, with new descriptors inserted mid-list), so a column could mean a different descriptor on another RDKit version. Output is unchanged on RDKit 2024.03; descriptors missing from an older RDKit are filled with 0. - Removed RDKit deprecation warnings ("please use MorganGenerator") by moving Morgan,
atom-pair and topological-torsion fingerprints to
rdFingerprintGenerator. Output is bit-identical to before.
v0.3.5 (2026-10-18)¶
- Visualization split into standalone molviewer package
- Removed
draw(),view3d(),draw_attribution()from molfp - Removed py3Dmol and ipyspeck dependencies (lighter install)
- Use
pip install molviewerfor 2D/3D visualization
v0.3.4 (2026-10-18)¶
- Speck defaults to ball_and_stick when no preset specified
- Graceful handling of unsupported ipyspeck presets
- Suppressed RDKit kekulization warnings on import
v0.3.3 (2026-10-18)¶
- Added ball_and_stick, toon, and licorice Speck presets
- Exposed Speck parameters: atom_scale, bond_scale, ao, brightness, outline, bonds
- Speck style in view3d() for ambient-occlusion 3D rendering
- ipyspeck added as base dependency
v0.3.2 (2026-10-17)¶
New Fingerprint Types¶
- FCFP4: Feature Morgan (pharmacophoric atom types), collision_free supported
- Lingo: hashed SMILES 4-grams
- Shortest Path: atom-pair features along shortest paths
- Hybridization: RDKit path FP with hybridization invariants
- Signature: atom-centered subgraph descriptors (Faulon signatures)
- Total: 35 FP types (18 2D + 9 3D + 8 graph), 27 sklearn transformers
New Features¶
draw_attribution(): class-specific SHAP attribution maps (green=active, red=inactive)- Two attribution styles: highlight (solid circles) and contour (gaussian map)
- CI test workflow (Python 3.9-3.12)
- MkDocs Material documentation site
- CITATION.cff for academic citations
- Colab-compatible getting started notebook
- 393 tests passing
v0.3.1 (2026-10-13)¶
- Fix PyPI page: images now display correctly (absolute URLs)
- Remove comparison table from README
- Sync
__init__.pydocstring, README, and notebook with current API - Update logo to inline wordmark (fused-ring "m", benzene "o", teal "lfp")
v0.3.0 (2026-10-12)¶
New Fingerprint Types¶
- 9 3D fingerprints: USR, USRCAT, Autocorr3D, RDF, MORSE, WHIM, GETAWAY, PEOE_VSA3D, SMR_VSA3D
- 8 graph fingerprints: standard, distance, line, fragment (each with base and enriched variants)
- Total: 30 fingerprint types (13 2D + 9 3D + 8 graph)
New Modules¶
- scaffold:
scaffold(),scaffold_fingerprint(),scaffold_split()— Murcko/generic scaffold extraction with ~130 named ring systems, scaffold-aware train/test splitting - collisions:
remove_collisions(),collision_free=Trueon all 8 hashed FPs (multi-hash Bloom filter),collision_aware=Truefor SHAP interpretation - graph:
mol_graph()with 4 graph types,graph_vectors()for fixed-length sklearn features, PyG/DGL converters - selection:
select_features()andremove_low_variance()— standalone feature selection - viz:
draw()with grid/highlight modes,view3d()interactive 3D viewer - standardize:
preprocess(),standardize_smiles()— desalt, neutralize, canonicalize, deduplicate
Improvements¶
- Versatile input: all fingerprint functions accept str, list, Series, or DataFrame
- Enriched atom features (432 dims) for graph representations
- Adaptive conformer optimization (MMFF94, MLR-based)
- 22 sklearn transformers + GraphTransformer
v0.2.0 (2026-04-19)¶
Initial release:
- 13 2D fingerprint types (MACCS, ECFP4, PubChem, Substructure, KlekotaRoth, etc.)
explain()— bit-level atom attributionannotate()— chemical names for fingerprint bitsdetect_collisions()— hash collision detectionactivity_cliffs()— activity cliff detectionclassify(),enriched_bits()— bioactivity profilinginterpret()— SHAP interpretation with chemical meaningfuse()— consensus fingerprint constructiondiscriminative_power()— isomer discrimination analysis- scikit-learn compatible transformers
- Sparse output and parallel computation support