#!/usr/bin/env pythonimportpypathpa=pypath.PyPath()pa.init_network(pypath.data_formats.pathway)[v.indexforvinpa.gss(['ULK1','AKT1','EGF','EGFR','foobar'])]# [1384, 1312, 727, 68]# for UniProts:# [v.index for v in pa.ups(['P00533', ...])]g0=pa.graph.induced_subgraph([v.indexforvinpa.gss(['ULK1','AKT1','EGF','EGFR','foobar'])])g0.vcount()# 4g0.ecount()# 1g0# <igraph.Graph object at 0x6d7c323c0048>g0.es[0]['refs_by_source']
Comments (0)
HTTPSSSH
You can clone a snippet to your computer for local editing.
Learn more.