sartorlab / methylSig

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

Error in base::rowSums(meth_mat[, case_idx]) : 'x' must be an array of at least two dimensions #51

Open powerhorse1986 opened 1 year ago

powerhorse1986 commented 1 year ago

Hi,

I am trying to do DMR on one of our test dataset which has one sample for case and two samples for control. While I was running the diff_methylsig function, I encountered such an error "Error in base::rowSums(meth_mat[, case_idx]) : 'x' must be an array of at least two dimensions".

After diving into the source code, I realized that in the meth_mat, there's only one column of data for case. May I know if methySig requires a minimum number of samples? For example, greater than one?

Thanks.

sartorma commented 1 year ago

Yes, methylsig requires at least two replicates to test for differential methylation.

powerhorse1986 commented 1 year ago

Thank you so much for the information.