rdkit-fp
Parallel RDKit fingerprints with a beginner one-liner and an advanced staged pipeline.
Install
pip install rdfp
Quickstart (10 seconds)
rdfp examples/chembl_1k.smi outputs/fps/
With explicit preset:
rdfp examples/chembl_1k.smi outputs/fps/ --preset ecfp4
This default command is equivalent to rdfp fps INPUT OUTPUT.
Common CLI usage
Simple run with explicit workers/chunk size:
rdfp examples/chembl_1k.smi outputs/fps/ --workers -1 --chunk 100000
Use IDs from a column and keep stable row mapping sidecars:
rdfp data/compounds.smi outputs/fps/ --smiles-col 0 --id-col 1
Resume a stopped large run:
rdfp data/compounds.smi outputs/fps/ --resume
Run built-in demo data:
rdfp demo
Presets
| Preset | Meaning |
|---|---|
ecfp4 (default) |
Morgan radius 2, 2048 bits |
ecfp6 |
Morgan radius 3, 2048 bits |
rdkit |
RDKit topological, 2048 bits |
ap |
Atom-pair, 2048 bits |
tt |
Topological torsion, 2048 bits |
pattern |
Pattern fingerprint, 2048 bits |
You can override preset values with explicit flags (--fp-type, --fp-size, --radius, --include-chirality).
Advanced lane
Stage 1 only (SMILES -> mols):
rdfp mols examples/chembl_1k.smi outputs/mols/
Stage 2 only (mols -> fingerprints):
rdfp fps-from-mols outputs/mols/ outputs/fps_from_mols/ --resume
Both stages with mol persistence:
rdfp fps examples/chembl_1k.smi outputs/fps/ --save-mols outputs/mols/
Helpful flags
--workers(alias of--n-jobs)--chunk(alias of--chunk-size)--preset ecfp4|ecfp6|rdkit|ap|tt|pattern--input-smiles-col(alias of--smiles-col)--id-col Ninclude IDs in.index.jsonsidecars--resumeskip existing chunk outputs--no-include-row-mappingdisable row/ID mapping sidecars and mapping metadata--format numpy|packed|pickle(pickledefault)
Python API
from pathlib import Path
import rdfp
smiles_path = Path("examples/chembl_1k.smi")
rdfp.smiles_to_fps_chunked(
rdfp.iter_smiles_records(smiles_path),
output_dir="outputs/fps_api/",
fp_type="morgan",
fp_size=2048,
radius=2,
fmt="pickle",
n_jobs=-1,
chunk_size=100_000,
include_row_mapping=True,
resume=True,
)
Output layout
pickle output (default):
outputs/fps/
fps_0000.pkl
fps_0000.index.json <- row_idx / id / valid per input row in chunk
fps_0001.pkl
fps_0001.index.json
metadata.json
Each chunk stores only valid fingerprints in fps; mapping metadata + sidecars preserve provenance and failed rows.
Compatibility and packaging
- Repo name stays
rdkit-fp. - Install/import/CLI are centered on
rdfp. rdkit_fpremains as a compatibility alias for existing code.
Release flow
- CI runs on pushes/PRs to
main. - PyPI publish runs from tags matching
v*(for examplev0.1.1).
Metadata
Release files for rdfp 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| rdfp-0.1.0.tar.gz | 22.0 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| rdfp-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 44.9 kB
Release files / rdfp-0.1.0.tar.gz
| Download URL | rdfp-0.1.0.tar.gz |
|---|---|
| Size | 22.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4d286ce499b3a07ed2fe11c7824c3e5d8dd1d324655fbe645a3fd241cee07ece
|
|
BLAKE2b-256 checksum How to use checksums |
bcc8abd9703772becf81622baa0372800aaf84c51a993bcc4959d03207a4a332
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.12
|
Release files / rdfp-0.1.0-py3-none-any.whl
| Download URL | rdfp-0.1.0-py3-none-any.whl |
|---|---|
| Size | 22.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ebb0b6086ce049c9bec2d33315c119ec20cd2e59755e15380b8a4f884e307111
|
|
BLAKE2b-256 checksum How to use checksums |
eba8632d90520e9a32f4d538b9c7b39af91bdfbb32882db9772209a8475e2ac4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.12
|
Security for rdfp 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.