Open main menu

Genome Analysis Wiki β

Changes

SAM

33 bytes added, 16:10, 11 September 2015
m
What Information Does SAM/BAM Have for an Alignment: turn text to link
* reference sequence name, RNAME, often contains the Chromosome name.
* leftmost position of where this alignment maps to the reference, POS. For SAM, the reference starts at 1, so this value is 1-based, while for BAM the reference starts at 0,so this value is 0-based. Beware to always use the correct base when referencing positions.
* mapping quality, MAPQ, which contains the "phred-scaled posterior probability that the mapping position" is wrong. (from SAM-1see [[http://samtools.sourceforge.net/SAM1.pdf]])
* string indicating alignment information that allows the storing of clipped, [[SAM#What is a CIGAR?|CIGAR]]
* the reference sequence name of the next alignment in this group, MRNM or RNEXT. In paired alignments, it is the mate's reference sequence name. (A group is alignments with the same query name.)
XT:A:U - user defined tag called XT. It holds a character. The value associated with this tag is 'U'.
NM:i:2 - predefined tag NM means: Edit distance to the reference (number of changes necessary to make this equal the reference, excluding clipping)
 
=== What Information is in the SAM/BAM Header ===
61
edits