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
Merge branch 'features/JAL-4071_visibleFeaturesCounter' into features/JAL-3417_sdppre...
[jalview.git]
/
examples
/
groovy
/
featuresCounter.groovy
diff --git
a/examples/groovy/featuresCounter.groovy
b/examples/groovy/featuresCounter.groovy
index
dc4c97c
..
990800e
100644
(file)
--- a/
examples/groovy/featuresCounter.groovy
+++ b/
examples/groovy/featuresCounter.groovy
@@
-40,8
+40,8
@@
def annotator =
[
getNames: { ['Phosphorylation', 'Turn'] as String[] },
getDescriptions: { ['Count of Phosphorylation features', 'Count of Turn features'] as String[] },
[
getNames: { ['Phosphorylation', 'Turn'] as String[] },
getDescriptions: { ['Count of Phosphorylation features', 'Count of Turn features'] as String[] },
- getMinColour: { [0, 255, 255] as int[] }, // cyan
- getMaxColour: { [0, 0, 255] as int[] }, // blue
+ getMinColour: { i -> [0, 255, 255] as int[] }, // cyan
+ getMaxColour: { i -> [0, 0, 255] as int[] }, // blue
count:
{ res, feats ->
int phos
count:
{ res, feats ->
int phos