Thanks Carlo! I haven't used samtools for that. May try it.
Hi all,
I'm now trying to used genomeCoverageBed in Bedtools v2.25.0 to calculated the genome coverage from bam files with paired-end reads. (http://bedtools.readthedocs.org/en/latest/content/tools/genomecov.html) However, it returns an error as:
ERROR: Unrecognized parameter: -pc
Does anyone know in which version of bedtools the "-pc" parameter is available? Why does it disappear in the latest version? If it is no longer available in bedtools, can anyone suggest a method to calculate the genome coverage for paired-end sequencing reads? Thanks very much for any comments and suggestions.
Best,
Vanilla
1 answer
I don't know about the -pc parameter, but to get the coverage of paired-end reads, samtools depth is quite straightforward.
I just tried but still didn't resolve the "paired-end" issue...Could you clarify the usage of samtools depth for pared-end reads? Thanks!
First you need to split paired-end reads for the forward and reverse strand according to this tutorial, then use samtools on each bam file.
Log in to answer this question.
Download the latest commit from github, it should be available.
Thanks James! Yeah it does work, even though the parameter is still not listed in the help message.
However, I don't think the output I got is correct. For example, the coverage for
chr1:0-984444I got without-pcparameter is (which is correct for raw reads visualized in IGV):Thus with
-pcset, the coverage changed to be:The command line I used is:
Is there anything wrong with my command? Thanks very mcuh!