This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Error in DNAmAge package in r

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

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

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 ?

0 answers

No answers yet.

Log in to answer this question.