| Literature DB >> 25653836 |
Abstract
The JavaScript Sequence Alignment Viewer (JSAV) is designed as a simple-to-use JavaScript component for displaying sequence alignments on web pages. The display of sequences is highly configurable with options to allow alternative coloring schemes, sorting of sequences and 'dotifying' repeated amino acids. An option is also available to submit selected sequences to another web site, or to other JavaScript code. JSAV is implemented purely in JavaScript making use of the JQuery and JQuery-UI libraries. It does not use any HTML5-specific options to help with browser compatibility. The code is documented using JSDOC and is available from http://www.bioinf.org.uk/software/jsav/.Entities:
Keywords: JavaScript; protein; sequence alignment
Year: 2014 PMID: 25653836 PMCID: PMC4304231 DOI: 10.12688/f1000research.5486.1
Source DB: PubMed Journal: F1000Res ISSN: 2046-1402
Summary of availability of features in various JavaScript sequence alignment display tools as described in their respective papers and web sites.
Note that the MODAlign web site was unavailable at the time of writing so capabilities have been judged purely on what is published in the paper. † Not available for use in other web sites. ‡ Should be possible, but not designed to be used in this way. * Submission to Modeller only. § Automatically highlights mutated residues. ¶ Highlights columns of residues conserved at a specified level rather than displaying a consensus.
| JSAV | MOD-
| Alignment-
| SnipViz | Sequence | |
|---|---|---|---|---|---|
| Simple, lightweight component | ✓ | † | ‡ | ✓ | ✓ |
| Flexible coloring schemes | ✓ | ✓ | ✓ | ||
| Dotifying | ✓ | ||||
| Automatic sequence sorting | ✓ | ||||
| Manual sequence sorting | ✓ | ||||
| Remove sequences | ✓ | ✓ | |||
| Highlight regions | ✓ | ✓ | § | ✓ | |
| FASTA export | ✓ | ✓ | ✓ | ✓ | |
| Submission to another site | ✓ | * | |||
| Submission to JavaScript | ✓ | ||||
| Display consensus sequence | ✓ | ✓ | ¶ | ||
| Display secondary structure | ✓ | ✓ | |||
| Alignment editing | ✓ | ||||
| Link to structure viewer | ✓ | ✓ | |||
| Display phylogenetic tree | ✓ | ||||
| Optimized for very long sequences | ✓ |
Figure 1. Example code illustrating the creation of a JavaScript array of sequence objects, the options and the call necessary to create the alignment viewer.
var MySeqs = Array(); MySeqs.push({ id :"id1b1.L", sequence :"SASSSVNYMYACREFGHIKLMNPTRSTVWY"}); MySeqs.push({ id :"id1a.L", sequence :"SASSSTNYMYACDEFGHIKLMNPQRSTVWY"}); MySeqs.push({ id :"id2b1.L", sequence :"SASSTCNYMTACDEEGHIKLMNP-RSTCWY"}); var MyOptions = Array(); MyOptions.sortable = true; MyOptions.selectable = true; MyOptions.deletable = true; MyOptions.toggleDotify = true; MyOptions.toggleNocolour = true; MyOptions.consensus = true; MyOptions.selectColour = true; printJSAV(’sequenceDisplay’, MySeqs, MyOptions);
Figure 2. A typical JSAV alignment view.