I believe there is a bug in the getMappedEntrezIDs function which means that equiv is calculated using all CpGs in the array (and not only those contained in all.cpg). This is in contrast to freq - which doesn't account for multimapping CpGs but does use only those CpGs defined in all.cpg.
As I understand it, equiv should always be equal to or less than freq. Without the fix we get this:
gives us 15653 CpGs with higher equiv values than freq
With the fix (which is only a few lines). we get:
I believe this bug has an impact in your gsameth function since you're calculating the bias using all the CpGs in the array and not only those in all.cpg.
Hi,
I believe there is a bug in the
getMappedEntrezIDs
function which means thatequiv
is calculated using all CpGs in the array (and not only those contained inall.cpg
). This is in contrast tofreq
- which doesn't account for multimapping CpGs but does use only those CpGs defined inall.cpg
.As I understand it,
equiv
should always be equal to or less thanfreq
. Without the fix we get this:gives us 15653 CpGs with higher
equiv
values thanfreq
With the fix (which is only a few lines). we get:
I believe this bug has an impact in your
gsameth
function since you're calculating the bias using all the CpGs in the array and not only those inall.cpg
.