threshold_precision: Threshold interactions at a given precision cutoff

Description Usage Arguments Value Examples

View source: R/threshold_precision.R

Description

Threshold interactions at a given precision cutoff

Usage

1
threshold_precision(interactions, threshold)

Arguments

interactions

the ranked list of interactions output by predict_interactions, including a precision column

threshold

the minimum precision of the unweighted interaction network to return

Value

the subset of the original ranked list at the given precision

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
data(scott)
data(scott_gaussians)
data(gold_standard)
# analyze only the first 100 profiles
subset <- scott[seq_len(500), ]
gauss <- scott_gaussians[names(scott_gaussians) %in% rownames(subset)]
ppi <- PrInCE(subset, gold_standard,
  gaussians = gauss, models = 1,
  cv_folds = 3
)
network <- threshold_precision(ppi, threshold = 0.5)
nrow(network)

fosterlab/PrInCE-R documentation built on Dec. 11, 2020, 3:51 p.m.