Skip to content

Commit 8d36d61

Browse files
committed
Merge branch 'merge/fsl-topup' into develop
2 parents 2aed15d + 8b77179 commit 8d36d61

File tree

12 files changed

+875
-76
lines changed

12 files changed

+875
-76
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
### Added
1111

12+
- Added FSL-TOPUP as an option for distortion correction.
1213
- Added changelog
1314
- Added CHD8 mouse template (`/cpac_templates/chd8_functional_template_noise_mask_ag.nii.gz`)
1415
- Added commandline flags `--T1w_label` and `--bold_label`
1516
- Added AFNI and Nilearn implementations of Pearson and partial correlation matrices
1617

1718
### Changed
1819

20+
- Expanded meta-data ingress for EPI field maps to include more fields when parsing BIDS sidecar JSONs.
1921
- Updated possible inputs for T2w processing and ACPC-alignment blocks to increase the modularity of these pipeline options.
2022
- `master` branch renamed `main`
2123
- Packaged templates in https://github.com/FCP-INDI/C-PAC_templates

CPAC/anat_preproc/anat_preproc.py

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121
from CPAC.seg_preproc.utils import pick_tissue_from_labels_file
2222

23+
2324
def acpc_alignment(config=None, acpc_target='whole-head', mask=False,
2425
wf_name='acpc_align'):
2526
preproc = pe.Workflow(name=wf_name)
@@ -1270,8 +1271,9 @@ def anatomical_init(wf, cfg, strat_pool, pipe_num, opt=None):
12701271
def acpc_align_head(wf, cfg, strat_pool, pipe_num, opt=None):
12711272
'''
12721273
{"name": "acpc_alignment_head",
1273-
"config": ["anatomical_preproc", "acpc_alignment"],
1274-
"switch": ["run"],
1274+
"config": "None",
1275+
"switch": [["anatomical_preproc", "acpc_alignment", "run"],
1276+
["anatomical_preproc", "run"]],
12751277
"option_key": "None",
12761278
"option_val": "None",
12771279
"inputs": [["desc-preproc_T1w", "desc-reorient_T1w", "T1w"],
@@ -1305,8 +1307,9 @@ def acpc_align_head(wf, cfg, strat_pool, pipe_num, opt=None):
13051307
def acpc_align_head_with_mask(wf, cfg, strat_pool, pipe_num, opt=None):
13061308
'''
13071309
{"name": "acpc_alignment_head_with_mask",
1308-
"config": ["anatomical_preproc", "acpc_alignment"],
1309-
"switch": ["run"],
1310+
"config": "None",
1311+
"switch": [["anatomical_preproc", "acpc_alignment", "run"],
1312+
["anatomical_preproc", "run"]],
13101313
"option_key": "None",
13111314
"option_val": "None",
13121315
"inputs": [(["desc-preproc_T1w", "desc-reorient_T1w", "T1w"],
@@ -1352,8 +1355,9 @@ def acpc_align_head_with_mask(wf, cfg, strat_pool, pipe_num, opt=None):
13521355
def acpc_align_brain(wf, cfg, strat_pool, pipe_num, opt=None):
13531356
'''
13541357
{"name": "acpc_alignment_brain",
1355-
"config": ["anatomical_preproc", "acpc_alignment"],
1356-
"switch": ["run"],
1358+
"config": "None",
1359+
"switch": [["anatomical_preproc", "acpc_alignment", "run"],
1360+
["anatomical_preproc", "run"]],
13571361
"option_key": "None",
13581362
"option_val": "None",
13591363
"inputs": [(["desc-preproc_T1w", "desc-reorient_T1w", "T1w"],
@@ -1397,8 +1401,9 @@ def acpc_align_brain(wf, cfg, strat_pool, pipe_num, opt=None):
13971401
def acpc_align_brain_with_mask(wf, cfg, strat_pool, pipe_num, opt=None):
13981402
'''
13991403
{"name": "acpc_alignment_brain_with_mask",
1400-
"config": ["anatomical_preproc", "acpc_alignment"],
1401-
"switch": ["run"],
1404+
"config": "None",
1405+
"switch": [["anatomical_preproc", "acpc_alignment", "run"],
1406+
["anatomical_preproc", "run"]],
14021407
"option_key": "None",
14031408
"option_val": "None",
14041409
"inputs": [(["desc-preproc_T1w", "desc-reorient_T1w", "T1w"],
@@ -1483,8 +1488,9 @@ def registration_T2w_to_T1w(wf, cfg, strat_pool, pipe_num, opt=None):
14831488
def non_local_means(wf, cfg, strat_pool, pipe_num, opt=None):
14841489
'''
14851490
{"name": "nlm_filtering",
1486-
"config": ["anatomical_preproc", "non_local_means_filtering"],
1487-
"switch": ["run"],
1491+
"config": "None",
1492+
"switch": [["anatomical_preproc", "non_local_means_filtering", "run"],
1493+
["anatomical_preproc", "run"]],
14881494
"option_key": "None",
14891495
"option_val": "None",
14901496
"inputs": ["T1w"],
@@ -2367,7 +2373,7 @@ def brain_mask_acpc_niworkflows_ants_T2(wf, cfg, strat_pool, pipe_num, opt=None)
23672373
pipe_num, opt)
23682374

23692375
outputs = {
2370-
'space-T1w_desc-acpcbrain_mask':
2376+
'space-T2w_desc-acpcbrain_mask':
23712377
wf_outputs['space-T2w_desc-brain_mask']
23722378
}
23732379

0 commit comments

Comments
 (0)