JAL-2780 JAL-2781 should always ensure SIFTS mappings are made to dataset sequence...
[jalview.git] / 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());