extra_attrs: Extra attribute names in an interaction data frame

extra_attrsR Documentation

Extra attribute names in an interaction data frame

Description

Interaction data frames might have an 'extra_attrs' column if this field has been requested in the query by passing the ‘fields = ’extra_attrs' argument. This column contains resource specific attributes for the interactions. The names of the attributes consist of the name of the resource and the name of the attribute, separated by an underscore. This function returns the names of the extra attributes available in the provided data frame.

Usage

extra_attrs(data)

Arguments

data

An interaction data frame, as provided by any of the omnipath-interactions functions.

Value

Character: the names of the extra attributes in the data frame.

See Also

  • extra_attrs_to_cols

  • has_extra_attrs

  • with_extra_attrs

  • filter_extra_attrs

  • extra_attr_values

Examples

i <- omnipath(fields = "extra_attrs")
extra_attrs(i)


saezlab/OmnipathR documentation built on Oct. 16, 2024, 11:49 a.m.