assignCOS: Assign dataset's peak-groups to template peak-groups based on...

Description Usage Arguments Details Value

View source: R/functions-alignPEAKS_helpers.R

Description

Maximise peak-groups assignment by selecting highest-scoring match for each peak-group in the template.

Usage

1
assignCOS(cos, cutoff)

Arguments

cos

matrix with cosine angles. Rows correspond to template variables (i.e. peak-group). Columns correspond to dataset-of-interest variables (i.e. peak-group).

cutoff

numeric for spectra similarity score threshold.

Details

Function is used for peak-group alignment by alignPEAKS method and for automatic annotation on massFlowAnno-class object.

Value

Function returns a matrix of the same dimensions. Peak-groups which should be grouped/aligned into one are marked with TRUE in the output matrix.


lauzikaite/massFlowR documentation built on Sept. 10, 2019, 10:21 p.m.