Mappability calculation after mapping with Bowtie2
1
0
Entering edit mode
9.2 years ago
charlesberkn ▴ 40

Hi All,

I mapped a mouse DNA sequence data to mouse genome mm10 and want to calculate mappability. Are there any tools or proper way to do this? Thank you in advance.

alignment • 2.2k views
ADD COMMENT
2
Entering edit mode
9.2 years ago

I assume you generated reads that should evenly cover the genome. In that case, "samtools depth" with awk will allow you to get a proper mappability track.

ADD COMMENT
0
Entering edit mode

Yes, my reads cover the genome. Could you please tell me more detail about how to do it or where you know I can find a calculation example? I am new in the field. Thank you.

ADD REPLY
0
Entering edit mode

Sure, let's assume that you generated reads with 50x coverage of the genome (this is the 50 below). You could do something like:

samtools depth -aa some_alignment_file.bam | awk '{if($3>50){$3=50} printf("%s\t%i\t%i\t%f", $1,$2-1,$2,$3/50)}' > mappability.bedGraph

Note, however, that UCSC has mappability tracks for some organisms, so you might also check there.

ADD REPLY
0
Entering edit mode

in this command 50 is windows size?

ADD REPLY

Login before adding your answer.

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