Uses the hungarian algorithm to match peaks across
samples, one at a time using a template sample.
Usage
peakMatch(peaks, target.index, max.fill = 1e+12)
Arguments
peaks
is the matrix of peaks in the columns and
samples in the rows
target.index
is the index of the template sample.
max.fill
is the value to substitute for NAs in the
distance matrix. Should be very large, but if too large,
will overflow and give an incorrect matching importFrom
clue solve_LSAP