Skip to content

Commit 47abd52

Browse files
authored
Merge pull request #107 from jhlegarreta/ref/clean-up-conf-params
REF: Remove unused parameters from PET confound workflow initialization
2 parents ac8ee99 + 12cdb16 commit 47abd52

File tree

4 files changed

+0
-19
lines changed

4 files changed

+0
-19
lines changed

docs/workflows.rst

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -580,11 +580,6 @@ Confounds estimation
580580
wf = init_pet_confs_wf(
581581
name="discover_wf",
582582
mem_gb=1,
583-
metadata={
584-
"FrameTimesStart": [0, 2, 4, 6],
585-
"FrameDuration": [2, 2, 2, 2],
586-
},
587-
regressors_all_comps=False,
588583
regressors_dvars_th=1.5,
589584
regressors_fd_th=0.5,
590585
)

petprep/workflows/pet/base.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -754,9 +754,7 @@ def init_pet_wf(
754754
if nvols > 2: # run these only if PET has at least 3 frames
755755
pet_confounds_wf = init_pet_confs_wf(
756756
mem_gb=mem_gb['largemem'],
757-
metadata=all_metadata[0],
758757
freesurfer=config.workflow.run_reconall,
759-
regressors_all_comps=config.workflow.regressors_all_comps,
760758
regressors_fd_th=config.workflow.regressors_fd_th,
761759
regressors_dvars_th=config.workflow.regressors_dvars_th,
762760
name='pet_confounds_wf',

petprep/workflows/pet/confounds.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,6 @@
4747

4848
def init_pet_confs_wf(
4949
mem_gb: float,
50-
metadata: dict,
51-
regressors_all_comps: bool,
5250
regressors_dvars_th: float,
5351
regressors_fd_th: float,
5452
freesurfer: bool = False,
@@ -87,8 +85,6 @@ def init_pet_confs_wf(
8785
from petprep.workflows.pet.confounds import init_pet_confs_wf
8886
wf = init_pet_confs_wf(
8987
mem_gb=1,
90-
metadata={},
91-
regressors_all_comps=False,
9288
regressors_dvars_th=1.5,
9389
regressors_fd_th=0.5,
9490
)
@@ -99,14 +95,8 @@ def init_pet_confs_wf(
9995
Size of PET file in GB - please note that this size
10096
should be calculated after resamplings that may extend
10197
the FoV
102-
metadata : :obj:`dict`
103-
BIDS metadata for PET file
10498
name : :obj:`str`
10599
Name of workflow (default: ``pet_confs_wf``)
106-
regressors_all_comps : :obj:`bool`
107-
Indicates whether CompCor decompositions should return all
108-
components instead of the minimal number of components necessary
109-
to explain 50 percent of the variance in the decomposition mask.
110100
regressors_dvars_th : :obj:`float`
111101
Criterion for flagging DVARS outliers
112102
regressors_fd_th : :obj:`float`

petprep/workflows/pet/tests/test_confounds.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ def test_dvars_connects_pet_mask(tmp_path):
88
"""Check dvars node connection and execution."""
99
wf = init_pet_confs_wf(
1010
mem_gb=0.01,
11-
metadata={},
12-
regressors_all_comps=False,
1311
regressors_dvars_th=1.5,
1412
regressors_fd_th=0.5,
1513
)

0 commit comments

Comments
 (0)