Correlation between 2 files
Slack CH April 8th 2021 - April 17th 2021
Slack CH April 8th 2021 - April 17th 2021
Location on server: /space/chen-syn01/1/data/cinliu/data/percent_match_check_Hao_vs_Tuo
Hi Nini, Can you help calculating correlation to evaluate consistency between two files?
"/space/chen-syn01/1/data/chen/brain_age/00README"
"/space/chen-syn01/1/data/chen/brain_age/00README"
[cinliu@ip99 data]$ cd /space/chen-syn01/1/data/chen/brain_age/
[cinliu@ip99 brain_age]$ cat 00README
# copy Hao's xgboost results using a symbolic link
ln -s /space/chen-syn01/1/data/haowang/ukb_age/phenotype/UKB /space/chen-syn01/1/data/chen/brain_age/xgboost
# I copied Tuo's age trajectory results from dropbox and saved in the "residuals" subdirectory.
# evaluate consistency of the above two results by calculating correlation for each region
# For example, for this region, occipital_thickness, you can find the values here
#/space/chen-syn01/1/data/haowang/ukb_age/phenotype/UKB/UKB_gclus_xgb_result_female.txt # the variable is ChenT_occipital_thickness_brainAGER_Female # look for brainAGER
# /space/chen-syn01/1/data/chen/brain_age/residuals/Thickness_nonadjust_female.csv # the variable is ChenT_bh_occipital_thickness # look for nonadjust and sex stratified spreadsheets.
# Hao's results only have the testing sample (N=1931) (training/testing: 90/10 split), a subset of Tuo's sample
Results in corplot form:
consistency_eval_female.R
consistency_eval_male.R
looking at correlation with Rmarkdown
correlation.Rmd