Takes an object of class 'CoreMSData' and assigns unique molecular formulas to each peak within each sample
unique_mf_assignment(cmsObj, method)
CoreMSData
object, output of functions
read_CoreMS_data
and as.CoreMSData
Must be either "confidence", "peak_intensity", or "prevalence". Selects formula corresponding to highest confidence score, peak height, or prevalence across samples, respectively.
CoreMSData
object