sartorlab / methylSig

R package for DNA methylation analysis
17 stars 5 forks source link

Last row gives all NA #11

Closed rcavalcante closed 8 years ago

rcavalcante commented 8 years ago

Rerunning a dataset with the same parameters for v0.4.0, the last row of the results are all NA. This might be a bug, but need to see it happen again.

Possible responsible parts of the code are:

# Line 201 in R/methylSig.R
if(length(whichUseful) == 0)  return(c(loc,NA,NA,NA,NA,NA,NA))

or

# Line 256 in R/methylSig.R which happens when df <= 1
return(c(loc,NA,NA,NA,NA,NA,NA))
rcavalcante commented 8 years ago

This bug is also fixed with aa0eb22edf33d6ba182860f9b31fd669c8e64dfe.