add_bids_data: Use BIDS structure for a data file

Description Usage Arguments Value Note

Description

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

Usage

1
2
3
4
add_bids_data(path, participant_label, session_label = "01",
  data_type = NULL, extension = ".nii.gz", add_session = TRUE,
  modality_label, acquisition_label = NULL, reconstruction_label = NULL,
  run_index = NULL, 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-.

data_type

Type of data to be added, will determine the sub-folder

extension

Extension of file to be added

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)

recursive

Should the path be created recursively if not available

Value

A data.frame of paths

Note

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


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