What is the algorithm to calculate HBA_Count, HBD_Count. The help file has only the information: * HBA Count : Returns the count of the number of hydrogen bond accepting groups in the molecule * HBD Count : Returns the count of the number of hydrogen bond donating groups in the molecule
The help text in the 'Num H Acceptor Donors' calculator component can help clarify this issue. Here it is:
Calculates and outputs the counts of hydrogen bond donors and acceptors in the input molecules. Four properties can be calculated:
Num_H_Acceptors: number of heteroatoms (Oxygen, Nitrogen, Sulfur, or Phosphorus) with one or more lone pairs, excluding atoms with positive formal charges, amide and pyrrole-type Nitrogens, and aromatic Oxygen and Sulfur atoms in heterocyclic rings. Num_H_Donors: number of heteroatoms (Oxygen, Nitrogen, Sulfur, or Phosphorus) with one or more attached Hydrogen atoms. Num_H_Acceptors_Lipinski: number of acceptors using Lipinski's simpler convention of counting all Oxygen and Nitrogen atoms as acceptors. Num_H_Donors_Lipinski: the number of OH and NH bonds. Note that primary amines count as two donors.
Note: The calculable properties HBA_Count and HBD_Count, available for use in PilotScript expressions, are defined differently than the properties described above. They are calculated using substructure queries to count the number of times the queries match structural features in the molecule. The substructure queries used to calculate these properties are present in the data/Queries folder: