Skip to contents

Interactions having references

Usage

with_references(data, resources = NULL)

Arguments

data

An interaction data frame.

resources

Character: consider only these resources. If `NULL`, records with any reference will be accepted.

Value

A subset of the input interaction data frame.

Examples

cc <- import_post_translational_interactions(resources = 'CellChatDB')
with_references(cc, 'CellChatDB')
#> # A tibble: 569 × 15
#>    source target sourc…¹ targe…² is_di…³ is_st…⁴ is_in…⁵ conse…⁶ conse…⁷ conse…⁸
#>    <chr>  <chr>  <chr>   <chr>     <dbl>   <dbl>   <dbl>   <dbl>   <dbl>   <dbl>
#>  1 Q9Y219 P46531 JAG2    NOTCH1        1       1       1       1       1       0
#>  2 O00548 P46531 DLL1    NOTCH1        1       1       0       1       1       0
#>  3 P05019 P08069 IGF1    IGF1R         1       1       0       1       1       0
#>  4 P78504 P46531 JAG1    NOTCH1        1       1       1       1       1       0
#>  5 P01344 P11717 IGF2    IGF2R         1       1       0       1       1       0
#>  6 P49771 P36888 FLT3LG  FLT3          1       1       0       1       1       0
#>  7 P01344 P08069 IGF2    IGF1R         1       1       0       1       1       0
#>  8 P01138 P04629 NGF     NTRK1         1       1       0       1       1       0
#>  9 P14210 P08581 HGF     MET           1       1       0       1       1       0
#> 10 P01308 P06213 INS     INSR          1       1       0       1       1       0
#> # … with 559 more rows, 5 more variables: 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