@@ -7,10 +7,30 @@ based on data from Freesurfer 5.3.
77It combines data from cortical thickness, cortical surface area, and
88subcortical information (see Liem et al., 2017).
99
10- ** How to cite BARACUS:** If you use BARACUS in your work please cite:
11- 1 . Liem et al. (2017) and
10+ ## Requirements
11+ Your data has to be organized according to the
12+ [ BIDS standard] ( http://bids.neuroimaging.io ) and each subject needs at
13+ least one T1w image.
14+ In a first step, BARACUS runs [ FreeSurfer's] ( http://freesurfer.net )
15+ ` recon-all ` command and saves the output in ` --freesurfer_dir ` .
16+ If the data has previously been analyzed with FreeSurfer version 5.3.0,
17+ and BARACUS finds them in ` --freesurfer_dir ` this step ist skippen.
18+
19+ ** Important:** if you use previously processed FreeSurfer data
20+
21+ 1 . the data has to be preprocessed with
22+ Freesurfer's 5.3.0 installation, not the 5.3.0-HCP installation;
23+ 2 . FreeSurfer data needs to be BIDS-formatted, i.e. subject folders
24+ should be named * sub-<subject_label>* , (e.g., sub-01, sub-02...)
25+
26+
27+ ## Acknowledgements
28+ If you use BARACUS in your work please cite:
29+
30+ 1 . Liem et al. (2017),
12311 . the [ zenodo DOI] ( https://zenodo.org/badge/latestdoi/93560323 )
13- of the version you used.
32+ of the BARACUS version you used, and
33+ 1 . The [ FreeSurfer tool] ( https://surfer.nmr.mgh.harvard.edu/fswiki/FreeSurferMethodsCitation )
1434
1535Liem et al. (2017). Predicting brain-age
1636from multimodal imaging data captures cognitive impairment.
@@ -19,26 +39,6 @@ Neuroimage, 148:179–188,
1939[ \[ preprint\] ] ( http://www.biorxiv.org/content/early/2016/11/07/085506 )
2040
2141
22- ## Requirements
23- Before age prediction can be performed, [ FreeSurfer's] ( http://freesurfer.net )
24- ` recon-all ` command has to be run with Freesurfer version 5.3.
25- Freesurfer data has to be in [ BIDS format] ( http://bids.neuroimaging.io ) ,
26- i.e. subject folders should be named
27- * sub-<subject_label>* , (e.g., sub-01, sub-02...).
28-
29- ** Important:** The data has to be preprocessed with
30- Freesurfer's 5.3.0 installation, not the 5.3.0-HCP installation.
31- The [ fliem/freesurfer: v6 .0.0-3-FSv5.3.0-1] ( https://hub.docker.com/r/fliem/freesurfer/tags/ )
32- docker image can be used for that and can be run like this:
33-
34- docker run -ti --rm \
35- -v /Users/filo/data/ds005:/bids_dataset:ro \
36- -v /Users/filo/outputs:/outputs \
37- fliem/freesurfer:v6.0.0-3-FSv5.3.0-1 \
38- /bids_dataset /outputs participant --participant_label 01 \
39- --license_key "XXXXXXXX"
40-
41-
4242## Models
4343** Liem2016__ OCI_norm** : Model trained on subjects that have no
4444objective cognitive impairment (OCI) (* OCI norm* in Liem et al., 2017).
@@ -50,10 +50,8 @@ Sample: N = 2377, 1133f/1244m, age: M=58.4, SD=15.4, 18-83y;
5050containing data from the LIFE and NKI studies.
5151
5252
53-
54-
5553## Modes
56- It can be run in ** BIDS mode** and in in ** FILE mode** .
54+ It can be run in ** BIDS mode** (recommended) and in in ** FILE mode** .
5755
5856In BIDS mode the input is a BIDS formatted Freesurfer folder.
5957
@@ -66,42 +64,50 @@ aseg files extracted via asegstats2table.
6664
6765## BIDS mode
6866### Example
69- #### Introduction
7067These examples demonstrate how to run the ` bids/baracus ` docker container.
7168For a brief introduction how to run BIDS Apps see
7269[ this site] ( http://bids-apps.neuroimaging.io/tutorial/ ) .
73- In the examples ` project/freesurfer ` and ` /project/out ` are directories
70+ In the examples ` /project/bids_sourcedata ` , ` /project/freesurfer ` and
71+ ` /project/baracus ` are directories
7472on your hard drive, which are mapped into the docker container directories
75- ` /data/in ` and ` /data/out ` , respectively, via the ` -v ` flag.
73+ ` /data/in ` , ` /data/freesurfer ` and ` /data/out ` , respectively, via
74+ the ` -v ` flag.
7675
7776#### Participants
7877
7978 docker run -ti --rm \
80- -v /project/freesurfer/:/data/in \
81- -v /project/out:/data/out \
82- bids/baracus /data/in /data/out participant
79+ -v /project/bids_sourcedata/:/data/in \
80+ -v /project/freesurfer/:/data/freesurfer \
81+ -v /project/baracus:/data/out \
82+ bids/baracus /data/in /data/out participant \
83+ --license_key "XX" --freesurfer_dir /data/freesurfer
8384
8485#### Group
8586
8687 docker run -ti --rm \
87- -v /project/freesurfer/:/data/in \
88- -v /project/out:/data/out \
89- bids/baracus /data/in /data/out group
88+ -v /project/bids_sourcedata/:/data/in \
89+ -v /project/freesurfer/:/data/freesurfer \
90+ -v /project/baracus:/data/out \
91+ bids/baracus /data/in /data/out group \
92+ --license_key "XX" --freesurfer_dir /data/freesurfer
9093
9194### Usage
9295
96+ docker run -ti --rm bids/${CIRCLE_PROJECT_REPONAME,,} -h
9397 usage: run_brain_age_bids.py [-h]
9498 [--participant_label PARTICIPANT_LABEL [PARTICIPANT_LABEL ...]]
99+ --freesurfer_dir FREESURFER_DIR
95100 [--models {Liem2016__OCI_norm,Liem2016__full_2samp_training} [{Liem2016__OCI_norm,Liem2016__full_2samp_training} ...]]
96- freesurfer_dir out_dir {participant,group}
101+ --license_key LICENSE_KEY [--n_cpus N_CPUS] [-v]
102+ bids_dir out_dir {participant,group}
97103
98104 BARACUS: Brain-Age Regression Analysis and Computation Utility Software. BIDS
99105 mode. You specify a BIDS-formatted freesurfer folder as input. All data is
100106 extracted automatiacally from that folder.
101107
102108 positional arguments:
103- freesurfer_dir Folder with freesurfer subjects formatted according to
104- BIDS standard.
109+ bids_dir The directory with the input dataset formatted
110+ according to the BIDS standard.
105111 out_dir Results are put here.
106112 {participant,group} Level of the analysis that will be performed.
107113 "participant": predicts single subject brain age,
@@ -116,8 +122,18 @@ on your hard drive, which are mapped into the docker container directories
116122 parameter is not provided all subjects should be
117123 analyzed. Multiple participants can be specified with
118124 a space separated list.
125+ --freesurfer_dir FREESURFER_DIR
126+ Folder with FreeSurfer subjects formatted according to
127+ BIDS standard. If subject's recon-all folder cannot be
128+ found, recon-all will be run.
119129 --models {Liem2016__OCI_norm,Liem2016__full_2samp_training} [{Liem2016__OCI_norm,Liem2016__full_2samp_training} ...]
120-
130+ --license_key LICENSE_KEY
131+ FreeSurfer license key - letters and numbers after "*"
132+ in the email you received after registration. To
133+ register (for free) visit
134+ https://surfer.nmr.mgh.harvard.edu/registration.html
135+ --n_cpus N_CPUS Number of CPUs/cores available to use.
136+ -v, --version show program's version number and exit
121137
122138
123139## FILE mode
0 commit comments