Open stro0070 opened 1 month ago
I am trying to use predictAge() with beta values and the Horvath model. However, I am running into an issue with the model. The vignette mentions downloading the file. So, I used the following commands.
download.file('https://github.com/zhou-lab/InfiniumAnnotationV1/tree/main/Anno/HM450/Clock_Horvath353.rds', destfile = 'data/Clock_Horvath353.rds')
model_Horvath <- readRDS("data/Clock_Horvath353.rds")
predictAge(my_array_betas, model = model_Horvath)
The error is: Error in model$param : $ operator is invalid for atomic vectors
Is there a different location that the Horvath model should be downloaded from?
I am trying to use predictAge() with beta values and the Horvath model. However, I am running into an issue with the model. The vignette mentions downloading the file. So, I used the following commands.
download.file('https://github.com/zhou-lab/InfiniumAnnotationV1/tree/main/Anno/HM450/Clock_Horvath353.rds', destfile = 'data/Clock_Horvath353.rds')
model_Horvath <- readRDS("data/Clock_Horvath353.rds")
predictAge(my_array_betas, model = model_Horvath)
The error is: Error in model$param : $ operator is invalid for atomic vectors
Is there a different location that the Horvath model should be downloaded from?