Skip to contents

Unfortunately the column title is different across the various query types in the OmniPath web service, so we need to guess.

Usage

resources_colname(data)

Arguments

data

A data frame downloaded by any import_... function in the current package.

Value

Character: the name of the column, if any of the column names matches.

Examples

co <- import_omnipath_complexes()
resources_colname(co)
#> [1] "sources"
# [1] "sources"