Skip to main content

A console-based sequence alignment viewer

Project description

alv: a command-line alignment viewer

View you DNA or protein multiple-sequence alignments right at your command line. No need to launch a GUI!

Note: alv requires Python v3.x.

Features:

  • Command-line based, no GUI, so easy to script viewing of many (typically small) MSAs.
  • Reads alignments in FASTA, Clustal, PHYLIP, and Stockholm formats.
  • Output is formatted to suit your terminal. You can also set the alignment width with option -w.
  • 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 -t.
  • 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.

Examples

Quick viewing of a small alignment:

alf msa.fa

This autodetects sequence type (AA, DNA, RNA, coding DNA), colors the sequences, and formats the alignment for easy viewing in your terminal.

View three sequences, accessions a, b, and c, from an alignment:

alf -so a,b,c msa.fa

Feed alignment to less, for paging support.

alv -k msa.fa | less -R

The -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.

Install

Recommended installation is with pip install alv.

For developers

Run python setup.py develop test for development install and to execute tests.

Screenshot

Full PFAM domain

All of the sequences in PFAM's seed alignment for PF00005

PF00005 seed MSA

Ten peptide sequences from PF00005

MSA from PF00005

Seven coding DNA sequences

alv is autodetecting that the given DNA sequences are coding and therefore colors codons instead of nucleotides. Sample screenshot

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

alv-1.0.5.tar.gz (14.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

alv-1.0.5-py3-none-any.whl (16.7 kB view details)

Uploaded Python 3

File details

Details for the file alv-1.0.5.tar.gz.

File metadata

  • Download URL: alv-1.0.5.tar.gz
  • Upload date:
  • Size: 14.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.3

File hashes

Hashes for alv-1.0.5.tar.gz
Algorithm Hash digest
SHA256 fdcea943680ac1f6b261171725c2d4a69b8be5011290bd9910b87e76842731ab
MD5 05c0c6c51ec86ac46b65dde38d067e76
BLAKE2b-256 8382927d2a05a391bd11f5057456c62c255a5c547e9b85bbbe2e11bb9d9b2eeb

See more details on using hashes here.

File details

Details for the file alv-1.0.5-py3-none-any.whl.

File metadata

  • Download URL: alv-1.0.5-py3-none-any.whl
  • Upload date:
  • Size: 16.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.3

File hashes

Hashes for alv-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 5c307372b18b62be13aca430a6a42c3f40c93a0b1f74114091969b9d9eb6ea2a
MD5 bd44a9b3521987ca09d25978168fda8e
BLAKE2b-256 21986f15f6c7ef408f8595c340d581389631904b30b1f82de1bb3aa70a033db4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page