X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=help%2Fhtml%2Ffeatures%2Fgroovy.html;fp=help%2Fhtml%2Ffeatures%2Fgroovy.html;h=6db1d1c3ec548c5042511fc53e5e00e3d618cc98;hb=f06554784411ddbf871d642e66c8dcb7f147d4a8;hp=b49fc175866590771b359d5e183fe8f6cf429c77;hpb=cf06ee5d732af6cc874115aece1138adafca8ad7;p=jalview.git diff --git a/help/html/features/groovy.html b/help/html/features/groovy.html index b49fc17..6db1d1c 100644 --- a/help/html/features/groovy.html +++ b/help/html/features/groovy.html @@ -44,7 +44,7 @@ The jars are obtained from the embedded directory within the groovy distribution. The easiest way of adding them to the Jalview classpath - is to download and build jalview from its source distribution, and + is to download and build Jalview from its source distribution, and then add the groovy-all-*.jar to the lib directory whose path is given in the java.ext.dirs property.
@@ -59,13 +59,13 @@
Executing groovy scripts on Jalview startup
- The -groovy <script> option on the
+ The -groovy <script> option on the
Jalview command line will execute the contents of <script>.
<script> may be a file, a URL, or alternatively if it is
"STDIN" then the standard input will be used.
Note: The groovy script will be executed after
any data is loaded, and before images or any output
- files are written. This allows you to perform customised jalview
+ files are written. This allows you to perform customised Jalview
analysis workflows with groovy.
@@ -76,13 +76,12 @@ object defined in the groovy environent which corresponds to the
jalview.gui.Desktopobject which manages all the Jalview windows. - Here's an example to get you started:
-def alf = Jalview.getAlignframes(); +def alf = Jalview.getAlignFrames(); print alf[0].getTitle(); def alignment = alf[0].viewport.alignment; def seq = alignment.getSequenceAt(0); @@ -90,8 +89,6 @@ def seq = alignment.getSequenceAt(0);
print currentAlFrame.getTitle();
+If you have downloaded the InstallAnywhere version of Jalview, you can find additional groovy scripts in the examples/groovy subfolder of the installation directory.