Hi all,
I am using DMRcate to find differentially methylated regions in illumina 450k data. I'm fairly new to R and DMRcate, so I've been following the User Guide example pretty closely. When I get to the dmrcate(myannotation, lambda=1000, C=2) call, I get an error:
"Fitting chr1...
...
Fitting chr8...
Fitting chr9...
Error in `$<-.data.frame`(`*tmp*`, "sig", value = logical(0)) :
replacement has 0 rows, data has 1963"
I looked into the source code of the dmrcate method, but I'm still not sure where this error is coming from. The variable "myannotation" is the result from my cpg.annotate() call. I looked up what this error means, and it seems like it's because "sig" is not a variable in the dataset, but I'm not sure where the dataset is being constructed in the dmrcate method. Anyway, how should I go about addressing this issue? Please let me know if I should also provide any other information to make this easier to understand.
Thanks in advance,
Eugene
Sorry about the delay; I didn't see your response until now. The output of traceback() is:
4: stop(sprintf(ngettext(N, "replacement has %d row, data has %d",
"replacement has %d rows, data has %d"), N, nrows), domain = NA)
3: `$<-.data.frame`(`*tmp*`, "sig", value = logical(0))
2: `$<-`(`*tmp*`, "sig", value = logical(0))
1: dmrcate(myannotation, lambda = 1000, C = 2)