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
indicate the database id source associated with the sequences being submitted.
[jalview.git]
/
src
/
jalview
/
datamodel
/
AlignmentAnnotation.java
diff --git
a/src/jalview/datamodel/AlignmentAnnotation.java
b/src/jalview/datamodel/AlignmentAnnotation.java
index
d8ad4fc
..
a3328b3
100755
(executable)
--- a/
src/jalview/datamodel/AlignmentAnnotation.java
+++ b/
src/jalview/datamodel/AlignmentAnnotation.java
@@
-203,7
+203,7
@@
public class AlignmentAnnotation
&& firstChar != '-'
&& firstChar < jalview.schemes.ResidueProperties.aaIndex.length)
{
&& firstChar != '-'
&& firstChar < jalview.schemes.ResidueProperties.aaIndex.length)
{
- if (jalview.schemes.ResidueProperties.aaIndex[firstChar] < 23)
+ if (jalview.schemes.ResidueProperties.aaIndex[firstChar] < 23) // TODO: parameterise to gap symbol number
{
nonSSLabel = true;
}
{
nonSSLabel = true;
}
@@
-310,6
+310,15
@@
public class AlignmentAnnotation
min = annotations[i].value;
}
}
min = annotations[i].value;
}
}
+ // ensure zero is origin for min/max ranges on only one side of zero
+ if (min>0) {
+ min = 0;
+ } else {
+ if (max<0)
+ {
+ max = 0;
+ }
+ }
}
graphMin = min;
}
graphMin = min;