The JalviewLite applet is configured through a series of applet parameters, which are described below. Once initialised, the applet can be interacted with via its Javascript API.
Issues arising from tightening of Java Security default settings
JalviewLite is provided as a signed applet with 'sandbox' permissions and wildcards that allow it to be run from any website. Unfortunately, earlier versions of Java may not be compatible with these settings.
For additional deployment notes, see Applet Deployment.
<param name="" | value=""> | Description |
permissions | sandbox | This parameter is necessary, and must have the value sandbox to allow the JalviewLite applet to run. |
file | fileName | The file to open, must be on same server as the applet. |
file2 | fileName | A second file to open and show linked in a Split Frame view. If one file is nucleotide and the other peptide, and at least one peptide sequence matches the translation of one of the nucleotide sequences, then gaps will be inserted into the sequences in this file to match the aligned columns for corresponding positions in the primary alignment file. This parameter is ignored if enableSplitFrame is set to false (since 2.9). |
enableSplitFrame | true or false (default true) | Enable or disable the display of linked cDNA and Protein alignments in a split frame (since 2.9). |
sequence1, sequence2, sequence3 |
sequence in (preferably) PFAM or Fasta format | The alignment can be added as a series of sequences instead of from a file. |
tree | fileName | Tree file in Newick format |
features | fileName | Jalview Features file to be applied to the alignment |
annotations | fileName | Jalview Annotation file will be added to the alignment |
jnetfile | fileName | Secondary structure predictions from a JPred Concise
file will be added to the first sequence in the alignment. jpredfile can be used interchangeably with this parameter. |
PDBfile(x) | fileName seq1 seq2 seq3 or fileName A=seq1 B=seq2 C=seq3 |
PDB file which is to be associated with a sequence, followed by space separated list of alignment sequence ids. PDB chains can be specifed to map to particular sequence by using A=SeqA notation |
PDBSeq |
SequenceId | The sequence to associate a PDB file with. Note the value is case sensitive. |
defaultColour | One of: Clustal, Blosum62, % Identity, Hydrophobic, Zappo, Taylor, Helix Propensity, Strand Propensity, Turn Propensity, Buried Index, Nucleotide, Purine/Pyrimidine, T-Coffee Scores, RNA Helices |
Default is no colour. |
defaultColourNuc | A colour scheme (from the list above) to apply to Nucleotide alignments | This overrides defaultColour if it is specified. |
defaultColourProt | A colour scheme (from the list above) to apply to Peptide alignments | This overrides defaultColour if it is specified. |
userDefinedColour | Example: |
Define residue colours |
showFullId | true or false | if true displays start and end residue at the end of sequence Id. |
showAnnotation | true or false | If true shows the annotation panel below the alignment. |
showConservation | true or false | Default is true. |
showQuality | true or false | Default is true. |
showConsensus | true or false | Default is true. |
showOccupancy | true or false | Default is true. |
sortBy | Id , Pairwise Identity, or Length | Sorts the alignment on startup |
RGB | colour as hex string | Background colour for applet button - purely cosmetic to blend in with your web page. For orange, enter the value FF6600 |
embedded | true or false | The applet is embedded in the web page, the "Start Jalview" button is not displayed. |
windowWidth | value | frame width |
windowHeight | value | frame height |
label | label text | Change text for the Launch Jalview Button |
wrap | true or false | Opens new windows in wrapped mode |
linkLabel_1 | EMBL-EBI Search | Right click on sequence id to see list of available
links. Any new links MUST have $SEQUENCE_ID$ as part of the linkURL_n
value. For multiple links, increment the label and url name by
1. ie Regular expressions may also be used (since Jalview 2.4) to process the ID string inserted into the URL:
|
|
|
|
showFeatureSettings | true or false | Shows the feature settings window when starting the applet |
showfeaturegroups | separator separated list of feature groups | Display the features in the given groups on the alignment |
hidefeaturegroups | separator separated list of feature groups | Hide the features in the given groups on the alignment (will be overridden by showfeaturegroups for group names found in both lists) |
application_url | URL of dynamic JNLP servlet, http://www.jalview.org/services/launchApp |
Launches full application with original alignment, features and annotations files used in applet |
separator | non-empty separator string default: | |
string used to separate fields in list parameters (such as showfeaturegroups) |
debug | true | Instruct the applet to output additional debug messages to the java console |
nojmol | false | When set, do not try to find Jmol classes. Set this to supress URL not found errors appearing in server logs when Jmol is not available. |
showbutton | true | Show the jalview button on the page. When false, JalviewLite will open immediately. |
sortByTree | true or false (default is false) | automatically sort the associated alignment view by the tree when a new tree is opened. |
showTreeBootstraps | true or false (default is true) | show or hide branch bootstraps |
showTreeDistances | true or false (default is true) | show or hide branch lengths |
showUnlinkedTreeNodes | true or false (default is false) | indicate if unassociated nodes should be highlighted in the tree view |
heightScale | 1.0 or greater | Adjust the height of each cell in the alignment grid relative to the height of a character in the alignment font. (since 2.5.1) |
widthScale | 1.0 or greater | Adjust the width of each cell in the alignment grid relative to the width of a character in the alignment font. (since 2.5.1) |
scaleProteinAsCdna | true or false (default is false) | Set true to shown protein residues the same width as their encoding codons. For use with parameter file2 when showing a split frame of cDNA and protein. (since 2.9) |
centrecolumnlabels | true or false (default is false) | When true, text labels associated with a column in the alignment will be shown centered with respect to the column. (since 2.4) |
showUnconserved | true or false (default is false) | When true, only gaps and symbols different to the consensus sequence for a column will be shown. Useful for visualizing alignments exhibiting low sequence variation, where it is important to highlight mutations. (since 2.5) |
upperCase | bold or other value | Indicate a text style to apply to uppercase sequence symbols. Currently, only bold is supported. |
automaticScrolling | true or false (default is true) | When true, alignment panels will automatically scroll to show any regions of the alignment highlighted due to javascript events or when mousing over a position in an associated structure. (since 2.6) |
showGroupConsensus | true or false (default is false) | When true, shows consensus annotation row for any groups on the alignment. (since 2.7) |
showGroupConservation | true or false (default is false) | When true, shows amino-acid property conservation annotation row for any groups on the alignment. (since 2.7) |
showConsensusHistogram | true or false (default is true) | When true, shows the percentage occurence of the consensus symbol for each column as a histogram above the consensus sequence row. (since 2.7) |
showSequenceLogo | true or false (default is false) | When true, shows a sequence logo above the consensus sequence (overlaid above the Consensus Histogram, if visible, with symbols coloured using the alignment's default colourscheme). (since 2.7) |
normaliseSequenceLogo | true or false (default is false) | When true, all sequence logos will be normalised (all symbol stacks add up to full height of annotation row), rather than being scaled according to the fraction of symbols identical to the consensus. (since 2.8) |
oninit | after_init() | name of javascript function that will be called after the jalviewLite instance has completed its initialisation. (since 2.7) |
relaxedidmatch | true or false (default is false) | When true, use stem based matching to identify sequences that match features imported from a GFF or Jalview sequence features file, and for associating PDB data (passed on PDBfile parguments) with sequences (based on a given destination sequence ID). (since 2.7) |
alignpdbfiles | true or false (default is false) | When true, and jalviewLite is able to use jmol as a structure viewer, attempt to show a superposition of all structures loaded onto the alignment, superimposed using the aligned regions of corresponding sequences. [experimental] (since 2.7) |
externalstructureviewer | true or false (default is false) | re-route jmol colouring commands, selection and mouseover events to an external viewer using javascript callbacks. [experimental] (since 2.7) |
annotationcolour_max | colour name or RGB hex triplet (default is red) | Default colour used for maximum value when shading by annotation. (since 2.7) |
annotationcolour_min | colour name or RGB hex triplet (default is orange) | Default colour used for minimum value when shading by annotation. (since 2.7) |
jalviewhelpurl | absolute or relative url or javascript function prefixed by javascript: (default is http://www.jalview.org/help.html) | Optional parameter allowing modification of the default Jalview Help URL normally opened when JalviewLite's 'Help' menu item is selected. (since 2.7) |
resolvetocodebase | True or False (False) | Set to true to re-instate pre-JalviewLite 2.7 behaviour where relative URLs were prepended with the applet 'codebase' rather than the current document base URL before resolution. (since 2.7) |
scoreFile | file | Multiple sequences aligment scores file. Currently is supported only the T-Coffee score_ascii file format |