R/rats.R
phase_ref_1h_brain.Rd
Corrected zero order phase and chemical shift offset in 1H MRS data from the brain.
phase_ref_1h_brain(
mrs_data,
mean_ref = FALSE,
ret_corr_only = TRUE,
xlim = c(4, 1.9),
p_deg = 3,
sp_N = 2,
basis_type = "poly"
)
MRS data to be corrected.
apply the phase and offset of the mean spectrum to all others. Default is FALSE.
return the corrected data only.
frequency range in ppm to consider.
polynomial baseline order.
number of spline functions, note the true number will be sp_N + sp_deg.
may be one of "poly" or "spline".
corrected MRS data.