RetroMol
RetroMol is retrosynthetic parsing and fingerprinting tool for modular natural products.
RetroMol is designed to facilitate clustering modular natural products based on biosynthetic similarity, and to enable cross-modal retrieval between modular natural products and their coding biosynthetic gene clusters.
We are developing a user-friendly webapp for RetroMol, available at here. Although still under development, the webapp can ultimately be used to query NPAtlas, MIBiG, and antiSMASH database entries for modular natural products based on biosynthetic similarity.
Installation
The most recent code and data can be installed directly from GitHub with:
pip install git+https://github.com/MolTools/RetroMol.git
RetroMol has been developed for Linux and MacOS.
Getting started
The retromol command line tool is automatically installed alongside installation of the package. The command line tool can be used from the shell with the --help flag to show all subcommands:
python3 -m retromol --help
The RetroMol CLI has two modes, single and batch:
single: process a single compound at a time.batch: process multiple compounds in a single command.
In either case a the output folder will contain a log file together with the results in either JSON or JSONL format. JSONL is standard output mode for batch mode to allow for easy parsing of large result sets. Batch mode also supports parallel processing.
Any column, field, or property in the input file, either CSV, TSV, SDF, or JSON, is preserved as props in the output JSON or JSONL.
Stereochemistry parsing is supported by supplying the -c flag.
Result JSONs or lines from a JSONL file can be loaded into Python using RetroMol's Result class for further downstream analyses.
Using custom rules
RetroMol comes with a default set of retrosynthetic rules for modular natural products. See the default rules for examples of the included rules.
Attribution
License
The code in this package is licensed under the MIT License.
For Developers
The final section of the README is for if you want to get involved by making a code contribution.
Development installation
First fork the repository on GitHub, then clone your fork locally and install the package in "editable" mode with the development dependencies:
git clone git+https://github.com/MolTools/RetroMol.git
cd RetroMol
pip install -e .[dev]
You can now make code changes locally and have them immediately available for testing.
After testing your changes, you can commit and push them to your fork, and then open a pull request on the main repository explaining your changes.
Testing
After cloning the repository, the unit tests in the tests/ folder can be run
reproducibly with:
pytest tests
or with:
hatch run dev:test
Additionally, these tests are automatically re-run with each push and pull request on main in a
GitHub Action.
Metadata
Release files for retromol 3.0.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 | Actions |
|---|---|---|---|---|
| retromol-3.0.0.tar.gz | 88.9 MB | Without provenance | Details for retromol-3.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| retromol-3.0.0-py3-none-any.whl | Python 3 | none | any | Details for retromol-3.0.0-py3-none-any.whl |
Total release size: 89.1 MB
Release files / retromol-3.0.0.tar.gz
| Download URL | retromol-3.0.0.tar.gz |
|---|---|
| Size | 88.9 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8f091291e1f0ba383b80edea9bcc74715b894f8eff2278b63bbf5ff6bb54b7bf
|
|
BLAKE2b-256 checksum How to use checksums |
54be31b65c7121c5a7facdea7b1a15529f26caa531751822e5b8bbf156470328
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.19
|
Release files / retromol-3.0.0-py3-none-any.whl
| Download URL | retromol-3.0.0-py3-none-any.whl |
|---|---|
| Size | 122.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
14587c9ae20144a027c26e511a3ee7ea100b73f7cb0f93d7719d35bded7c0a7c
|
|
BLAKE2b-256 checksum How to use checksums |
ab770aafda3ba6c2c14b4795cac76a6b97cc66518410699704474dcbb22ab091
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.19
|
Security for retromol 3.0.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.