identityAnchorSelection {metabCombiner} | R Documentation

## Select Matching Ids as Anchors

### Description

This is an optional helper function for `selectAnchors`. Uses identities to guide selection of ordered retention time pairs. If useID option is set to TRUE, it will select pairs of features with matching ID character strings before proceeding with iterative anchor selection.

### Usage

    identityAnchorSelection(cTable, windx, windy, useID, brackets)

### Arguments

`cTable` | data frame, contains only feature ids, mzs, rts, Qs, & labels
`windx` | numeric positive retention time exclusion window in X dataset
`windy` | numeric positive retention time exclusion window in Y dataset
`useID` | logical. Operation proceeds if TRUE, terminates otherwise.
`brackets` | If useID = TRUE, bracketed identity strings of the types included in this argument will be ignored

### Details

Identity anchors are allowed to violate constraints of m/z, Q, and rtq difference tolerances, and will not be removed if they fall within a rt exclusion window of other features. If a name appears more than once, only the pair with the highest relative abundance is selected.

### Value

combinedTable with updated anchor labels

### See Also

`selectAnchors`

[Package metabCombiner version 1.2.2 Index]