preppi_filter: Filter PrePPI interactions by scores

View source: R/preppi.R

preppi_filterR Documentation

Filter PrePPI interactions by scores

Description

Filter PrePPI interactions by scores

Usage

preppi_filter(data, ..., .op = "&")

Arguments

data

A data frame of PrePPI interactions as provided by preppi_download.

...

Minimum values for the scores. The available scores are: str, protpep, str_max, red, ort, phy, coexp, go, total, exp and final. See more about the scores at preppi_download.

.op

The operator to combine the scores with: either '&' or '|'. With the former, only records where all scores are above the threshold will be kept; with the latter, records where at least one score is above its threshold will be kept.

Value

The input data frame (tibble) filtered by the score thresholds.

See Also

preppi_download

Examples

preppi <- preppi_download()
preppi_filtered <- preppi_filter(preppi, red = 10, str = 4.5, ort = 1)
nrow(preppi_filtered)
# [1] 8443


saezlab/OmnipathR documentation built on Nov. 10, 2024, 11:02 p.m.