Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
powerhorse1986 opened this issue Dec 6, 2022 · 2 comments

Comments

@powerhorse1986
Copy link

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
Copy link
Member

sartorma commented Dec 6, 2022

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

@powerhorse1986
Copy link
Author

Thank you so much for the information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants