Skip to contents

Interaction records having certain extra attributes

Usage

with_extra_attrs(data, ...)

Arguments

data

An interaction data frame.

...

The name(s) of the extra attributes; NSE is supported.

Value

The data frame filtered to the records having the extra attribute.

Examples

i <- omnipath(fields = "extra_attrs")
with_extra_attrs(i, Macrophage_type)
#> # A tibble: 400 × 16
#>    source target source_genesymbol target_genesymbol is_directed is_stimulation
#>    <chr>  <chr>  <chr>             <chr>                   <dbl>          <dbl>
#>  1 Q16539 P49137 MAPK14            MAPKAPK2                    1              1
#>  2 O15111 P19838 CHUK              NFKB1                       1              1
#>  3 Q14164 Q92985 IKBKE             IRF7                        1              1
#>  4 Q13490 P42574 BIRC2             CASP3                       1              0
#>  5 P42575 P55957 CASP2             BID                         1              1
#>  6 Q14790 P42574 CASP8             CASP3                       1              1
#>  7 Q02750 P27361 MAP2K1            MAPK3                       1              1
#>  8 P27361 P51812 MAPK3             RPS6KA3                     1              1
#>  9 P28482 Q15418 MAPK1             RPS6KA1                     1              1
#> 10 P28482 P51812 MAPK1             RPS6KA3                     1              1
#> # ℹ 390 more rows
#> # ℹ 10 more variables: is_inhibition <dbl>, consensus_direction <dbl>,
#> #   consensus_stimulation <dbl>, consensus_inhibition <dbl>,
#> #   extra_attrs <list>, sources <chr>, references <chr>, curation_effort <dbl>,
#> #   n_references <int>, n_resources <int>