JAL-2780 JAL-2781 don’t create a mapping if sequence position was not assigned but...
authorJim Procter <jprocter@issues.jalview.org>
Tue, 13 Feb 2018 15:35:41 +0000 (15:35 +0000)
committerJim Procter <jprocter@issues.jalview.org>
Tue, 13 Feb 2018 15:35:41 +0000 (15:35 +0000)
src/jalview/ws/sifts/SiftsClient.java

index 5050c34..b5f9653 100644 (file)
@@ -690,6 +690,13 @@ public class SiftsClient implements SiftsClientI
             ++nonObservedShiftIndex;
           }
         }
+        if (currSeqIndex == UNASSIGNED)
+        {
+          // change in logic - unobserved residues with no currSeqIndex
+          // corresponding are still counted in both nonObservedShiftIndex and
+          // pdbeIndex...
+          continue;
+        }
         // if (currSeqIndex >= seq.getStart() && currSeqIndex <= seqlength) //
         // true
                                                                          // numbering