Skip to content

Commit

Permalink
Use computed masks
Browse files Browse the repository at this point in the history
  • Loading branch information
bclenet committed Sep 29, 2023
1 parent 96d24e9 commit 7f17446
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions narps_open/pipelines/team_T54A.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def get_session_infos(event_file):
onset[condition].append(float(info[0]))
duration[condition].append(float(info[4]))
amplitude[condition].append(float(1))
elif condition == 'difficonditionulty':
elif condition == 'difficulty':
onset[condition].append(float(info[0]))
duration[condition].append(float(info[4]))
amplitude[condition].append(
Expand Down Expand Up @@ -396,9 +396,9 @@ def get_subject_level_analysis(self):
'varcope' : join(self.directories.output_dir,
'l1_analysis', '_run_id_*_subject_id_{subject_id}', 'results',
'varcope{contrast_id}.nii.gz'),

##### TODO not dataset here
'mask': join(self.directories.dataset_dir, 'NARPS-T54A', 'hypo1_cope.nii.gz')
'mask': join(self.directories.output_dir,
'l1_analysis', '_run_id_*_subject_id_{subject_id}',
'sub-{subject_id}_task-MGT_run-*_bold_space-MNI152NLin2009cAsym_preproc_brain_mask.nii.gz')
}

# SelectFiles node - to select necessary files
Expand Down Expand Up @@ -598,8 +598,9 @@ def get_group_level_analysis_sub_workflow(self, method):
'varcope' : join(self.directories.output_dir,
'l2_analysis', '_contrast_id_{contrast_id}_subject_id_{subject_id}', 'varcope1.nii.gz'),
'participants' : join(self.directories.dataset_dir, 'participants.tsv'),
##### TODO not dataset here
'mask' : join(data_dir, 'NARPS-T54A', 'hypo2_unthresh_Z.nii.gz')
'mask': join(self.directories.output_dir,
'l1_analysis', '_run_id_*_subject_id_{subject_id}',
'sub-{subject_id}_task-MGT_run-*_bold_space-MNI152NLin2009cAsym_preproc_brain_mask.nii.gz')
}

# SelectFiles node - to select necessary files
Expand Down Expand Up @@ -812,4 +813,4 @@ def get_hypotheses_outputs(self):
return [join(self.directories.output_dir, f) for f in files]

##### TODO : what is this ?
system('export PATH=$PATH:/local/egermani/ICA-AROMA')
#system('export PATH=$PATH:/local/egermani/ICA-AROMA')

0 comments on commit 7f17446

Please sign in to comment.