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

Each peak-group in the dataset is assigned to the highest-scoring template peak-groups.

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 April 29, 2020, 9:45 a.m.