Skip to content

Commit

Permalink
FIX: Update FS->MCRIBS label mappings
Browse files Browse the repository at this point in the history
  • Loading branch information
mgxd committed Jul 11, 2024
1 parent 15327e1 commit f086706
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions nibabies/workflows/anatomical/surfaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,25 +71,29 @@ def init_mcribs_surface_recon_wf(
'workflow, using the reference T2w and a pre-computed anatomical segmentation'
)

# mapping of labels from FS to M-CRIB-S
# mapping of labels from FS to M-CRIB-S (DrawEM)
fs2mcribs = {
1: 21,
2: 51,
3: 21,
4: 49,
5: 0,
6: 17,
7: 17,
8: 17,
10: 43,
11: 41,
12: 47,
13: 47,
14: 0,
14: 114,
15: 0,
16: 19,
17: 1,
18: 3,
24: 83,
26: 41,
28: 45,
30: 51,
31: 49,
41: 52,
42: 20,
Expand All @@ -105,7 +109,11 @@ def init_mcribs_surface_recon_wf(
54: 4,
58: 40,
60: 44,
62: 25,
63: 50,
77: 51,
85: 21,
172: 172,
253: 48,
}
fs_to_mcribs = pe.Node(MapLabels(mappings=fs2mcribs), name='fs_to_mcribs')
Expand Down

0 comments on commit f086706

Please sign in to comment.