Depth of Coverage in Mitochondrial Genome with Samtools
0
0
Entering edit mode
13 months ago
Lida • 0

Hi all

I want to ask you how to calculate mitochondrial genome's depth of coverage with samtools on linux ubuntu? I have done this work about some regions of chromosomes on BAM file with samtools, but those commands don't answer about mitochondrial genome.

Thanks

samtools depth-of-coverage Mitochondrial-genome • 1.5k views
ADD COMMENT
1
Entering edit mode

commands don't answer about mitochondrial genome

what does that mean ?

also check you're using the correct chromosome name (chrM instead of chrMT...)

ADD REPLY
0
Entering edit mode

I meant that those commands were not executed.

Yes, thank you. I tried this "chrM", but it gave me an error. In command to calculate the depth of coverage over the entire length of the mitochondrial genome, what regions should I type in the command after "chrM"?

ADD REPLY
0
Entering edit mode

I meant that those commands were not executed.

?

what is the command ?

ADD REPLY
0
Entering edit mode

The commands that I used to calculate the depth of coverage in different regions of different chromosomes did not work for the mitochondrial genome.

Is there a special command to calculate the depth of coverage of certain regions in mitochondrial genome?

ADD REPLY
1
Entering edit mode

that's what I asked : what is the command ?

ADD REPLY
0
Entering edit mode

The command was: samtools depth -a -H -r chr number:from-to -o FILE restored BAM file

Now my problem about mitochondrial genome is solved with this command: samtools depth -a -H -r MT:from-to -o restored BAM file

Thanks a lot for your help

ADD REPLY
0
Entering edit mode

You may check first if the BAM file contains contigo corresponding to chrM/MT with or without the chr prefix. Like: samtools view -H bam_file | grep SQ

ADD REPLY
0
Entering edit mode

I did it. thank you for your help Now my problem about mitochondrial genome is solved with this command: samtools depth -a -H -r MT:from-to -o restored BAM file

ADD REPLY

Login before adding your answer.

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