Interaction records having certain extra attributes
Arguments
- data
An interaction data frame.
- ...
The name(s) of the extra attributes; NSE is supported.
Examples
i <- import_omnipath_interactions(fields = 'extra_attrs')
with_extra_attrs(i, Macrophage_type)
#> # A tibble: 400 × 16
#> source target sourc…¹ targe…² is_di…³ is_st…⁴ is_in…⁵ conse…⁶ conse…⁷ conse…⁸
#> <chr> <chr> <chr> <chr> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl>
#> 1 Q16539 P49137 MAPK14 MAPKAP… 1 1 0 1 1 0
#> 2 O15111 P19838 CHUK NFKB1 1 1 1 1 0 1
#> 3 Q14164 Q92985 IKBKE IRF7 1 1 0 1 1 0
#> 4 Q13490 P42574 BIRC2 CASP3 1 0 1 1 0 1
#> 5 P42575 P55957 CASP2 BID 1 1 0 1 1 0
#> 6 Q14790 P42574 CASP8 CASP3 1 1 0 1 1 0
#> 7 Q02750 P27361 MAP2K1 MAPK3 1 1 0 1 1 0
#> 8 P27361 P51812 MAPK3 RPS6KA3 1 1 0 1 1 0
#> 9 P28482 Q15418 MAPK1 RPS6KA1 1 1 0 1 1 0
#> 10 P28482 P51812 MAPK1 RPS6KA3 1 1 0 1 1 0
#> # … with 390 more rows, 6 more variables: extra_attrs <list>, sources <chr>,
#> # references <chr>, curation_effort <dbl>, n_references <dbl>,
#> # n_resources <int>, and abbreviated variable names ¹source_genesymbol,
#> # ²target_genesymbol, ³is_directed, ⁴is_stimulation, ⁵is_inhibition,
#> # ⁶consensus_direction, ⁷consensus_stimulation, ⁸consensus_inhibition