Retrieve base count information for bases that are not variants
1
0
Entering edit mode
5.6 years ago
rjobmc • 0

I am analysing RNA-seq data and I require read/allele depth information for a particular base position (I need this information for about 50 positions scattered around the genome in 8 individuals). As variant callers only give read depth information for variants, most of the positions I need are not SNV's in many of my samples (they are reference homozygotes) and so will not be called by variant callers. VCF files give the information I need but only for variants. Does anybody know a way I can get this information quickly? I really do not want to go into IGV and manually look for allele depth for by 50 bases in all 8 samples. Any help will be very appreciated. Thanks

RNA-Seq base read depth • 989 views
ADD COMMENT
2
Entering edit mode
5.6 years ago
samtools depth f1.bam f2.bam f3.bam
ADD COMMENT
0
Entering edit mode

Will this provide a read depth for every base in my bam file?

ADD REPLY
1
Entering edit mode

Yes it can.

-a                  output all positions (including zero depth)
-a -a (or -aa)      output absolutely all positions, including unused ref. sequences

Use mosdepth ( https://github.com/brentp/mosdepth ) for faster turnaround.

ADD REPLY
0
Entering edit mode

In the end I used samtool depth a1.bed f1.bam, f2.ba etc.... a1.bed is a bed file with my positions. This worked perfectly! Thank you very much for your help.

ADD REPLY

Login before adding your answer.

Traffic: 1548 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