perishky / meffil

Efficient algorithms for analyzing DNA methylation data.
Artistic License 2.0
53 stars 28 forks source link

meffil.ewas.summary coerce error #37

Open ivangong24 opened 2 years ago

ivangong24 commented 2 years ago

When I run ewas analysis using meffil.ewas.summary, it came up with an error message saying that "(list) object cannot be coerced to type 'double'". I think it is due to the format of ewas.object$covariates (which is a tibble), so in the meffil.ewas.sample.characteristics function, summarize.variable doesn't work when calculating the mean and sd. I would suggest converting the object into a vector or a dataframe. Hope that helps.