Changes

From Genome Analysis Wiki
Jump to navigationJump to search
Line 257: Line 257:     
=== BAM Files ===
 
=== BAM Files ===
 +
Binary Sequence Alignment/Map (SAM) Format
 +
* Maps reads to Chromosome/Position
 +
* For a detailed explanation of the SAM/BAM format, see:
 +
** SAM/BAM Spec: http://samtools.github.io/hts-specs/SAMv1.pdf
 +
** Additional information I put together as I started working with SAM/BAM: [[SAM]]
 +
 
Let's look at the BAMs (aligned reads that are ready for variant calling):
 
Let's look at the BAMs (aligned reads that are ready for variant calling):
 
  ls ${OUT}/bams
 
  ls ${OUT}/bams
 
[[File:GcalignOutBAMm.png|600px]]
 
[[File:GcalignOutBAMm.png|600px]]
   −
* Binary Sequence Alignment/Map (SAM) Format
+
Let's examine at the first 5 lines of the BAM file:
* Maps reads to Chromosome/Position
+
${GC}/bin/samtools view -h ${OUT}/bams/HG00551.recal.bam|head -n 5
* For a detailed explanation of the SAM/BAM format, see:
+
 
** SAM/BAM Spec: http://samtools.github.io/hts-specs/SAMv1.pdf
+
; What is the first position in the BAM file?
** Additional information I put together as I started working with SAM/BAM: [[SAM]]
+
<ul>
* Consists of:
+
<div class="mw-collapsible mw-collapsed" style="width:200px">
** Header
+
<li>Answer</li>
*** Starts with '@'
+
<div class="mw-collapsible-content">
*** Records - one for each sequence read
+
<ul>
Let's examine a BAM file:
+
<li>Chr 22, Pos: 16114122</li>
samtools view -h ${OUT}/bams/
+
</ul>
 
[[File:BAM.png|750px]]
 
[[File:BAM.png|750px]]
 +
</div>
 +
</div>
 +
</ul>
    
=== Quality Control Files ===
 
=== Quality Control Files ===

Navigation menu