methylKit icon indicating copy to clipboard operation
methylKit copied to clipboard

Error in calculateDiffMeth for covariates with NAs

Open TYRANISTAR opened this issue 2 years ago • 1 comments

Hello,

I've been using MethylKit to analyse RRBS data from human samples and I noticed that when I introduce covariates with one or more NAs in them (e.g. if one of my covariates is age and I don't know the age of one of my samples) it crashes the calculateDiffMeth() function. The error I get is the following:

Error in p.adjust(pvals, method = method, n) : n >= lp is not TRUE

Is there a way around it? Do I always have to use covariate variables without any NAs in them?

Thank you in advance.

TYRANISTAR avatar Sep 17 '21 21:09 TYRANISTAR

I don't think we can deal with that case. Covariates shouldn't have missing data probably if I'm not mistaken.

On Fri, Sep 17, 2021 at 11:23 PM TYRANISTAR @.***> wrote:

Hello,

I've been using MethylKit to analyse RRBS data from human samples and I noticed that when I introduce covariates with one or more NAs in them (e.g. if one of my covariates is age and I don't know the age of one of my samples) it crashes the calculateDiffMeth() function. The error I get is the following:

Error in p.adjust(pvals, method = method, n) : n >= lp is not TRUE

Is there a way around it? Do I always have to use covariate variables without any NAs in them?

Thank you in advance.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/al2na/methylKit/issues/236, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAE32EI6URSVV64HOSJF4A3UCOWWBANCNFSM5EILVMMQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

al2na avatar Sep 18 '21 05:09 al2na