@@ -47,17 +47,22 @@ doi: https://doi.org/10.1101/079145*
4747##
4848
4949### Data
50- Tracula requires one DWI volume and a Freesurfer reconstruction
50+ Tracula requires one DWI volume and a one T1w image
5151per participant (or session if the data is longitudinal).
52- The Freesurfer reconstruction should be performed with the
52+
53+ In a first step, the app will run the FreeSurfer reconstruction
54+ (` recon-all ` ). If the Freesurfer reconstruction is already available
55+ and is provided via the ` {freesurfer_dir} ` argument, this step is skipped.
56+ In this case ` recon-all ` should have been performed with the
5357[ Freesurfer BIDS App] ( https://github.com/bids-apps/freesurfer )
5458(or at least follow the BIDS naming scheme).
5559
5660### Analysis levels
5761
5862- ** participant** : Tract reconstruction
5963
60- Performs the three steps (prep, bedp, path) of Tracula's ` trac-all ` ,
64+ Runs ` recon-all ` if not already available.
65+ Subsequently, performs the three steps (prep, bedp, path) of Tracula's ` trac-all ` ,
6166 reconstructing major fiber tracts form Freesurfer outputs and
6267 DWI raw data.
6368 All data is written into ` {output_dir} ` .
@@ -79,21 +84,24 @@ The Freesurfer reconstruction should be performed with the
7984 calculation can be found in the * TMI_info* column of the
8085 output file.
8186
82- - ** group2** : Overall tract statistics
87+ - ** group2** : Tract statistics
8388
84- Collects characteristics of a tract (average FA...)
85- for multiple subjects.
86- Output is written to
87- ` {output_dir}/00_group2_tract_stats/{tract_name}_stats.tsv ` .
89+ Collects tract stats for multiple subjects.
90+ Mean stats of a tract (average FA...) are written to
91+ ` {output_dir}/00_group2_tract_stats/overall_stats/ ` .
92+ Along-tract stats are written to
93+ ` {output_dir}/00_group2_tract_stats/byvoxel_stats/ ` .
8894
8995
9096### Usage
9197This App has the following command line arguments:
9298
9399 usage: run.py [-h] --license_key LICENSE_KEY
94100 [--participant_label PARTICIPANT_LABEL [PARTICIPANT_LABEL ...]]
101+ [--session_label SESSION_LABEL [SESSION_LABEL ...]]
95102 [--freesurfer_dir FREESURFER_DIR]
96- [--stages {prep,bedp,path,all} [{prep,bedp,path,all} ...]] [-v]
103+ [--stages {prep,bedp,path,all} [{prep,bedp,path,all} ...]]
104+ [--n_cpus N_CPUS] [--run-freesurfer-tests-only] [-v]
97105 bids_dir output_dir {participant,group1,group2}
98106
99107 BIDS App for Tracula processing stream.
@@ -108,10 +116,10 @@ This App has the following command line arguments:
108116 theparticipant level analysis.
109117 {participant,group1,group2}
110118 Level of the analysis that will be performed.
111- "participant": reconstructs paths (trac-all -prep,
112- - bedp and -path), "group1": collects motion stats in
113- one file, "group2": collects single subject overall
114- path stats in one file.
119+ "participant": runs FreeSurfer and reconstructs paths
120+ (trac-all -prep, - bedp and -path), "group1": collects
121+ motion stats in one file, "group2": collects tract
122+ stats in one file.
115123
116124 optional arguments:
117125 -h, --help show this help message and exit
@@ -128,16 +136,27 @@ This App has the following command line arguments:
128136 parameter is not provided all subjects should be
129137 analyzed. Multiple participants can be specified with
130138 a space separated list. (default: None)
139+ --session_label SESSION_LABEL [SESSION_LABEL ...]
140+ The label of the sessions that should be analyzed. The
141+ label corresponds to ses-<session_label> from the BIDS
142+ spec (so it does not include "ses-"). If this
143+ parameter is not provided all sessions should be
144+ analyzed. Multiple sessions can be specified with a
145+ space separated list. (default: None)
131146 --freesurfer_dir FREESURFER_DIR
132- The directory with the freesurfer data. If not
133- specified, output_dir is assumed to be populated with
134- freesurfer data. (default: None)
147+ The directory with the FreeSurfer data. If not
148+ specified, FreeSurfer data is written into output_dir.
149+ If FreeSurfer data cannot be found for a subject, this
150+ app will run FreeSurfer as well. (default: None)
135151 --stages {prep,bedp,path,all} [{prep,bedp,path,all} ...]
136152 Participant-level trac-all stages to run. Passing"all"
137153 will run "prep", "bedp" and "path". (default: ['all'])
154+ --n_cpus N_CPUS Number of CPUs/cores available to use. (default: 1)
155+ --run-freesurfer-tests-only
156+ Dev option to enable freesurfer tests on circleci
157+ (default: False)
138158 -v, --version show program's version number and exit
139159
140-
141160##
142161### Examples
143162To run it in participant level mode (for one participant):
@@ -175,7 +194,7 @@ To aggregate motion statistics into one file (group1 stage), run:
175194
176195
177196
178- To collect single subject overall path stats in one file (group2 stage), run:
197+ To aggregate tract statistics into one file (group2 stage), run:
179198
180199 docker run -ti --rm \
181200 -v /data/ds114/sourcedata:/bids_dataset:ro \
0 commit comments