Skip to content

Commit

Permalink
everything team did not mention set to default- left blank
Browse files Browse the repository at this point in the history
  • Loading branch information
ATAY Melvin Selim committed Dec 13, 2024
1 parent c92608b commit 9aaca3e
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions narps_open/pipelines/team_L3V8.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,15 +101,9 @@ def get_preprocessing(self):

motion_correction = Node(interface=Realign(), name='realign')
motion_correction.inputs.register_to_mean = False # they registered to 1st slice
motion_correction.inputs.fwhm = 6
motion_correction.inputs.interp = 4
motion_correction.inputs.quality = 0.9
motion_correction.inputs.separation = 4
motion_correction.inputs.wrap = [0, 0, 0]
motion_correction.inputs.write_which = [2, 1]
motion_correction.inputs.write_interp = 4
motion_correction.inputs.write_wrap = [0, 0, 0]
motion_correction.inputs.write_mask = True
motion_correction.inputs.jobtype = 'estwrite'


Expand All @@ -124,10 +118,8 @@ def get_preprocessing(self):
coregisteration = Node(Coregister(), name="coregister")
coregisteration.inputs.jobtype = 'estimate'
coregisteration.inputs.cost_function = 'nmi'
coregisteration.inputs.fwhm = [6.0, 6.0]
coregisteration.inputs.separation = [4.0, 2.0]
coregisteration.inputs.tolerance = [0.02, 0.02, 0.02, 0.001, 0.001, 0.001, 0.01, 0.01, 0.01, 0.001, 0.001, 0.001]


# connect coreg
preprocessing.connect( motion_correction, 'mean_image', coregisteration, 'target') # target=mean
preprocessing.connect( gunzip_anat, 'out_file', coregisteration, 'source') # T1w=source anat
Expand All @@ -141,8 +133,6 @@ def get_preprocessing(self):
segmentation.inputs.write_deformation_fields = [True, True]
segmentation.inputs.channel_info = (0.0001, 60, (True, True))
segmentation.inputs.affine_regularization = 'mni'
segmentation.inputs.warping_regularization = [0, 0.001, 0.5, 0.05, 0.2]
segmentation.inputs.sampling_distance = 3
segmentation.inputs.tissues = [
[(spm_tissues_file, 1), 1, (True,False), (True, False)],
[(spm_tissues_file, 2), 1, (True,False), (True, False)],
Expand All @@ -162,7 +152,6 @@ def get_preprocessing(self):

normalization = Node(Normalize12(), name="normalize")
normalization.inputs.jobtype = 'write'
normalization.inputs.write_voxel_sizes = [3, 3, 3]
normalization.inputs.write_interp = 4
normalization.inputs.warping_regularization = [0, 0.001, 0.5, 0.05, 0.2]

Expand Down

0 comments on commit 9aaca3e

Please sign in to comment.