Class HBondAcceptorCountDescriptor
java.lang.Object
org.openscience.cdk.qsar.AbstractMolecularDescriptor
org.openscience.cdk.qsar.descriptors.molecular.HBondAcceptorCountDescriptor
- All Implemented Interfaces:
IDescriptor, IMolecularDescriptor
public class HBondAcceptorCountDescriptor
extends AbstractMolecularDescriptor
implements IMolecularDescriptor
This descriptor calculates the number of hydrogen bond acceptors using a slightly simplified version of the
PHACIR atom types.
The following groups are counted as hydrogen bond acceptors:
- any oxygen where the formal charge of the oxygen is non-positive (i.e. formal charge ≤ 0) except
- an aromatic ether oxygen (i.e. an ether oxygen that is adjacent to at least one aromatic carbon)
- an oxygen that is adjacent to a nitrogen
- any nitrogen where the formal charge of the nitrogen is non-positive (i.e. formal charge ≤ 0) except
- a nitrogen that is adjacent to an oxygen
| Name | Default | Description |
| checkAromaticity | false | true if the aromaticity has to be checked |
This descriptor works properly with AtomContainers whose atoms contain implicit hydrogens or explicit hydrogens.
- Author:
- ulif
- Dictionary pointer(s):
- hBondacceptors in the QSAR.sf.net Descriptors Dictionary [qsar-descriptors:hBondacceptors]
- Created on:
- 2005-22-07
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor for the HBondAcceptorCountDescriptor object -
Method Summary
Modifier and TypeMethodDescriptioncalculate(IAtomContainer atomContainer) Calculates the number of H bond acceptors.String[]Returns an array of names for each descriptor value calculated.Returns the specific type of the DescriptorResult object.String[]Gets the parameterNames attribute of the HBondAcceptorCountDescriptor object.Object[]Gets the parameters attribute of the HBondAcceptorCountDescriptor object.getParameterType(String name) Gets the parameterType attribute of the HBondAcceptorCountDescriptor object.Gets the specification attribute of the HBondAcceptorCountDescriptor object.voidinitialise(IChemObjectBuilder builder) Default implementation of initialise allows optional override.voidsetParameters(Object[] params) Sets the parameters attribute of the HBondAcceptorCountDescriptor object.Methods inherited from class AbstractMolecularDescriptor
clone
-
Constructor Details
-
HBondAcceptorCountDescriptor
public HBondAcceptorCountDescriptor()Constructor for the HBondAcceptorCountDescriptor object
-
-
Method Details
-
getSpecification
Gets the specification attribute of the HBondAcceptorCountDescriptor object.- Specified by:
getSpecificationin interfaceIDescriptor- Returns:
- The specification value
-
setParameters
Sets the parameters attribute of the HBondAcceptorCountDescriptor object.- Specified by:
setParametersin interfaceIDescriptor- Parameters:
params- a boolean true means that aromaticity has to be checked- Throws:
CDKException- Description of the Exception- See Also:
-
getParameters
Gets the parameters attribute of the HBondAcceptorCountDescriptor object.- Specified by:
getParametersin interfaceIDescriptor- Returns:
- The parameters value
- See Also:
-
getDescriptorNames
Description copied from interface:IDescriptorReturns an array of names for each descriptor value calculated. Many descriptors return multiple values. In general it is useful for the descriptor to indicate the names for each value. In many cases, these names can be as simple as X1, X2, ..., XN where X is a prefix and 1, 2, ..., N are the indices. On the other hand it is also possible to return other arbitrary names, which should be documented in the Javadocs for the descriptor (e.g., the CPSA descriptor). Note that by default if a descriptor returns a single value (such asALOGPDescriptorthe return array will have a single element- Specified by:
getDescriptorNamesin interfaceIDescriptor- Returns:
- An array of descriptor names, equal in length to the number of descriptor calculated..
-
calculate
Calculates the number of H bond acceptors.- Specified by:
calculatein interfaceIMolecularDescriptor- Parameters:
atomContainer- AtomContainer- Returns:
- number of H bond acceptors
-
getDescriptorResultType
Returns the specific type of the DescriptorResult object. The return value from this method really indicates what type of result will be obtained from theDescriptorValueobject. Note that the same result can be achieved by interrogating theDescriptorValueobject; this method allows you to do the same thing, without actually calculating the descriptor.- Specified by:
getDescriptorResultTypein interfaceIMolecularDescriptor- Returns:
- an object that implements the
IDescriptorResultinterface indicating the actual type of values returned by the descriptor in theDescriptorValueobject
-
getParameterNames
Gets the parameterNames attribute of the HBondAcceptorCountDescriptor object.- Specified by:
getParameterNamesin interfaceIDescriptor- Returns:
- The parameterNames value
-
getParameterType
Gets the parameterType attribute of the HBondAcceptorCountDescriptor object.- Specified by:
getParameterTypein interfaceIDescriptor- Parameters:
name- Description of the Parameter- Returns:
- The parameterType value
-
initialise
Default implementation of initialise allows optional override.- Specified by:
initialisein interfaceIDescriptor- Parameters:
builder- chem object build
-