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 source_genesymbol target_genesymbol is_directed is_stimulation
#>    <chr>  <chr>  <chr>             <chr>                   <dbl>          <dbl>
#>  1 Q9Y219 P46531 JAG2              NOTCH1                      1              1
#>  2 O00548 P46531 DLL1              NOTCH1                      1              1
#>  3 P05019 P08069 IGF1              IGF1R                       1              1
#>  4 P78504 P46531 JAG1              NOTCH1                      1              1
#>  5 P01344 P11717 IGF2              IGF2R                       1              1
#>  6 P49771 P36888 FLT3LG            FLT3                        1              1
#>  7 P01344 P08069 IGF2              IGF1R                       1              1
#>  8 P42081 P10747 CD86              CD28                        1              1
#>  9 P33681 P10747 CD80              CD28                        1              1
#> 10 P04083 P25090 ANXA1             FPR2                        1              1
#> # ℹ 559 more rows
#> # ℹ 9 more variables: is_inhibition <dbl>, consensus_direction <dbl>,
#> #   consensus_stimulation <dbl>, consensus_inhibition <dbl>, sources <chr>,
#> #   references <chr>, curation_effort <dbl>, n_references <dbl>,
#> #   n_resources <int>