Pileup format
Pileup format is a text-based format for summarizing the base calls of aligned reads to a reference sequence. This format facilitates visual display of SNP/indel calling and alignment. It was first used by
Tony Cox and Zemin Ning at the Wellcome Trust Sanger Institute, and became widely known through its implementation within the SAMtools software suite.
Format
The columns
Each line consists of 5 tab-separated columns:- Sequence identifier
- Position in sequence
- Reference nucleotide at that position
- Number of aligned reads covering that position
- Bases at that position from aligned reads
- Phred Quality of those bases, represented in ASCII with -33 offset
Column 5: The bases string
- . means a base that matched the reference on the forward strand
- , means a base that matched the reference on the reverse strand
- > denotes a reference skip. This occurs, for example, if a base in the reference genome is intronic and a read maps to two flanking exons. If quality scores are given in a sixth column, they refer to the quality of the read and not the specific base.
- AGTCN denotes a base that did not match the reference on the forward strand
- agtcn denotes a base that did not match the reference on the reverse strand
- A sequence matching the regular expression denotes an insertion of one or more bases starting from the next position. For example, +2AG means insertion of AG in the forward strand
- A sequence matching the regular expression denotes a deletion of one or more bases starting from the next position. For example, -2ct means deletion of CT in the reverse strand
- ^ marks the start of a read segment and the ASCII of the character following `^' minus 33 gives the mapping quality
- $ marks the end of a read segment
- * is a placeholder for a deleted base in a multiple basepair deletion that was mentioned in a previous line by the notation