samtools-tview(1) | Bioinformatics tools | samtools-tview(1) |
samtools-tview - display alignments in a curses-based interactive viewer.
samtools tview [-p chr:pos] [-s STR] [-d display] in.sorted.bam [ref.fasta]
Text alignment viewer (based on the ncurses library). In the viewer, press `?' for help and press `g' to check the alignment start from a region in the format like `chr10:10,000,000' or `=10,000,000' when viewing the same reference sequence.
The top line shows the reference sequence, or 'N's if unknown. Underneath this is the consensus, derived from the sequence alignments. Below the consensus the sequence alignment records are shown. Uppercase and lowercase is used to distinguish the sequence strand, with uppercase being the top/forward strand.
When the reference is known, both consensus and alignment record sequences are displayed in a dot-notation where a matching character is shown as '.' (forward strand) or ',' (reverse strand) and only mismatching bases and missing bases are shown. This mode can be toggled with the "." command.
The width of generated text is controlled by the COLUMNS environment variable or the -w option for non-curses outputs. Note this may be a local shell variable so it may need exporting first or specifying on the command line prior to the command. For example
export COLUMNS ; samtools tview -d T -p 1:234567 in.bam
samtools tview -p chr20:10M -s NA12878 grch38.fa
Written by Heng Li from the Sanger Institute.
samtools(1)
Samtools website: <http://www.htslib.org/>
24 January 2024 | samtools-1.19.2 |