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:
0416a98
)
make sure valid value for non-gapped calculation with zero symbol data
author
Jim Procter
<jprocter@dundee.ac.uk>
Thu, 1 May 2014 13:24:07 +0000
(14:24 +0100)
committer
Jim Procter
<jprocter@dundee.ac.uk>
Thu, 1 May 2014 13:24:07 +0000
(14:24 +0100)
src/jalview/analysis/AAFrequency.java
patch
|
blob
|
history
diff --git
a/src/jalview/analysis/AAFrequency.java
b/src/jalview/analysis/AAFrequency.java
index
ca4e71c
..
75a777f
100755
(executable)
--- a/
src/jalview/analysis/AAFrequency.java
+++ b/
src/jalview/analysis/AAFrequency.java
@@
-183,9
+183,11
@@
public class AAFrequency
residueHash.put(PID_GAPS, new Float(percentage));
if (nongap>0) {
+ // calculate for non-gapped too
percentage = ((float) maxCount * 100) / nongap;
- residueHash.put(PID_NOGAPS, new Float(percentage));
}
+ residueHash.put(PID_NOGAPS, new Float(percentage));
+
result[i] = residueHash;
}
}