filter_pairs: Filter protein pairs from a chromatogram score matrix

Description Usage Arguments Value

View source: R/filter_pairs.R

Description

Replace pairs of proteins in a matrix output by score_pairs with NAs, if the two proteins were not jointly quantified in some minimum number of overlapping fractions.

Usage

1
filter_pairs(pairs, mat, min_pairs = 0)

Arguments

pairs

a square matrix scoring the similarity of each pair of chromatograms, as returned by score_pairs

mat

The original CF-MS chromatogram matrix, with proteins in rows and fractions in columns

min_pairs

minimum number of fractions in which a pair of proteins must both be detected to consider scoring the candidate interaction

Value

a filtered version of the input square matrix, with a subset of protein pairs replaced by NAs


fosterlab/CFTK documentation built on Jan. 19, 2021, 10:31 p.m.