HydrogenBondsDescriptors
use MolecularDescriptors::HydrogenBondsDescriptors;
use MolecularDescriptors::HydrogenBondsDescriptors qw(:all);
HydrogenBondsDescriptors class provides the following methods:
new, GenerateDescriptors, GetDescriptorNames, SetHydrogenBondsType, StringifyHydrogenBondsDescriptors
HydrogenBondsDescriptors is derived from MolecularDescriptors class which in turn is derived from ObjectProperty base class that provides methods not explicitly defined in HydrogenBondsDescriptors, MolecularDescriptors or ObjectProperty classes using Perl's AUTOLOAD functionality. These methods are generated on-the-fly for a specified object property:
The current release of MayaChemTools supports identification of two types of hydrogen bond donor and acceptor atoms with these names:
The names of these hydrogen bond types are rather arbitrary. However, their definitions have specific meaning and are as follows:
By default, HydrogenBondsType2 is used to calculate number hydrogen bond donor and acceptor atoms. This corresponds to RuleOf5 definition of hydrogen bond donors and acceptors.
Using specified HydrogenBondsDescriptors property names and values hash, new method creates a new object and returns a reference to newly created HydrogenBondsDescriptors object. By default, the following properties are initialized:
Examples:
Calculates number of hydrogen bond donors and acceptors a molecule and returns HydrogenBondsDescriptors.
Returns all available descriptor names as an array.
Sets value of hydrogen bonds type to use during calculation of descriptors and returns HydrogenBondsDescriptors. Possible values: HBondsType1, HydrogenBondsType1, HBondsType2, HydrogenBondsType2.
Returns a string containing information about HydrogenBondsDescriptors object.
MolecularDescriptors.pm, MolecularDescriptorsGenerator.pm
Copyright (C) 2024 Manish Sud. All rights reserved.
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.