1 2 3 4 5 6 7 8 9 10 11 12
#!/usr/bin/env python # Dénes Türei EMBL 2017 # turei.denes@gmail.com import pypath import numpy as np pa = pypath.PyPath() pa.load_resource(pypath.data_formats.pathway['signor']) a = np.array(list(pa.graph.get_adjacency())) a4 = np.linalg.matrix_power(a, 4)
You can clone a snippet to your computer for local editing. Learn more.