Skip to content

Commit

Permalink
Issue with outputs of preprocessing
Browse files Browse the repository at this point in the history
  • Loading branch information
bclenet committed May 29, 2024
1 parent eb7cca4 commit cbe4fab
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions narps_open/pipelines/team_0ED6.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,12 +253,12 @@ def get_preprocessing_outputs(self):
""" Return the names of the files the preprocessing is supposed to generate. """

output_dir = join(self.directories.output_dir, 'preprocessing',
'_run_id_{run_id}', '_subject_id_{subject_id}')
'_run_id_{run_id}_subject_id_{subject_id}')

# Smoothing outputs
templates = [
join(output_dir, 'swrusub-{subject_id}_task-MGT_run-{run_id}_bold.nii'),
join(output_dir, 'swrmeanusub-{subject_id}_task-MGT_run-{run_id}_bold.nii')
join(output_dir, 'swusub-{subject_id}_task-MGT_run-{run_id}_bold.nii'),
join(output_dir, 'swmeanusub-{subject_id}_task-MGT_run-{run_id}_bold.nii')
]

# DVARS output
Expand Down Expand Up @@ -407,16 +407,16 @@ def get_subject_level_analysis(self):
# SELECT FILES - to select necessary files
templates = {
'dvars_file' : join(self.directories.output_dir, 'preprocessing',
'_run_id_*', '_subject_id_{subject_id}',
'_run_id_*_subject_id_{subject_id}',
'dvars_out_DVARS.tsv'),
'dvars_inference_file' : join(self.directories.output_dir, 'preprocessing',
'_run_id_*', '_subject_id_{subject_id}',
'_run_id_*_subject_id_{subject_id}',
'dvars_out_Inference.tsv'),
'realignement_parameters' : join(self.directories.output_dir, 'preprocessing',
'_run_id_*', '_subject_id_{subject_id}', '_realign_unwarp1',
'_run_id_*_subject_id_{subject_id}', '_realign_unwarp1',
'rp_sub-{subject_id}_task-MGT_run-*_bold.txt'),
'func' : join(self.directories.output_dir, 'preprocessing', '_run_id_*',
'_subject_id_{subject_id}', 'swrusub-{subject_id}_task-MGT_run-*_bold.nii'),
'func' : join(self.directories.output_dir, 'preprocessing',
'_run_id_*_subject_id_{subject_id}', 'swusub-{subject_id}_task-MGT_run-*_bold.nii'),
'event' : join('sub-{subject_id}', 'func',
'sub-{subject_id}_task-MGT_run-*_events.tsv')
}
Expand Down

0 comments on commit cbe4fab

Please sign in to comment.