R/mrs_data_proc.R
subtract_rest_task.RdSubtract mean rest spectrum from mean task spectrum after applying optimal linebroadening to the mean task spectrum. Usually used to correct for the BOLD lineshape narrowing effect in 1H fMRS data.
subtract_rest_task(mrs_data, task_vec, xlim = c(2.11, 1.91))a list containing the matched mrs_data, difference spectra and optimisation results.