TADbit icon indicating copy to clipboard operation
TADbit copied to clipboard

How to calculate the mapping rate?

Open CaiCheng1996 opened this issue 4 years ago • 2 comments

After GEM2, how to directly get the mapping rate ? or I should calculate by myself? than how? Btw, if I directly use "samtools flagstat" on the BAM files from "bed2D_to_BAMhic", the mapping rate is 100%, which is impossible.

CaiCheng1996 avatar Jun 18 '20 08:06 CaiCheng1996

Hi,

To get the percentage of mapped against input reads have a look at the plots of fragment or iterative based mapping in the tutorial http://3dgenomes.github.io/TADbit/tutorial/tutorial_5-Parsing_mapped_reads.html

We use a pseudoBAM file where the flags are used to store the read filter category and not the usual SAM data (read paired, first in pair, etc. ). Moreover, the BAM file is mirrored (there are two entries per interaction) to easily access paired data. Better use the tsv files that you created before the BAM file.

Regards

David

david-castillo avatar Jun 18 '20 17:06 david-castillo

Hi, Thank you for the reply. I already followed the tutorial http://3dgenomes.github.io/TADbit/tutorial/tutorial_5-Parsing_mapped_reads.html and got those plots, but I really didn’t see any precise numbers representing “percentage of mapped reads” in those plots, this may be due to my lack of knowledge and experience.  I know the information in those plots are important, but I just want to get an accurate number representing my mapping rate, so could you please tell me in more detail, which step or which plot can help me get the number?

Thanks!

CaiCheng1996 avatar Jun 19 '20 01:06 CaiCheng1996