generate_trial_data_from_bids | R Documentation |
Function to generate a trial_data object from a BIDS-compliant folder
generate_trial_data_from_bids(bids_dir, modality = "func", task_name = "ridl")
bids_dir |
a directory containing BIDS-compliant processed data for analysis |
modality |
the subfolder within |
task_name |
the name of the task, which is appended with |
type |
at present, always 'task' to denote this part of the BIDS filename... Not totally sure what else it could be |
suffix |
an optional suffix in the expected filename (just before the file extension) |
The files should generally have a name like
sub-220256_task-ridl3_space-MNI152NLin2009cAsym_desc-preproc_bold_postprocessed.nii.gz
and be located in a folder like: /proj/mnhallqlab/proc_data/sub-220256/func/
where 'func' is the modality
, 'task' is the type
, 'ridl' is the task_name
, and
'_postprocessed' is the suffix
.
a data.frame containing all run_nifti and confound_input_file results for subjects in the folder
## Not run:
df <- generate_trial_data_from_bids("/proj/mnhallqlab/no_backup/flanker-fmriprep", task_name = "flanker")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.