X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fws%2Fsifts%2FSiftsClient.java;h=b5f9653274344e97bad532411c21c7db43b45009;hb=f99b1ac3c8a735f468416feac3160c6bdbe42095;hp=c9c4618e15bb6b85c80c8513e1076507877c6ad2;hpb=d97bf67918528e7c2e1601a537d78eda2fbd2a5d;p=jalview.git diff --git a/src/jalview/ws/sifts/SiftsClient.java b/src/jalview/ws/sifts/SiftsClient.java index c9c4618..b5f9653 100644 --- a/src/jalview/ws/sifts/SiftsClient.java +++ b/src/jalview/ws/sifts/SiftsClient.java @@ -690,6 +690,13 @@ public class SiftsClient implements SiftsClientI ++nonObservedShiftIndex; } } + if (currSeqIndex == UNASSIGNED) + { + // change in logic - unobserved residues with no currSeqIndex + // corresponding are still counted in both nonObservedShiftIndex and + // pdbeIndex... + continue; + } // if (currSeqIndex >= seq.getStart() && currSeqIndex <= seqlength) // // true // numbering @@ -706,21 +713,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 }); } } }