Skip to content

Commit b964090

Browse files
committed
Hydrogen missed in this case.
1 parent 86a7183 commit b964090

File tree

1 file changed

+4
-2
lines changed
  • descriptor/qsarmolecular/src/main/java/org/openscience/cdk/qsar/descriptors/molecular

1 file changed

+4
-2
lines changed

descriptor/qsarmolecular/src/main/java/org/openscience/cdk/qsar/descriptors/molecular/ALOGPDescriptor.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1222,11 +1222,13 @@ private void calcGroup066_to_079(int i) {
12221222
IAtom ai = atomContainer.getAtom(i);
12231223
if (!ai.getSymbol().equals("N")) return;
12241224
List<IAtom> nbors = atomContainer.getConnectedAtomsList(atomContainer.getAtom(i));
1225-
int htype = 50; //H atom attached to a hetero atom
12261225

1226+
int htype = 50; //H atom attached to a hetero atom
12271227
for (IAtom nbor : nbors)
1228-
if (nbor.getAtomicNumber() == 1)
1228+
if (nbor.getAtomicNumber() == 1) {
12291229
alogpfrag[nbor.getIndex()] = htype;
1230+
frags[htype]++;
1231+
}
12301232

12311233
for (int j = 0; j <= nbors.size() - 1; j++) {
12321234
if (((IAtom) nbors.get(j)).getSymbol().equals("H")) continue;

0 commit comments

Comments
 (0)