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
Replaced image
[jalview.git]
/
src
/
jalview
/
schemes
/
PIDColourScheme.java
diff --git
a/src/jalview/schemes/PIDColourScheme.java
b/src/jalview/schemes/PIDColourScheme.java
index
66f180b
..
1575a6a
100755
(executable)
--- a/
src/jalview/schemes/PIDColourScheme.java
+++ b/
src/jalview/schemes/PIDColourScheme.java
@@
-53,24
+53,27
@@
public class PIDColourScheme
\r
double sc = 0;
\r
\r
\r
double sc = 0;
\r
\r
- if ( (Integer.parseInt(consensus[j].get("maxCount").toString()) != -1) &&
\r
- consensus[j].contains(s))
\r
- {
\r
- sc = ((Float)consensus[j].get(ignoreGaps)).floatValue();
\r
+ if(consensus.length<=j)
\r
+ return Color.white;
\r
\r
\r
- if (!jalview.util.Comparison.isGap( res ))
\r
+ if ( (Integer.parseInt(consensus[j].get("maxCount").toString()) != -1) &&
\r
+ consensus[j].contains(s))
\r
{
\r
{
\r
- for (int i = 0; i < thresholds.length; i++)
\r
+ sc = ( (Float) consensus[j].get(ignoreGaps)).floatValue();
\r
+
\r
+ if (!jalview.util.Comparison.isGap(res))
\r
{
\r
{
\r
- if (sc > thresholds[i])
\r
+ for (int i = 0; i < thresholds.length; i++)
\r
{
\r
{
\r
- currentColour = pidColours[i];
\r
+ if (sc > thresholds[i])
\r
+ {
\r
+ currentColour = pidColours[i];
\r
\r
\r
- break;
\r
+ break;
\r
+ }
\r
}
\r
}
\r
}
\r
}
\r
}
\r
}
\r
- }
\r
\r
if(conservationColouring)
\r
applyConservation(j);
\r
\r
if(conservationColouring)
\r
applyConservation(j);
\r