Entering edit mode
22 months ago
andrechristianes
•
0
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?
Would you have a reduced example dataset that is giving the same error to make it reproducible ?
https://drive.google.com/file/d/1_YL_T7F-ttxlEmP0yMZYVSWqIHxFIceE/view?usp=sharing
I saved the example in csv
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 ?
That was a problem in R csv import. Thank you.