Report the best match for each query groupId (first testing for sample-level agreement of peakMz, scan, and intensity, and then testing for correlation of signals across samples)

match_peaksets(query_peakset, target_peakset, cutoff = 1, all_matches = FALSE)

Arguments

query_peakset

generated by extract_peakset

target_peakset

generated by extract_peakset

cutoff

cutoff for a valid peakset match

all_matches

return all matches within tolerance rather than just the top match