print_interactions: Print OmniPath interactions

View source: R/print_interactions.R

print_interactionsR Documentation

Description

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

Usage

print_interactions(interactions, refs = FALSE)

Arguments

interactions

Data frame with the interactions generated by any of the functions in omnipath-interactions.

refs

Logical: include PubMed IDs where available.

Value

Returns 'NULL'.

Examples

enzsub <- enzyme_substrate()
print_interactions(head(enzsub))
print_interactions(tail(enzsub), refs = TRUE)
print_interactions(
    dplyr::filter(
        enzsub,
        enzyme_genesymbol == 'MAP2K1',
        substrate_genesymbol == 'MAPK3'
    )
)

signor <- omnipath(resources = "SIGNOR")
print_interactions(head(signor))
#            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

saezlab/OmnipathR documentation built on Nov. 10, 2024, 11:02 p.m.