-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreliability_long_prepare_df.Rmd
216 lines (162 loc) · 4.19 KB
/
reliability_long_prepare_df.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
---
title: "p039_normative_long_prepare_df"
author: "DVP"
date: "2022.12.12"
output: html_document
---
# Fetch neuroimaging data, and link with main data.files
### This script will populate rawdatafiles with 1) csv file linking available mri data with existing tables; 2) will import fs derivatives of interest in the folder
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
library(tidyverse)
library(here)
library(rio)
#here()
source(here("scripts/reliability_scripts/helper_reliability_long_prepare_df.r"))
mrifiles = c("lh.aparc.area.txt",
"lh.aparc.thickness.txt",
"lh.aparc.volume.txt",
"rh.aparc.area.txt",
"rh.aparc.thickness.txt",
"rh.aparc.volume.txt",
"aseg.txt")
```
## This R Markdown will fetch neuroimaging data and neuroimaging summary tables and save them in the site folder.
### Fetch neuroimaging data for uio.
```{r LCBC}
## set up links
set_links("uio")
# link tab data with fs images
check.uio.fs(sitedir, outdir, mrifiles)
```
### Fetch neuroimaging data for umu
```{r Umu_Betula}
## set up links
set_links("umu")
# link to umu data
check.umu.fs(sitedir, outdir, mrifiles)
# 78 cogn. data missing
# 61 mri missing
```
### Fetch neuroimaging data for ub.
```{r UB}
## set up links
set_links("ub")
# link to umu data
check.ub.fs(sitedir, outdir, mrifiles)
```
### Fetch neuroimaging data for habs.
```{r habs}
## set up links
set_links("habs")
# link to habs data
check.habs.fs(sitedir, outdir, mrifiles)
```
### Fetch neuroimaging data for cognorm / ous
```{r cognorm / ous}
set_links("ous")
# link to uos data
check.ous.fs(sitedir, outdir, mrifiles)
```
### Fetch neuroimaging data for aibl.
```{r aibl}
set_links("aibl")
# link to uio data
check.aibl.fs(sitedir, outdir, mrifiles)
```
### Fetch neuroimaging data for adni.
```{r adni}
set_links("adni")
# link to uio data
check.adni.fs(sitedir, outdir, mrifiles)
```
### Fetch neuroimaging data for preventAD.
```{r preventAD}
set_links("preventad")
# link to preventad data data
check.preventad.fs(sitedir, outdir, mrifiles)
```
### Fetch neuroimaging data for wayne.
```{r wayne}
set_links("wayne")
# link to wayne data
check.wayne.fs(sitedir, outdir, mrifiles)
```
### Fetch neuroimaging data for oasis3.
```{r oasis3}
set_links("oasis3")
# link to oasis data
check.oasis.fs(sitedir, outdir, mrifiles)
```
### Fetch neuroimaging data for ukb.
```{r ukb}
set_links("ukb")
# link to uio data
check.ukb.fs(sitedir, outdir, mrifiles)
```
# Cross-sectional data
### Fetch neuroimaging data for uio. - not done
```{r LCBC}
## set up links
set_links("uio")
# link tab data with fs images
check.uio.fs(sitedir, outdir, mrifiles, T)
```
### Fetch neuroimaging data for ub.
```{r UB}
## set up links
set_links("ub")
# link to umu data
check.ub.fs(sitedir, outdir, mrifiles, T)
```
### Fetch neuroimaging data for habs.
```{r habs}
## set up links
set_links("habs")
# link to habs data
check.habs.fs(sitedir, outdir, mrifiles, T)
```
### Fetch neuroimaging data for cognorm / ous
```{r cognorm / ous}
set_links("ous")
# link to uos data
check.ous.fs(sitedir, outdir, mrifiles, T)
```
### Fetch neuroimaging data for aibl.
```{r aibl}
set_links("aibl")
# link to uio data
check.aibl.fs(sitedir, outdir, mrifiles, T)
```
### Fetch neuroimaging data for adni.
```{r adni}
set_links("adni")
# link to uio data
check.adni.fs(sitedir, outdir, mrifiles, T)
```
### Fetch neuroimaging data for preventAD.
```{r preventAD}
set_links("preventad")
# link to preventad data data
check.preventad.fs(sitedir, outdir, mrifiles, T)
```
### Fetch neuroimaging data for wayne.
```{r wayne}
set_links("wayne")
# link to wayne data
check.wayne.fs(sitedir, outdir, mrifiles, T)
```
### Fetch neuroimaging data for oasis3.
```{r oasis3}
set_links("oasis3")
# link to oasis data
check.oasis.fs(sitedir, outdir, mrifiles, T)
```
### Fetch neuroimaging data for ukb. - done with showcase data (FS 6.0)
```{r ukb}
set_links("ukb")
# link to uio data
check.ukb.fs(sitedir, outdir, mrifiles, T)
#check.ukb.fs_showcase_link(sitedir, outdir, mrifiles)
# /cluster/projects/p274/projects/p039_image_brain_change/data-raw/tabulated/ukb/45249/normative_modelling/tsd_processed_fs.7.1.0/cross
```