Percentage of on target reads in custom capture sequencing
1
0
Entering edit mode
2.8 years ago
ccagg ▴ 60

I have mapped bam files from an experiment where we designed a custom capture panel. I have a bed file of the regions we were trying to capture, and I want to know what percent of our bam reads overlap the bed file. When I have done a similar analysis with exome data, I've used picard HSmetrics, but it doesn't seem exactly right for this use case. I was wondering if there was a simple way to assess this without using picard or GATK.

coverage capture sequencing bam • 855 views
ADD COMMENT
2
Entering edit mode
2.8 years ago
# total reads mapped
samtools view -q 1 -F 3840  -c in.bam

# total reads mapped in capture
samtools view  -q 1 -F 3840 -L "capture.bed" -c in.bam
ADD COMMENT

Login before adding your answer.

Traffic: 1714 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6