coverage per gene in mapped reads to genome
0
0
Entering edit mode
5.0 years ago
Mehmet ▴ 820

Dear All,

I have mapped reads of several samples to genome for SNP calling and now I would like to calculate coverage of each gene in each sample (reads) output (bam files).

I have checked bedtools, samtools and GATK with -T DepthOfCoverage option by providing a set of gene names, but none of them provided what I want.

Any tool you can suggest?

Thank you.

genome snp alignment gene • 1.3k views
ADD COMMENT
0
Entering edit mode

but none of them provided what I want So what exactly do you want? Please provide expected output examples.

ADD REPLY
0
Entering edit mode

OK. I want coverage of each gene in each bam file (each sample ) that were produced by mapping of DNA reads to the reference genome of the same species.

ADD REPLY
0
Entering edit mode

Please provide expected output examples

ADD REPLY
0
Entering edit mode

OK. Sorry I forgot. Below an example of read count of each gene in one sample generated by htseq. For coverage I want to have something like that. Coverage per gene in a sample.

GeneName                            Count
SpeciesA_0000000100.1       3
SpeciesA_0000000200.1       0
SpeciesA_0000000250.1       0
SpeciesA_0000000300.1       0
SpeciesA_0000000400.1       0
SpeciesA_0000000500.1       0
SpeciesA_0000000600.1       0
SpeciesA_0000000700.1       0
ADD REPLY
0
Entering edit mode

the first question - what is a gene for you? How is it defined? Is it canonical gene coordinates, or all the exons/transcripts, or just region between gene's start/end?

ADD REPLY
0
Entering edit mode

starting and ending region.

ADD REPLY
0
Entering edit mode

so you extract starting + ending coordinates of your genes in BED format (chrom, start, end) and then run bedtools/samtools/ngs-bits. may be sounds a bit old-school, but it will work.

ADD REPLY
0
Entering edit mode

You can have the average depth or the amount of reads.

It is possible that not every basepair in that gene has the same depth. You can get the depth per basepair with samtools depth after that you need to make your own script that calculates the average depth per region. O a tool already exist but dont know that.

Also see this post: samtools bedcov vs. bedtools coverage

ADD REPLY

Login before adding your answer.

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