add_bids_anat: Use BIDS structure

Description Usage Arguments Value Note

Description

Creates necessary sub-folders of a path for a BIDS structure

Usage

1
2
3
4
add_bids_anat(path, participant_label, session_label = "01",
  add_session = TRUE, modality_label, acquisition_label = NULL,
  reconstruction_label = NULL, run_index = NULL, gzipped = TRUE,
  recursive = TRUE)

Arguments

path

Directory to put the BIDS data structure folders

participant_label

label/identifiers for participants. The folders will be prefixed with sub-.

session_label

label/identifiers for sessions. The folders will be prefixed with ses-.

add_session

Indicator if session_label should be added to the filename.

modality_label

Label of the imaging modality (e.g. T1w)

acquisition_label

Label of acquisition (e.g. highres)

reconstruction_label

Label of reconstruction

run_index

Index for which run (e.g. 01, 02)

gzipped

logical if the file will be a gzipped NIfTI or not.

recursive

Should the path be created recursively if not available

Value

A data.frame of paths and an indicator if they were created

Note

The format is based on (without line breaks): sub-<participant_label>[_ses-<session_label>][_acq-<label>] [_rec-<label>][_run-<index>]_<modality_label>.nii[.gz]


muschellij2/bids documentation built on May 17, 2019, 7:46 a.m.