Error in DNAmAge package in r
0
0
Entering edit mode
22 months ago

I tried to run the function DNAmAge to estimate methylation Age. This used to work well with beta matrix - an object with variables (CpGs) in the rows and the observations (patients) in the collums. I named this object "myNorm". But now this returns a error message:

Run: Age <-DNAmAge(myNorm, clocks="Hannum")

Return: "Error in data.frame(id =rownames(cpgs, imp), Hannum = hannum): arguments imply differng number of rows: 0,40.

I though this error ocours on a internal object made by the funcition, so i searched these code in github but don't have sucess.

Someone can help me?

methylation DNAmAge • 1.1k views
ADD COMMENT
0
Entering edit mode

Would you have a reduced example dataset that is giving the same error to make it reproducible ?

ADD REPLY
0
Entering edit mode
ADD REPLY
0
Entering edit mode

I have no error when I run :
myNorm = read.csv("reduce.csv") Age <-DNAmAge(myNorm, clocks="Hannum")

Have you checked that your myNorm object is correctly formatted in your R session with the first column corresponding to CpG IDs ?

ADD REPLY
0
Entering edit mode

That was a problem in R csv import. Thank you.

ADD REPLY

Login before adding your answer.

Traffic: 1420 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6