...
Expand | |||||||
---|---|---|---|---|---|---|---|
| |||||||
|
Exercise: How many records are in the filtered BAM compared to the original? How many read pairs does this represent?
Expand | ||
---|---|---|
| ||
samtools view -c |
...
Expand | |||||||
---|---|---|---|---|---|---|---|
| |||||||
There were 1184360 alignment records in the original BAM, and only 456890 in the quality-filtered BAM, around 38% of our starting reads. Since we have only properly paired reads, the filtered BAM will contain equal numbers of both R1s and R2s. So the number of read pairs is 456890/2 or 228451. |
Exercise: If our original BAM contained secondary reads, (0x100 = 1) how would we exclude those also?
...