Credit
This work is derived from @PatWalters 's fantastic rd_filters repo.
SA-Filter
Easily apply the functional group filters from the ChEMBL database.
⚠️ No other physico-chemical property is checked, only the presence of structural alerts.
These alerts were derived from ChEMBL (version 23), and span 8 sets of alerts. All alerts are checked.
| Rule Set | Number of Alerts |
|---|---|
| BMS | 180 |
| Dundee | 105 |
| Glaxo | 55 |
| Inpharmatica | 91 |
| LINT | 57 |
| MLSMR | 116 |
| PAINS | 479 |
| SureChEMBL | 166 |
The SMARTS patterns in a number of these alerts were not compatible with the RDKit so @PatWalters edited them and included a complete list of the changes made is in the file Notes.txt.
Installation
pip install sa-sift
Usage
One can easily identify alerts from a list of SMILES.
from sa_filter import SAFilter
# Parse rules
safilter = SAFilter()
# Obtain quick list of booleans stating if a given molecule contains any alert.
print(safilter.contains_alert(['c1ccccc1', 'CN=[N+](N)N', 'CCCCCCCCCCCCC(=O)O']))
# Obtain details on the matched alerts.
print(safilter.contains_alert(['c1ccccc1', 'CN=[N+](N)N', 'CCCCCCCCCCCCC(=O)O']), return_alerts=True)
Metadata
Release files for sa-filter 1.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 |
|---|---|---|---|---|
| sa_filter-1.0.0.tar.gz | 34.0 kB | Without provenance | Details for sa_filter-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sa_filter-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for sa_filter-1.0.0-py3-none-any.whl |
Total release size: 66.9 kB
Release files / sa_filter-1.0.0.tar.gz
| Download URL | sa_filter-1.0.0.tar.gz |
|---|---|
| Size | 34.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1ab1d43e0999188ec62d285e3ee7b9f165f3524742e21c7584245b99ac988fe0
|
|
BLAKE2b-256 checksum How to use checksums |
f866561db0007c2543798d7c3a11e2f803505abc3effe29175e03cd51d0e6f48
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.11
|
Release files / sa_filter-1.0.0-py3-none-any.whl
| Download URL | sa_filter-1.0.0-py3-none-any.whl |
|---|---|
| Size | 32.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9094e385400a3d1bd8a5572796290151eb35e5922050f29311b9deec2ee34aa2
|
|
BLAKE2b-256 checksum How to use checksums |
b5c33357a18ba1ffab34e7d3cb2ae597891566e456243014d414820c2f15ad9c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.11
|
Security for sa-filter 1.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.