TorsionLibraryAlerts
import TorsionLibraryAlerts
TorsionLibraryAlerts module provides the following functions:
TorsionLibraryAlerts.GetTorsionLibraryFilePath, TorsionLibraryAlerts.IdentifyTorsionLibraryAlertsForRotatableBonds, TorsionLibraryAlerts.ListTorsionLibraryInfo, TorsionLibraryAlerts.TorsionLibraryAlerts
Get torsion strain library file path.
Arguments:
Returns:
Identify torsion library alerts for a molecule by matching rotatable bonds against SMARTS patterns specified for torsion rules in torsion energy library file.
Arguments:
Returns:
Example(s):
List torsion strain library information.
Arguments:
Returns:
Identify strained molecules from an input file for torsion library [ Ref 146, 152, 159 ] alerts by matching rotatable bonds against SMARTS patterns specified for torsion rules in a torsion library file, The molecules must have 3D coordinates. The default torsion library file, TorsionLibrary.xml, is available in the directory containing this file.
The data in torsion library file is organized in a hierarchical manner. It consists of one generic class and six specific classes at the highest level. Each class contains multiple subclasses corresponding to named functional groups or substructure patterns. The subclasses consist of torsion rules sorted from specific to generic torsion patterns. The torsion rule, in turn, contains a list of peak values for torsion angles and two tolerance values. A pair of tolerance values define torsion bins around a torsion peak value. For example:
The rotatable bonds in a 3D molecule are identified using a default SMARTS pattern. A custom SMARTS pattern may be optionally specified to detect rotatable bonds. Each rotatable bond is matched to a torsion rule in the torsion library and assigned one of the following three alert categories: Green, Orange or Red. The rotatable bond is marked Green or Orange for the measured angle of the torsion pattern within the first or second tolerance bins around a torsion peak. Otherwise, it's marked Red implying that the measured angle is not observed in the structure databases employed to generate the torsion library.
Arguments:
Returns:
The following sections provide additional details for the parameters.
AlertsMode: Torsion library alert types to use for issuing alerts about molecules containing rotatable bonds marked with Green, Orange, or Red alerts. Possible values: Red or RedAndOrange.
MinAlertsCount: Minimum number of rotatable bond alerts allowed in a molecule.
NitrogenLonePairAllowHydrogenNbrs, NitrogenLonePairPlanarityTolerance: These parameters are used during the matching of torsion rules containing 'N_lp' in their SMARTS patterns. The 'allowHydrogensNbrs' allows the use hydrogen neighbors attached to nitrogen during the determination of its planarity. The 'planarityTolerance' in degrees represents the tolerance allowed for nitrogen to be considered coplanar with its three neighbors.
The torsion rules containing 'N_lp' in their SMARTS patterns are categorized into the following two types of rules:
The torsions are matched to torsion rules containing 'N_lp' using specified SMARTS patterns without the 'N_lp' along with additional constraints using the following methodology:
RotBondsSMARTSMode: SMARTS pattern to use for identifying rotatable bonds in a molecule for matching against torsion rules in the torsion library. Possible values: NonStrict, SemiStrict, Strict or Specify. The rotatable bond SMARTS matches are filtered to ensure that each atom in the rotatable bond is attached to at least two heavy atoms.
The following SMARTS patterns are used to identify rotatable bonds for different modes:
The 'NonStrict' and 'Strict' SMARTS patterns are available in RDKit. The 'NonStrict' SMARTS pattern corresponds to original Daylight SMARTS specification for rotatable bonds. The 'SemiStrict' SMARTS pattern is derived from 'Strict' SMARTS pattern.
TorsionLibraryFilePath: Specify a XML file name containing data for torsion library hierarchy or use default file, TorsionLibrary.xml, available in the directory containing this file.
Pat Walters
Wolfgang Guba, Patrick Penner, and Levi Pierce
Copyright (C) 2024 Manish Sud. All rights reserved.
This module uses the Torsion Library jointly developed by the University of Hamburg, Center for Bioinformatics, Hamburg, Germany and F. Hoffmann-La-Roche Ltd., Basel, Switzerland.
This file is part of MayaChemTools.
MayaChemTools is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.