Entering edit mode
2.0 years ago
conarial
▴
10
I have atac seq data and would like to calculate (or view) the proportion of mitochondrial DNA in our sample. So how much mitochondrial DNA reads vs the whole number of reads. As far as I could see, samtools flagstats does not help me there. Could anyone help me out?
okay, so this gives me the chromosomes and the number of mitochondrial reads, right? So I would just have to add them add and divide by the total number of reads?
What @benformatics says, just automated, assuming name is
chrM
:Another beginner question, but how do I find out how the mitochondrial dna is connotated, because with "samtools idxstats <my_bam_file>" and look at column1, I only get the scaffold points from "sca1" to "sca787", so I cannot grep "chrM" ... can you help me there?
You need to look at your reference FASTA (or the resource from where it was derived) and find out which one is the mitochondria. If you have GTF you could try to see which scaffold the mitochondrial genes are present in.