Skip to contents

The motifs can be copy-pasted into a BMA canvas.

Usage

print_bma_motif_vs(node_seq, G)

Arguments

node_seq

An igraph node sequence.

G

An igraph graph object.

Value

Returns `NULL`.

Examples

interactions <- omnipath(resources = "ARN")
graph <- interaction_graph(interactions)
print_bma_motif_vs(
    igraph::all_shortest_paths(
        graph,
        from = 'ULK1',
        to = 'ATG13'
    )$res,
    graph
)
#> pathway 1: ULK1
#> {"Model": {"Name": "Omnipath motif", "Variables":[{"Name":"ULK1", "Id":1, "RangeFrom":0, "RangeTo":2, "Formula":""}, {"Name":"ATG13", "Id":2, "RangeFrom":0, "RangeTo":2, "Formula":""}], "Relationships":[{"Id":3, "FromVariable":1, "ToVariable":2, "Type":"Activator"}]}, "Layout":{"Variables":[{"Id":1, "Name":"ULK1", "Type":"Constant", "ContainerId":0, "PositionX":125.000000, "PositionY":140.000000, "CellX":0, "CellY":0, "Angle":0, "Description":""}, {"Id":2, "Name":"ATG13", "Type":"Constant", "ContainerId":0, "PositionX":211.602540, "PositionY":90.000000, "CellX":0, "CellY":0, "Angle":0, "Description":"Activator-PMID:ARN:19211835, ARN:19225151, ARN:19287211, ARN:20562859, AlzPathway:15197469, BioGRID:27203176, InnateDB:19211835, InnateDB:19225151, InnateDB:19287211, InnateDB:20562859, IntAct:20562859, IntAct:25686248, IntAct:33450483, Lit-BM-17:19597335, Lit-BM-17:20562859, Lit-BM-17:21460630, Lit-BM-17:23392225, Lit-BM-17:23524951, Lit-BM-17:25126726, Lit-BM-17:25686248, Lit-BM-17:26018823, PhosphoSite:26138443, PhosphoSite:26687599, PhosphoSite:27387056, PhosphoSite:27390127, PhosphoSite:27932573, SIGNOR:19211835, SPIKE:18936157, SPIKE_LC:18936157."}], "Containers":[]}}