extra_attr_values: Possible values of an extra attribute

extra_attr_valuesR Documentation

Possible values of an extra attribute

Description

Extracts all unique values of an extra attribute occuring in this data frame.

Usage

extra_attr_values(data, key)

Arguments

data

An interaction data frame with extra_attrs column.

key

The name of an extra attribute.

Details

Note, at the end we unlist the result, which means it works well for attributes which are atomic vectors but gives not so useful result if the attribute values are more complex objects. As the time of writing this, no such complex extra attribute exist in OmniPath.

Value

A vector, most likely character, with the unique values of the extra attribute occuring in the data frame.

See Also

  • extra_attrs_to_cols

  • has_extra_attrs

  • with_extra_attrs

  • filter_extra_attrs

  • extra_attrs

Examples

op <- import_omnipath_interactions(fields = 'extra_attrs')
extra_attr_values(op, SIGNOR_mechanism)


saezlab/OmnipathR documentation built on April 17, 2024, 9:39 p.m.