JAL-2780 JAL-2781 should always ensure SIFTS mappings are made to dataset sequence...
authorJim Procter <jprocter@issues.jalview.org>
Fri, 9 Feb 2018 09:42:25 +0000 (09:42 +0000)
committerJim Procter <jprocter@issues.jalview.org>
Fri, 9 Feb 2018 09:42:25 +0000 (09:42 +0000)
src/jalview/ws/sifts/SiftsClient.java

index 68af7c3..d2db9cf 100644 (file)
@@ -413,6 +413,11 @@ public class SiftsClient implements SiftsClientI
   public StructureMapping getSiftsStructureMapping(SequenceI seq,
           String pdbFile, String chain) throws SiftsException
   {
+    SequenceI aseq = seq;
+    while (seq.getDatasetSequence() != null)
+    {
+      seq = seq.getDatasetSequence();
+    }
     structId = (chain == null) ? pdbId : pdbId + "|" + chain;
     System.out.println("Getting SIFTS mapping for " + structId + ": seq "
             + seq.getName());