@@ -36,9 +36,8 @@ Template:
3636``` Text
3737<pipeline_name>/
3838 tpl-<label>/
39- [cohort-<label>/]
40- [<datatype>/]
41- tpl-<label>[_cohort-<label>][_<entities>]_<suffix>.<extension>
39+ [<datatype>/]
40+ tpl-<label>[_<entities>]_<suffix>.<extension>
4241```
4342
4443where [ ` suffix ` ] ( ../glossary.md#suffix-common_principles ) is any valid BIDS suffix
@@ -47,24 +46,11 @@ such as `T1w` or `PET`; and
4746such as ` nii[.gz] ` , ` dscalar.nii[.gz] ` , ` dlabel.nii[.gz] ` , ` label.gii ` , ` tsv ` , or ` json ` .
4847Templates and atlases do not establish new suffixes or extensions,
4948but any valid BIDS/BIDS Derivatives filename is permitted in a template directory,
50- substituting ` tpl ` for ` sub ` and ` cohort ` for ` ses ` .
49+ substituting ` tpl ` for ` sub ` .
5150
5251The [ ` <datatype>/ ` directory] ( ../glossary.md#data_type-common_principles ) MAY be omitted in the case
5352only one data type (such as ` anat/ ` ) is stored under the ` tpl-<label>/ ` directory.
5453
55- The [ ` cohort-<label> ` directory and entity] ( ../appendices/entities.md#cohort ) MUST be specified for templates
56- with several cohorts.
57-
58- !!! note "Dataset structure"
59-
60- In templates/atlases the [`tpl-<label>`](../appendices/entities.md#tpl) and
61- [`cohort-<label>`](../appendices/entities.md#cohort) entities are structurally
62- analogous to the [`sub-<label>`](../appendices/entities.md#sub)
63- and [`ses-<label>`](../appendices/entities.md#ses) entities,
64- appearing as both directories and entities.
65- The [`cohort-<label>`](../appendices/entities.md#cohort) entity is used
66- to track mappings of arbitrary subject/session pairs.
67-
6854In BIDS, a template is considered * any* aggregation of data and the ` tpl- ` entity
6955replaces the subject-level ` sub- ` entity when aggregating data across subjects.
7056The ` tpl- ` entity and ` sub- ` entity are mutually exclusive in a given file.
@@ -107,34 +93,32 @@ A guide for using macros can be found at
10793
10894### Example: Multi-cohort template
10995
110- In the case that the template-generating pipeline derives
111- several cohorts, the file structure must employ the
112- [ ` cohort-<label> ` directory and entity ] ( ../appendices/entities.md#cohort ) .
96+ In the case that the template-generating pipeline derives several related templates,
97+ each template is assigned a unique label.
98+ In this example, a common prefix is used to indicate a family of related templates:
11399
114100<!-- This block generates a file tree.
115101A guide for using macros can be found at
116102 https://github.com/bids-standard/bids-specification/blob/master/macros_doc.md
117103-->
118104{{ MACROS__ _ make_filetree_example({
119105 "mnipediatricasym-pipeline": {
120- "tpl-MNIPediatricAsym": {
121- "cohort-1": {
122- "tpl-MNIPediatricAsym_cohort-1_T1w.nii.gz": "",
123- "tpl-MNIPediatricAsym_cohort-1_T2w.nii.gz": "",
124- "tpl-MNIPediatricAsym_cohort-1_PDw.nii.gz": "",
125- "tpl-MNIPediatricAsym_cohort-1_desc-brain_mask.nii.gz": "",
126- "tpl-MNIPediatricAsym_cohort-1_probseg.nii.gz": "",
127- "tpl-MNIPediatricAsym_cohort-1_probseg.json": "",
128- },
129- "...": "",
130- "cohort-6": {
131- "tpl-MNIPediatricAsym_cohort-6_T1w.nii.gz": "",
132- "tpl-MNIPediatricAsym_cohort-6_T2w.nii.gz": "",
133- "tpl-MNIPediatricAsym_cohort-6_PDw.nii.gz": "",
134- "tpl-MNIPediatricAsym_cohort-6_desc-brain_mask.nii.gz": "",
135- "tpl-MNIPediatricAsym_cohort-6_probseg.nii.gz": "",
136- "tpl-MNIPediatricAsym_cohort-6_probseg.json": "",
137- },
106+ "tpl-MNIPediatricAsym+1": {
107+ "tpl-MNIPediatricAsym+1_T1w.nii.gz": "",
108+ "tpl-MNIPediatricAsym+1_T2w.nii.gz": "",
109+ "tpl-MNIPediatricAsym+1_PDw.nii.gz": "",
110+ "tpl-MNIPediatricAsym+1_desc-brain_mask.nii.gz": "",
111+ "tpl-MNIPediatricAsym+1_probseg.nii.gz": "",
112+ "tpl-MNIPediatricAsym+1_probseg.json": "",
113+ },
114+ "...": "",
115+ "tpl-MNIPediatricAsym+6": {
116+ "tpl-MNIPediatricAsym+6_T1w.nii.gz": "",
117+ "tpl-MNIPediatricAsym+6_T2w.nii.gz": "",
118+ "tpl-MNIPediatricAsym+6_PDw.nii.gz": "",
119+ "tpl-MNIPediatricAsym+6_desc-brain_mask.nii.gz": "",
120+ "tpl-MNIPediatricAsym+6_probseg.nii.gz": "",
121+ "tpl-MNIPediatricAsym+6_probseg.json": "",
138122 },
139123 }
140124})
@@ -192,9 +176,8 @@ Template:
192176<pipeline_name>/
193177 atlas-<label>_description.json
194178 tpl-<label>/
195- [cohort-<label>/]
196- [<datatype>/]
197- tpl-<label>[_cohort-<label>][_<entities>]_<suffix>.<extension>
179+ [<datatype>/]
180+ tpl-<label>[_<entities>]_<suffix>.<extension>
198181```
199182
200183### Atlas identification and metadata
0 commit comments