Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,15 @@ Unreleased
-o DIR`` reads the label values of every segmentation, and the label tables of GIFTI
files, into two tables keyed by md5, shipped with tfmanager
(``migrate/data/labels-2.0.0.tsv``, ``labeltables-2.0.0.tsv``).
* The 54 segmentations of the Archive without a lookup table get one, and the
MNI152NLin6Asym Harvard-Oxford tables are rebuilt: 24 tables under
``migrate/config/tables/``, each written from a cited upstream file (FSL, FreeSurfer,
HCP Pipelines, Mindboggle, the authors of MouseIn, the UNC infant atlases and the
Waxholm Space atlas, with their sha256) or, for the order of 4D probabilistic
segmentations and for tissue maps, from the data and the papers. A table a source
replaces is no longer converted first, and planning a migrated template writes it no
more. WHS's ``res-2`` ``atlas-v3`` image, a tissue map, becomes ``desc-tissues``.
Closes templateflow/templateflow#203.
* New warning TF118 redundant-entity: a ``desc``, ``seg`` or ``label`` that tells its file
apart from no other file of the template (``res``, ``den``, ``hemi`` and ``cohort``
aside). Masks keep ``desc``, probabilistic segmentations keep ``label``, and
Expand Down
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ tfmanager =
migrate/data/*.tsv
migrate/config/*.yaml
migrate/config/*.json
migrate/config/tables/*.tsv

[options.packages.find]
exclude =
Expand Down
307 changes: 292 additions & 15 deletions tfmanager/migrate/config/2.0.0.yaml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
index name abbreviation mapping
0 Background BG 0
1 Gray Matter GM 1
2 White Matter WM 2
3 Cerebrospinal Fluid CSF 3
4 Other n/a n/a
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
index name color
4 Left-Lateral-Ventricle #781286
5 Left-Inf-Lat-Vent #c43afa
6 Left-Cerebellum-Exterior #009400
7 Left-Cerebellum-White-Matter #dcf8a4
10 Left-Thalamus #00760e
11 Left-Caudate #7abadc
12 Left-Putamen #ec0db0
13 Left-Pallidum #0c30ff
14 3rd-Ventricle #ccb68e
15 4th-Ventricle #2acca4
16 Brain-Stem #779fb0
17 Left-Hippocampus #dcd814
18 Left-Amygdala #67ffff
24 CSF #3c3c3c
26 Left-Accumbens-area #ffa500
28 Left-VentralDC #a52a2a
30 Left-vessel #a020f0
43 Right-Lateral-Ventricle #781286
44 Right-Inf-Lat-Vent #c43afa
45 Right-Cerebellum-Exterior #009400
46 Right-Cerebellum-White-Matter #dcf8a4
49 Right-Thalamus #00760e
50 Right-Caudate #7abadc
51 Right-Putamen #ec0db0
52 Right-Pallidum #0d30ff
53 Right-Hippocampus #dcd814
54 Right-Amygdala #67ffff
58 Right-Accumbens-area #ffa500
60 Right-VentralDC #a52a2a
91 left basal forebrain n/a
92 right basal forebrain n/a
630 cerebellar vermal lobules I-V n/a
631 cerebellar vermal lobules VI-VII n/a
632 cerebellar vermal lobules VIII-X n/a
1002 ctx-lh-caudalanteriorcingulate #7d64a0
1003 ctx-lh-caudalmiddlefrontal #641900
1005 ctx-lh-cuneus #dc1464
1006 ctx-lh-entorhinal #dc140a
1007 ctx-lh-fusiform #b4dc8c
1008 ctx-lh-inferiorparietal #dc3cdc
1009 ctx-lh-inferiortemporal #b42878
1010 ctx-lh-isthmuscingulate #8c148c
1011 ctx-lh-lateraloccipital #141e8c
1012 ctx-lh-lateralorbitofrontal #234b32
1013 ctx-lh-lingual #e18c8c
1014 ctx-lh-medialorbitofrontal #c8234b
1015 ctx-lh-middletemporal #a06432
1016 ctx-lh-parahippocampal #14dc3c
1017 ctx-lh-paracentral #3cdc3c
1018 ctx-lh-parsopercularis #dcb48c
1019 ctx-lh-parsorbitalis #146432
1020 ctx-lh-parstriangularis #dc3c14
1021 ctx-lh-pericalcarine #78643c
1022 ctx-lh-postcentral #dc1414
1023 ctx-lh-posteriorcingulate #dcb4dc
1024 ctx-lh-precentral #3c14dc
1025 ctx-lh-precuneus #a08cb4
1026 ctx-lh-rostralanteriorcingulate #50148c
1027 ctx-lh-rostralmiddlefrontal #4b327d
1028 ctx-lh-superiorfrontal #14dca0
1029 ctx-lh-superiorparietal #14b48c
1030 ctx-lh-superiortemporal #8cdcdc
1031 ctx-lh-supramarginal #50a014
1034 ctx-lh-transversetemporal #9696c8
1035 ctx-lh-insula #ffc020
2002 ctx-rh-caudalanteriorcingulate #7d64a0
2003 ctx-rh-caudalmiddlefrontal #641900
2005 ctx-rh-cuneus #dc1464
2006 ctx-rh-entorhinal #dc140a
2007 ctx-rh-fusiform #b4dc8c
2008 ctx-rh-inferiorparietal #dc3cdc
2009 ctx-rh-inferiortemporal #b42878
2010 ctx-rh-isthmuscingulate #8c148c
2011 ctx-rh-lateraloccipital #141e8c
2012 ctx-rh-lateralorbitofrontal #234b32
2013 ctx-rh-lingual #e18c8c
2014 ctx-rh-medialorbitofrontal #c8234b
2015 ctx-rh-middletemporal #a06432
2016 ctx-rh-parahippocampal #14dc3c
2017 ctx-rh-paracentral #3cdc3c
2018 ctx-rh-parsopercularis #dcb48c
2019 ctx-rh-parsorbitalis #146432
2020 ctx-rh-parstriangularis #dc3c14
2021 ctx-rh-pericalcarine #78643c
2022 ctx-rh-postcentral #dc1414
2023 ctx-rh-posteriorcingulate #dcb4dc
2024 ctx-rh-precentral #3c14dc
2025 ctx-rh-precuneus #a08cb4
2026 ctx-rh-rostralanteriorcingulate #50148c
2027 ctx-rh-rostralmiddlefrontal #4b327d
2028 ctx-rh-superiorfrontal #14dca0
2029 ctx-rh-superiorparietal #14b48c
2030 ctx-rh-superiortemporal #8cdcdc
2031 ctx-rh-supramarginal #50a014
2034 ctx-rh-transversetemporal #9696c8
2035 ctx-rh-insula #ffc020
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
index name
1 Left Frontal Pole
2 Right Frontal Pole
3 Left Insular Cortex
4 Right Insular Cortex
5 Left Superior Frontal Gyrus
6 Right Superior Frontal Gyrus
7 Left Middle Frontal Gyrus
8 Right Middle Frontal Gyrus
9 Left Inferior Frontal Gyrus, pars triangularis
10 Right Inferior Frontal Gyrus, pars triangularis
11 Left Inferior Frontal Gyrus, pars opercularis
12 Right Inferior Frontal Gyrus, pars opercularis
13 Left Precentral Gyrus
14 Right Precentral Gyrus
15 Left Temporal Pole
16 Right Temporal Pole
17 Left Superior Temporal Gyrus, anterior division
18 Right Superior Temporal Gyrus, anterior division
19 Left Superior Temporal Gyrus, posterior division
20 Right Superior Temporal Gyrus, posterior division
21 Left Middle Temporal Gyrus, anterior division
22 Right Middle Temporal Gyrus, anterior division
23 Left Middle Temporal Gyrus, posterior division
24 Right Middle Temporal Gyrus, posterior division
25 Left Middle Temporal Gyrus, temporooccipital part
26 Right Middle Temporal Gyrus, temporooccipital part
27 Left Inferior Temporal Gyrus, anterior division
28 Right Inferior Temporal Gyrus, anterior division
29 Left Inferior Temporal Gyrus, posterior division
30 Right Inferior Temporal Gyrus, posterior division
31 Left Inferior Temporal Gyrus, temporooccipital part
32 Right Inferior Temporal Gyrus, temporooccipital part
33 Left Postcentral Gyrus
34 Right Postcentral Gyrus
35 Left Superior Parietal Lobule
36 Right Superior Parietal Lobule
37 Left Supramarginal Gyrus, anterior division
38 Right Supramarginal Gyrus, anterior division
39 Left Supramarginal Gyrus, posterior division
40 Right Supramarginal Gyrus, posterior division
41 Left Angular Gyrus
42 Right Angular Gyrus
43 Left Lateral Occipital Cortex, superior division
44 Right Lateral Occipital Cortex, superior division
45 Left Lateral Occipital Cortex, inferior division
46 Right Lateral Occipital Cortex, inferior division
47 Left Intracalcarine Cortex
48 Right Intracalcarine Cortex
49 Left Frontal Medial Cortex
50 Right Frontal Medial Cortex
51 Left Juxtapositional Lobule Cortex (formerly Supplementary Motor Cortex)
52 Right Juxtapositional Lobule Cortex (formerly Supplementary Motor Cortex)
53 Left Subcallosal Cortex
54 Right Subcallosal Cortex
55 Left Paracingulate Gyrus
56 Right Paracingulate Gyrus
57 Left Cingulate Gyrus, anterior division
58 Right Cingulate Gyrus, anterior division
59 Left Cingulate Gyrus, posterior division
60 Right Cingulate Gyrus, posterior division
61 Left Precuneous Cortex
62 Right Precuneous Cortex
63 Left Cuneal Cortex
64 Right Cuneal Cortex
65 Left Frontal Orbital Cortex
66 Right Frontal Orbital Cortex
67 Left Parahippocampal Gyrus, anterior division
68 Right Parahippocampal Gyrus, anterior division
69 Left Parahippocampal Gyrus, posterior division
70 Right Parahippocampal Gyrus, posterior division
71 Left Lingual Gyrus
72 Right Lingual Gyrus
73 Left Temporal Fusiform Cortex, anterior division
74 Right Temporal Fusiform Cortex, anterior division
75 Left Temporal Fusiform Cortex, posterior division
76 Right Temporal Fusiform Cortex, posterior division
77 Left Temporal Occipital Fusiform Cortex
78 Right Temporal Occipital Fusiform Cortex
79 Left Occipital Fusiform Gyrus
80 Right Occipital Fusiform Gyrus
81 Left Frontal Operculum Cortex
82 Right Frontal Operculum Cortex
83 Left Central Opercular Cortex
84 Right Central Opercular Cortex
85 Left Parietal Operculum Cortex
86 Right Parietal Operculum Cortex
87 Left Planum Polare
88 Right Planum Polare
89 Left Heschl's Gyrus (includes H1 and H2)
90 Right Heschl's Gyrus (includes H1 and H2)
91 Left Planum Temporale
92 Right Planum Temporale
93 Left Supracalcarine Cortex
94 Right Supracalcarine Cortex
95 Left Occipital Pole
96 Right Occipital Pole
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
index name
1 Frontal Pole
2 Insular Cortex
3 Superior Frontal Gyrus
4 Middle Frontal Gyrus
5 Inferior Frontal Gyrus, pars triangularis
6 Inferior Frontal Gyrus, pars opercularis
7 Precentral Gyrus
8 Temporal Pole
9 Superior Temporal Gyrus, anterior division
10 Superior Temporal Gyrus, posterior division
11 Middle Temporal Gyrus, anterior division
12 Middle Temporal Gyrus, posterior division
13 Middle Temporal Gyrus, temporooccipital part
14 Inferior Temporal Gyrus, anterior division
15 Inferior Temporal Gyrus, posterior division
16 Inferior Temporal Gyrus, temporooccipital part
17 Postcentral Gyrus
18 Superior Parietal Lobule
19 Supramarginal Gyrus, anterior division
20 Supramarginal Gyrus, posterior division
21 Angular Gyrus
22 Lateral Occipital Cortex, superior division
23 Lateral Occipital Cortex, inferior division
24 Intracalcarine Cortex
25 Frontal Medial Cortex
26 Juxtapositional Lobule Cortex (formerly Supplementary Motor Cortex)
27 Subcallosal Cortex
28 Paracingulate Gyrus
29 Cingulate Gyrus, anterior division
30 Cingulate Gyrus, posterior division
31 Precuneous Cortex
32 Cuneal Cortex
33 Frontal Orbital Cortex
34 Parahippocampal Gyrus, anterior division
35 Parahippocampal Gyrus, posterior division
36 Lingual Gyrus
37 Temporal Fusiform Cortex, anterior division
38 Temporal Fusiform Cortex, posterior division
39 Temporal Occipital Fusiform Cortex
40 Occipital Fusiform Gyrus
41 Frontal Operculum Cortex
42 Central Opercular Cortex
43 Parietal Operculum Cortex
44 Planum Polare
45 Heschl's Gyrus (includes H1 and H2)
46 Planum Temporale
47 Supracalcarine Cortex
48 Occipital Pole
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
index name
1 Left Cerebral White Matter
2 Left Cerebral Cortex
3 Left Lateral Ventricle
4 Left Thalamus
5 Left Caudate
6 Left Putamen
7 Left Pallidum
8 Brain-Stem
9 Left Hippocampus
10 Left Amygdala
11 Left Accumbens
12 Right Cerebral White Matter
13 Right Cerebral Cortex
14 Right Lateral Ventricle
15 Right Thalamus
16 Right Caudate
17 Right Putamen
18 Right Pallidum
19 Right Hippocampus
20 Right Amygdala
21 Right Accumbens
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
index name color
1 thal-lh-pulvinar #ff0000
2 thal-lh-ventral-anterior #00ff00
3 thal-lh-mediodorsal #ffff00
4 thal-lh-lateral-posterior-ventral-posterior-group #ff7b00
5 thal-lh-pulvinar-medial-centrolateral-group #00ffff
6 thal-lh-ventrolateral #ff00ff
7 thal-lh-ventral-posterior-ventrolateral-group #0000ff
8 thal-rh-pulvinar #ff0000
9 thal-rh-ventral-anterior #00ff00
10 thal-rh-mediodorsal #ffff00
11 thal-rh-lateral-posterior-ventral-posterior-group #ff7b00
12 thal-rh-pulvinar-medial-centrolateral-group #00ffff
13 thal-rh-ventrolateral #ff00ff
14 thal-rh-ventral-posterior-ventrolateral-group #0000ff
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
index name color
0 Unknown #000000
2 Left-Cerebral-White-Matter #f5f5f5
3 Left-Cerebral-Cortex #cd3e4e
4 Left-Lateral-Ventricle #781286
5 Left-Inf-Lat-Vent #c43afa
7 Left-Cerebellum-White-Matter #dcf8a4
8 Left-Cerebellum-Cortex #e69422
10 Left-Thalamus #00760e
11 Left-Caudate #7abadc
12 Left-Putamen #ec0db0
13 Left-Pallidum #0c30ff
14 3rd-Ventricle #ccb68e
15 4th-Ventricle #2acca4
16 Brain-Stem #779fb0
17 Left-Hippocampus #dcd814
18 Left-Amygdala #67ffff
24 CSF #3c3c3c
26 Left-Accumbens-area #ffa500
28 Left-VentralDC #a52a2a
30 Left-vessel #a020f0
31 Left-choroid-plexus #00c8c8
41 Right-Cerebral-White-Matter #f5f5f5
42 Right-Cerebral-Cortex #cd3e4e
43 Right-Lateral-Ventricle #781286
44 Right-Inf-Lat-Vent #c43afa
46 Right-Cerebellum-White-Matter #dcf8a4
47 Right-Cerebellum-Cortex #e69422
49 Right-Thalamus #00760e
50 Right-Caudate #7abadc
51 Right-Putamen #ec0db0
52 Right-Pallidum #0d30ff
53 Right-Hippocampus #dcd814
54 Right-Amygdala #67ffff
58 Right-Accumbens-area #ffa500
60 Right-VentralDC #a52a2a
62 Right-vessel #a020f0
63 Right-choroid-plexus #00c8dd
77 WM-hypointensities #c846ff
85 Optic-Chiasm #eaa91e
251 CC_Posterior #000040
252 CC_Mid_Posterior #000070
253 CC_Central #0000a0
254 CC_Mid_Anterior #0000d0
255 CC_Anterior #0000ff
Loading