molll: Data Driven Estimation of Molecular Log-Likelihood using Fingerprint Key Counting
This software provides models for estimating the likelihood of a molecule belonging to a specific dataset based on simple fingerprint key counting. The models, AtomLL and MolLL, are designed for outlier detection and class membership assignment. They offer potential applications in molecular generation and optimization. PropLL is included and uses scikit kernel density estimates on RDKit-derived and user-selectable properties.
Installation
Clone and install directly from the main directory:
pip install .
or directly from the repository without cloning:
pip install git+https://github.com/EBjerrum/molll.git
(PyPI package is underway)
Usage
The code works on lists of RDKit Mol objects:
from molll import MolLL
molll = MolLL()
molll.analyze_dataset(mols_list)
molll.calculate_lls(other_or_same_mols)
#Or a single Mol object
molll.calculate_ll(single_mols)
Saving and loading from a text-based format:
molll.save("MySaveFile.json")
molll_clone = MolLL()
molll_clone.load("MySaveFile.json")
For convenience, some classes with precomputed data are available, currently based on LibInvent train data:
from molll import LibInventMolLLr1
molll = LibInventMolLLr1()
molll.calculate_lls(mols_list)
Additional Reading
There's a preprint on ChemRxiv with some example usages: https://doi.org/10.26434/chemrxiv-2024-hzddj
Metadata
Release files for molecule-ll 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| molecule_ll-0.1.2.tar.gz | 40.3 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| molecule_ll-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 82.3 MB
Release files / molecule_ll-0.1.2.tar.gz
| Download URL | molecule_ll-0.1.2.tar.gz |
|---|---|
| Size | 40.3 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
531d9ef8b379eeabd583a1606d4077d90b5e23852a43cae1377fe6c20e235871
|
|
BLAKE2b-256 checksum How to use checksums |
b27d35e004d87ba1feaa851dbdf2ddb0da7557fbc5cc2a498d12441176348929
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.12
|
Release files / molecule_ll-0.1.2-py3-none-any.whl
| Download URL | molecule_ll-0.1.2-py3-none-any.whl |
|---|---|
| Size | 42.0 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cdbb012c788965a7ecf71057160ef26c40012d574c2babaa548f286c412bfd66
|
|
BLAKE2b-256 checksum How to use checksums |
d0fb7ba74af92fbe2a428d888a6b7af5ef368989c24cf5dc566f63c5a2c7899a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.12
|