label_pairs: Make labels for a list of protein pairs based on a gold...

Description Usage Arguments Value

View source: R/label_pairs.R

Description

Create labels for a data frame containing protein pairs, by cross-referencing those protein pairs with a 'gold standard' set of known interactions. The gold standard interactions can be provided in a variety of different formats.

Usage

1
label_pairs(gold_standard, dat)

Arguments

gold_standard

a set of 'gold-standard' interactions. Can be provided in the form of an adjacency matrix, a data frame of protein pairs, or a list of protein complexes

dat

a data frame with interacting proteins in the first two columns

Value

a vector of the same length as the number of rows in dat, containing NAs for protein pairs not in the gold standard, and ones or zeroes otherwise


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