methylKit icon indicating copy to clipboard operation
methylKit copied to clipboard

How to merge when reading multiple files using readMethylDB?

Open coffeeCowLu opened this issue 1 year ago • 1 comments

How to merge when reading multiple files using readMethylDB?

myobj <- lapply(files, function (x){readMethylDB(x)}) meth <- unite(myobj, destrand = FALSE)

Error in (function (classes, fdef, mtable) : unable to find an inherited method for function ‘unite’ for signature ‘"list"’

coffeeCowLu avatar Aug 21 '22 00:08 coffeeCowLu

Hi,

You have to convert the list into the appropriate type using the methylRawList function.

Best, Alex

Sent from mobile.

coffeeCow @.***> schrieb am So., 21. Aug. 2022, 02:22:

How to merge when reading multiple files using readMethylDB?

myobj <- lapply(files, function (x){readMethylDB(x)}) meth <- unite(myobj, destrand = FALSE)

Error in (function (classes, fdef, mtable) : unable to find an inherited method for function ‘unite’ for signature ‘"list"’

— Reply to this email directly, view it on GitHub https://github.com/al2na/methylKit/issues/263, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADK7JDYDUSCEMB4O4IB4ULDV2FZDDANCNFSM57EAWJ5A . You are receiving this because you are subscribed to this thread.Message ID: @.***>

alexg9010 avatar Aug 21 '22 08:08 alexg9010