Skip to contents

Prints the interactions or enzyme-substrate relationships in a nice format.

Usage

print_interactions(interDF, writeRefs = FALSE)

Value

Returns `NULL`.

Examples

enzsub <- import_omnipath_enzsub()
print_interactions(head(enzsub))
#> Warning: Unknown or uninitialised column: `is_stimulation`.
#> # A tibble: 6 × 5
#>   enzyme       interaction substrate           modification    n_resources
#>   <chr>        <chr>       <chr>               <chr>                 <int>
#> 1 LCK (P06239) ====>       SOCS3_Y204 (O14543) phosphorylation           6
#> 2 LCK (P06239) ====>       SOCS3_Y221 (O14543) phosphorylation           6
#> 3 SRC (P12931) ====>       TERT_Y707 (O14746)  phosphorylation           8
#> 4 FYN (P06241) ====>       FYB1_Y595 (O15117)  phosphorylation           7
#> 5 FYN (P06241) ====>       FYB1_Y651 (O15117)  phosphorylation           6
#> 6 FYN (P06241) ====>       FYB1_Y697 (O15117)  phosphorylation           3
print_interactions(tail(enzsub), writeRefs = TRUE)
#> Warning: Unknown or uninitialised column: `is_stimulation`.
#> # A tibble: 6 × 7
#>   enzyme  interaction substrate modification n_resources n_references references
#>   <chr>   <chr>       <chr>     <chr>              <int> <chr>        <chr>     
#> 1 WNK1 (… ====>       OSR1_T18… phosphoryla…           1 KEA:18270262 KEA:18270…
#> 2 WNK1 (… ====>       WNK4_S33… phosphoryla…           1 KEA:15883153 KEA:15883…
#> 3 TYRO3 … ====>       PLCG1_Y7… phosphoryla…           1 KEA:1260108… KEA:12601…
#> 4 MAP3K2… ====>       CDS1_T68… phosphoryla…           1 KEA:10973490 KEA:10973…
#> 5 TYK2 (… ====>       STAT5B_Y… phosphoryla…           1 KEA:1083028… KEA:10830…
#> 6 TYK2 (… ====>       IL13RA1_… phosphoryla…           1 KEA:10409622 KEA:10409…
print_interactions(
    dplyr::filter(
        enzsub,
        enzyme_genesymbol == 'MAP2K1',
        substrate_genesymbol == 'MAPK3'
    )
)
#> Warning: Unknown or uninitialised column: `is_stimulation`.
#> # A tibble: 6 × 5
#>   enzyme          interaction substrate           modification    n_resources
#>   <chr>           <chr>       <chr>               <chr>                 <int>
#> 1 MAP2K1 (Q02750) ====>       MAPK3_T202 (P27361) phosphorylation           8
#> 2 MAP2K1 (Q02750) ====>       MAPK3_Y204 (P27361) phosphorylation           8
#> 3 MAP2K1 (Q02750) ====>       MAPK3_T207 (P27361) phosphorylation           2
#> 4 MAP2K1 (Q02750) ====>       MAPK3_Y210 (P27361) phosphorylation           2
#> 5 MAP2K1 (Q02750) ====>       MAPK3_T80 (P27361)  phosphorylation           1
#> 6 MAP2K1 (Q02750) ====>       MAPK3_Y222 (P27361) phosphorylation           1

signor <- import_omnipath_interactions(resources = 'SIGNOR')
print_interactions(head(signor))
#> # A tibble: 6 × 5
#>   source          interaction target          n_resources n_references          
#>   <chr>           <chr>       <chr>                 <int> <chr>                 
#> 1 PRKG1 (Q13976)  ==( + )==>  TRPC7 (Q9HCX4)            3 SIGNOR:21402151;TRIP:…
#> 2 RACK1 (P63244)  ==( - )==>  TRPM6 (Q9BX84)            2 SIGNOR:18258429;TRIP:…
#> 3 PRKACA (P17612) ==( - )==>  MCOLN1 (Q9GZU1)           6 PhosphoSite:17988215;…
#> 4 OS9 (Q13438)    ==(+/-)==>  TRPV4 (Q9HBA0)            3 HPRD:17932042;SIGNOR:…
#> 5 PRKG1 (Q13976)  ==( - )==>  TRPC3 (Q13507)            8 HPRD:14983059;KEA:149…
#> 6 PTPN1 (P18031)  ==( - )==>  TRPV6 (Q9H1D0)            6 DEPOD:15894168;DEPOD:…
#            source interaction            target n_resources
# 6 MAPK14 (Q16539)  ==( + )==> MAPKAPK2 (P49137)          23
# 4  TRPM7 (Q96QT4)  ==( + )==>    ANXA1 (P04083)          10
# 1  PRKG1 (Q13976)  ==( - )==>    TRPC3 (Q13507)           8
# 2  PTPN1 (P18031)  ==( - )==>    TRPV6 (Q9H1D0)           6
# 5 PRKACA (P17612)  ==( - )==>   MCOLN1 (Q9GZU1)           6
# 3  RACK1 (P63244)  ==( - )==>    TRPM6 (Q9BX84)           2