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
groovy scripting examples (JAL-???)
[jalview.git]
/
examples
/
groovy
/
closures.groovy
diff --git a/examples/groovy/closures.groovy
b/examples/groovy/closures.groovy
new file mode 100644
(file)
index 0000000..
9e4dd52
--- /dev/null
+++ b/
examples/groovy/closures.groovy
@@ -0,0
+1,5
@@
+writeAnnot = {
+ new File(it).append(new jalview.io.AnnotationFile().printAnnotations(Jalview.getAlignframes()[0].getViewport().getAlignment().getAlignmentAnnotation(),null,null))
+}
+
+