From: Jim Procter Date: Fri, 9 Feb 2018 09:42:25 +0000 (+0000) Subject: JAL-2780 JAL-2781 should always ensure SIFTS mappings are made to dataset sequence... X-Git-Tag: Release_2_10_4~68^2~26 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=3ebcd4e7139a1c0845d521610f470ab795026933;p=jalview.git JAL-2780 JAL-2781 should always ensure SIFTS mappings are made to dataset sequence rather than the alignment sequence. --- diff --git a/src/jalview/ws/sifts/SiftsClient.java b/src/jalview/ws/sifts/SiftsClient.java index 68af7c3..d2db9cf 100644 --- a/src/jalview/ws/sifts/SiftsClient.java +++ b/src/jalview/ws/sifts/SiftsClient.java @@ -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());