corPEAKS: Correlate two peaks' intensities across all samples.

Description Usage Arguments Value

View source: R/functions-validPEAKS_helpers.R

Description

Function takes a pair of peaks and performs Pearson correlation of their "into" values across the samples in which they were detected.

Usage

1
corPEAKS(pair, pkg_ints, min_samples_n)

Arguments

pair

matrix with 1 row and 2 columns: "from" and "to", which indicate peaks' peakids.

pkg_ints

data.frame which must contain columns "peakid", "run_order" and "into", indicating intensities of every peak in a peak-group in every sample in which they were detected.

min_samples_n

numeric specifying the minimum number of samples in which peak has to be detected in order to be correlated with other peaks.

Value

Function returns a numeric indicating Pearson correlation coefficient between the two peaks of interest.


lauzikaite/massflowR documentation built on April 27, 2020, 5:32 p.m.