From 0943de76f6a7435894e72479671642c05f2f3687 Mon Sep 17 00:00:00 2001
From: gmungoc Running Jalview from the command line Jalview is most easily run from the command line if you have built
it from source, or via the 'Jalview' executable created from the
- InstallAnywhere jalview installation. Both of these mechanisms allow
- true command line execution of jalview - allowing you to provide
+ InstallAnywhere Jalview installation. Both of these mechanisms allow
+ true command line execution of Jalview - allowing you to provide
additional options.
The Java Webstart version of
- jalview can be executed from the command line using something like
+ Jalview can be executed from the command line using something like
:
Running jalview from the InstallAnywhere
+ Running Jalview from the InstallAnywhere
installation If you install with InstallAnywhere you can use several more commands.
However, if you call the application with the link provided by InstallAnywhere
any output from the application will be sent to output.txt, not standard
out.javaws http://www.jalview.org/webstart/jalview.jnlp -open
yourFileName
But, this is not guaranteed to work on all versions of webstart on all
operating systems, and doesn't let you execute Jalview with any
additional parameters.
-
- The jalview application also requires a number of additional
+ The Jalview application also requires a number of additional
libraries on the class path. The command line below adds the Jalview
installation's 'lib' directory to the list of directories that are
searched for jars to be added to the classpath:
Scores
Scores can be associated with sequence features, and used to sort
-sequences or shade the alignment (this was added in jalview 2.5).
+sequences or shade the alignment (this was added in Jalview 2.5).
The score field is optional, and malformed scores will be
ignored.
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.