Skip to content

Commit

Permalink
Update fetch.py with ARC ROI mapping
Browse files Browse the repository at this point in the history
Current mapping is:
ARC include0 = SLF include0
ARC include1 = SLF exclude0
ARC include2 = SLF include1

This results in premature clipping of the ARC as ARC include2 is between ARC include0 and ARC include1.

Swapping the mapping ensures that ARC is clipped correctly by redefining the ROIs mapped from the SLF.
  • Loading branch information
chiuhoward authored Jun 4, 2024
1 parent 06865e6 commit f616419
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions AFQ/data/fetch.py
Original file line number Diff line number Diff line change
Expand Up @@ -368,10 +368,10 @@ def read_pediatric_templates(as_img=True, resample_to=False):
# For the arcuate (AF/ARC), reuse the SLF ROIs
pediatric_templates['ARC_roi1_L'] = pediatric_templates['SLF_roi1_L']
pediatric_templates['ARC_roi1_R'] = pediatric_templates['SLF_roi1_R']
pediatric_templates['ARC_roi2_L'] = pediatric_templates['SLFt_roi2_L']
pediatric_templates['ARC_roi2_R'] = pediatric_templates['SLFt_roi2_R']
pediatric_templates['ARC_roi3_L'] = pediatric_templates['SLFt_roi3_L']
pediatric_templates['ARC_roi3_R'] = pediatric_templates['SLFt_roi3_R']
pediatric_templates['ARC_roi2_L'] = pediatric_templates['SLFt_roi3_L']
pediatric_templates['ARC_roi2_R'] = pediatric_templates['SLFt_roi3_R']
pediatric_templates['ARC_roi3_L'] = pediatric_templates['SLFt_roi2_L']
pediatric_templates['ARC_roi3_R'] = pediatric_templates['SLFt_roi2_R']

# For the middle longitudinal fasciculus (MdLF) reuse ILF ROI
pediatric_templates['MdLF_roi2_L'] = pediatric_templates['ILF_roi2_L']
Expand Down

0 comments on commit f616419

Please sign in to comment.