Skip to content

Commit

Permalink
Hydrogens now handled all in one place for nitrogen atom types.
Browse files Browse the repository at this point in the history
  • Loading branch information
johnmay committed Jan 30, 2019
1 parent f0d4e7e commit 6abe4be
Showing 1 changed file with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1303,8 +1303,6 @@ private void calcGroup066_to_079(int i) {
} else if (fragment[i].equals("SaaNH") || fragment[i].equals("SsaaN")) { // R...NH...R
frags[73]++;
alogpfrag[i] = 73;
if (fragment[i].equals("SaaNH"))
frags[htype]++;
} else if (fragment[i].equals("SssNH")) {
if (nAr == 2 && nAl == 0) { // Ar2NH
frags[73]++;
Expand All @@ -1317,7 +1315,6 @@ private void calcGroup066_to_079(int i) {
frags[67]++;
alogpfrag[i] = 67;
}
frags[htype]++;
} else if (fragment[i].equals("SsssN")) {
if ((nAr == 3 && nAl == 0) || (nAr == 2 && nAl == 1)) { // Ar3N &
// Ar2NAl
Expand Down Expand Up @@ -1370,8 +1367,8 @@ private void calcGroup066_to_079(int i) {
} else if (fragment[i].equals("SdNH") || fragment[i].equals("SdsN")) {
// test for RO-NO
if (fragment[i].equals("SdsN")) {
IAtom ca0 = (IAtom) nbors.get(0);
IAtom ca1 = (IAtom) nbors.get(1);
IAtom ca0 = nbors.get(0);
IAtom ca1 = nbors.get(1);
if (ca0.getSymbol().equals("O") && ca1.getSymbol().equals("O")) {
frags[76]++;
alogpfrag[i] = 76;
Expand Down Expand Up @@ -1402,13 +1399,12 @@ private void calcGroup066_to_079(int i) {
if (flag1 && flag2) { // X-N=X or Ar-N=X
frags[78]++;
alogpfrag[i] = 78;
return;
} else {
//logger.debug("missing group: R-N=X");
}
}

if (fragment[i].equals("SdNH"))
frags[50]++;
} else if (fragment[i].indexOf('p') > -1) {
frags[79]++;
alogpfrag[i] = 79;
Expand Down

0 comments on commit 6abe4be

Please sign in to comment.