R/fmrs.R
mrs_data2bids.Rd
Create a BIDS file structure from a vector of MRS data paths or list of mrs_data objects.
mrs_data2bids(
mrs_data,
output_dir,
suffix = NULL,
sub = NULL,
ses = NULL,
task = NULL,
acq = NULL,
nuc = NULL,
voi = NULL,
rec = NULL,
run = NULL,
echo = NULL,
inv = NULL,
skip_existing = TRUE
)
vector of MRS data paths or list of mrs_data objects.
the base directory to create the BIDS structure.
optional vector of file suffixes. Default behaviour is to automatically determine these from the input data, however it is recommended that they are specified to allow more efficient skipping of existing data.
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.