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-2009 Codes to enable storing inserted residues as features to their base residue...
[jalview.git]
/
src
/
jalview
/
structure
/
StructureSelectionManager.java
diff --git
a/src/jalview/structure/StructureSelectionManager.java
b/src/jalview/structure/StructureSelectionManager.java
index
6bc8f84
..
9d06aef
100644
(file)
--- a/
src/jalview/structure/StructureSelectionManager.java
+++ b/
src/jalview/structure/StructureSelectionManager.java
@@
-607,17
+607,18
@@
public class StructureSelectionManager
HashMap<Integer, int[]> mapping = new HashMap<Integer, int[]>();
int resNum = -10000;
int index = 0;
HashMap<Integer, int[]> mapping = new HashMap<Integer, int[]>();
int resNum = -10000;
int index = 0;
+ char insCode = ' ';
do
{
Atom tmp = maxChain.atoms.elementAt(index);
do
{
Atom tmp = maxChain.atoms.elementAt(index);
- if (resNum != tmp.resNumber && tmp.alignmentMapping != -1)
+ if ((resNum != tmp.resNumber || insCode != tmp.insCode)
+ && tmp.alignmentMapping != -1)
{
resNum = tmp.resNumber;
{
resNum = tmp.resNumber;
+ insCode = tmp.insCode;
if (tmp.alignmentMapping >= -1)
{
if (tmp.alignmentMapping >= -1)
{
- // TODO (JAL-1836) address root cause: negative residue no in PDB
- // file
mapping.put(tmp.alignmentMapping + 1, new int[] { tmp.resNumber,
tmp.atomIndex });
}
mapping.put(tmp.alignmentMapping + 1, new int[] { tmp.resNumber,
tmp.atomIndex });
}