git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8030eb1
)
check that we're not off the end of a sequence
author
amwaterhouse
<Andrew Waterhouse>
Thu, 10 Feb 2005 13:26:25 +0000
(13:26 +0000)
committer
amwaterhouse
<Andrew Waterhouse>
Thu, 10 Feb 2005 13:26:25 +0000
(13:26 +0000)
src/jalview/schemes/ClustalxColourScheme.java
patch
|
blob
|
history
diff --git
a/src/jalview/schemes/ClustalxColourScheme.java
b/src/jalview/schemes/ClustalxColourScheme.java
index
b28ac76
..
d4789e6
100755
(executable)
--- a/
src/jalview/schemes/ClustalxColourScheme.java
+++ b/
src/jalview/schemes/ClustalxColourScheme.java
@@
-63,7
+63,10
@@
public class ClustalxColourScheme implements ColourSchemeI
seq = ( (SequenceI) seqs.get(j)).getSequence();
\r
for (i = start; i <= end; i++)
\r
{
\r
- res = ( (Integer) ResidueProperties.aaHash.get(seq.charAt(i) + "")).intValue();
\r
+ if(seq.length()-1<i)
\r
+ res = 23;
\r
+ else
\r
+ res = ( (Integer) ResidueProperties.aaHash.get(seq.charAt(i) + "")).intValue();
\r
cons2[i][res]++;
\r
}
\r
j++;
\r