From 0ac3a6e702701f6cd46f830cfe4b0a68b71958ed Mon Sep 17 00:00:00 2001
From: Jim Procter
Jalview can be run from the command line, and provides a range of arguments. These arguments - can also be passed via .JVL files, which are opened - automatically by the Jalview application when double-clicked in a - file browser on Windows and OSX. + href="clarguments.html">range of arguments.
- -From version 2.11.2, Jalview includes a launching shell script which is the recommended way to - launch an installed Jalview application from the command line. It supports all the command line arguments - that Jalview has previously supported, but makes it easier to launch directly from the command line.
+There are a few different ways to do this:
++ Jalview's command line launch + script +
Since version 2.11.2, the Jalview native application includes a launching shell script. This is the easiest way to + launch an installed Jalview application from the command line.
To run the launch script, simply open a Terminal (or Command prompt on Windows), and type:
+ jalview+
There are some important differences between the using the launching script and launching Jalview from its icon: +
+ If typing 'jalview' in the terminal prompt (or windows command line)
+ doesn't work then you will need to add the location of the jalview
+ launch script to your
+ PATH
.
+ How you do this depends on your operating system.
- -If you installed Jalview prior to version 2.11.2 you will not have had the option to add the launching shell script to your PATH.
- If your application has updated to 2.11.2 then the scripts will now be there, but not in your PATH
.
- There are instructions below to add the launching shell script to your PATH
if you want to do so.
In Linux or Unix (jalview.sh
)
The installer gives you the option of adding a symbolic link to +
Running the Linux installer will give you the option of adding a symbolic link to
that script in your $PATH
, if it finds a suitable place that your user can add such a
link (e.g. ~/bin
, ~/.local/bin
, ~/local/bin
, ~/opt/bin
). If you chose that option then
you should be able to launch Jalview on the command line with the simple command
@@ -66,7 +86,7 @@
In Windows (jalview.bat
, jalview.ps1
)
The installer gives you the option of adding Jalview's script folder to your %PATH%
allowing you to launch Jalview
+
The Windows installer will give you the option of adding Jalview's script folder to your %PATH%
allowing you to launch Jalview
in a Command Prompt simply with the command
jalviewIf you didn't choose that option during installation (or used an earlier version installer), you can either @@ -90,24 +110,29 @@
In macOS (jalview
)
- The script you should use to launch Jalview is linked to as + We don't currently provide a macOS installer program, so you will need to add the command to you path manually. The script you should use to launch Jalview is linked to as
/Applications/Jalview.app/Contents/MacOS/jalviewso you can run that command with its full path, or make your own symbolic link to there, or add that folder to your
$PATH
.
-
- If Jalview automatically updated from a version before 2.11.2 you will have to make a symbolic link to /Applications/Jalview.app/Content/Resources/app/bin/jalview.sh
with the command
-
ln -s /Applications/Jalview.app/Content/Resources/app/bin/jalview.sh jalview- +
+ If you cannot see the
+ jalview
+ command in the MacOS directory, then you probably have an older
+ Jalview installation. In that case, you should make a symbolic
+ link directly to the launch script with the command
+
ln -s /Applications/Jalview.app/Content/Resources/app/bin/jalview.sh jalview+ If this doens't work, check your installation is running + Jalview 2.11.2.0 or later. +
Future
+If you are using a version of Jalview prior to 2.11.2, you can still launch from the command line, but you will have to @@ -122,7 +147,7 @@
open /Applications/Jalview.app --args -open /FULL/PATH/TO/myalignment.fa- (put all the Jalview arguments after the --args parameter, and note that paths to files should be full paths from
/
)
+ (put all the Jalview arguments after the --args parameter, and note that all files must be specified with their full paths)
-- 1.7.10.2