bma_motif_vs: Prints a BMA motif to the screen from a sequence of nodes,...

View source: R/bma.R

bma_motif_vsR Documentation

Prints a BMA motif to the screen from a sequence of nodes, which can be copy/pasted into the BMA canvas

Description

Intended to parallel print_path_vs

Usage

bma_motif_vs(node_seq, G)

Arguments

node_seq

An igraph node sequence.

G

An igraph graph object.

Value

Character: BMA motifs as a single string.

Examples

interactions <- import_omnipath_interactions(resources = 'ARN')
graph <- interaction_graph(interactions)
bma_string <- bma_motif_vs(
    igraph::all_shortest_paths(
        graph,
        from = 'ULK1',
        to = 'ATG13'
    )$res,
    graph
)


saezlab/OmnipathR documentation built on March 26, 2024, 4:18 p.m.