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

Issue with meffil.ewas model #60

Open
AshutoshTomar opened this issue Jul 25, 2024 · 0 comments
Open

Issue with meffil.ewas model #60

AshutoshTomar opened this issue Jul 25, 2024 · 0 comments

Comments

@AshutoshTomar
Copy link

AshutoshTomar commented Jul 25, 2024

Hi Matt,
I am facing an issue with the model for EWAS analysis. I would be grateful if you could please suggest the following:

grp <- grp[match(colnames(Mval1), rownames(grp)), , drop=FALSE]
> stopifnot(identical(rownames(grp), colnames(Mval1)))
> isv <- isv[match(colnames(Mval1), rownames(isv)), , drop=FALSE]
> stopifnot(identical(rownames(isv), colnames(Mval1)))
> ewas.ret <- meffil.ewas(Mval1, variable=grp, covariates=isv, isva=F)
Error in meffil.ewas(Mval1, variable = grp, covariates = isv, isva = T) : 
  length(all.samples) == length(variable) is not TRUE
> dim(grp)
[1] 52  1
> dim(isv)
[1] 52 13
> dim(Mval1)
[1] 898469     52
> class(grp)
[1] "data.frame"
> class(isv)
[1] "data.frame"
> summary(grp)
 grp   
 M: 8  
 O:22  
 Y:22
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

1 participant