genetics-of-dna-methylation-consortium / godmc_phase2

This repository contains the code to run the analysis pipeline for phase 2 of goDMC released June 2024.
GNU General Public License v3.0
2 stars 0 forks source link

fix the dollar operator for 03a #15

Closed SiyiSEA closed 1 month ago

SiyiSEA commented 1 month ago

This pull request fix the bug for #14 where the $ extraction results in an error for some users. This is not an breaking change.

The original code is in line 358 dnamage.R

paceresult <- data.frame("IID" = names(PredAgeDun$DunedinPACE), "PredAge" = PredAgeDun$DunedinPACE)

The new code is in line 358 in dnamage.R

paceresult <- data.frame("IID" = names(PredAgeDun[['DunedinPACE']]), "PredAge" = PredAgeDun[['DunedinPACE']])