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
JAL-2755 canonicalise the database source for a dbref before resolving a database...
[jalview.git]
/
examples
/
groovy
/
colourSchemes.groovy
diff --git
a/examples/groovy/colourSchemes.groovy
b/examples/groovy/colourSchemes.groovy
index
a5b60c8
..
d5ca973
100644
(file)
--- a/
examples/groovy/colourSchemes.groovy
+++ b/
examples/groovy/colourSchemes.groovy
@@
-82,7
+82,8
@@
def byWeight
byWeight = { ->
[
getSchemeName: { 'By Weight' },
byWeight = { ->
[
getSchemeName: { 'By Weight' },
- isApplicableTo: { coll -> true },
+ // this colour scheme is peptide-specific:
+ isApplicableTo: { coll -> !coll.isNucleotide() },
alignmentChanged: { coll, map -> },
getInstance: { coll, map -> byWeight() },
isSimple: { true },
alignmentChanged: { coll, map -> },
getInstance: { coll, map -> byWeight() },
isSimple: { true },