threshold_precision {PrInCE} | R Documentation

## Threshold interactions at a given precision cutoff

### Description

Threshold interactions at a given precision cutoff

### Usage

    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

    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)

[Package PrInCE version 1.3.0 Index]