genomeCoverageBed for paired end reads
1
1
Entering edit mode
8.9 years ago
Vanilla ▴ 110

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

coverage bedtools paired-end sequencing ChIP-Seq • 4.5k views
ADD COMMENT
0
Entering edit mode

Download the latest commit from github, it should be available.

ADD REPLY
0
Entering edit mode

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-984444 I got without -pc parameter is (which is correct for raw reads visualized in IGV):

chr1    0    56228    0
chr1    56228    56247    2
chr1    56247    984425    0
chr1    984425    984444    2

Thus with -pc set, the coverage changed to be:

chr1    0    56228    0
chr1    56228    56247    1
chr1    56247    137447    0
chr1    137447    137455    1
chr1    137455    137456    17
chr1    137456    137459    20
chr1    137459    137460    32
chr1    137460    137464    35
chr1    137464    984425    36
chr1    984425    984444    37

The command line I used is:

genomeCoverageBed -ibam merge_noDuplicate_sort.bam -bga -pc > merge_NoDuplicate.bg

Is there anything wrong with my command? Thanks very mcuh!

ADD REPLY
0
Entering edit mode
8.9 years ago

I don't know about the -pc parameter, but to get the coverage of paired-end reads, samtools depth is quite straightforward.

ADD COMMENT
0
Entering edit mode

Thanks Carlo! I haven't used samtools for that. May try it.

ADD REPLY
0
Entering edit mode

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!

ADD REPLY
0
Entering edit mode

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.

ADD REPLY

Login before adding your answer.

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