@@ -13,6 +13,22 @@ nonstandard spaces can be inserted.
13
13
*fMRIPrep * will reduce the amount of output spaces to just spaces listed in ``--output-spaces ``,
14
14
even if other options require resampling the preprocessed data into intermediary spaces.
15
15
16
+
17
+ .. _TemplateFlow :
18
+
19
+ *TemplateFlow *
20
+ """"""""""""""
21
+ *TemplateFlow * is a software library and a repository of neuroimaging templates
22
+ that allows end-user applications such as *fMRIPrep * to flexibly query and pull
23
+ template and atlas information.
24
+ In other words, *TemplateFlow * affords *fMRIPrep * with access to a wide range
25
+ of templates (and also custom templates, see below).
26
+ Therefore, *TemplateFlow * is central to define *fMRIPrep *'s interface regarding
27
+ template and atlas prior-knowledge.
28
+ For more general information about *TemplateFlow *, visit
29
+ `TemplateFlow.org <https://www.templateflow.org >`__.
30
+
31
+
16
32
Standard spaces
17
33
"""""""""""""""
18
34
When using *fMRIPrep * in a workflow that will investigate effects that span across
@@ -23,7 +39,7 @@ For instance, to instruct *fMRIPrep* to use the MNI template brain distributed w
23
39
FSL as coordinate reference the option will read as follows: ``--output-spaces MNI152NLin6Asym ``.
24
40
By default, *fMRIPrep * uses ``MNI152NLin2009cAsym `` as spatial-standardization reference.
25
41
Valid template identifiers (``MNI152NLin6Asym ``, ``MNI152NLin2009cAsym ``, etc.) come from
26
- the `TemplateFlow project <https://github.com/templateflow/templateflow >`__.
42
+ the `TemplateFlow repository <https://github.com/templateflow/templateflow >`__.
27
43
28
44
Therefore, *fMRIPrep * will run nonlinear registration processes against the template
29
45
T1w image corresponding to all the standard spaces supplied with the argument
@@ -90,8 +106,6 @@ follows::
90
106
For further information about how custom templates must be organized and
91
107
corresponding naming, please check `the TemplateFlow tutorials
92
108
<https://www.templateflow.org/python-client/tutorials.html> `__.
93
- For more general information about *TemplateFlow *, visit
94
- `TemplateFlow.org <https://www.templateflow.org >`__.
95
109
96
110
Nonstandard spaces
97
111
""""""""""""""""""
@@ -126,58 +140,3 @@ identifier not be found within the ``--output-spaces`` list already.
126
140
In other words, running *fMRIPrep * with ``--output-spaces MNI152NLin6Asym:res-2
127
141
--use-syn-sdc `` will expand the list of output spaces to be
128
142
``MNI152NLin6Asym:res-2 MNI152NLin2009cAsym ``.
129
-
130
- .. _TemplateFlow :
131
-
132
- *TemplateFlow *
133
- """"""""""""""
134
- Group inference and reporting of neuroimaging studies require that individual's
135
- features are spatially aligned into a common frame where their location can be
136
- called *standard *.
137
- To that end, a multiplicity of brain templates with anatomical annotations
138
- (i.e., atlases) have been published.
139
- However, a centralized resource that allows programmatic access to templates
140
- was lacking.
141
- *TemplateFlow * is a modular, version-controlled resource that allows researchers
142
- to use templates "off-the-shelf" and share new ones.
143
-
144
- In addition to the repository from which neuroimaging templates are redistributed,
145
- *TemplateFlow * also comprehends a Python client tool to access them programmatically
146
- when used as a library by other software, or interactively by humans.
147
- Therefore *TemplateFlow * is the software module that allows *fMRIPrep * to flexibly
148
- change, and dynamically pull down, new standardized template information.
149
-
150
- .. _tf_no_internet :
151
-
152
- **How do you use TemplateFlow in the absence of access to the Internet? **.
153
- This is a fairly common situation in :abbr: `HPCs ( high-performance computing ) `
154
- systems, where the so-called login nodes have access to the Internet but
155
- compute nodes are isolated, or in PC/laptop enviroments if you are travelling.
156
- *TemplateFlow * will require Internet access the first time it receives a
157
- query for a template resource that has not been previously accessed.
158
- If you know what are the templates you are planning to use, you could
159
- prefetch them using the Python client.
160
- To do so, follow the next steps.
161
-
162
- 1. By default, a mirror of *TemplateFlow * to store the resources will be
163
- created in ``$HOME/.cache/templateflow ``.
164
- You can modify such a configuration with the ``TEMPLATEFLOW_HOME ``
165
- environment variable, e.g.::
166
-
167
- $ export TEMPLATEFLOW_HOME=$HOME/.templateflow
168
-
169
- 2. Install the client within your favorite Python 3 environment (this can
170
- be done in your login-node, or in a host with Internet access,
171
- without need for Docker/Singularity)::
172
-
173
- $ python -m pip install -U templateflow
174
-
175
- 3. Use the ``get() `` utility of the client to pull down all the templates you'll
176
- want to use. For example::
177
-
178
- $ python -c "from templateflow.api import get; get(['MNI152NLin2009cAsym', 'MNI152NLin6Asym', 'OASIS30ANTs', 'MNIPediatricAsym', 'MNIInfant'])"
179
-
180
- After pulling down the resources you'll need, you will just need to make sure your
181
- runtime environment is able to access the filesystem, at the location of your
182
- *TemplateFlow home * directory.
183
- If you are a Singularity user, please check out :ref: `singularity_tf `.
0 commit comments