Login / Signup

RDCanon: A Python Package for Canonicalizing the Order of Tokens in SMARTS Queries.

Babak A MahjourConnor W Coley
Published in: Journal of chemical information and modeling (2024)
SMARTS is a widely used language in cheminformatics for defining substructural queries for database lookups, reaction templates for chemical transformations, and other applications. As an extension to SMILES, many SMARTS patterns can represent the same query. Despite this, no canonicalization algorithm invariant of the line notation sequence or atomic numbering is publicly available. Here, we introduce RDCanon, an open-source Python package that can be used to standardize SMARTS queries. RDCanon is designed to ensure that the sequence of atomic queries remains consistent for all graphs representing the same substructure query and to ensure a canonical sequence of primitives within each individual atom query; furthermore, the algorithm can be applied to canonicalize the order of reactants, agents, and products and their atom map numbers in reaction SMARTS templates. As part of its canonicalization algorithm, RDCanon provides a mechanism in which the canonicalized SMARTS is optimized for speed against specific molecular databases. Several case studies are provided to showcase improved efficiency in substructure matching and retrosynthetic analysis.
Keyphrases
  • machine learning
  • deep learning
  • molecular dynamics
  • electron transfer
  • autism spectrum disorder
  • neural network
  • amino acid
  • emergency department
  • high density