Dear All,
I met a problem when I applying bigWigSummary and bigWigAverageOverBed
to a big wig file.
The big wig file is composed of all CpG's methylation ratio.
chr1 468 469 0.5
chr1 470 471 0.7
...
And I want to extract the mean methylation ratio for a region, such as
chr1:1-5000.
So I used the two command to extract the ratios from big wig file.
command 1: bigWigSummary
methylation.bw chr1 1 5000 1
command 2: echo "chr1 1 5000 1" | bigWigAverageOverBed
methylation.bw
stdin stdout
For some regions, the outputs of commands 1 and 2 are the same
However, I found that some regions, the results are very different.
I did several calculation manually, I found that the outputs of
bigWigAverageOverBed are correct (for those inconsistant outputs).
Is it a bug for bigWigSummary or I cannot use bigWigSummary to extract
mean ratio in the way?
Thank you.
Ian Chang