You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/command.rst
+52-47Lines changed: 52 additions & 47 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,8 +41,8 @@ All the data have to be in BIDS format to run properly (see `BIDS specification
41
41
42
42
In particular:
43
43
44
-
* _T1w (BIDS) extension is expected for T1 weighted images (BIDS)
45
-
* _T2w (BIDS) extension is expected for T2 weighted images (BIDS)
44
+
* ``_T1w`` (BIDS) extension is expected for T1 weighted images (BIDS)
45
+
* ``_T2w`` (BIDS) extension is expected for T2 weighted images (BIDS)
46
46
47
47
.. image:: ./img/images/BIDS_orga.jpg
48
48
:width:600
@@ -54,76 +54,81 @@ In particular:
54
54
Command line parameters
55
55
***********************
56
56
57
-
--------------------------------------
58
-
The following parameters are mandatory
59
-
--------------------------------------
57
+
--------------------
58
+
mandatory parameters
59
+
--------------------
60
60
61
-
* -data
62
-
the path to your data dataset (existing BIDS format directory)
61
+
* ``-data`` : path to your data dataset (existing BIDS format directory)
62
+
* ``-out`` : path to the output results (an existing path)
63
+
* ``-soft`` : can be one of these : SPM or ANTS ( **NB:** SPM requires a specific version of macapype/skullTo3d, not available by default)
63
64
64
-
* -out
65
-
the path to the output results (an existing path)
65
+
For ``-soft`` value, it is possible to add some key words (e.g. ``-soft ANTS_robustreg_prep``) all these options are available (to place after SPM or ANTS, e.g) and will change the brain extraction:
66
66
67
-
* -soft
68
-
can be one of these : SPM or ANTS
69
-
* with _robustreg (at the end) to have a more robust registration (in two steps)
70
-
* with _test (at the end) to check if the full pipeline is coherent (will only generate the graph.dot and graph.png)
71
-
* with _prep (at the end) will perform data preparation (no brain extraction and segmentation)
72
-
* with _noseg (at the end) will perform data preparation and brain extraction (no segmentation)
73
-
* with _seq (at the end) to run in sequential mode (all iterables will be processed one after the other; equivalent to -nprocs 1)
67
+
* ``_4animal`` : will use bet4animal (FSL) for brain extraction, for faster computation (by default atlas_brex is used)
68
+
* ``_quick`` : will use hd-bet (Deep Learning) for brain extraction, for faster computation (by default atlas_brex is used)
69
+
**NB: ** hd-bet requires a specific version of macapype/skullTo3d, not available by default
74
70
75
-
--------------------------------------
76
-
The following parameters are exclusive
77
-
--------------------------------------
71
+
This option should be used if the coregistration to template in preparation is not performed correctly:
72
+
73
+
* ``_robustreg`` (at the end) to have a more robust registration (in two steps)
74
+
75
+
Finally, these option are available (to place after SPM or ANTS) and will modify the parameters but can be launched in sequence:
76
+
77
+
* ``_test`` : (at the end) to check if the full pipeline is coherent (will only generate the graph.dot and graph.png)
78
+
* ``_prep`` (at the end) will perform data preparation (no brain extraction and segmentation)
79
+
* ``_noseg`` (at the end) will perform data preparation and brain extraction (no segmentation)
80
+
81
+
--------------------
82
+
exclusive parameters
83
+
--------------------
78
84
*(but one is mandatory)*
79
85
80
-
* -params *(mandatory if -species is omitted)*
81
-
a json file specifiying the global parameters of the analysis. See :ref:`Parameters <params>` for more details
86
+
* ``-params`` : *(mandatory if -species is omitted)* a json file specifiying the global parameters of the analysis. See :ref:`Parameters <params>` for more details
87
+
* ``-species`` : *(mandatory if -params is omitted)* followed the NHP species corresponding to the image, e.g. {macaque | marmo | baboon | chimp}
88
+
89
+
**NB** : marmoT2 can be used for segmenting from the T2w image (by default, T1w is used for marmo)
90
+
91
+
**NB** : baboon0, baboon1, baboon2 baboon3 can be used for template `Baba21 <doi:10.18112/openneuro.ds005424.v1.0.0>`_
92
+
and matching
82
93
83
-
* -species *(mandatory if -params is omitted)*
84
-
followed the NHP species corresponding to the image, e.g. {macaque | marmo | baboon | chimp}
85
-
In extra, marmoT2 can be used for segmenting from the T2w image (by default, T1w is used)
94
+
**NB** : some templates are available in downgraded versions: baboon1_0p6, baboon2_0p6 baboon3_0p6 and macaque_0p5 and show significant decrease in processing time with low redection in quality. However, not all combinations are available
86
95
87
-
--------------------------------------
88
-
The following parameters are optional
89
-
--------------------------------------
96
+
-------------------
97
+
optional parameters
98
+
-------------------
90
99
*(but highly recommanded)*
91
100
92
-
* dt
93
-
specifies the datatype available to perform brain segmentation (can be "T1", or "T1 T2").
94
-
**Note** : default is T1 if the attribute is omitted
101
+
* ``-dt`` : specifies the datatype available to perform brain segmentation (can be "T1", or "T1 T2")
95
102
96
-
* -deriv creates a derivatives directory, with all important files, properly named following BIDS derivatives convertion
103
+
**Note** : default is T1 if the attribute is omitted
97
104
98
-
* -pad exports (in derivatives) important files in native (original) space
105
+
* ``-deriv`` : creates a derivatives directory, with all important files, properly named following BIDS derivatives convertion. See :ref:`Derivatives <derivatives>` for a descrition of the outputs
99
106
100
-
--------------------------------------
101
-
The following parameters are optional
102
-
--------------------------------------
107
+
* ``-pad`` : exports most important files in native (original) space
103
108
104
-
* -indiv or -indiv_params : a json file overwriting the default parameters (both macapype default and parameters specified in -params json file) for specific subjects/sessions. See :ref:`Individual Parameters <indiv_params>` for more details
109
+
------------------------
110
+
more optional parameters
111
+
------------------------
105
112
106
-
* -sub (-subjects), -ses (-sessions), -acq (-acquisions), -rec (-reconstructions) allows to specifiy a subset of the BIDS dataset respectively to a range of subjects, session, acquision types and reconstruction types. The arguments can be listed with space seperator. **Note** if not specified, the full BIDS dataset will be processed
113
+
* ``-indiv`` or ``-indiv_params`` : a json file overwriting the default parameters (both macapype default and parameters specified in -params json file) for specific subjects/sessions. See :ref:`Individual Parameters <indiv_params>` for more details
114
+
* ``-sub`` (-subjects), ``-ses`` (-sessions), ``-acq`` (-acquisions), ``-rec`` (-reconstructions) allows to specifiy a subset of the BIDS dataset respectively to a range of subjects, session, acquision types and reconstruction types. The arguments can be listed with space seperator. **Note** if not specified, the full BIDS dataset will be processed
115
+
* ``-nprocs`` : an integer, to specifiy the number of processes that should be allocated by the parralel engine of macapype
107
116
108
-
* -mask allows to specify a precomputed binary mask file (skipping brain extraction). The best usage of this option is: precomputing the pipeline till brain_extraction_pipe, modify by hand the mask and use the mask for segmentation. Better if only one subject*session is specified (one file is specified at a time...).
117
+
* typically equals to the number of subjects*session (i.e. iterables).
118
+
* can be multiplied by 2 if T1*T2 pipelines are run (the first steps at least will benefit from it)
119
+
* default = 4 if unspecified ; if is put to 1, then the sequential processing is used
109
120
110
-
**Warning: the mask should be in the same space as the data. And only works with -soft ANTS so far**
121
+
* ``-mask`` allows to specify a precomputed binary mask file (skipping brain extraction). The best usage of this option is: precomputing the pipeline till brain_extraction_pipe, modify by hand the mask and use the mask for segmentation. Better if only one subject*session is specified (one file is specified at a time...).
111
122
112
-
* -nprocs : an integer, to specifiy the number of processes that should be allocated by the parralel engine of macapype
113
-
* typically equals to the number of subjects*session (i.e. iterables).
114
-
* can be multiplied by 2 if T1*T2 pipelines are run (the first steps at least will benefit from it)
115
-
* default = 4 if unspecified ; if is put to 0, then the sequential processing is used (equivalent to -soft with _seq, see before)
123
+
**Warning:** the mask should be in the same space as the data. And only works with -soft ANTS so far
Depending on the options provided by command line and params.json, different files will ouput
13
+
14
+
Derivatives will be output if option ``-deriv`` is provided to the command line (See `Commands <commands>`):
15
+
16
+
All files are by default in stereo space; if option ``-pad`` is provided to the command line (See `Commands <commands>`), files in native will also be output.
17
+
18
+
Data Preparation
19
+
****************
20
+
21
+
Original files (possibly after reorientation and avereging):
22
+
23
+
*sub-Stevie_ses-01_space-native_T1w.nii.gz*
24
+
25
+
*sub-Stevie_ses-01_space-native_T2w.nii.gz*
26
+
27
+
|
28
+
29
+
If -pad is defined in command line (See `Commands <commands>`):
0 commit comments