You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: descriptor/qsarmolecular/src/main/java/org/openscience/cdk/qsar/descriptors/molecular/ALOGPDescriptor.java
+23-23Lines changed: 23 additions & 23 deletions
Original file line number
Diff line number
Diff line change
@@ -1050,29 +1050,6 @@ private int getHAtomType(IAtom ai, List connectedAtoms) {
1050
1050
else
1051
1051
ca = connectedAtoms;
1052
1052
1053
-
// first check for alpha carbon:
1054
-
// -C=X, -C#X and -C:X
1055
-
if (ai.getSymbol().equals("C") && !ai.getFlag(CDKConstants.ISAROMATIC)) {
1056
-
booleannoXfirstShell = true;
1057
-
booleanxInSecondShell = false;
1058
-
for (intj = 0; j <= ca.size() - 1; j++) {
1059
-
if (atomContainer.getBond(ai, ((IAtom) ca.get(j))).getOrder() == IBond.Order.SINGLE
1060
-
&& ((IAtom) ca.get(j)).getSymbol().equals("C")) { // single bonded
1061
-
IAtomaCarbon = ca.get(j);
1062
-
for (IBondbond : aCarbon.bonds()) {
1063
-
IAtomnbor = bond.getOther(aCarbon);
1064
-
if (isHetero(nbor) && (bond.isAromatic() || bond.getOrder() != IBond.Order.SINGLE))
1065
-
xInSecondShell = true;
1066
-
}
1067
-
} else {
1068
-
if (isHetero(ca.get(j)))
1069
-
noXfirstShell = false;
1070
-
}
1071
-
}
1072
-
if (noXfirstShell && xInSecondShell)
1073
-
return51;
1074
-
} // end if(ai.getSymbol().equals("C") && !ai.getFlag(CDKConstants.ISAROMATIC))
0 commit comments