@@ -501,7 +501,6 @@ def _calc_lower_thr(in_stats):
501
501
502
502
def init_bold_fsLR_resampling_wf (
503
503
grayord_density : ty .Literal ['91k' , '170k' ],
504
- estimate_goodvoxels : bool ,
505
504
omp_nthreads : int ,
506
505
mem_gb : float ,
507
506
name : str = "bold_fsLR_resampling_wf" ,
@@ -520,7 +519,6 @@ def init_bold_fsLR_resampling_wf(
520
519
521
520
from fmriprep.workflows.bold.resampling import init_bold_fsLR_resampling_wf
522
521
wf = init_bold_fsLR_resampling_wf(
523
- estimate_goodvoxels=True,
524
522
grayord_density='92k',
525
523
omp_nthreads=1,
526
524
mem_gb=1,
@@ -530,9 +528,6 @@ def init_bold_fsLR_resampling_wf(
530
528
----------
531
529
grayord_density : :class:`str`
532
530
Either ``"91k"`` or ``"170k"``, representing the total *grayordinates*.
533
- estimate_goodvoxels : :class:`bool`
534
- Calculate mask excluding voxels with a locally high coefficient of variation to
535
- exclude from surface resampling
536
531
omp_nthreads : :class:`int`
537
532
Maximum number of threads an individual process may use
538
533
mem_gb : :class:`float`
@@ -558,15 +553,13 @@ def init_bold_fsLR_resampling_wf(
558
553
Path to left and right hemisphere sphere.reg GIFTI surfaces, mapping from subject to fsLR
559
554
cortex_mask : :class:`list` of :class:`str`
560
555
Path to left and right hemisphere cortical masks.
561
- goodvoxels_mask : :class:`str` or Undefined
556
+ volume_roi : :class:`str` or Undefined
562
557
Pre-calculated goodvoxels mask. Not required.
563
558
564
559
Outputs
565
560
-------
566
561
bold_fsLR : :class:`list` of :class:`str`
567
562
Path to BOLD series resampled as functional GIFTI files in fsLR space
568
- goodvoxels_mask : :class:`str`
569
- Path to mask of voxels, excluding those with locally high coefficients of variation
570
563
571
564
"""
572
565
import templateflow .api as tf
@@ -596,7 +589,7 @@ def init_bold_fsLR_resampling_wf(
596
589
'midthickness_fsLR' ,
597
590
'sphere_reg_fsLR' ,
598
591
'cortex_mask' ,
599
- 'goodvoxels_mask ' ,
592
+ 'volume_roi ' ,
600
593
]
601
594
),
602
595
name = 'inputnode' ,
@@ -615,7 +608,7 @@ def init_bold_fsLR_resampling_wf(
615
608
)
616
609
617
610
outputnode = pe .Node (
618
- niu .IdentityInterface (fields = ['bold_fsLR' , 'goodvoxels_mask' ]),
611
+ niu .IdentityInterface (fields = ['bold_fsLR' ]),
619
612
name = 'outputnode' ,
620
613
)
621
614
@@ -690,6 +683,7 @@ def init_bold_fsLR_resampling_wf(
690
683
# Resample BOLD to native surface, dilate and mask
691
684
(inputnode , volume_to_surface , [
692
685
('bold_file' , 'volume_file' ),
686
+ ('volume_roi' , 'volume_roi' ),
693
687
]),
694
688
(select_surfaces , volume_to_surface , [
695
689
('midthickness' , 'surface_file' ),
@@ -716,30 +710,6 @@ def init_bold_fsLR_resampling_wf(
716
710
(joinnode , outputnode , [('bold_fsLR' , 'bold_fsLR' )]),
717
711
]) # fmt:skip
718
712
719
- if estimate_goodvoxels :
720
- workflow .__desc__ += """\
721
- A "goodvoxels" mask was applied during volume-to-surface sampling in fsLR space,
722
- excluding voxels whose time-series have a locally high coefficient of variation.
723
- """
724
-
725
- goodvoxels_bold_mask_wf = init_goodvoxels_bold_mask_wf (mem_gb )
726
-
727
- workflow .connect ([
728
- (inputnode , goodvoxels_bold_mask_wf , [
729
- ("bold_file" , "inputnode.bold_file" ),
730
- ("anat_ribbon" , "inputnode.anat_ribbon" ),
731
- ]),
732
- (goodvoxels_bold_mask_wf , volume_to_surface , [
733
- ("outputnode.goodvoxels_mask" , "volume_roi" ),
734
- ]),
735
- (goodvoxels_bold_mask_wf , outputnode , [
736
- ("outputnode.goodvoxels_mask" , "goodvoxels_mask" ),
737
- ]),
738
- ]) # fmt:skip
739
- else :
740
- # Won't have any effect if goodvoxels_mask is Undefined.
741
- workflow .connect ([(inputnode , volume_to_surface , [('goodvoxels_mask' , 'volume_roi' )])])
742
-
743
713
return workflow
744
714
745
715
0 commit comments