Internal function in the PeakGrouper function for generating the hierarchical clustering tree and cutting it.
hclust.grouping(
current.peaks,
min.samp.grp = 1,
max.dupli.prop = 0.25,
maxClust = 10,
linkage = "average"
)
A number of neighbouring peaks to be grouped.
The minimal amount of samples needed to form a group.
The maximal duplication proportion allowed for a group to be considered a single group.
The maximum number of clusters (depth of the tree).
The linkage to be used in the hierarchical clustering. See the 'method' argument in hclust.
Returns a data frame with grouped peaks.