From 3ebcd4e7139a1c0845d521610f470ab795026933 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Fri, 9 Feb 2018 09:42:25 +0000 Subject: [PATCH] JAL-2780 JAL-2781 should always ensure SIFTS mappings are made to dataset sequence rather than the alignment sequence. --- src/jalview/ws/sifts/SiftsClient.java | 5 +++++ 1 file changed, 5 insertions(+) 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()); -- 1.7.10.2