A console-based sequence alignment viewer
alv: a command-line alignment viewer
View your DNA or protein multiple-sequence alignments right at your command line. No need to launch a GUI!
alv requires Python v3.4 or later. Earlier versions may also work, but this has not been
Latest feature additions
- Focus on variable columns with the options
--only-variable-excluding-indels, contributed by nikostr, that constrains coloring to columns with variation and variation not counting indels.
- The command
alv -g huge_msa.fadisplays cut-out of the MSA, guaranteed to fit one terminal page without scrolling or MSA line breaking, that is supposed to give you an idea of alignment quality and contents.
alv -r 20 huge_msa.fato get a view of the MSA containing only 20 randomly selected sequences.
- Command-line based, no GUI, so easy to script viewing of many (typically small) MSAs.
- Reads alignments in FASTA, Clustal, PHYLIP, NEXUS, and Stockholm formats, from file or
- Output is formatted to suit your terminal. You can also set the alignment width with option
- Can color alignments of coding DNA by codon's translations to amino acids.
- Guesses sequence type (DNA/RNA/AA/coding) by default. You can override with option
- Order sequence explicitly, alphabetically, or by sequence similarity.
- Restrict coloring to where you don't have indels or where there is a lot of conservation.
Recommended installation is:
pip install --upgrade pip pip install alv
If you have a half-modern BioPython installed, Python v3.4 should work.
BioPython is a dependency and will only get installed automatially with
pip install alv
if you are using Python v3.6 or later, because BioPython was apparently not on PyPi before that.
Quick viewing of a small alignment:
This autodetects sequence type (AA, DNA, RNA, coding DNA), colors the sequences, and formats the
alignment for easy viewing in your terminal.
alv to an alignment of coding DNA, the coding property is autodetected and colors are therefore applied to codons instead
View three sequences, accessions
c, from an alignment:
alv -so a,b,c msa.fa
Feed alignment to
less, for paging support.
alv -k msa.fa | less -R
-k option ensures that
alv keeps coloring the alignment (by default, piping
and redirection removes colors), and the
-R option instructs
less to interpret color codes.
python setup.py develop test for development install and to execute tests.
Full PFAM domain
All of the sequences in PFAM's seed alignment for PF00005
Yeast sequences from PF00005
Using the option
-sm YEAST, we reduce the alignment to the ones with a matching accession.
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size alv-1.6.0.tar.gz (3.5 MB)||File type Source||Python version None||Upload date||Hashes View|
|Filename, size alv-1.6.0-py3-none-any.whl (31.9 kB)||File type Wheel||Python version py3||Upload date||Hashes View|