Well I have used bedtools:
samtools view -b <BAM> | coverageBed -abam stdin -b exons.bed
function and the output looks like,
chr1 60817388 60817507 0 0 119 0.0000000
chr1 91226064 91226183 0 0 119 0.0000000
chr1 101711776 101711895 0 0 119 0.0000000
chr1 108003221 108003340 0 0 119 0.0000000
....
samtools view -b <BAM> | coverageBed -abam stdin -b exons.bed -hist
Few lines of output:
chr1 60817388 60817507 32 1 119 0.0084034
chr1 60817388 60817507 33 2 119 0.0168067
chr1 60817388 60817507 34 3 119 0.0252101
Which output should be used to get the percentage of exons covered?
have you tried bedtools and bedops?
no i haven't. i am not sure which function does this. can you suggest the command using bedtools?
can you add an example of the input files you have? In particular, what does your "sequenced samples" file contains? Is it a sequence, or another bed file?
I have a bed file with exons and bam alignment file.
ok, then check bedtools coverage (as explained in the answer), and the -abam option.