From: Jim Procter Date: Tue, 13 Feb 2018 15:34:22 +0000 (+0000) Subject: JAL-2780 JAL-2781 only create a mapping entry or write a character to the ‘mapped... X-Git-Tag: Release_2_10_4~68^2~3 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=2a193973a99a80b2b2d13af673ea64863cdbb6c2;p=jalview.git JAL-2780 JAL-2781 only create a mapping entry or write a character to the ‘mapped sequence’ for observed residues regardless of to/from coordinate frames --- diff --git a/src/jalview/ws/sifts/SiftsClient.java b/src/jalview/ws/sifts/SiftsClient.java index c9c4618..5050c34 100644 --- a/src/jalview/ws/sifts/SiftsClient.java +++ b/src/jalview/ws/sifts/SiftsClient.java @@ -706,21 +706,18 @@ public class SiftsClient implements SiftsClientI : getLeadingIntegerValue(pdbRefDb.getDbResNum(), UNASSIGNED); - if (isResidueObserved(residue) - || seqCoordSys == CoordinateSys.UNIPROT) + if (isObserved) { char resCharCode = ResidueProperties .getSingleCharacterCode(ResidueProperties .getCanonicalAminoAcid(residue.getDbResName())); resNumMap.put(currSeqIndex, String.valueOf(resCharCode)); + + int[] mappingcols = new int[] { Integer.valueOf(resNum), + UNASSIGNED, isObserved ? firstPDBResNum : UNASSIGNED }; + + mapping.put(currSeqIndex - nonObservedShiftIndex, mappingcols); } - // TODO: mapping should have SeqCoordSysNum => int[] {PDBeNum, - // PDBRESNUM, ATOMNUM } - mapping.put(currSeqIndex - nonObservedShiftIndex, - new int[] - { Integer.valueOf(resNum), UNASSIGNED, - isObserved ? firstPDBResNum - : UNASSIGNED }); } } }