findDuplicates: Find and Remove Duplicate Features

Description Usage Arguments Details Value

View source: R/adjustData.R

Description

Pairs of features with nearly identical m/z and retention time values are removed in this step.

Usage

1
findDuplicates(data, missing, counts, duplicate)

Arguments

data

Constructed metabolomics data frame.

missing

Numeric vector. Percent missingness for each feature.

counts

Numeric vector. Central measure for each feature.

duplicate

Ordered numeric pair (m/z, rt) tolerance parameters for duplicate feature search.

Details

Pairs of features are deemed duplicates if pairwise differences in m/z & rt fall within tolerances defined by the duplicate argument. If a pair of duplicate features is found, one member is removed. The determination of which feature to remove is first by percent missingness, followed by central abundance measure (median or mean). If the features have equal missingness and abundance, then row order determines the feature to be removed.

Value

integer indices of removable duplicate features


metabCombiner documentation built on Dec. 10, 2020, 2 a.m.