groupSimilarityMatrixTree: Identifies groups with intragroup pairwise distances less...

View source: R/grouping-functions.R

groupSimilarityMatrixTreeR Documentation

Identifies groups with intragroup pairwise distances less than maxDiff

Description

Searches through a complete clustering tree for branches with internal distances less than maxDiff.

Usage

groupSimilarityMatrixTree(dists, maxDiff = 1)

Arguments

dists

a distance object such as returned by a call to dist() with the pairwise retention time distances.

maxDiff

numeric(1) with the maximum pairwise distance between members of a group.

Details

The search is performed top-down so that every node is evaluated for qualifying as a group. If the node does not qualify the algorithm iterates to the next node in the tree. If the node qualifies, all members are added as a group to the groups vector and all following child nodes are skipped.

Value

integers representing groups of peaks based on retention times. Should be of the same length as the feature definitions.

Author(s)

Johan Lassen

See Also

Other grouping operations: groupClosest(), groupConsecutive(), groupSimilarityMatrix()


rformassspectrometry/MsFeatures documentation built on June 15, 2025, 12:55 a.m.