git://source.jalview.org
/
jalview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
JAL-3199 'Sort Annotations by...' now a one-off action, not a 'state'
[jalview.git]
/
src
/
jalview
/
ws
/
sifts
/
SiftsClient.java
diff --git
a/src/jalview/ws/sifts/SiftsClient.java
b/src/jalview/ws/sifts/SiftsClient.java
index
c9c4618
..
b5f9653
100644
(file)
--- a/
src/jalview/ws/sifts/SiftsClient.java
+++ b/
src/jalview/ws/sifts/SiftsClient.java
@@
-690,6
+690,13
@@
public class SiftsClient implements SiftsClientI
++nonObservedShiftIndex;
}
}
++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
// if (currSeqIndex >= seq.getStart() && currSeqIndex <= seqlength) //
// true
// numbering
@@
-706,21
+713,18
@@
public class SiftsClient implements SiftsClientI
: getLeadingIntegerValue(pdbRefDb.getDbResNum(),
UNASSIGNED);
: 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));
{
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 });
}
}
}
}
}
}