@@ -25,11 +25,15 @@ This App has the following command line arguments:
2525 $ docker run -ti --rm bids/freesurfer --help
2626 usage: run.py [-h]
2727 [--participant_label PARTICIPANT_LABEL [PARTICIPANT_LABEL ...]]
28+ [--session_label SESSION_LABEL [SESSION_LABEL ...]]
2829 [--n_cpus N_CPUS]
29- [--stages {autorecon1,autorecon2,autorecon2-cp,autorecon2-wm,autorecon2-pial,autorecon3,autorecon-all,all}
30- [{autorecon1,autorecon2,autorecon2-cp,autorecon2-wm,autorecon2-pial,autorecon3,autorecon-all,all} ...]]
31- [--template_name TEMPLATE_NAME] --license_key LICENSE_KEY
30+ [--stages {autorecon1,autorecon2,autorecon2-cp,autorecon2-wm,autorecon-pial,autorecon3,autorecon-all,all}
31+ [{autorecon1,autorecon2,autorecon2-cp,autorecon2-wm,autorecon-pial,autorecon3,autorecon-all,all} ...]]
32+ [--steps {cross-sectional,template,longitudinal}
33+ [{cross-sectional,template,longitudinal} ...]]
34+ [--template_name TEMPLATE_NAME] --license_file LICENSE_FILE
3235 [--acquisition_label ACQUISITION_LABEL]
36+ [--refine_pial_acquisition_label REFINE_PIAL_ACQUISITION_LABEL]
3337 [--multiple_sessions {longitudinal,multiday}]
3438 [--refine_pial {T2,FLAIR,None,T1only}]
3539 [--hires_mode {auto,enable,disable}]
@@ -39,6 +43,7 @@ This App has the following command line arguments:
3943 [-v] [--bids_validator_config BIDS_VALIDATOR_CONFIG]
4044 [--skip_bids_validator]
4145 bids_dir output_dir {participant,group1,group2}
46+
4247 FreeSurfer recon-all + custom template generation.
4348
4449 positional arguments:
@@ -51,10 +56,10 @@ This App has the following command line arguments:
5156 {participant,group1,group2}
5257 Level of the analysis that will be performed. Multiple
5358 participant level analyses can be run independently
54- (in parallel) using the same output_dir. "goup1 "
55- creates study specific group template. "group2 exports
56- group stats tables for cortical parcellation and
57- subcortical segmentation.
59+ (in parallel) using the same output_dir. "group1 "
60+ creates study specific group template. "group2"
61+ exports group stats tables for cortical parcellation,
62+ subcortical segmentation a table with euler numbers .
5863
5964 optional arguments:
6065 -h, --help show this help message and exit
@@ -65,21 +70,34 @@ This App has the following command line arguments:
6570 parameter is not provided all subjects should be
6671 analyzed. Multiple participants can be specified with
6772 a space separated list.
73+ --session_label SESSION_LABEL [SESSION_LABEL ...]
74+ The label of the session that should be analyzed. The
75+ label corresponds to ses-<session_label> from the BIDS
76+ spec (so it does not include "ses-"). If this
77+ parameter is not provided all sessions should be
78+ analyzed. Multiple sessions can be specified with a
79+ space separated list.
6880 --n_cpus N_CPUS Number of CPUs/cores available to use.
69- --stages {autorecon1,autorecon2,autorecon2-cp,autorecon2-wm,autorecon2 -pial,autorecon3,autorecon-all,all}
70- [{autorecon1,autorecon2,autorecon2-cp,autorecon2-wm,autorecon2 -pial,autorecon3,autorecon-all,all} ...]
81+ --stages {autorecon1,autorecon2,autorecon2-cp,autorecon2-wm,autorecon -pial,autorecon3,autorecon-all,all}
82+ [{autorecon1,autorecon2,autorecon2-cp,autorecon2-wm,autorecon -pial,autorecon3,autorecon-all,all} ...]
7183 Autorecon stages to run.
84+ --steps {cross-sectional,template,longitudinal} [{cross-sectional,template,longitudinal} ...]
85+ Longitudinal pipeline steps to run.
7286 --template_name TEMPLATE_NAME
7387 Name for the custom group level template generated for
7488 this dataset
7589 --license_file LICENSE_FILE
7690 Path to FreeSurfer license key file. To obtain it you
77- need to register (for free) visit
91+ need to register (for free) at
7892 https://surfer.nmr.mgh.harvard.edu/registration.html
7993 --acquisition_label ACQUISITION_LABEL
8094 If the dataset contains multiple T1 weighted images
8195 from different acquisitions which one should be used?
8296 Corresponds to "acq-<acquisition_label>"
97+ --refine_pial_acquisition_label REFINE_PIAL_ACQUISITION_LABEL
98+ If the dataset contains multiple T2 or FLAIR weighted
99+ images from different acquisitions which one should be
100+ used? Corresponds to "acq-<acquisition_label>"
83101 --multiple_sessions {longitudinal,multiday}
84102 For datasets with multiday sessions where you do not
85103 want to use the longitudinal pipeline, i.e., sessions
@@ -100,15 +118,15 @@ This App has the following command line arguments:
100118 stats from.
101119 --measurements {area,volume,thickness,thicknessstd,meancurv,gauscurv,foldind,curvind}
102120 [{area,volume,thickness,thicknessstd,meancurv,gauscurv,foldind,curvind} ...]
103- Group2 option: cortical measurements to extract stats for.
121+ Group2 option: cortical measurements to extract stats
122+ for.
104123 -v, --version show program's version number and exit
105124 --bids_validator_config BIDS_VALIDATOR_CONFIG
106125 JSON file specifying configuration of bids-validator:
107126 See https://github.com/INCF/bids-validator for more
108127 info
109128 --skip_bids_validator
110- skips bids validation
111-
129+ skips bids validation
112130
113131#### Participant level
114132To run it in participant level mode (for one participant):
@@ -125,6 +143,7 @@ To run it in participant level mode (for one participant):
125143After doing this for all subjects (potentially in parallel) the
126144group level analyses can be run.
127145
146+ ##### Template creation
128147To create a study specific template run:
129148
130149 docker run -ti --rm \
@@ -134,13 +153,24 @@ To create a study specific template run:
134153 /bids_dataset /outputs group1 \
135154 --license_file "license.txt"
136155
156+ ##### Stats and quality tables export
137157To export tables with aggregated measurements within regions of
138- cortical parcellation and subcortical segementation run:
158+ cortical parcellation and subcortical segementation, and a table with
159+ euler numbers (a quality metric, see
160+ [ Rosen et. al, 2017] ( https://www.biorxiv.org/content/early/2017/10/01/125161 ) )
161+ run:
139162
140163 docker run -ti --rm \
141164 -v /Users/filo/data/ds005:/bids_dataset:ro \
142165 -v /Users/filo/outputs:/outputs \
143166 bids/freesurfer \
144167 /bids_dataset /outputs group2 \
145168 --license_file "license.txt"
146- Also see * --parcellations* and * --measurements* arguments.
169+ Also see the * --parcellations* and * --measurements* arguments.
170+
171+ This step writes ouput into ` <output_dir>/00_group2_stats_tables/ ` . E.g.:
172+
173+ * ` lh.aparc.thickness.tsv ` contains cortical thickness values for the
174+ left hemisphere extracted via the aparac parcellation.
175+ * ` aseg.tsv ` contains subcortical information from the aseg segmentation.
176+ * ` euler.tsv ` contains the euler numbers
0 commit comments