3 * Jalview is distributed in the hope that it will be useful, but
4 * WITHOUT ANY WARRANTY; without even the implied warranty
5 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR
6 * PURPOSE. See the GNU General Public License for more details.
8 * You should have received a copy of the GNU General Public License
9 * along with Jalview. If not, see <http://www.gnu.org/licenses/>.
10 * The Jalview Authors are detailed in the 'AUTHORS' file.
12 <title>Command Line: reference</title>
15 <h1>Command Line: reference</h1>
18 <a href="clarguments.html">Command Line: introduction</a>
20 <a href="clarguments-basic.html">Command Line: basic usage</a>
22 <a href="clarguments-advanced.html">Command Line: advanced usage</a>
24 <a href="clarguments-argfiles.html">Command Line: argument files</a>
26 Command Line: reference
32 <li><a href="#initialisingarguments">Initialising arguments</a></li>
33 <li><a href="#openinganalignment">Opening an alignment</a></li>
34 <li><a href="#adding3dstructure">Adding 3D structure</a></li>
35 <li><a href="#processingalignments">Processing alignments</a></li>
36 <li><a href="#outputtingalignmentfiles">Outputting alignment files</a></li>
37 <li><a href="#exportingimagefiles">Exporting image files</a></li>
38 <li><a href="#controllingflowofarguments">Controlling flow of arguments</a></li>
42 <h2><a name="initialisingarguments"></a>Initialising arguments</h2>
44 <table border="1" cellpadding="3">
46 <td><strong>argument</strong></td>
47 <td><strong>action</strong></td>
51 <td><code>‑‑help / -h</code>
53 <td>Display a help statement.</td>
56 <tr valign="top"><td><code>‑‑help‑config</code></td><td>Help for arguments used to configure Jalview from startup</td></tr>
57 <tr valign="top"><td><code>‑‑help‑opening</code></td><td>Help for arguments used to open and format alignments</td></tr>
58 <tr valign="top"><td><code>‑‑help‑structure</code></td><td>Help for arguments used to add and format 3D structure data</td></tr>
59 <tr valign="top"><td><code>‑‑help‑process</code></td><td>Help for arguments used to process an alignment once opened</td></tr>
60 <tr valign="top"><td><code>‑‑help‑output</code></td><td>Help for arguments used to save data from a processed alignment</td></tr>
61 <tr valign="top"><td><code>‑‑help‑image</code></td><td>Help for arguments used to export an image of an alignment</td></tr>
62 <tr valign="top"><td><code>‑‑help‑structureimage</code></td><td>Help for arguments used to export an image of an structure</td></tr>
63 <tr valign="top"><td><code>‑‑help‑flow</code></td><td>Help for arguments that control processing of the other arguments</td></tr>
64 <tr valign="top"><td><code>‑‑help‑all</code></td><td>Help for all arguments</td></tr>
67 <td><code>‑‑headless</code></td>
68 <td>Run Jalview in headless mode. In headless mode, no GUI interface will be created and Jalview will quit after all arguments have been processed.
70 If you use a command line argument to specify an output file of some kind (<code>‑‑output</code>, <code>‑‑image</code> or <code>‑‑structureimage</code>) then <strong>headless mode will be assumed</strong>. If you don't want this behaviour use <code>‑‑gui</code>.
75 <td><code>‑‑gui</code></td>
76 <td>Force Jalview to run in graphical mode. This can be used to counter the assumption of headless mode when an argument that creates an output file is used. <code>‑‑gui</code> takes precedence over <code>‑‑headless</code>.</td>
80 <td><code>‑‑jabaws <em>URL</em></code></td>
81 <td>Set a different URL to connect to a JABAWS server.</td>
85 <td><code>‑‑news / ‑‑nonews</code></td>
86 <td>Show (/ or don't show) the news feed.</td>
90 <td><code>‑‑splash / ‑‑nosplash</code></td>
91 <td>Show (/ or don't show) the About Jalview splash screen.</td>
95 <td><code>‑‑questionnaire / ‑‑noquestionnaire</code></td>
96 <td>Show (/ or don't show) the questionnaire if one is available.</td>
100 <td><code>‑‑nousagestats</code></td>
101 <td>Don't send usage stats via Google analytics for this session. <em>Note: usage stats are useful for future funding for Jalview!</em></td>
105 <td><code>‑‑nostartupfile</code></td>
106 <td>Don't show the default startup file.</td>
110 <td><code>‑‑webservicediscovery / ‑‑nowebservicediscovery</code></td>
111 <td>Attempt (/ or don't attempt) to connect to JABAWS web services.</td>
115 <td><code>‑‑props <em>filename</em></code></td>
116 <td>Use file <em>filename</em> as the preferences file <em>instead</em> of the usual <code>~/.jalview_properties</code> file.</td>
120 <td><code>‑‑debug</code></td>
121 <td>Start Jalview in debug log level.</td>
125 <td><code>‑‑quiet</code></td>
126 <td>Stop all output to STDOUT (after the Java Virtual Machine has started). Use <code>‑‑quiet</code> a second time to stop all output to STDERR.</td>
131 <td><code>‑‑P<em>PREFERENCE=VALUE</em></code></td>
132 <td>Set a Jalview preference for this session only. Experimental.</td>
138 <td><code>‑‑initsubstitutions / ‑‑noinitsubstitutions</code></td>
139 <td>Set <code>‑‑substitutions</code> to be initially enabled (or initially disabled).</td>
145 <td><code>‑‑threads <em>NUMBER</em></code></td>
146 <td>When opening multiple alignment windows, set a limit of <em>NUMBER</em> alignments being processed at one time. The default is 3.</td>
152 <td><code>‑‑jvmmempc=<em>PERCENT</em></code></td>
154 Limit maximum heap size (memory) to <em>PERCENT</em>% of total physical memory detected.
155 This defaults to 90 if total physical memory can be detected.
157 The equals sign ("=") separator must be used with no spaces.
159 See <a href="../memory.html">Memory usage settings for Jalview</a> for more details.
164 <td><code>‑‑jvmmemmax=<em>MAXMEMORY</em></code></td>
166 Limit maximum heap size (memory) to <em>MAXMEMORY</em>. <em>MAXMEMORY</em> can be specified in bytes, kilobytes(k), megabytes(m),
167 gigabytes(g) or if you're lucky enough, terabytes(t).
168 This defaults to 32g if total physical memory can be detected, or to 8g if total physical memory cannot be detected.
170 The equals sign ("=") separator must be used with no spaces.
172 See <a href="../memory.html">Memory usage settings for Jalview</a> for more details.
179 <h2><a name="openinganalignment"></a>Opening an alignment</h2>
181 <table border="1" cellpadding="3">
183 <td><strong>argument</strong></td>
184 <td><strong>action</strong></td>
185 <td><strong>sub-value modifiers</strong> (optional)</td>
186 <td><strong>linked</strong> (optional)</td>
190 <td><code>‑‑open <em>filename/URL ...</em></code></td>
192 Opens one or more alignment files <em>filename</em> or URLs <em>URL</em> in new alignment windows.
196 colour=<em>name</em>,
198 title=<em>string</em>,
200 features=<em>filename</em>,
202 annotations=<em>filename</em>,
204 tree=<em>filename</em>,
215 <td align="center">✓</td>
219 <td><code>‑‑append <em>filename/URL ...</em></code></td>
220 <td>Appends one or more alignment files <em>filename</em> or URLs <em>URL</em> to the open alignment window (or opens a new alignment if none already open).</td>
223 colour=<em>name</em>,
225 title=<em>string</em>,
227 features=<em>filename</em>,
229 annotations=<em>filename</em>,
231 tree=<em>filename</em>,
242 <td align="center">✓</td>
246 <td><code>‑‑title <em>"string"</em></code></td>
247 <td>Specifies the title for the open alignment window as <em>string</em>.</td>
249 <td align="center">✓</td>
253 <td><code>‑‑colour <em>name</em></code></td>
254 <td>Applies the colour scheme <em>name</em> to the open alignment window. Valid values for <em>name</em> include:
256 <code>clustal</code>,
258 <code>blosum62</code>,
260 <code>pc-identity</code>,
266 <code>gecos-flower</code>,
268 <code>gecos-blossom</code>,
270 <code>gecos-sunset</code>,
272 <code>gecos-ocean</code>,
274 <code>hydrophobic</code>,
276 <code>helix-propensity</code>,
278 <code>strand-propensity</code>,
280 <code>turn-propensity</code>,
282 <code>buried-index</code>,
284 <code>nucleotide</code>,
286 <code>nucleotide-ambiguity</code>,
288 <code>purine-pyrimidine</code>,
290 <code>rna-helices</code>,
292 <code>t-coffee-scores</code>,
294 <code>sequence-id</code>.
297 Names of user defined schemes will also work, and jalview colour scheme specifications like:
299 <code>‑‑colour "D,E=red; K,R,H=0022FF; C,c=yellow"</code>
301 <td align="center">✓</td>
305 <td><code>‑‑features <em>filename/URL</em></code></td>
306 <td>Add a feature file <em>filename</em> or URL <em>URL</em> to the open alignment.</td>
308 <td align="center">✓</td>
314 <td><code>‑‑tree <em>filename/URL</em></code></td>
315 <td>Add a tree file <em>filename</em> or URL <em>URL</em> to the open alignment.</td>
317 <td align="center">✓</td>
321 <td><code>‑‑sortbytree / ‑‑nosortbytree</code></td>
322 <td>Enforces sorting (or not sorting) the alignment in the order of an attached phylogenetic tree.</td>
324 <td align="center">✓</td>
329 <td><code>‑‑annotations <em>filename/URL</em></code></td>
330 <td>Add an annotations file <em>filename</em> or URL <em>URL</em> to the open alignment.</td>
332 <td align="center">✓</td>
336 <td><code>‑‑showannotations / ‑‑noshowannotations</code></td>
337 <td>Enforces showing (or not showing) alignment annotations.</td>
339 <td align="center">✓</td>
343 <td><code>‑‑wrap / ‑‑nowrap</code></td>
344 <td>Enforces wrapped (or not wrapped) alignment formatting.</td>
346 <td align="center">✓</td>
350 <td><code>‑‑nostructure</code></td>
351 <td>Do not open or process any 3D structure in the <code>‑‑open</code> or <code>‑‑append</code> files.</td>
353 <td align="center">✓</td>
359 <h2><a name="adding3dstructure"></a>Adding 3D structure</h2>
361 <table border="1" cellpadding="3">
363 <td><strong>argument</strong></td>
364 <td><strong>action</strong></td>
365 <td><strong>sub-value modifiers</strong> (optional)</td>
366 <td><strong>linked</strong> (optional)</td>
370 <td><code>‑‑structure <em>filename/URL</em></code></td>
371 <td>Load a structure file <em>filename</em> or URL <em>URL</em> associated with a sequence in the open alignment. The sequence to be associated with can be specified with a following <code>‑‑seqid</code> argument, or the sub-value modifier <code>seqid=<em>ID</em></code> can be used. A sub-value <em>INDEX</em> can also be used to specify the <em>INDEX-th</em> sequence in the open alignment.</td>
374 seqid=<em>id</em></code> or <code><em>INDEX</em>,
376 paefile=<em>filename</em>,
378 tempfac=<em>name</em>,
386 structureviewer=<em>name</em>
388 <td align="center">✓</td>
393 <td><code>‑‑seqid <em>ID</em></code></td>
394 <td>Specify the sequence name for the preceding <code>‑‑structure</code> to be associated with.</td>
396 <td align="center">✓</td>
401 <td><code>‑‑paematrix <em>filename</em></code></td>
402 <td>Add a PAE json matrix file <em>filename</em> to the preceding <code>‑‑structure</code>.</td>
404 <td align="center">✓</td>
409 <td><code>‑‑tempfac <em>name</em></code></td>
410 <td>Set the type of temperature factor. Valid values for <em>name</em> are:
412 <code>default</code>,
417 <td align="center">✓</td>
422 <td><code>‑‑structureviewer <em>name</em></code></td>
423 <td>Set the structure viewer to use to open the 3d structure file specified in previous <code>‑‑structure</code> to <em>name</em>. Valid values of <em>name</em> are:
429 <code>chimera</code> <em>- requires installation, might need configuring in Preferences</em>,
431 <code>chimerax</code> <em>- requires installation, might need configuring in Preferences</em>,
433 <code>pymol</code> <em>- requires installation, might need configuring in Preferences</em>
436 <td align="center">✓</td>
442 <td><code>‑‑notempfac</code></td>
443 <td>Do not show the temperature factor annotation for the preceding <code>‑‑structure</code></td>
445 <td align="center">✓</td>
451 <td><code>‑‑showssannotations / ‑‑noshowssannotations</code></td>
452 <td>Do not show secondary structure annotations for the preceding <code>‑‑structure</code></td>
454 <td align="center">✓</td>
458 <td><code>‑‑close</code></td>
459 <td>Close the open alignment window. This occurs after other output, processing and image export arguments. This applies to the current open alignment -- to apply to all <code>‑‑output</code> and <code>‑‑image</code> files, use after <code>‑‑all</code>.</td>
461 <td align="center">✓</td>
467 <h2><a name="processingalignments"></a>Processing alignments</h2>
469 <table border="1" cellpadding="3">
471 <td><strong>argument</strong></td>
472 <td><strong>action</strong></td>
473 <td><strong>sub-value modifiers</strong> (optional)</td>
474 <td><strong>linked</strong> (optional)</td>
478 <td><code>‑‑groovy <em>filename</em></code></td>
479 <td>Process a groovy script in the file for the open alignment.</td>
481 <td align="center">✓</td>
486 <h2><a name="outputtingalignmentfiles"></a>Outputting alignment files</h2>
488 <table border="1" cellpadding="3">
490 <td><strong>argument</strong></td>
491 <td><strong>action</strong></td>
492 <td><strong>sub-value modifiers</strong> (optional)</td>
493 <td><strong>linked</strong> (optional)</td>
497 <td><code>‑‑output <em>filename</em></code></td>
498 <td>Export the open alignment to file <em>filename</em>. The format <em>name</em> is specified by the sub-value modifier <code>format=<em>name</em></code>, a following <code>‑‑format <em>name</em></code> argument or guessed from the file extension. Valid format names (and file extensions) are:
500 <code>fasta</code> (<code>fa, fasta, mfa, fastq</code>),
502 <code>pfam</code> (<code>pfam</code>),
504 <code>stockholm</code> (<code>sto, stk</code>),
506 <code>pir</code> (<code>pir</code>),
508 <code>blc</code> (<code>blc</code>),
510 <code>amsa</code> (<code>amsa</code>),
512 <code>json</code> (<code>json</code>),
514 <code>pileup</code> (<code>pileup</code>),
516 <code>msf</code> (<code>msf</code>),
518 <code>clustal</code> (<code>aln</code>),
520 <code>phylip</code> (<code>phy</code>),
522 <code>jalview</code> (<code>jvp, jar</code>).
524 To output directly to STDOUT (console output) use the filename <code>-</code> (a single hyphen). In this case all STDOUT messages will instead go to STDERR. If no <code>format</code> is supplied then Fasta will be assumed.
526 <td><code>format=<em>name</em></code></td>
527 <td align="center">✓</td>
531 <td><code>‑‑format <em>name</em></code></td>
532 <td>Sets the format for the preceding <code>‑‑output</code> file. Valid formats are:
538 <code>stockholm</code>,
552 <code>clustal</code>,
556 <code>jalview</code>.
559 <td align="center">✓</td>
563 <td><code>‑‑backups / ‑‑nobackups</code></td>
564 <td>Enable (or disable) writing backup files when saving an <code>‑‑output</code> file. This applies to the current open alignment -- to apply to all <code>‑‑output</code> and <code>‑‑image</code> files, use after <code>‑‑all</code>.</td>
566 <td align="center">✓</td>
570 <td><code>‑‑overwrite / ‑‑nooverwrite</code></td>
571 <td>Enable (or disable) overwriting of output files without backups enabled. This applies to the current open alignment -- to apply to all <code>‑‑output</code> and <code>‑‑image</code> files, use after <code>‑‑all</code>.</td>
573 <td align="center">✓</td>
577 <td><code>‑‑mkdirs</code></td>
578 <td>Enable automatic creation of new directories and parent directories for filenames given, or created through substitutions, in <code>‑‑output</code>, <code>‑‑image</code> or <code>‑‑structureimage</code> arguments.
580 <td align="center">✓</td>
585 Automatically create directories when outputting a file to a new directory
589 <h2><a name="exportingimagefiles"></a>Exporting image files</h2>
591 <table border="1" cellpadding="3">
593 <td><strong>argument</strong></td>
594 <td><strong>action</strong></td>
595 <td><strong>sub-value modifiers</strong> (optional)</td>
596 <td><strong>linked</strong> (optional)</td>
600 <td><code>‑‑image <em>filename</em></code></td>
601 <td>Output an image of the open alignment window. Format is specified by the sub-value modifier, a following <code>‑‑type</code> argument or guessed from the file extension. Valid formats/extensions are:
617 textrenderer=<em>name</em>,
619 scale=<em>number</em>,
621 width=<em>number</em>,
623 height=<em>number</em>,
625 imagecolour=<em>name</em>
628 <td align="center">✓</td>
632 <td><code>‑‑structureimage <em>filename</em></code></td>
633 <td>Export an image of a 3D structure opened in JMOL (currently jmol only). Each <code>‑‑structureimage</code> filename will output a file for each <code>‑‑structureimage</code> that has been applied to the open alignment window. In this situation, to avoid overwriting the same file with each structure, additional substitutions <code>{structuredirname}</code>, <code>{structurebasename}</code> and <code>{structureextname}</code> are available being substituted with the directory path, file basename and file extension of each structure file. Image formats can be:
645 textrenderer=<em>name</em>,
647 scale=<em>number</em>,
649 width=<em>number</em>,
651 height=<em>number</em>,
653 imagecolour=<em>name</em>
655 bgcolour=<em>name</em>
658 <td align="center">✓</td>
662 <td><code>‑‑type <em>name</em></code></td>
663 <td>Set the image format for the preceding <code>‑‑image</code> or <code>‑‑structureimage</code> to <em>name</em>. Valid values for <em>name</em> are:
676 <td align="center">✓</td>
680 <td><code>‑‑textrenderer <em>name</em></code></td>
681 <td>Sets whether text in a vector image format (SVG, HTML, EPS) should be rendered as text or vector line-art. Applies to the preceding <code>‑‑image</code> or <code>‑‑structureimage</code>. Valid values for <em>name</em> are:
685 <code>lineart</code>.
688 <td align="center">✓</td>
692 <td><code>‑‑scale <em>number</em></code></td>
693 <td>Sets a scaling for bitmap image format (PNG). Should be given as a floating point number. Applies to the preceding <code>‑‑image</code> or <code>‑‑structureimage</code>. This can also be set as a sub-value modifier to the <code>‑‑image</code> or <code>‑‑structureimage</code> value. If used in conjunction with <code>‑‑width</code> and <code>‑‑height</code> then the smallest size will be used (<code>scale</code>, <code>width</code> and <code>height</code> provide bounds for the image).
696 <td align="center">✓</td>
700 <td><code>‑‑width <em>number</em></code></td>
701 <td>Sets a width for bitmap image format (PNG) with the height maintaining the aspect ratio. Applies to the preceding <code>‑‑image</code> or <code>‑‑structureimage</code>. Should be given as a positive integer. This can also be set as a sub-value modifier to the <code>‑‑image</code> or <code>‑‑structureimage</code> value. If used in conjunction with <code>‑‑scale</code> and <code>‑‑height</code> then the smallest size will be used (<code>scale</code>, <code>width</code> and <code>height</code> provide bounds for the image).
704 <td align="center">✓</td>
708 <td><code>‑‑height <em>number</em></code></td>
709 <td>Sets a height for bitmap image format (PNG) with the width maintaining the aspect ratio. Applies to the preceding <code>‑‑image</code> or <code>‑‑structureimage</code>. Should be given as a positive integer. This can also be set as a sub-value modifier to the <code>‑‑image</code> or <code>‑‑structureimage</code> value. If used in conjunction with <code>‑‑scale</code> and <code>‑‑width</code> then the smallest size will be used (<code>scale</code>, <code>width</code> and <code>height</code> provide bounds for the image).</td>
711 <td align="center">✓</td>
715 <td><code>‑‑bgcolour <em>name</em></code></td>
716 <td>Only applies to structure images (opened with <code>jmol</code> structure viewer). Sets the background colour of the preceding <code>‑‑structureimage</code>. <em>name</em> should be either a named colour (e.g. <code>white</code>, <code>cyan</code>) known to Jmol, or can be given as a six digit RGB hex string preceded by a hash (#) character (e.g. <code>#ffffff</code>, <code>00ffff</code>). Note that you made need to quote a hashed RGB hex string. This can also be set as a sub-value modifier to the <code>‑‑structureimage</code> value.</td>
718 <td align="center">✓</td>
722 <td><code>‑‑groovy <em>filename</em></code></td>
723 <td>Process a groovy script in the file for the open alignment.</td>
725 <td align="center">✓</td>
731 <h2><a name="controllingflowofarguments"></a>Controlling flow of arguments</h2>
733 <table border="1" cellpadding="3">
735 <td><strong>argument</strong></td>
736 <td><strong>action</strong></td>
740 <td><code>‑‑new</code></td>
742 Move on to a new alignment window. This will ensure <code>‑‑append</code> will start a new alignment window and other linked arguments will apply to the new alignment window.
744 <em>Note</em> that <code>‑‑open</code> already starts a new alignment window for each file it opens.
749 <td><code>‑‑substitutions / ‑‑nosubstitutions</code></td>
750 <td>The following argument values allow (or don't allow) subsituting filename parts. This is initially true. Valid substitutions are
752 <code>{basename}</code> - the filename-without-extension of the currently <code>‑‑open</code>ed file (or first <code>‑‑append</code>ed file),
754 <code>{dirname}</code>, - the directory (folder) name of the currently <code>‑‑open</code>ed file (or first <code>‑‑append</code>ed file),
755 <code>{extension}</code>, - the extension of the filename of the currently <code>‑‑open</code>ed file (or first <code>‑‑append</code>ed file),
757 <code>{argfilebasename}</code> - the filename-without-extension of the current <code>‑‑argfile</code>,
759 <code>{argfiledirname}</code> - the directory (folder) name of the current <code>‑‑argfile</code>,
761 <code>{structurebasename}</code> - the filename-without-extension of the <code>‑‑structure</code> file. Only available to <code>‑‑structureimage</code> .
763 <code>{structuredirname}</code>, - the directory (folder) name of the <code>‑‑structure</code> file. Only available to <code>‑‑structureimage</code> .
765 <code>{structureextension}</code>, - the extension of the filename of the <code>‑‑structure</code> file. Only available to <code>‑‑structureimage</code> .
767 <code>{n}</code> - the value of the index counter (starting at 0).
769 <code>{++n}</code> - increase and substitute the value of the index counter.
771 <code>{m}</code> - the value of the on-the-fly counter (starting at 0). Only available to <code>‑‑structureimage</code> .
773 <code>{++m}</code> - increase and substitute the (incremented) value of the on-the-fly counter. Only available to <code>‑‑structureimage</code> .
775 <code>{}</code> - the value of the current alignment window <em>default</em> index.
780 <td><code>‑‑argfile <em>filename</em></code></td>
782 Open one or more files <em>filename</em> and read, line-by-line, as arguments to Jalview.
784 Values in an argfile should be given with an equals sign ("=") separator with no spaces.
786 <strong>Note</strong> that if you use one or more <code>‑‑argfile</code> arguments then all other non-initialising arguments will be ignored.
791 <td><code>‑‑npp</code></td>
792 <td>Increase the index counter used in argument value substitutions.</td>
796 <td><code>‑‑all / ‑‑noall</code></td>
797 <td>Apply (or stop applying) the following output arguments to <em>all</em> sets of linked arguments.</td>
801 <td><code>‑‑allstructures / ‑‑noallstructures</code></td>
803 Apply (or stop applying) the following 3D structure formatting arguments to all structures <em>within the current open alignment</em>. Whilst <code>‑‑allstructures</code> will continue to operate for a <code>‑‑new</code> alignment, the structure formatting arguments must be set again for each new alignment.
808 <td><code>‑‑quit</code></td>
809 <td>After all files have been opened, appended and output, quit Jalview. In <code>‑‑headless</code> mode this already happens.</td>