Skip to content

(T)orsion (A)ngular (B)in (S)trings: Quantifying flexibility by introducing a discrete vector representation of a conformer's dihedral angles to allow for counting of states.

License

Notifications You must be signed in to change notification settings

rinikerlab/TorsionAngularBinStrings

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

(T)orsion (A)ngular (B)in (S)trings

DOI Test Image

Publication

[1] J. Chem. Inf. Model. 2024, DOI: https://pubs.acs.org/doi/10.1021/acs.jcim.4c01513#

Abstract

Molecular flexibility is a commonly used, but not easily quantified term. It is at the core of understanding composition and size of a conformational ensemble and contributes to many molecular properties. For many computational workflows, it is necessary to reduce a conformational ensemble to meaningful representatives, however defining them and guaranteeing the ensemble's completeness is difficult. We introduce the concepts of Torsion Angular Bin Strings (TABS) as a discrete vector representation of a conformer's dihedral angles and the number of possible TABS (nTABS) as an estimation for a molecule's ensemble size respectively. Here we show that nTABS corresponds to an upper limit for the conformer space size for small molecules and compare the classification of conformer ensembles by TABS with classifications by RMSD. Overcoming known drawbacks like the molecular size dependency and threshold picking of the RMSD measure, TABS is shown to meaningful discretize the conformer space and hence allows e.g. for fast conformer space coverage checks. The current proof-of-concept implementation is based on the ETKDGv3sr conformer generator and known torsion preferences extracted from small-molecule crystallographic data.

Installation

Installation of the dependencies via conda using the provided environment.yml file:

conda env create -n tabs -f environment.yml

To activate the new environment and install tabs:

conda activate tabs
python -m pip install git+https://github.com/rinikerlab/TorsionAngularBinStrings

Usage

import tabs
from rdkit import Chem
from rdkit.Chem import AllChem

mol = Chem.AddHs(Chem.MolFromSmiles("CCC(=O)CC"))
# check the assignment of torsion smarts, the class of torsion pattern, the assigned dihedral and the multiplicity of the torsion pattern
tabs.GetMultiplicityAllBonds(mol)
# check nTABS
tabs.GetnTABS(mol)
# embed molecule, get TABS
ps = AllChem.ETKDGv3()
AllChem.EmbedMolecule(mol,ps)
tabs.GetTABS(mol)

How to contribute

If you want to contribute, please make sure that all currently provided unittests run and that new unittests are provided for any new functionalities. Run the tests with

python -m unittest

Data

The complete datasets used in the study can be reproduced by going to Data/TABS and Data/nTABS and running the provided conformer generation scripts as described in the respective READMEs.

Analysis

The analysis notebooks to reproduce the plots shown in the study can be found in Analysis/.

FAQs

Are TABS dependent or independent on the atom order of otherwise identical molecules?

As the atom numbering of a molecule is not canonicalized as part of the TABS code, it is possible to arrive at two different TABS for equivalent conformers of the same molecule if they differ in their atom ordering. The easiest way to resolve this is to renumber the atoms in one of the molecules to make the atom numberings equivalent; the RDKit provides code to do this and a usage example is provided in Demos/AtomRenumbering.ipynb. In general for the analysis of conformer ensembles, it is recommended to work with one RDKit molecule containing all of the conformers in the ensemble.

Authors

Jessica Braun

Project status

in development

About

(T)orsion (A)ngular (B)in (S)trings: Quantifying flexibility by introducing a discrete vector representation of a conformer's dihedral angles to allow for counting of states.

Resources

License

Stars

Watchers

Forks

Packages

No packages published