Create a BIDS file structure from a vector of data paths or list of mri/mrs data objects.
mr_data2bids(
mr_data,
suffix,
output_dir,
sub = NULL,
ses = NULL,
task = NULL,
acq = NULL,
nuc = NULL,
voi = NULL,
rec = NULL,
run = NULL,
echo = NULL,
inv = NULL,
skip_existing = TRUE,
mri_format = "nifti",
deface_mri = FALSE
)
vector of data paths or list of mri/mrs objects.
vector of file suffixes, eg : c("svs", "mrsi", "T1w).
the base directory to create the BIDS structure.
optional vector of subject labels. If not specified, these will be automatically generated as a series of increasing zero-padded integer values corresponding to the mrs_data input indices.
optional vector of session labels.
optional vector of task labels.
optional vector of acquisition labels.
optional vector of nucleus labels.
optional vector of volume of interest labels.
optional vector of reconstruction labels.
optional vector of run indices.
optional vector of echo time indices.
optional vector of inversion indices.
skip any data files that have already been converted. Defaults to TRUE, set to FALSE to force an overwrite of any existing data files.
defaults to "nifti", can also be "dicom" provided the divest packages is installed.
option to apply fsl_deface to the mri as a preprocessing step. Defaults to FALSE, requires the fslr package to be installed when TRUE.