Skip to main content

Identify structural alerts using the RDKit and ChEMBL.

Project description

Credit

This work is derived from @PatWalters 's fantastic rd_filters repo.

SA-Filter

Easily apply the functional group filters from the ChEMBL database.

:warning: 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)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sa_filter-1.0.0.tar.gz (34.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sa_filter-1.0.0-py3-none-any.whl (32.8 kB view details)

Uploaded Python 3

File details

Details for the file sa_filter-1.0.0.tar.gz.

File metadata

  • Download URL: sa_filter-1.0.0.tar.gz
  • Upload date:
  • Size: 34.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.11

File hashes

Hashes for sa_filter-1.0.0.tar.gz
Algorithm Hash digest
SHA256 1ab1d43e0999188ec62d285e3ee7b9f165f3524742e21c7584245b99ac988fe0
MD5 405c8d6c318b939225d7fbce34b7bc51
BLAKE2b-256 f866561db0007c2543798d7c3a11e2f803505abc3effe29175e03cd51d0e6f48

See more details on using hashes here.

File details

Details for the file sa_filter-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: sa_filter-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 32.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.11

File hashes

Hashes for sa_filter-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9094e385400a3d1bd8a5572796290151eb35e5922050f29311b9deec2ee34aa2
MD5 2bb4d1cdd51653f0343dfe3100d1b38d
BLAKE2b-256 b5c33357a18ba1ffab34e7d3cb2ae597891566e456243014d414820c2f15ad9c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page