In [1]:
from py2cytoscape.cytoscapejs import viewer as cyjs
from py2cytoscape import util
import json
import igraph as ig
In [2]:
import matplotlib.pyplot as plt
g = ig.Graph.Barabasi(200)
positions = g.layout_kamada_kawai()
g_cyjs = util.from_igraph(g, layout=positions, scale=120)
cyjs.render(g_cyjs, style='default2')
In [3]:
%matplotlib inline
import networkx as nx
from py2cytoscape.util.util_networkx import *
def nx_layout(graph):
pos = nx.graphviz_layout(graph, prog='dot')
pos2 = map(lambda position: {'x': position[0], 'y':position[1] }, pos.values())
for node_idx in graph.nodes():
graph.node[node_idx]['position'] = pos2[node_idx]
sf100 = nx.barabasi_albert_graph(200, 4, 0.8)
nx_layout(sf100)
g3 = from_networkx(sf100)
cyjs.render(g3, style='default2')
In [8]:
yeast_network = json.load(open('../basic/sample_data/yeast.json'))
yeast_nx = to_networkx(yeast_network)
yeast_nx.nodes()
yeast_nx.nodes()
Out[8]:
[u'216',
u'214',
u'213',
u'669',
u'211',
u'667',
u'663',
u'621',
u'218',
u'660',
u'133',
u'131',
u'137',
u'135',
u'494',
u'139',
u'490',
u'693',
u'691',
u'695',
u'160',
u'161',
u'289',
u'345',
u'405',
u'541',
u'546',
u'402',
u'401',
u'545',
u'281',
u'163',
u'348',
u'287',
u'408',
u'336',
u'675',
u'718',
u'716',
u'677',
u'330',
u'263',
u'262',
u'122',
u'123',
u'267',
u'125',
u'265',
u'128',
u'129',
u'269',
u'523',
u'619',
u'598',
u'415',
u'410',
u'413',
u'297',
u'295',
u'375',
u'293',
u'377',
u'291',
u'591',
u'586',
u'592',
u'199',
u'596',
u'312',
u'197',
u'310',
u'317',
u'316',
u'193',
u'314',
u'115',
u'271',
u'575',
u'273',
u'274',
u'396',
u'276',
u'277',
u'279',
u'399',
u'86',
u'175',
u'143',
u'647',
u'537',
u'141',
u'171',
u'407',
u'533',
u'365',
u'363',
u'308',
u'448',
u'582',
u'301',
u'299',
u'304',
u'446',
u'588',
u'307',
u'245',
u'244',
u'247',
u'240',
u'370',
u'388',
u'103',
u'100',
u'615',
u'248',
u'105',
u'108',
u'641',
u'539',
u'438',
u'439',
u'436',
u'513',
u'435',
u'515',
u'430',
u'459',
u'579',
u'578',
u'604',
u'335',
u'572',
u'453',
u'331',
u'455',
u'333',
u'457',
u'102',
u'62',
u'63',
u'252',
u'250',
u'173',
u'257',
u'254',
u'255',
u'344',
u'613',
u'517',
u'543',
u'602',
u'145',
u'107',
u'182',
u'730',
u'180',
u'186',
u'734',
u'184',
u'194',
u'738',
u'78',
u'502',
u'658',
u'341',
u'630',
u'752',
u'632',
u'196',
u'469',
u'342',
u'465',
u'467',
u'651',
u'461',
u'242',
u'99',
u'168',
u'169',
u'229',
u'507',
u'227',
u'225',
u'223',
u'222',
u'220',
u'392',
u'726',
u'723',
u'111',
u'286',
u'728',
u'110',
u'151',
u'741',
u'744',
u'154',
u'156',
u'158',
u'608',
u'113',
u'750',
u'238',
u'235',
u'236',
u'231',
u'233',
u'519',
u'496',
u'600',
u'118',
u'323',
u'326',
u'325',
u'689',
u'328',
u'85',
u'521',
u'147',
u'618',
u'202',
u'204',
u'206',
u'209',
u'208',
u'610',
u'616',
u'149',
u'77',
u'649',
u'488',
u'487',
u'485',
u'673',
u'483',
u'480',
u'638',
u'120',
u'80',
u'357',
u'356',
u'354',
u'353',
u'477',
u'684',
u'687',
u'479',
u'126',
u'187']
In [18]:
def nx_layout2(graph):
pos = nx.graphviz_layout(graph, prog='dot')
pos2 = map(lambda position: {'x': position[0], 'y':position[1] }, pos.values())
nodes = graph.nodes()
for i, nodeid in enumerate(nodes):
graph.node[nodeid]['position'] = pos2[i]
nx_layout2(yeast_nx)
g4 = from_networkx(yeast_nx)
cyjs.render(g4, style='Directed')
In [3]:
networks = {}
layouts = cy.get_layouts()
# Load local network files
yeast_network = json.load(open('yeast2.cyjs'))
networks['Yeast PPI Network'] = yeast_network
kegg_pathway = json.load(open('kegg_tca.cyjs'))
networks['KEGG: TCA Cycle Human'] = kegg_pathway
# Load Visual Style file
vs_collection = json.load(open('kegg_style.json'))
styles = {}
for style in vs_collection:
style_settings = style['style']
title = style['title']
styles[title] = style_settings
print(styles['default'])
[{u'css': {u'text-opacity': 1.0, u'background-opacity': 1.0, u'font-weight': u'normal', u'width': 70.0, u'border-color': u'rgb(0,102,153)', u'border-width': 4.0, u'height': 30.0, u'content': u'data(name)', u'color': u'rgb(255,255,255)', u'shape': u'roundrectangle', u'font-size': 12, u'border-opacity': 1.0, u'font-family': u'HelveticaNeue-UltraLight', u'text-valign': u'center', u'text-halign': u'center', u'background-color': u'rgb(0,153,204)'}, u'selector': u'node'}, {u'css': {u'background-color': u'rgb(255,255,0)'}, u'selector': u'node:selected'}, {u'css': {u'opacity': 1.0, u'text-opacity': 1.0, u'line-color': u'rgb(102,102,102)', u'font-weight': u'normal', u'target-arrow-shape': u'none', u'source-arrow-shape': u'none', u'color': u'rgb(0,0,0)', u'source-arrow-color': u'rgb(0,0,0)', u'font-size': 10, u'content': u'', u'width': 3.0, u'line-style': u'solid', u'font-family': u'Dialog', u'target-arrow-color': u'rgb(0,0,0)'}, u'selector': u'edge'}, {u'css': {u'line-color': u'rgb(255,0,0)'}, u'selector': u'edge:selected'}]
In [4]:
def render_graph(Network, Style, Layout):
cy.render(Network, Style, Layout)
interact(render_graph,
Network = DropdownWidget(values=networks, value=yeast_network),
Style = DropdownWidget(values=styles, value=styles['default']),
Layout = DropdownWidget(values=layouts, value=layouts['Preset'])
)
Out[4]:
<function __main__.render_graph>
In [5]:
interact(render_graph,
Network = DropdownWidget(values=networks, value=kegg_pathway),
Style = DropdownWidget(values=styles, value=styles['KEGG Style']),
Layout = DropdownWidget(values=layouts, value=layouts['Preset'])
)
Out[5]:
<function __main__.render_graph>
In [6]:
print(json.dumps(kegg_pathway, indent=2))
{
"elements": {
"nodes": [
{
"position": {
"y": 458.0,
"x": 795.0
},
"selected": false,
"data": {
"KEGG_NODE_SHAPE": "rectangle",
"KEGG_NODE_HEIGHT": "17",
"KEGG_NODE_FILL_COLOR": "#FFFFFF",
"KEGG_NODE_LABEL_LIST_FIRST": "K17753",
"KEGG_NODE_LABEL_LIST": [
"K17753"
],
"SUID": 10016,
"KEGG_ID": [
"ko:K17753"
],
"KEGG_NODE_LABEL_COLOR": "#000000",
"KEGG_NODE_TYPE": "ortholog",
"KEGG_NODE_LABEL": "K17753",
"KEGG_NODE_WIDTH": "46",
"selected": false,
"KEGG_NODE_Y": "458",
"KEGG_NODE_X": "795",
"shared_name": "97",
"id": "10016",
"KEGG_NODE_REACTIONID": "rn:R00709",
"name": "97"
}
},
{
"position": {
"y": 127.0,
"x": 450.0
},
"selected": false,
"data": {
"KEGG_NODE_SHAPE": "circle",
"KEGG_NODE_HEIGHT": "8",
"KEGG_NODE_FILL_COLOR": "#FFFFFF",
"KEGG_NODE_LABEL_LIST_FIRST": "Phosphoenolpyruvate",
"KEGG_NODE_LABEL_LIST": [
"C00074"
],
"SUID": 10015,
"KEGG_ID": [
"cpd:C00074"
],
"KEGG_NODE_LABEL_COLOR": "#000000",
"KEGG_NODE_TYPE": "compound",
"KEGG_NODE_LABEL": "C00074",
"KEGG_NODE_WIDTH": "8",
"selected": false,
"KEGG_NODE_Y": "127",
"KEGG_NODE_X": "450",
"shared_name": "96",
"id": "10015",
"name": "96"
}
},
{
"position": {
"y": 284.0,
"x": 457.0
},
"selected": false,
"data": {
"KEGG_NODE_SHAPE": "circle",
"KEGG_NODE_HEIGHT": "8",
"KEGG_NODE_FILL_COLOR": "#FFFFFF",
"KEGG_NODE_LABEL_LIST_FIRST": "Enzyme N6-(dihydrolipoyl)lysine",
"KEGG_NODE_LABEL_LIST": [
"C15973"
],
"SUID": 10014,
"KEGG_ID": [
"cpd:C15973"
],
"KEGG_NODE_LABEL_COLOR": "#000000",
"KEGG_NODE_TYPE": "compound",
"KEGG_NODE_LABEL": "C15973",
"KEGG_NODE_WIDTH": "8",
"selected": false,
"KEGG_NODE_Y": "284",
"KEGG_NODE_X": "457",
"shared_name": "95",
"id": "10014",
"name": "95"
}
},
{
"position": {
"y": 117.0,
"x": 350.0
},
"selected": false,
"data": {
"KEGG_NODE_SHAPE": "rectangle",
"KEGG_NODE_HEIGHT": "17",
"KEGG_NODE_FILL_COLOR": "#BFFFBF",
"KEGG_NODE_LABEL_LIST_FIRST": "PCK1",
"KEGG_NODE_LABEL_LIST": [
"PCK1",
"PEPCK-C",
"PEPCK1",
"PEPCKC..."
],
"SUID": 10013,
"KEGG_ID": [
"hsa:5105",
"hsa:5106"
],
"KEGG_NODE_LABEL_COLOR": "#000000",
"KEGG_NODE_TYPE": "gene",
"KEGG_NODE_LABEL": "PCK1, PEPCK-C, PEPCK1, PEPCKC...",
"KEGG_NODE_WIDTH": "46",
"selected": false,
"KEGG_NODE_Y": "117",
"KEGG_NODE_X": "350",
"shared_name": "94",
"id": "10013",
"KEGG_NODE_REACTIONID": "rn:R00431 rn:R00726",
"name": "94"
}
},
{
"position": {
"y": 138.0,
"x": 350.0
},
"selected": false,
"data": {
"KEGG_NODE_SHAPE": "rectangle",
"KEGG_NODE_HEIGHT": "17",
"KEGG_NODE_FILL_COLOR": "#FFFFFF",
"KEGG_NODE_LABEL_LIST_FIRST": "K01610",
"KEGG_NODE_LABEL_LIST": [
"K01610"
],
"SUID": 10012,
"KEGG_ID": [
"ko:K01610"
],
"KEGG_NODE_LABEL_COLOR": "#000000",
"KEGG_NODE_TYPE": "ortholog",
"KEGG_NODE_LABEL": "K01610",
"KEGG_NODE_WIDTH": "46",
"selected": false,
"KEGG_NODE_Y": "138",
"KEGG_NODE_X": "350",
"shared_name": "93",
"id": "10012",
"KEGG_NODE_REACTIONID": "rn:R00341",
"name": "93"
}
},
{
"position": {
"y": 380.0,
"x": 413.0
},
"selected": false,
"data": {
"KEGG_NODE_SHAPE": "rectangle",
"KEGG_NODE_HEIGHT": "17",
"KEGG_NODE_FILL_COLOR": "#FFFFFF",
"KEGG_NODE_LABEL_LIST_FIRST": "K01643...",
"KEGG_NODE_LABEL_LIST": [
"K01643..."
],
"SUID": 10011,
"KEGG_ID": [
"ko:K01643",
"ko:K01644",
"ko:K01646"
],
"KEGG_NODE_LABEL_COLOR": "#000000",
"KEGG_NODE_TYPE": "ortholog",
"KEGG_NODE_LABEL": "K01643...",
"KEGG_NODE_WIDTH": "46",
"selected": false,
"KEGG_NODE_Y": "380",
"KEGG_NODE_X": "413",
"shared_name": "91",
"id": "10011",
"KEGG_NODE_REACTIONID": "rn:R00362",
"name": "91"
}
},
{
"position": {
"y": 211.0,
"x": 133.0
},
"selected": false,
"data": {
"KEGG_NODE_SHAPE": "roundrectangle",
"KEGG_NODE_HEIGHT": "25",
"KEGG_NODE_FILL_COLOR": "#6999AE",
"KEGG_NODE_LABEL_LIST_FIRST": "Valine",
"KEGG_NODE_LABEL_LIST": [
"Valine",
"leucine and isoleucine degradation"
],
"SUID": 10010,
"KEGG_ID": [
"path:hsa00280"
],
"KEGG_NODE_LABEL_COLOR": "#000000",
"KEGG_NODE_TYPE": "map",
"KEGG_NODE_LABEL": "Valine, leucine and isoleucine degradation",
"KEGG_NODE_WIDTH": "144",
"selected": false,
"KEGG_NODE_Y": "211",
"KEGG_NODE_X": "133",
"shared_name": "89",
"id": "10010",
"name": "89"
}
},
{
"position": {
"y": 179.0,
"x": 519.0
},
"selected": false,
"data": {
"KEGG_NODE_SHAPE": "rectangle",
"KEGG_NODE_HEIGHT": "17",
"KEGG_NODE_FILL_COLOR": "#FFFFFF",
"KEGG_NODE_LABEL_LIST_FIRST": "K00169...",
"KEGG_NODE_LABEL_LIST": [
"K00169..."
],
"SUID": 10009,
"KEGG_ID": [
"ko:K00169",
"ko:K00170",
"ko:K00172",
"ko:K00171"
],
"KEGG_NODE_LABEL_COLOR": "#000000",
"KEGG_NODE_TYPE": "ortholog",
"KEGG_NODE_LABEL": "K00169...",
"KEGG_NODE_WIDTH": "46",
"selected": false,
"KEGG_NODE_Y": "179",
"KEGG_NODE_X": "519",
"shared_name": "88",
"id": "10009",
"KEGG_NODE_REACTIONID": "rn:R01196",
"name": "88"
}
},
{
"position": {
"y": 242.0,
"x": 443.0
},
"selected": false,
"data": {
"KEGG_NODE_SHAPE": "rectangle",
"KEGG_NODE_HEIGHT": "17",
"KEGG_NODE_FILL_COLOR": "#BFFFBF",
"KEGG_NODE_LABEL_LIST_FIRST": "DLAT",
"KEGG_NODE_LABEL_LIST": [
"DLAT",
"DLTA",
"PDC-E2",
"PDCE2"
],
"SUID": 10008,
"KEGG_ID": [
"hsa:1737"
],
"KEGG_NODE_LABEL_COLOR": "#000000",
"KEGG_NODE_TYPE": "gene",
"KEGG_NODE_LABEL": "DLAT, DLTA, PDC-E2, PDCE2",
"KEGG_NODE_WIDTH": "46",
"selected": false,
"KEGG_NODE_Y": "242",
"KEGG_NODE_X": "443",
"shared_name": "86",
"id": "10008",
"KEGG_NODE_REACTIONID": "rn:R02569",
"name": "86"
}
},
{
"position": {
"y": 241.0,
"x": 496.0
},
"selected": false,
"data": {
"KEGG_NODE_SHAPE": "circle",
"KEGG_NODE_HEIGHT": "8",
"KEGG_NODE_FILL_COLOR": "#FFFFFF",
"KEGG_NODE_LABEL_LIST_FIRST": "[Dihydrolipoyllysine-residue acetyltransferase] S-acetyldihydrolipoyllysine",
"KEGG_NODE_LABEL_LIST": [
"C16255"
],
"SUID": 10007,
"KEGG_ID": [
"cpd:C16255"
],
"KEGG_NODE_LABEL_COLOR": "#000000",
"KEGG_NODE_TYPE": "compound",
"KEGG_NODE_LABEL": "C16255",
"KEGG_NODE_WIDTH": "8",
"selected": false,
"KEGG_NODE_Y": "241",
"KEGG_NODE_X": "496",
"shared_name": "85",
"id": "10007",
"name": "85"
}
},
{
"position": {
"y": 285.0,
"x": 508.0
},
"selected": false,
"data": {
"KEGG_NODE_SHAPE": "rectangle",
"KEGG_NODE_HEIGHT": "17",
"KEGG_NODE_FILL_COLOR": "#BFFFBF",
"KEGG_NODE_LABEL_LIST_FIRST": "DLD",
"KEGG_NODE_LABEL_LIST": [
"DLD",
"DLDD",
"DLDH",
"E3",
"GCSL",
"LAD",
"PHE3"
],
"SUID": 10006,
"KEGG_ID": [
"hsa:1738"
],
"KEGG_NODE_LABEL_COLOR": "#000000",
"KEGG_NODE_TYPE": "gene",
"KEGG_NODE_LABEL": "DLD, DLDD, DLDH, E3, GCSL, LAD, PHE3",
"KEGG_NODE_WIDTH": "46",
"selected": false,
"KEGG_NODE_Y": "285",
"KEGG_NODE_X": "508",
"shared_name": "84",
"id": "10006",
"KEGG_NODE_REACTIONID": "rn:R07618",
"name": "84"
}
},
{
"position": {
"y": 284.0,
"x": 559.0
},
"selected": false,
"data": {
"KEGG_NODE_SHAPE": "circle",
"KEGG_NODE_HEIGHT": "8",
"KEGG_NODE_FILL_COLOR": "#FFFFFF",
"KEGG_NODE_LABEL_LIST_FIRST": "Enzyme N6-(lipoyl)lysine",
"KEGG_NODE_LABEL_LIST": [
"C15972"
],
"SUID": 10005,
"KEGG_ID": [
"cpd:C15972"
],
"KEGG_NODE_LABEL_COLOR": "#000000",
"KEGG_NODE_TYPE": "compound",
"KEGG_NODE_LABEL": "C15972",
"KEGG_NODE_WIDTH": "8",
"selected": false,
"KEGG_NODE_Y": "284",
"KEGG_NODE_X": "559",
"shared_name": "82",
"id": "10005",
"name": "82"
}
},
{
"position": {
"y": 241.0,
"x": 561.0
},
"selected": false,
"data": {
"KEGG_NODE_SHAPE": "rectangle",
"KEGG_NODE_HEIGHT": "17",
"KEGG_NODE_FILL_COLOR": "#BFFFBF",
"KEGG_NODE_LABEL_LIST_FIRST": "PDHA1",
"KEGG_NODE_LABEL_LIST": [
"PDHA1",
"PDHA",
"PDHCE1A",
"PHE1A..."
],
"SUID": 10004,
"KEGG_ID": [
"hsa:5160",
"hsa:5161",
"hsa:5162"
],
"KEGG_NODE_LABEL_COLOR": "#000000",
"KEGG_NODE_TYPE": "gene",
"KEGG_NODE_LABEL": "PDHA1, PDHA, PDHCE1A, PHE1A...",
"KEGG_NODE_WIDTH": "46",
"selected": false,
"KEGG_NODE_Y": "241",
"KEGG_NODE_X": "561",
"shared_name": "81",
"id": "10004",
"KEGG_NODE_REACTIONID": "rn:R03270",
"name": "81"
}
},
{
"position": {
"y": 198.0,
"x": 610.0
},
"selected": false,
"data": {
"KEGG_NODE_SHAPE": "circle",
"KEGG_NODE_HEIGHT": "8",
"KEGG_NODE_FILL_COLOR": "#FFFFFF",
"KEGG_NODE_LABEL_LIST_FIRST": "Thiamin diphosphate",
"KEGG_NODE_LABEL_LIST": [
"C00068"
],
"SUID": 10003,
"KEGG_ID": [
"cpd:C00068"
],
"KEGG_NODE_LABEL_COLOR": "#000000",
"KEGG_NODE_TYPE": "compound",
"KEGG_NODE_LABEL": "C00068",
"KEGG_NODE_WIDTH": "8",
"selected": false,
"KEGG_NODE_Y": "198",
"KEGG_NODE_X": "610",
"shared_name": "80",
"id": "10003",
"name": "80"
}
},
{
"position": {
"y": 241.0,
"x": 665.0
},
"selected": false,
"data": {
"KEGG_NODE_SHAPE": "rectangle",
"KEGG_NODE_HEIGHT": "17",
"KEGG_NODE_FILL_COLOR": "#BFFFBF",
"KEGG_NODE_LABEL_LIST_FIRST": "PDHA1",
"KEGG_NODE_LABEL_LIST": [
"PDHA1",
"PDHA",
"PDHCE1A",
"PHE1A..."
],
"SUID": 10002,
"KEGG_ID": [
"hsa:5160",
"hsa:5161",
"hsa:5162"
],
"KEGG_NODE_LABEL_COLOR": "#000000",
"KEGG_NODE_TYPE": "gene",
"KEGG_NODE_LABEL": "PDHA1, PDHA, PDHCE1A, PHE1A...",
"KEGG_NODE_WIDTH": "46",
"selected": false,
"KEGG_NODE_Y": "241",
"KEGG_NODE_X": "665",
"shared_name": "79",
"id": "10002",
"KEGG_NODE_REACTIONID": "rn:R00014",
"name": "79"
}
},
{
"position": {
"y": 241.0,
"x": 610.0
},
"selected": false,
"data": {
"KEGG_NODE_SHAPE": "circle",
"KEGG_NODE_HEIGHT": "8",
"KEGG_NODE_FILL_COLOR": "#FFFFFF",
"KEGG_NODE_LABEL_LIST_FIRST": "2-(alpha-Hydroxyethyl)thiamine diphosphate",
"KEGG_NODE_LABEL_LIST": [
"C05125"
],
"SUID": 10001,
"KEGG_ID": [
"cpd:C05125"
],
"KEGG_NODE_LABEL_COLOR": "#000000",
"KEGG_NODE_TYPE": "compound",
"KEGG_NODE_LABEL": "C05125",
"KEGG_NODE_WIDTH": "8",
"selected": false,
"KEGG_NODE_Y": "241",
"KEGG_NODE_X": "610",
"shared_name": "78",
"id": "10001",
"name": "78"
}
},
{
"position": {
"y": 573.0,
"x": 572.0
},
"selected": false,
"data": {
"KEGG_NODE_SHAPE": "circle",
"KEGG_NODE_HEIGHT": "8",
"KEGG_NODE_FILL_COLOR": "#FFFFFF",
"KEGG_NODE_LABEL_LIST_FIRST": "3-Carboxy-1-hydroxypropyl-ThPP",
"KEGG_NODE_LABEL_LIST": [
"C05381"
],
"SUID": 10000,
"KEGG_ID": [
"cpd:C05381"
],
"KEGG_NODE_LABEL_COLOR": "#000000",
"KEGG_NODE_TYPE": "compound",
"KEGG_NODE_LABEL": "C05381",
"KEGG_NODE_WIDTH": "8",
"selected": false,
"KEGG_NODE_Y": "573",
"KEGG_NODE_X": "572",
"shared_name": "75",
"id": "10000",
"name": "75"
}
},
{
"position": {
"y": 573.0,
"x": 697.0
},
"selected": false,
"data": {
"KEGG_NODE_SHAPE": "circle",
"KEGG_NODE_HEIGHT": "8",
"KEGG_NODE_FILL_COLOR": "#FFFFFF",
"KEGG_NODE_LABEL_LIST_FIRST": "2-Oxoglutarate",
"KEGG_NODE_LABEL_LIST": [
"C00026"
],
"SUID": 9999,
"KEGG_ID": [
"cpd:C00026"
],
"KEGG_NODE_LABEL_COLOR": "#000000",
"KEGG_NODE_TYPE": "compound",
"KEGG_NODE_LABEL": "C00026",
"KEGG_NODE_WIDTH": "8",
"selected": false,
"KEGG_NODE_Y": "573",
"KEGG_NODE_X": "697",
"shared_name": "74",
"id": "9999",
"name": "74"
}
},
{
"position": {
"y": 574.0,
"x": 313.0
},
"selected": false,
"data": {
"KEGG_NODE_SHAPE": "circle",
"KEGG_NODE_HEIGHT": "8",
"KEGG_NODE_FILL_COLOR": "#FFFFFF",
"KEGG_NODE_LABEL_LIST_FIRST": "Succinyl-CoA",
"KEGG_NODE_LABEL_LIST": [
"C00091"
],
"SUID": 9998,
"KEGG_ID": [
"cpd:C00091"
],
"KEGG_NODE_LABEL_COLOR": "#000000",
"KEGG_NODE_TYPE": "compound",
"KEGG_NODE_LABEL": "C00091",
"KEGG_NODE_WIDTH": "8",
"selected": false,
"KEGG_NODE_Y": "574",
"KEGG_NODE_X": "313",
"shared_name": "73",
"id": "9998",
"name": "73"
}
},
{
"position": {
"y": 617.0,
"x": 387.0
},
"selected": false,
"data": {
"KEGG_NODE_SHAPE": "circle",
"KEGG_NODE_HEIGHT": "8",
"KEGG_NODE_FILL_COLOR": "#FFFFFF",
"KEGG_NODE_LABEL_LIST_FIRST": "Enzyme N6-(dihydrolipoyl)lysine",
"KEGG_NODE_LABEL_LIST": [
"C15973"
],
"SUID": 9997,
"KEGG_ID": [
"cpd:C15973"
],
"KEGG_NODE_LABEL_COLOR": "#000000",
"KEGG_NODE_TYPE": "compound",
"KEGG_NODE_LABEL": "C15973",
"KEGG_NODE_WIDTH": "8",
"selected": false,
"KEGG_NODE_Y": "617",
"KEGG_NODE_X": "387",
"shared_name": "72",
"id": "9997",
"name": "72"
}
},
{
"position": {
"y": 573.0,
"x": 441.0
},
"selected": false,
"data": {
"KEGG_NODE_SHAPE": "circle",
"KEGG_NODE_HEIGHT": "8",
"KEGG_NODE_FILL_COLOR": "#FFFFFF",
"KEGG_NODE_LABEL_LIST_FIRST": "[Dihydrolipoyllysine-residue succinyltransferase] S-succinyldihydrolipoyllysine",
"KEGG_NODE_LABEL_LIST": [
"C16254"
],
"SUID": 9996,
"KEGG_ID": [
"cpd:C16254"
],
"KEGG_NODE_LABEL_COLOR": "#000000",
"KEGG_NODE_TYPE": "compound",
"KEGG_NODE_LABEL": "C16254",
"KEGG_NODE_WIDTH": "8",
"selected": false,
"KEGG_NODE_Y": "573",
"KEGG_NODE_X": "441",
"shared_name": "71",
"id": "9996",
"name": "71"
}
},
{
"position": {
"y": 530.0,
"x": 568.0
},
"selected": false,
"data": {
"KEGG_NODE_SHAPE": "circle",
"KEGG_NODE_HEIGHT": "8",
"KEGG_NODE_FILL_COLOR": "#FFFFFF",
"KEGG_NODE_LABEL_LIST_FIRST": "Thiamin diphosphate",
"KEGG_NODE_LABEL_LIST": [
"C00068"
],
"SUID": 9995,
"KEGG_ID": [
"cpd:C00068"
],
"KEGG_NODE_LABEL_COLOR": "#000000",
"KEGG_NODE_TYPE": "compound",
"KEGG_NODE_LABEL": "C00068",
"KEGG_NODE_WIDTH": "8",
"selected": false,
"KEGG_NODE_Y": "530",
"KEGG_NODE_X": "568",
"shared_name": "70",
"id": "9995",
"name": "70"
}
},
{
"position": {
"y": 617.0,
"x": 501.0
},
"selected": false,
"data": {
"KEGG_NODE_SHAPE": "circle",
"KEGG_NODE_HEIGHT": "8",
"KEGG_NODE_FILL_COLOR": "#FFFFFF",
"KEGG_NODE_LABEL_LIST_FIRST": "Enzyme N6-(lipoyl)lysine",
"KEGG_NODE_LABEL_LIST": [
"C15972"
],
"SUID": 9994,
"KEGG_ID": [
"cpd:C15972"
],
"KEGG_NODE_LABEL_COLOR": "#000000",
"KEGG_NODE_TYPE": "compound",
"KEGG_NODE_LABEL": "C15972",
"KEGG_NODE_WIDTH": "8",
"selected": false,
"KEGG_NODE_Y": "617",
"KEGG_NODE_X": "501",
"shared_name": "69",
"id": "9994",
"name": "69"
}
},
{
"position": {
"y": 344.0,
"x": 501.0
},
"selected": false,
"data": {
"KEGG_NODE_SHAPE": "circle",
"KEGG_NODE_HEIGHT": "8",
"KEGG_NODE_FILL_COLOR": "#FFFFFF",
"KEGG_NODE_LABEL_LIST_FIRST": "Citrate",
"KEGG_NODE_LABEL_LIST": [
"C00158"
],
"SUID": 9993,
"KEGG_ID": [
"cpd:C00158"
],
"KEGG_NODE_LABEL_COLOR": "#000000",
"KEGG_NODE_TYPE": "compound",
"KEGG_NODE_LABEL": "C00158",
"KEGG_NODE_WIDTH": "8",
"selected": false,
"KEGG_NODE_Y": "344",
"KEGG_NODE_X": "501",
"shared_name": "68",
"id": "9993",
"name": "68"
}
},
{
"position": {
"y": 574.0,
"x": 169.0
},
"selected": false,
"data": {
"KEGG_NODE_SHAPE": "circle",
"KEGG_NODE_HEIGHT": "8",
"KEGG_NODE_FILL_COLOR": "#FFFFFF",
"KEGG_NODE_LABEL_LIST_FIRST": "Succinate",
"KEGG_NODE_LABEL_LIST": [
"C00042"
],
"SUID": 9992,
"KEGG_ID": [
"cpd:C00042"
],
"KEGG_NODE_LABEL_COLOR": "#000000",
"KEGG_NODE_TYPE": "compound",
"KEGG_NODE_LABEL": "C00042",
"KEGG_NODE_WIDTH": "8",
"selected": false,
"KEGG_NODE_Y": "574",
"KEGG_NODE_X": "169",
"shared_name": "67",
"id": "9992",
"name": "67"
}
},
{
"position": {
"y": 344.0,
"x": 600.0
},
"selected": false,
"data": {
"KEGG_NODE_SHAPE": "circle",
"KEGG_NODE_HEIGHT": "8",
"KEGG_NODE_FILL_COLOR": "#FFFFFF",
"KEGG_NODE_LABEL_LIST_FIRST": "cis-Aconitate",
"KEGG_NODE_LABEL_LIST": [
"C00417"
],
"SUID": 9991,
"KEGG_ID": [
"cpd:C00417"
],
"KEGG_NODE_LABEL_COLOR": "#000000",
"KEGG_NODE_TYPE": "compound",
"KEGG_NODE_LABEL": "C00417",
"KEGG_NODE_WIDTH": "8",
"selected": false,
"KEGG_NODE_Y": "344",
"KEGG_NODE_X": "600",
"shared_name": "66",
"id": "9991",
"name": "66"
}
},
{
"position": {
"y": 344.0,
"x": 697.0
},
"selected": false,
"data": {
"KEGG_NODE_SHAPE": "circle",
"KEGG_NODE_HEIGHT": "8",
"KEGG_NODE_FILL_COLOR": "#FFFFFF",
"KEGG_NODE_LABEL_LIST_FIRST": "Isocitrate",
"KEGG_NODE_LABEL_LIST": [
"C00311"
],
"SUID": 9990,
"KEGG_ID": [
"cpd:C00311"
],
"KEGG_NODE_LABEL_COLOR": "#000000",
"KEGG_NODE_TYPE": "compound",
"KEGG_NODE_LABEL": "C00311",
"KEGG_NODE_WIDTH": "8",
"selected": false,
"KEGG_NODE_Y": "344",
"KEGG_NODE_X": "697",
"shared_name": "65",
"id": "9990",
"name": "65"
}
},
{
"position": {
"y": 393.0,
"x": 169.0
},
"selected": false,
"data": {
"KEGG_NODE_SHAPE": "circle",
"KEGG_NODE_HEIGHT": "8",
"KEGG_NODE_FILL_COLOR": "#FFFFFF",
"KEGG_NODE_LABEL_LIST_FIRST": "(S)-Malate",
"KEGG_NODE_LABEL_LIST": [
"C00149"
],
"SUID": 9989,
"KEGG_ID": [
"cpd:C00149"
],
"KEGG_NODE_LABEL_COLOR": "#000000",
"KEGG_NODE_TYPE": "compound",
"KEGG_NODE_LABEL": "C00149",
"KEGG_NODE_WIDTH": "8",
"selected": false,
"KEGG_NODE_Y": "393",
"KEGG_NODE_X": "169",
"shared_name": "64",
"id": "9989",
"name": "64"
}
},
{
"position": {
"y": 241.0,
"x": 379.0
},
"selected": false,
"data": {
"KEGG_NODE_SHAPE": "circle",
"KEGG_NODE_HEIGHT": "8",
"KEGG_NODE_FILL_COLOR": "#FFFFFF",
"KEGG_NODE_LABEL_LIST_FIRST": "Acetyl-CoA",
"KEGG_NODE_LABEL_LIST": [
"C00024"
],
"SUID": 9988,
"KEGG_ID": [
"cpd:C00024"
],
"KEGG_NODE_LABEL_COLOR": "#000000",
"KEGG_NODE_TYPE": "compound",
"KEGG_NODE_LABEL": "C00024",
"KEGG_NODE_WIDTH": "8",
"selected": false,
"KEGG_NODE_Y": "241",
"KEGG_NODE_X": "379",
"shared_name": "63",
"id": "9988",
"name": "63"
}
},
{
"position": {
"y": 453.0,
"x": 697.0
},
"selected": false,
"data": {
"KEGG_NODE_SHAPE": "circle",
"KEGG_NODE_HEIGHT": "8",
"KEGG_NODE_FILL_COLOR": "#FFFFFF",
"KEGG_NODE_LABEL_LIST_FIRST": "Oxalosuccinate",
"KEGG_NODE_LABEL_LIST": [
"C05379"
],
"SUID": 9987,
"KEGG_ID": [
"cpd:C05379"
],
"KEGG_NODE_LABEL_COLOR": "#000000",
"KEGG_NODE_TYPE": "compound",
"KEGG_NODE_LABEL": "C05379",
"KEGG_NODE_WIDTH": "8",
"selected": false,
"KEGG_NODE_Y": "453",
"KEGG_NODE_X": "697",
"shared_name": "62",
"id": "9987",
"name": "62"
}
},
{
"position": {
"y": 344.0,
"x": 299.0
},
"selected": false,
"data": {
"KEGG_NODE_SHAPE": "circle",
"KEGG_NODE_HEIGHT": "8",
"KEGG_NODE_FILL_COLOR": "#FFFFFF",
"KEGG_NODE_LABEL_LIST_FIRST": "Oxaloacetate",
"KEGG_NODE_LABEL_LIST": [
"C00036"
],
"SUID": 9986,
"KEGG_ID": [
"cpd:C00036"
],
"KEGG_NODE_LABEL_COLOR": "#000000",
"KEGG_NODE_TYPE": "compound",
"KEGG_NODE_LABEL": "C00036",
"KEGG_NODE_WIDTH": "8",
"selected": false,
"KEGG_NODE_Y": "344",
"KEGG_NODE_X": "299",
"shared_name": "61",
"id": "9986",
"name": "61"
}
},
{
"position": {
"y": 481.0,
"x": 169.0
},
"selected": false,
"data": {
"KEGG_NODE_SHAPE": "circle",
"KEGG_NODE_HEIGHT": "8",
"KEGG_NODE_FILL_COLOR": "#FFFFFF",
"KEGG_NODE_LABEL_LIST_FIRST": "Fumarate",
"KEGG_NODE_LABEL_LIST": [
"C00122"
],
"SUID": 9985,
"KEGG_ID": [
"cpd:C00122"
],
"KEGG_NODE_LABEL_COLOR": "#000000",
"KEGG_NODE_TYPE": "compound",
"KEGG_NODE_LABEL": "C00122",
"KEGG_NODE_WIDTH": "8",
"selected": false,
"KEGG_NODE_Y": "481",
"KEGG_NODE_X": "169",
"shared_name": "60",
"id": "9985",
"name": "60"
}
},
{
"position": {
"y": 241.0,
"x": 716.0
},
"selected": false,
"data": {
"KEGG_NODE_SHAPE": "circle",
"KEGG_NODE_HEIGHT": "8",
"KEGG_NODE_FILL_COLOR": "#FFFFFF",
"KEGG_NODE_LABEL_LIST_FIRST": "Pyruvate",
"KEGG_NODE_LABEL_LIST": [
"C00022"
],
"SUID": 9984,
"KEGG_ID": [
"cpd:C00022"
],
"KEGG_NODE_LABEL_COLOR": "#000000",
"KEGG_NODE_TYPE": "compound",
"KEGG_NODE_LABEL": "C00022",
"KEGG_NODE_WIDTH": "8",
"selected": false,
"KEGG_NODE_Y": "241",
"KEGG_NODE_X": "716",
"shared_name": "59",
"id": "9984",
"name": "59"
}
},
{
"position": {
"y": 672.0,
"x": 850.0
},
"selected": false,
"data": {
"KEGG_NODE_SHAPE": "roundrectangle",
"KEGG_NODE_HEIGHT": "25",
"KEGG_NODE_FILL_COLOR": "#6999AE",
"KEGG_NODE_LABEL_LIST_FIRST": "D-Glutamine and D-glutamate metabolism",
"KEGG_NODE_LABEL_LIST": [
"D-Glutamine and D-glutamate metabolism"
],
"SUID": 9983,
"KEGG_ID": [
"path:hsa00471"
],
"KEGG_NODE_LABEL_COLOR": "#000000",
"KEGG_NODE_TYPE": "map",
"KEGG_NODE_LABEL": "D-Glutamine and D-glutamate metabolism",
"KEGG_NODE_WIDTH": "152",
"selected": false,
"KEGG_NODE_Y": "672",
"KEGG_NODE_X": "850",
"shared_name": "58",
"id": "9983",
"name": "58"
}
},
{
"position": {
"y": 480.0,
"x": 66.0
},
"selected": false,
"data": {
"KEGG_NODE_SHAPE": "roundrectangle",
"KEGG_NODE_HEIGHT": "34",
"KEGG_NODE_FILL_COLOR": "#6999AE",
"KEGG_NODE_LABEL_LIST_FIRST": "Arginine and proline metabolism",
"KEGG_NODE_LABEL_LIST": [
"Arginine and proline metabolism"
],
"SUID": 9982,
"KEGG_ID": [
"path:hsa00330"
],
"KEGG_NODE_LABEL_COLOR": "#000000",
"KEGG_NODE_TYPE": "map",
"KEGG_NODE_LABEL": "Arginine and proline metabolism",
"KEGG_NODE_WIDTH": "112",
"selected": false,
"KEGG_NODE_Y": "480",
"KEGG_NODE_X": "66",
"shared_name": "57",
"id": "9982",
"name": "57"
}
},
{
"position": {
"y": 275.0,
"x": 146.0
},
"selected": false,
"data": {
"KEGG_NODE_SHAPE": "roundrectangle",
"KEGG_NODE_HEIGHT": "34",
"KEGG_NODE_FILL_COLOR": "#6999AE",
"KEGG_NODE_LABEL_LIST_FIRST": "Alanine",
"KEGG_NODE_LABEL_LIST": [
"Alanine",
"aspartate and glutamate metabolism"
],
"SUID": 9981,
"KEGG_ID": [
"path:hsa00250"
],
"KEGG_NODE_LABEL_COLOR": "#000000",
"KEGG_NODE_TYPE": "map",
"KEGG_NODE_LABEL": "Alanine, aspartate and glutamate metabolism",
"KEGG_NODE_WIDTH": "121",
"selected": false,
"KEGG_NODE_Y": "275",
"KEGG_NODE_X": "146",
"shared_name": "56",
"id": "9981",
"name": "56"
}
},
{
"position": {
"y": 627.0,
"x": 245.0
},
"selected": false,
"data": {
"KEGG_NODE_SHAPE": "roundrectangle",
"KEGG_NODE_HEIGHT": "34",
"KEGG_NODE_FILL_COLOR": "#6999AE",
"KEGG_NODE_LABEL_LIST_FIRST": "Valine",
"KEGG_NODE_LABEL_LIST": [
"Valine",
"leucine and isoleucine degradation"
],
"SUID": 9980,
"KEGG_ID": [
"path:hsa00280"
],
"KEGG_NODE_LABEL_COLOR": "#000000",
"KEGG_NODE_TYPE": "map",
"KEGG_NODE_LABEL": "Valine, leucine and isoleucine degradation",
"KEGG_NODE_WIDTH": "85",
"selected": false,
"KEGG_NODE_Y": "627",
"KEGG_NODE_X": "245",
"shared_name": "55",
"id": "9980",
"name": "55"
}
},
{
"position": {
"y": 443.0,
"x": 81.0
},
"selected": false,
"data": {
"KEGG_NODE_SHAPE": "roundrectangle",
"KEGG_NODE_HEIGHT": "34",
"KEGG_NODE_FILL_COLOR": "#6999AE",
"KEGG_NODE_LABEL_LIST_FIRST": "Tyrosine metabolism",
"KEGG_NODE_LABEL_LIST": [
"Tyrosine metabolism"
],
"SUID": 9979,
"KEGG_ID": [
"path:hsa00350"
],
"KEGG_NODE_LABEL_COLOR": "#000000",
"KEGG_NODE_TYPE": "map",
"KEGG_NODE_LABEL": "Tyrosine metabolism",
"KEGG_NODE_WIDTH": "76",
"selected": false,
"KEGG_NODE_Y": "443",
"KEGG_NODE_X": "81",
"shared_name": "54",
"id": "9979",
"name": "54"
}
},
{
"position": {
"y": 58.0,
"x": 155.0
},
"selected": false,
"data": {
"KEGG_NODE_SHAPE": "roundrectangle",
"KEGG_NODE_HEIGHT": "25",
"KEGG_NODE_FILL_COLOR": "#32CCB6",
"KEGG_NODE_LABEL_LIST_FIRST": "TITLE:Citrate cycle (TCA cycle)",
"KEGG_NODE_LABEL_LIST": [
"TITLE:Citrate cycle (TCA cycle)"
],
"SUID": 9978,
"KEGG_ID": [
"path:hsa00020"
],
"KEGG_NODE_LABEL_COLOR": "#000000",
"KEGG_NODE_TYPE": "map",
"KEGG_NODE_LABEL": "TITLE:Citrate cycle (TCA cycle)",
"KEGG_NODE_WIDTH": "229",
"selected": false,
"KEGG_NODE_Y": "58",
"KEGG_NODE_X": "155",
"shared_name": "53",
"id": "9978",
"name": "53"
}
},
{
"position": {
"y": 639.0,
"x": 835.0
},
"selected": false,
"data": {
"KEGG_NODE_SHAPE": "roundrectangle",
"KEGG_NODE_HEIGHT": "34",
"KEGG_NODE_FILL_COLOR": "#6999AE",
"KEGG_NODE_LABEL_LIST_FIRST": "Alanine",
"KEGG_NODE_LABEL_LIST": [
"Alanine",
"aspartate and glutamate metabolism"
],
"SUID": 9977,
"KEGG_ID": [
"path:hsa00250"
],
"KEGG_NODE_LABEL_COLOR": "#000000",
"KEGG_NODE_TYPE": "map",
"KEGG_NODE_LABEL": "Alanine, aspartate and glutamate metabolism",
"KEGG_NODE_WIDTH": "121",
"selected": false,
"KEGG_NODE_Y": "639",
"KEGG_NODE_X": "835",
"shared_name": "52",
"id": "9977",
"name": "52"
}
},
{
"position": {
"y": 602.0,
"x": 835.0
},
"selected": false,
"data": {
"KEGG_NODE_SHAPE": "roundrectangle",
"KEGG_NODE_HEIGHT": "34",
"KEGG_NODE_FILL_COLOR": "#6999AE",
"KEGG_NODE_LABEL_LIST_FIRST": "Ascorbate and aldarate metabolism",
"KEGG_NODE_LABEL_LIST": [
"Ascorbate and aldarate metabolism"
],
"SUID": 9976,
"KEGG_ID": [
"path:hsa00053"
],
"KEGG_NODE_LABEL_COLOR": "#000000",
"KEGG_NODE_TYPE": "map",
"KEGG_NODE_LABEL": "Ascorbate and aldarate metabolism",
"KEGG_NODE_WIDTH": "126",
"selected": false,
"KEGG_NODE_Y": "602",
"KEGG_NODE_X": "835",
"shared_name": "51",
"id": "9976",
"name": "51"
}
},
{
"position": {
"y": 239.0,
"x": 145.0
},
"selected": false,
"data": {
"KEGG_NODE_SHAPE": "roundrectangle",
"KEGG_NODE_HEIGHT": "25",
"KEGG_NODE_FILL_COLOR": "#6999AE",
"KEGG_NODE_LABEL_LIST_FIRST": "Fatty acid degradation",
"KEGG_NODE_LABEL_LIST": [
"Fatty acid degradation"
],
"SUID": 9975,
"KEGG_ID": [
"path:hsa00071"
],
"KEGG_NODE_LABEL_COLOR": "#000000",
"KEGG_NODE_TYPE": "map",
"KEGG_NODE_LABEL": "Fatty acid degradation",
"KEGG_NODE_WIDTH": "121",
"selected": false,
"KEGG_NODE_Y": "239",
"KEGG_NODE_X": "145",
"shared_name": "50",
"id": "9975",
"name": "50"
}
},
{
"position": {
"y": 181.0,
"x": 108.0
},
"selected": false,
"data": {
"KEGG_NODE_SHAPE": "roundrectangle",
"KEGG_NODE_HEIGHT": "25",
"KEGG_NODE_FILL_COLOR": "#6999AE",
"KEGG_NODE_LABEL_LIST_FIRST": "Fatty acid elongation",
"KEGG_NODE_LABEL_LIST": [
"Fatty acid elongation"
],
"SUID": 9974,
"KEGG_ID": [
"path:hsa00062"
],
"KEGG_NODE_LABEL_COLOR": "#000000",
"KEGG_NODE_TYPE": "map",
"KEGG_NODE_LABEL": "Fatty acid elongation",
"KEGG_NODE_WIDTH": "194",
"selected": false,
"KEGG_NODE_Y": "181",
"KEGG_NODE_X": "108",
"shared_name": "49",
"id": "9974",
"name": "49"
}
},
{
"position": {
"y": 153.0,
"x": 142.0
},
"selected": false,
"data": {
"KEGG_NODE_SHAPE": "roundrectangle",
"KEGG_NODE_HEIGHT": "25",
"KEGG_NODE_FILL_COLOR": "#6999AE",
"KEGG_NODE_LABEL_LIST_FIRST": "Fatty acid biosynthesis",
"KEGG_NODE_LABEL_LIST": [
"Fatty acid biosynthesis"
],
"SUID": 9973,
"KEGG_ID": [
"path:hsa00061"
],
"KEGG_NODE_LABEL_COLOR": "#000000",
"KEGG_NODE_TYPE": "map",
"KEGG_NODE_LABEL": "Fatty acid biosynthesis",
"KEGG_NODE_WIDTH": "126",
"selected": false,
"KEGG_NODE_Y": "153",
"KEGG_NODE_X": "142",
"shared_name": "48",
"id": "9973",
"name": "48"
}
},
{
"position": {
"y": 127.0,
"x": 671.0
},
"selected": false,
"data": {
"KEGG_NODE_SHAPE": "roundrectangle",
"KEGG_NODE_HEIGHT": "46",
"KEGG_NODE_FILL_COLOR": "#6999AE",
"KEGG_NODE_LABEL_LIST_FIRST": "Glycolysis / Gluconeogenesis",
"KEGG_NODE_LABEL_LIST": [
"Glycolysis / Gluconeogenesis"
],
"SUID": 9972,
"KEGG_ID": [
"path:hsa00010"
],
"KEGG_NODE_LABEL_COLOR": "#000000",
"KEGG_NODE_TYPE": "map",
"KEGG_NODE_LABEL": "Glycolysis / Gluconeogenesis",
"KEGG_NODE_WIDTH": "216",
"selected": false,
"KEGG_NODE_Y": "127",
"KEGG_NODE_X": "671",
"shared_name": "47",
"id": "9972",
"name": "47"
}
},
{
"position": {
"y": 312.0,
"x": 128.0
},
"selected": false,
"data": {
"KEGG_NODE_SHAPE": "roundrectangle",
"KEGG_NODE_HEIGHT": "34",
"KEGG_NODE_FILL_COLOR": "#6999AE",
"KEGG_NODE_LABEL_LIST_FIRST": "Glyoxylate and dicarboxylate metabolism",
"KEGG_NODE_LABEL_LIST": [
"Glyoxylate and dicarboxylate metabolism"
],
"SUID": 9971,
"KEGG_ID": [
"path:hsa00630"
],
"KEGG_NODE_LABEL_COLOR": "#000000",
"KEGG_NODE_TYPE": "map",
"KEGG_NODE_LABEL": "Glyoxylate and dicarboxylate metabolism",
"KEGG_NODE_WIDTH": "158",
"selected": false,
"KEGG_NODE_Y": "312",
"KEGG_NODE_X": "128",
"shared_name": "46",
"id": "9971",
"name": "46"
}
},
{
"position": {
"y": 278.0,
"x": 715.0
},
"selected": false,
"data": {
"KEGG_NODE_SHAPE": "rectangle",
"KEGG_NODE_HEIGHT": "17",
"KEGG_NODE_FILL_COLOR": "#BFFFBF",
"KEGG_NODE_LABEL_LIST_FIRST": "PC",
"KEGG_NODE_LABEL_LIST": [
"PC",
"PCB"
],
"SUID": 9970,
"KEGG_ID": [
"hsa:5091"
],
"KEGG_NODE_LABEL_COLOR": "#000000",
"KEGG_NODE_TYPE": "gene",
"KEGG_NODE_LABEL": "PC, PCB",
"KEGG_NODE_WIDTH": "46",
"selected": false,
"KEGG_NODE_Y": "278",
"KEGG_NODE_X": "715",
"shared_name": "45",
"id": "9970",
"KEGG_NODE_REACTIONID": "rn:R00344",
"name": "45"
}
},
{
"position": {
"y": 345.0,
"x": 232.0
},
"selected": false,
"data": {
"KEGG_NODE_SHAPE": "rectangle",
"KEGG_NODE_HEIGHT": "17",
"KEGG_NODE_FILL_COLOR": "#BFFFBF",
"KEGG_NODE_LABEL_LIST_FIRST": "MDH1",
"KEGG_NODE_LABEL_LIST": [
"MDH1",
"MDH-s",
"MDHA",
"MGC:1375",
"MOR2..."
],
"SUID": 9969,
"KEGG_ID": [
"hsa:4190",
"hsa:4191"
],
"KEGG_NODE_LABEL_COLOR": "#000000",
"KEGG_NODE_TYPE": "gene",
"KEGG_NODE_LABEL": "MDH1, MDH-s, MDHA, MGC:1375, MOR2...",
"KEGG_NODE_WIDTH": "46",
"selected": false,
"KEGG_NODE_Y": "345",
"KEGG_NODE_X": "232",
"shared_name": "44",
"id": "9969",
"KEGG_NODE_REACTIONID": "rn:R00342",
"name": "44"
}
},
{
"position": {
"y": 334.0,
"x": 413.0
},
"selected": false,
"data": {
"KEGG_NODE_SHAPE": "rectangle",
"KEGG_NODE_HEIGHT": "17",
"KEGG_NODE_FILL_COLOR": "#BFFFBF",
"KEGG_NODE_LABEL_LIST_FIRST": "CS",
"KEGG_NODE_LABEL_LIST": [
"CS"
],
"SUID": 9968,
"KEGG_ID": [
"hsa:1431"
],
"KEGG_NODE_LABEL_COLOR": "#000000",
"KEGG_NODE_TYPE": "gene",
"KEGG_NODE_LABEL": "CS",
"KEGG_NODE_WIDTH": "46",
"selected": false,
"KEGG_NODE_Y": "334",
"KEGG_NODE_X": "413",
"shared_name": "43",
"id": "9968",
"KEGG_NODE_REACTIONID": "rn:R00351",
"name": "43"
}
},
{
"position": {
"y": 345.0,
"x": 550.0
},
"selected": false,
"data": {
"KEGG_NODE_SHAPE": "rectangle",
"KEGG_NODE_HEIGHT": "17",
"KEGG_NODE_FILL_COLOR": "#BFFFBF",
"KEGG_NODE_LABEL_LIST_FIRST": "ACO1",
"KEGG_NODE_LABEL_LIST": [
"ACO1",
"ACONS",
"IREB1",
"IREBP",
"IREBP1",
"IRP1..."
],
"SUID": 9967,
"KEGG_ID": [
"hsa:48",
"hsa:50"
],
"KEGG_NODE_LABEL_COLOR": "#000000",
"KEGG_NODE_TYPE": "gene",
"KEGG_NODE_LABEL": "ACO1, ACONS, IREB1, IREBP, IREBP1, IRP1...",
"KEGG_NODE_WIDTH": "46",
"selected": false,
"KEGG_NODE_Y": "345",
"KEGG_NODE_X": "550",
"shared_name": "42",
"id": "9967",
"KEGG_NODE_REACTIONID": "rn:R01325",
"name": "42"
}
},
{
"position": {
"y": 345.0,
"x": 649.0
},
"selected": false,
"data": {
"KEGG_NODE_SHAPE": "rectangle",
"KEGG_NODE_HEIGHT": "17",
"KEGG_NODE_FILL_COLOR": "#BFFFBF",
"KEGG_NODE_LABEL_LIST_FIRST": "ACO1",
"KEGG_NODE_LABEL_LIST": [
"ACO1",
"ACONS",
"IREB1",
"IREBP",
"IREBP1",
"IRP1..."
],
"SUID": 9966,
"KEGG_ID": [
"hsa:48",
"hsa:50"
],
"KEGG_NODE_LABEL_COLOR": "#000000",
"KEGG_NODE_TYPE": "gene",
"KEGG_NODE_LABEL": "ACO1, ACONS, IREB1, IREBP, IREBP1, IRP1...",
"KEGG_NODE_WIDTH": "46",
"selected": false,
"KEGG_NODE_Y": "345",
"KEGG_NODE_X": "649",
"shared_name": "41",
"id": "9966",
"KEGG_NODE_REACTIONID": "rn:R01900",
"name": "41"
}
},
{
"position": {
"y": 436.0,
"x": 168.0
},
"selected": false,
"data": {
"KEGG_NODE_SHAPE": "rectangle",
"KEGG_NODE_HEIGHT": "17",
"KEGG_NODE_FILL_COLOR": "#BFFFBF",
"KEGG_NODE_LABEL_LIST_FIRST": "FH",
"KEGG_NODE_LABEL_LIST": [
"FH",
"HLRCC",
"LRCC",
"MCL",
"MCUL1"
],
"SUID": 9965,
"KEGG_ID": [
"hsa:2271"
],
"KEGG_NODE_LABEL_COLOR": "#000000",
"KEGG_NODE_TYPE": "gene",
"KEGG_NODE_LABEL": "FH, HLRCC, LRCC, MCL, MCUL1",
"KEGG_NODE_WIDTH": "46",
"selected": false,
"KEGG_NODE_Y": "436",
"KEGG_NODE_X": "168",
"shared_name": "40",
"id": "9965",
"KEGG_NODE_REACTIONID": "rn:R01082",
"name": "40"
}
},
{
"position": {
"y": 530.0,
"x": 194.0
},
"selected": false,
"data": {
"KEGG_NODE_SHAPE": "rectangle",
"KEGG_NODE_HEIGHT": "17",
"KEGG_NODE_FILL_COLOR": "#BFFFBF",
"KEGG_NODE_LABEL_LIST_FIRST": "SDHA",
"KEGG_NODE_LABEL_LIST": [
"SDHA",
"CMD1GG",
"FP",
"PGL5",
"SDH1",
"SDH2",
"SDHF..."
],
"SUID": 9964,
"KEGG_ID": [
"hsa:6389",
"hsa:6390",
"hsa:6391",
"hsa:6392"
],
"KEGG_NODE_LABEL_COLOR": "#000000",
"KEGG_NODE_TYPE": "gene",
"KEGG_NODE_LABEL": "SDHA, CMD1GG, FP, PGL5, SDH1, SDH2, SDHF...",
"KEGG_NODE_WIDTH": "46",
"selected": false,
"KEGG_NODE_Y": "530",
"KEGG_NODE_X": "194",
"shared_name": "39",
"id": "9964",
"KEGG_NODE_REACTIONID": "rn:R02164",
"name": "39"
}
},
{
"position": {
"y": 355.0,
"x": 413.0
},
"selected": false,
"data": {
"KEGG_NODE_SHAPE": "rectangle",
"KEGG_NODE_HEIGHT": "17",
"KEGG_NODE_FILL_COLOR": "#BFFFBF",
"KEGG_NODE_LABEL_LIST_FIRST": "ACLY",
"KEGG_NODE_LABEL_LIST": [
"ACLY",
"ACL",
"ATPCL",
"CLATP"
],
"SUID": 9963,
"KEGG_ID": [
"hsa:47"
],
"KEGG_NODE_LABEL_COLOR": "#000000",
"KEGG_NODE_TYPE": "gene",
"KEGG_NODE_LABEL": "ACLY, ACL, ATPCL, CLATP",
"KEGG_NODE_WIDTH": "46",
"selected": false,
"KEGG_NODE_Y": "355",
"KEGG_NODE_X": "413",
"shared_name": "38",
"id": "9963",
"KEGG_NODE_REACTIONID": "rn:R00352",
"name": "38"
}
},
{
"position": {
"y": 400.0,
"x": 697.0
},
"selected": false,
"data": {
"KEGG_NODE_SHAPE": "rectangle",
"KEGG_NODE_HEIGHT": "17",
"KEGG_NODE_FILL_COLOR": "#BFFFBF",
"KEGG_NODE_LABEL_LIST_FIRST": "IDH1",
"KEGG_NODE_LABEL_LIST": [
"IDH1",
"IDCD",
"IDH",
"IDP",
"IDPC",
"PICD..."
],
"SUID": 9962,
"KEGG_ID": [
"hsa:3417",
"hsa:3418"
],
"KEGG_NODE_LABEL_COLOR": "#000000",
"KEGG_NODE_TYPE": "gene",
"KEGG_NODE_LABEL": "IDH1, IDCD, IDH, IDP, IDPC, PICD...",
"KEGG_NODE_WIDTH": "46",
"selected": false,
"KEGG_NODE_Y": "400",
"KEGG_NODE_X": "697",
"shared_name": "37",
"id": "9962",
"KEGG_NODE_REACTIONID": "rn:R01899",
"name": "37"
}
},
{
"position": {
"y": 458.0,
"x": 745.0
},
"selected": false,
"data": {
"KEGG_NODE_SHAPE": "rectangle",
"KEGG_NODE_HEIGHT": "17",
"KEGG_NODE_FILL_COLOR": "#BFFFBF",
"KEGG_NODE_LABEL_LIST_FIRST": "IDH3A...",
"KEGG_NODE_LABEL_LIST": [
"IDH3A..."
],
"SUID": 9961,
"KEGG_ID": [
"hsa:3419",
"hsa:3420",
"hsa:3421"
],
"KEGG_NODE_LABEL_COLOR": "#000000",
"KEGG_NODE_TYPE": "gene",
"KEGG_NODE_LABEL": "IDH3A...",
"KEGG_NODE_WIDTH": "46",
"selected": false,
"KEGG_NODE_Y": "458",
"KEGG_NODE_X": "745",
"shared_name": "36",
"id": "9961",
"KEGG_NODE_REACTIONID": "rn:R00709",
"name": "36"
}
},
{
"position": {
"y": 505.0,
"x": 697.0
},
"selected": false,
"data": {
"KEGG_NODE_SHAPE": "rectangle",
"KEGG_NODE_HEIGHT": "17",
"KEGG_NODE_FILL_COLOR": "#BFFFBF",
"KEGG_NODE_LABEL_LIST_FIRST": "IDH1",
"KEGG_NODE_LABEL_LIST": [
"IDH1",
"IDCD",
"IDH",
"IDP",
"IDPC",
"PICD..."
],
"SUID": 9960,
"KEGG_ID": [
"hsa:3417",
"hsa:3418"
],
"KEGG_NODE_LABEL_COLOR": "#000000",
"KEGG_NODE_TYPE": "gene",
"KEGG_NODE_LABEL": "IDH1, IDCD, IDH, IDP, IDPC, PICD...",
"KEGG_NODE_WIDTH": "46",
"selected": false,
"KEGG_NODE_Y": "505",
"KEGG_NODE_X": "697",
"shared_name": "35",
"id": "9960",
"KEGG_NODE_REACTIONID": "rn:R00268",
"name": "35"
}
},
{
"position": {
"y": 564.0,
"x": 239.0
},
"selected": false,
"data": {
"KEGG_NODE_SHAPE": "rectangle",
"KEGG_NODE_HEIGHT": "17",
"KEGG_NODE_FILL_COLOR": "#BFFFBF",
"KEGG_NODE_LABEL_LIST_FIRST": "SUCLG2",
"KEGG_NODE_LABEL_LIST": [
"SUCLG2",
"GBETA..."
],
"SUID": 9959,
"KEGG_ID": [
"hsa:8801",
"hsa:8802",
"hsa:8803"
],
"KEGG_NODE_LABEL_COLOR": "#000000",
"KEGG_NODE_TYPE": "gene",
"KEGG_NODE_LABEL": "SUCLG2, GBETA...",
"KEGG_NODE_WIDTH": "46",
"selected": false,
"KEGG_NODE_Y": "564",
"KEGG_NODE_X": "239",
"shared_name": "34",
"id": "9959",
"KEGG_NODE_REACTIONID": "rn:R00432 rn:R00727",
"name": "34"
}
},
{
"position": {
"y": 585.0,
"x": 239.0
},
"selected": false,
"data": {
"KEGG_NODE_SHAPE": "rectangle",
"KEGG_NODE_HEIGHT": "17",
"KEGG_NODE_FILL_COLOR": "#BFFFBF",
"KEGG_NODE_LABEL_LIST_FIRST": "SUCLG2",
"KEGG_NODE_LABEL_LIST": [
"SUCLG2",
"GBETA..."
],
"SUID": 9958,
"KEGG_ID": [
"hsa:8801",
"hsa:8802",
"hsa:8803"
],
"KEGG_NODE_LABEL_COLOR": "#000000",
"KEGG_NODE_TYPE": "gene",
"KEGG_NODE_LABEL": "SUCLG2, GBETA...",
"KEGG_NODE_WIDTH": "46",
"selected": false,
"KEGG_NODE_Y": "585",
"KEGG_NODE_X": "239",
"shared_name": "33",
"id": "9958",
"KEGG_NODE_REACTIONID": "rn:R00405",
"name": "33"
}
},
{
"position": {
"y": 574.0,
"x": 382.0
},
"selected": false,
"data": {
"KEGG_NODE_SHAPE": "rectangle",
"KEGG_NODE_HEIGHT": "17",
"KEGG_NODE_FILL_COLOR": "#BFFFBF",
"KEGG_NODE_LABEL_LIST_FIRST": "DLST",
"KEGG_NODE_LABEL_LIST": [
"DLST",
"DLTS"
],
"SUID": 9957,
"KEGG_ID": [
"hsa:1743"
],
"KEGG_NODE_LABEL_COLOR": "#000000",
"KEGG_NODE_TYPE": "gene",
"KEGG_NODE_LABEL": "DLST, DLTS",
"KEGG_NODE_WIDTH": "46",
"selected": false,
"KEGG_NODE_Y": "574",
"KEGG_NODE_X": "382",
"shared_name": "32",
"id": "9957",
"KEGG_NODE_REACTIONID": "rn:R02570",
"name": "32"
}
},
{
"position": {
"y": 575.0,
"x": 509.0
},
"selected": false,
"data": {
"KEGG_NODE_SHAPE": "rectangle",
"KEGG_NODE_HEIGHT": "17",
"KEGG_NODE_FILL_COLOR": "#BFFFBF",
"KEGG_NODE_LABEL_LIST_FIRST": "OGDH",
"KEGG_NODE_LABEL_LIST": [
"OGDH",
"AKGDH",
"E1k",
"OGDC..."
],
"SUID": 9956,
"KEGG_ID": [
"hsa:4967",
"hsa:55753"
],
"KEGG_NODE_LABEL_COLOR": "#000000",
"KEGG_NODE_TYPE": "gene",
"KEGG_NODE_LABEL": "OGDH, AKGDH, E1k, OGDC...",
"KEGG_NODE_WIDTH": "46",
"selected": false,
"KEGG_NODE_Y": "575",
"KEGG_NODE_X": "509",
"shared_name": "31",
"id": "9956",
"KEGG_NODE_REACTIONID": "rn:R03316",
"name": "31"
}
},
{
"position": {
"y": 574.0,
"x": 640.0
},
"selected": false,
"data": {
"KEGG_NODE_SHAPE": "rectangle",
"KEGG_NODE_HEIGHT": "17",
"KEGG_NODE_FILL_COLOR": "#BFFFBF",
"KEGG_NODE_LABEL_LIST_FIRST": "OGDH",
"KEGG_NODE_LABEL_LIST": [
"OGDH",
"AKGDH",
"E1k",
"OGDC..."
],
"SUID": 9955,
"KEGG_ID": [
"hsa:4967",
"hsa:55753"
],
"KEGG_NODE_LABEL_COLOR": "#000000",
"KEGG_NODE_TYPE": "gene",
"KEGG_NODE_LABEL": "OGDH, AKGDH, E1k, OGDC...",
"KEGG_NODE_WIDTH": "46",
"selected": false,
"KEGG_NODE_Y": "574",
"KEGG_NODE_X": "640",
"shared_name": "30",
"id": "9955",
"KEGG_NODE_REACTIONID": "rn:R00621",
"name": "30"
}
},
{
"position": {
"y": 618.0,
"x": 446.0
},
"selected": false,
"data": {
"KEGG_NODE_SHAPE": "rectangle",
"KEGG_NODE_HEIGHT": "17",
"KEGG_NODE_FILL_COLOR": "#BFFFBF",
"KEGG_NODE_LABEL_LIST_FIRST": "DLD",
"KEGG_NODE_LABEL_LIST": [
"DLD",
"DLDD",
"DLDH",
"E3",
"GCSL",
"LAD",
"PHE3"
],
"SUID": 9954,
"KEGG_ID": [
"hsa:1738"
],
"KEGG_NODE_LABEL_COLOR": "#000000",
"KEGG_NODE_TYPE": "gene",
"KEGG_NODE_LABEL": "DLD, DLDD, DLDH, E3, GCSL, LAD, PHE3",
"KEGG_NODE_WIDTH": "46",
"selected": false,
"KEGG_NODE_Y": "618",
"KEGG_NODE_X": "446",
"shared_name": "29",
"id": "9954",
"KEGG_NODE_REACTIONID": "rn:R07618",
"name": "29"
}
},
{
"position": {
"y": 649.0,
"x": 505.0
},
"selected": false,
"data": {
"KEGG_NODE_SHAPE": "rectangle",
"KEGG_NODE_HEIGHT": "17",
"KEGG_NODE_FILL_COLOR": "#FFFFFF",
"KEGG_NODE_LABEL_LIST_FIRST": "K00174...",
"KEGG_NODE_LABEL_LIST": [
"K00174..."
],
"SUID": 9953,
"KEGG_ID": [
"ko:K00174",
"ko:K00175",
"ko:K00177",
"ko:K00176"
],
"KEGG_NODE_LABEL_COLOR": "#000000",
"KEGG_NODE_TYPE": "ortholog",
"KEGG_NODE_LABEL": "K00174...",
"KEGG_NODE_WIDTH": "46",
"selected": false,
"KEGG_NODE_Y": "649",
"KEGG_NODE_X": "505",
"shared_name": "28",
"id": "9953",
"KEGG_NODE_REACTIONID": "rn:R01197",
"name": "28"
}
},
{
"position": {
"y": 530.0,
"x": 144.0
},
"selected": false,
"data": {
"KEGG_NODE_SHAPE": "rectangle",
"KEGG_NODE_HEIGHT": "17",
"KEGG_NODE_FILL_COLOR": "#FFFFFF",
"KEGG_NODE_LABEL_LIST_FIRST": "K00239...",
"KEGG_NODE_LABEL_LIST": [
"K00239..."
],
"SUID": 9952,
"KEGG_ID": [
"ko:K00239",
"ko:K00240",
"ko:K00241",
"ko:K00242",
"ko:K00244",
"ko:K00245",
"ko:K00246",
"ko:K00247"
],
"KEGG_NODE_LABEL_COLOR": "#000000",
"KEGG_NODE_TYPE": "ortholog",
"KEGG_NODE_LABEL": "K00239...",
"KEGG_NODE_WIDTH": "46",
"selected": false,
"KEGG_NODE_Y": "530",
"KEGG_NODE_X": "144",
"shared_name": "27",
"id": "9952",
"KEGG_NODE_REACTIONID": "rn:R00412",
"name": "27"
}
}
],
"edges": [
{
"selected": false,
"data": {
"KEGG_REACTION_TYPE": "reversible",
"target": "10008",
"SUID": 10152,
"selected": false,
"source": "10014",
"id": "10152"
}
},
{
"selected": false,
"data": {
"KEGG_REACTION_TYPE": "reversible",
"target": "10006",
"SUID": 10149,
"selected": false,
"source": "10014",
"id": "10149"
}
},
{
"selected": false,
"data": {
"KEGG_REACTION_TYPE": "irreversible",
"target": "10015",
"SUID": 10155,
"selected": false,
"source": "10013",
"id": "10155"
}
},
{
"selected": false,
"data": {
"KEGG_RELATION_TYPE": "maplink",
"target": "9972",
"SUID": 10101,
"selected": false,
"source": "10013",
"id": "10101"
}
},
{
"selected": false,
"data": {
"KEGG_RELATION_TYPE": "maplink",
"target": "9963",
"SUID": 10034,
"selected": false,
"source": "10010",
"id": "10034"
}
},
{
"selected": false,
"data": {
"KEGG_RELATION_TYPE": "maplink",
"target": "9968",
"SUID": 10033,
"selected": false,
"source": "10010",
"id": "10033"
}
},
{
"selected": false,
"data": {
"KEGG_RELATION_TYPE": "maplink",
"target": "10008",
"SUID": 10032,
"selected": false,
"source": "10010",
"id": "10032"
}
},
{
"selected": false,
"data": {
"KEGG_RELATION_TYPE": "maplink",
"target": "9975",
"SUID": 10031,
"selected": false,
"source": "10010",
"id": "10031"
}
},
{
"selected": false,
"data": {
"KEGG_REACTION_TYPE": "reversible",
"target": "10007",
"SUID": 10153,
"selected": false,
"source": "10008",
"id": "10153"
}
},
{
"selected": false,
"data": {
"KEGG_RELATION_TYPE": "ECrel",
"target": "10004",
"SUID": 10099,
"selected": false,
"source": "10008",
"id": "10099"
}
},
{
"selected": false,
"data": {
"KEGG_RELATION_TYPE": "ECrel",
"target": "9963",
"SUID": 10039,
"selected": false,
"source": "10008",
"id": "10039"
}
},
{
"selected": false,
"data": {
"KEGG_RELATION_TYPE": "ECrel",
"target": "9968",
"SUID": 10038,
"selected": false,
"source": "10008",
"id": "10038"
}
},
{
"selected": false,
"data": {
"KEGG_REACTION_TYPE": "reversible",
"target": "10005",
"SUID": 10150,
"selected": false,
"source": "10006",
"id": "10150"
}
},
{
"selected": false,
"data": {
"KEGG_RELATION_TYPE": "ECrel",
"target": "10008",
"SUID": 10100,
"selected": false,
"source": "10006",
"id": "10100"
}
},
{
"selected": false,
"data": {
"KEGG_RELATION_TYPE": "ECrel",
"target": "10004",
"SUID": 10097,
"selected": false,
"source": "10006",
"id": "10097"
}
},
{
"selected": false,
"data": {
"KEGG_REACTION_TYPE": "irreversible",
"target": "10004",
"SUID": 10146,
"selected": false,
"source": "10005",
"id": "10146"
}
},
{
"selected": false,
"data": {
"KEGG_REACTION_TYPE": "irreversible",
"target": "10003",
"SUID": 10148,
"selected": false,
"source": "10004",
"id": "10148"
}
},
{
"selected": false,
"data": {
"KEGG_REACTION_TYPE": "irreversible",
"target": "10007",
"SUID": 10147,
"selected": false,
"source": "10004",
"id": "10147"
}
},
{
"selected": false,
"data": {
"KEGG_RELATION_TYPE": "ECrel",
"target": "10002",
"SUID": 10098,
"selected": false,
"source": "10004",
"id": "10098"
}
},
{
"selected": false,
"data": {
"KEGG_REACTION_TYPE": "irreversible",
"target": "10002",
"SUID": 10143,
"selected": false,
"source": "10003",
"id": "10143"
}
},
{
"selected": false,
"data": {
"KEGG_REACTION_TYPE": "irreversible",
"target": "10001",
"SUID": 10144,
"selected": false,
"source": "10002",
"id": "10144"
}
},
{
"selected": false,
"data": {
"KEGG_RELATION_TYPE": "maplink",
"target": "9972",
"SUID": 10018,
"selected": false,
"source": "10002",
"id": "10018"
}
},
{
"selected": false,
"data": {
"KEGG_RELATION_TYPE": "ECrel",
"target": "9970",
"SUID": 10017,
"selected": false,
"source": "10002",
"id": "10017"
}
},
{
"selected": false,
"data": {
"KEGG_REACTION_TYPE": "irreversible",
"target": "10004",
"SUID": 10145,
"selected": false,
"source": "10001",
"id": "10145"
}
},
{
"selected": false,
"data": {
"KEGG_REACTION_TYPE": "irreversible",
"target": "9956",
"SUID": 10107,
"selected": false,
"source": "10000",
"id": "10107"
}
},
{
"selected": false,
"data": {
"KEGG_REACTION_TYPE": "irreversible",
"target": "9955",
"SUID": 10105,
"selected": false,
"source": "9999",
"id": "10105"
}
},
{
"selected": false,
"data": {
"KEGG_REACTION_TYPE": "reversible",
"target": "9957",
"SUID": 10112,
"selected": false,
"source": "9998",
"id": "10112"
}
},
{
"selected": false,
"data": {
"KEGG_REACTION_TYPE": "reversible",
"target": "9957",
"SUID": 10111,
"selected": false,
"source": "9997",
"id": "10111"
}
},
{
"selected": false,
"data": {
"KEGG_REACTION_TYPE": "reversible",
"target": "9954",
"SUID": 10102,
"selected": false,
"source": "9997",
"id": "10102"
}
},
{
"selected": false,
"data": {
"KEGG_REACTION_TYPE": "irreversible",
"target": "9955",
"SUID": 10104,
"selected": false,
"source": "9995",
"id": "10104"
}
},
{
"selected": false,
"data": {
"KEGG_REACTION_TYPE": "irreversible",
"target": "9956",
"SUID": 10108,
"selected": false,
"source": "9994",
"id": "10108"
}
},
{
"selected": false,
"data": {
"KEGG_REACTION_TYPE": "reversible",
"target": "9967",
"SUID": 10133,
"selected": false,
"source": "9993",
"id": "10133"
}
},
{
"selected": false,
"data": {
"KEGG_REACTION_TYPE": "reversible",
"target": "9964",
"SUID": 10127,
"selected": false,
"source": "9992",
"id": "10127"
}
},
{
"selected": false,
"data": {
"KEGG_REACTION_TYPE": "reversible",
"target": "9959",
"SUID": 10116,
"selected": false,
"source": "9992",
"id": "10116"
}
},
{
"selected": false,
"data": {
"KEGG_REACTION_TYPE": "reversible",
"target": "9958",
"SUID": 10114,
"selected": false,
"source": "9992",
"id": "10114"
}
},
{
"selected": false,
"data": {
"KEGG_REACTION_TYPE": "reversible",
"target": "9966",
"SUID": 10131,
"selected": false,
"source": "9991",
"id": "10131"
}
},
{
"selected": false,
"data": {
"KEGG_REACTION_TYPE": "reversible",
"target": "9962",
"SUID": 10122,
"selected": false,
"source": "9990",
"id": "10122"
}
},
{
"selected": false,
"data": {
"KEGG_REACTION_TYPE": "reversible",
"target": "9961",
"SUID": 10120,
"selected": false,
"source": "9990",
"id": "10120"
}
},
{
"selected": false,
"data": {
"KEGG_REACTION_TYPE": "reversible",
"target": "9969",
"SUID": 10138,
"selected": false,
"source": "9989",
"id": "10138"
}
},
{
"selected": false,
"data": {
"KEGG_REACTION_TYPE": "reversible",
"target": "9965",
"SUID": 10129,
"selected": false,
"source": "9989",
"id": "10129"
}
},
{
"selected": false,
"data": {
"KEGG_REACTION_TYPE": "reversible",
"target": "10008",
"SUID": 10151,
"selected": false,
"source": "9988",
"id": "10151"
}
},
{
"selected": false,
"data": {
"KEGG_REACTION_TYPE": "reversible",
"target": "9968",
"SUID": 10136,
"selected": false,
"source": "9988",
"id": "10136"
}
},
{
"selected": false,
"data": {
"KEGG_REACTION_TYPE": "reversible",
"target": "9963",
"SUID": 10125,
"selected": false,
"source": "9988",
"id": "10125"
}
},
{
"selected": false,
"data": {
"KEGG_REACTION_TYPE": "reversible",
"target": "9960",
"SUID": 10118,
"selected": false,
"source": "9987",
"id": "10118"
}
},
{
"selected": false,
"data": {
"KEGG_REACTION_TYPE": "irreversible",
"target": "10013",
"SUID": 10154,
"selected": false,
"source": "9986",
"id": "10154"
}
},
{
"selected": false,
"data": {
"KEGG_REACTION_TYPE": "reversible",
"target": "9968",
"SUID": 10135,
"selected": false,
"source": "9986",
"id": "10135"
}
},
{
"selected": false,
"data": {
"KEGG_REACTION_TYPE": "reversible",
"target": "9963",
"SUID": 10124,
"selected": false,
"source": "9986",
"id": "10124"
}
},
{
"selected": false,
"data": {
"KEGG_REACTION_TYPE": "irreversible",
"target": "10002",
"SUID": 10142,
"selected": false,
"source": "9984",
"id": "10142"
}
},
{
"selected": false,
"data": {
"KEGG_REACTION_TYPE": "irreversible",
"target": "9970",
"SUID": 10140,
"selected": false,
"source": "9984",
"id": "10140"
}
},
{
"selected": false,
"data": {
"KEGG_RELATION_TYPE": "maplink",
"target": "9960",
"SUID": 10085,
"selected": false,
"source": "9983",
"id": "10085"
}
},
{
"selected": false,
"data": {
"KEGG_RELATION_TYPE": "maplink",
"target": "9961",
"SUID": 10084,
"selected": false,
"source": "9983",
"id": "10084"
}
},
{
"selected": false,
"data": {
"KEGG_RELATION_TYPE": "maplink",
"target": "9976",
"SUID": 10083,
"selected": false,
"source": "9983",
"id": "10083"
}
},
{
"selected": false,
"data": {
"KEGG_RELATION_TYPE": "maplink",
"target": "9977",
"SUID": 10082,
"selected": false,
"source": "9983",
"id": "10082"
}
},
{
"selected": false,
"data": {
"KEGG_RELATION_TYPE": "maplink",
"target": "9964",
"SUID": 10066,
"selected": false,
"source": "9982",
"id": "10066"
}
},
{
"selected": false,
"data": {
"KEGG_RELATION_TYPE": "maplink",
"target": "10013",
"SUID": 10050,
"selected": false,
"source": "9981",
"id": "10050"
}
},
{
"selected": false,
"data": {
"KEGG_RELATION_TYPE": "maplink",
"target": "9970",
"SUID": 10049,
"selected": false,
"source": "9981",
"id": "10049"
}
},
{
"selected": false,
"data": {
"KEGG_RELATION_TYPE": "maplink",
"target": "9968",
"SUID": 10048,
"selected": false,
"source": "9981",
"id": "10048"
}
},
{
"selected": false,
"data": {
"KEGG_RELATION_TYPE": "maplink",
"target": "9963",
"SUID": 10047,
"selected": false,
"source": "9981",
"id": "10047"
}
},
{
"selected": false,
"data": {
"KEGG_RELATION_TYPE": "maplink",
"target": "9969",
"SUID": 10046,
"selected": false,
"source": "9981",
"id": "10046"
}
},
{
"selected": false,
"data": {
"KEGG_RELATION_TYPE": "maplink",
"target": "9957",
"SUID": 10073,
"selected": false,
"source": "9980",
"id": "10073"
}
},
{
"selected": false,
"data": {
"KEGG_RELATION_TYPE": "maplink",
"target": "9964",
"SUID": 10065,
"selected": false,
"source": "9979",
"id": "10065"
}
},
{
"selected": false,
"data": {
"KEGG_RELATION_TYPE": "maplink",
"target": "9982",
"SUID": 10064,
"selected": false,
"source": "9979",
"id": "10064"
}
},
{
"selected": false,
"data": {
"KEGG_RELATION_TYPE": "maplink",
"target": "9960",
"SUID": 10088,
"selected": false,
"source": "9977",
"id": "10088"
}
},
{
"selected": false,
"data": {
"KEGG_RELATION_TYPE": "maplink",
"target": "9961",
"SUID": 10087,
"selected": false,
"source": "9977",
"id": "10087"
}
},
{
"selected": false,
"data": {
"KEGG_RELATION_TYPE": "maplink",
"target": "9976",
"SUID": 10086,
"selected": false,
"source": "9977",
"id": "10086"
}
},
{
"selected": false,
"data": {
"KEGG_RELATION_TYPE": "maplink",
"target": "9960",
"SUID": 10090,
"selected": false,
"source": "9976",
"id": "10090"
}
},
{
"selected": false,
"data": {
"KEGG_RELATION_TYPE": "maplink",
"target": "9961",
"SUID": 10089,
"selected": false,
"source": "9976",
"id": "10089"
}
},
{
"selected": false,
"data": {
"KEGG_RELATION_TYPE": "maplink",
"target": "9963",
"SUID": 10037,
"selected": false,
"source": "9975",
"id": "10037"
}
},
{
"selected": false,
"data": {
"KEGG_RELATION_TYPE": "maplink",
"target": "9968",
"SUID": 10036,
"selected": false,
"source": "9975",
"id": "10036"
}
},
{
"selected": false,
"data": {
"KEGG_RELATION_TYPE": "maplink",
"target": "10008",
"SUID": 10035,
"selected": false,
"source": "9975",
"id": "10035"
}
},
{
"selected": false,
"data": {
"KEGG_RELATION_TYPE": "maplink",
"target": "9963",
"SUID": 10030,
"selected": false,
"source": "9974",
"id": "10030"
}
},
{
"selected": false,
"data": {
"KEGG_RELATION_TYPE": "maplink",
"target": "9968",
"SUID": 10029,
"selected": false,
"source": "9974",
"id": "10029"
}
},
{
"selected": false,
"data": {
"KEGG_RELATION_TYPE": "maplink",
"target": "10008",
"SUID": 10028,
"selected": false,
"source": "9974",
"id": "10028"
}
},
{
"selected": false,
"data": {
"KEGG_RELATION_TYPE": "maplink",
"target": "9975",
"SUID": 10027,
"selected": false,
"source": "9974",
"id": "10027"
}
},
{
"selected": false,
"data": {
"KEGG_RELATION_TYPE": "maplink",
"target": "10010",
"SUID": 10026,
"selected": false,
"source": "9974",
"id": "10026"
}
},
{
"selected": false,
"data": {
"KEGG_RELATION_TYPE": "maplink",
"target": "9963",
"SUID": 10025,
"selected": false,
"source": "9973",
"id": "10025"
}
},
{
"selected": false,
"data": {
"KEGG_RELATION_TYPE": "maplink",
"target": "9968",
"SUID": 10024,
"selected": false,
"source": "9973",
"id": "10024"
}
},
{
"selected": false,
"data": {
"KEGG_RELATION_TYPE": "maplink",
"target": "10008",
"SUID": 10023,
"selected": false,
"source": "9973",
"id": "10023"
}
},
{
"selected": false,
"data": {
"KEGG_RELATION_TYPE": "maplink",
"target": "9975",
"SUID": 10022,
"selected": false,
"source": "9973",
"id": "10022"
}
},
{
"selected": false,
"data": {
"KEGG_RELATION_TYPE": "maplink",
"target": "10010",
"SUID": 10021,
"selected": false,
"source": "9973",
"id": "10021"
}
},
{
"selected": false,
"data": {
"KEGG_RELATION_TYPE": "maplink",
"target": "9974",
"SUID": 10020,
"selected": false,
"source": "9973",
"id": "10020"
}
},
{
"selected": false,
"data": {
"KEGG_RELATION_TYPE": "maplink",
"target": "10013",
"SUID": 10045,
"selected": false,
"source": "9971",
"id": "10045"
}
},
{
"selected": false,
"data": {
"KEGG_RELATION_TYPE": "maplink",
"target": "9970",
"SUID": 10044,
"selected": false,
"source": "9971",
"id": "10044"
}
},
{
"selected": false,
"data": {
"KEGG_RELATION_TYPE": "maplink",
"target": "9968",
"SUID": 10043,
"selected": false,
"source": "9971",
"id": "10043"
}
},
{
"selected": false,
"data": {
"KEGG_RELATION_TYPE": "maplink",
"target": "9963",
"SUID": 10042,
"selected": false,
"source": "9971",
"id": "10042"
}
},
{
"selected": false,
"data": {
"KEGG_RELATION_TYPE": "maplink",
"target": "9969",
"SUID": 10041,
"selected": false,
"source": "9971",
"id": "10041"
}
},
{
"selected": false,
"data": {
"KEGG_RELATION_TYPE": "maplink",
"target": "9981",
"SUID": 10040,
"selected": false,
"source": "9971",
"id": "10040"
}
},
{
"selected": false,
"data": {
"KEGG_REACTION_TYPE": "irreversible",
"target": "9986",
"SUID": 10141,
"selected": false,
"source": "9970",
"id": "10141"
}
},
{
"selected": false,
"data": {
"KEGG_RELATION_TYPE": "ECrel",
"target": "10013",
"SUID": 10059,
"selected": false,
"source": "9970",
"id": "10059"
}
},
{
"selected": false,
"data": {
"KEGG_RELATION_TYPE": "maplink",
"target": "9972",
"SUID": 10019,
"selected": false,
"source": "9970",
"id": "10019"
}
},
{
"selected": false,
"data": {
"KEGG_REACTION_TYPE": "reversible",
"target": "9986",
"SUID": 10139,
"selected": false,
"source": "9969",
"id": "10139"
}
},
{
"selected": false,
"data": {
"KEGG_RELATION_TYPE": "ECrel",
"target": "9965",
"SUID": 10060,
"selected": false,
"source": "9969",
"id": "10060"
}
},
{
"selected": false,
"data": {
"KEGG_RELATION_TYPE": "ECrel",
"target": "10013",
"SUID": 10054,
"selected": false,
"source": "9969",
"id": "10054"
}
},
{
"selected": false,
"data": {
"KEGG_RELATION_TYPE": "ECrel",
"target": "9970",
"SUID": 10053,
"selected": false,
"source": "9969",
"id": "10053"
}
},
{
"selected": false,
"data": {
"KEGG_RELATION_TYPE": "ECrel",
"target": "9968",
"SUID": 10052,
"selected": false,
"source": "9969",
"id": "10052"
}
},
{
"selected": false,
"data": {
"KEGG_RELATION_TYPE": "ECrel",
"target": "9963",
"SUID": 10051,
"selected": false,
"source": "9969",
"id": "10051"
}
},
{
"selected": false,
"data": {
"KEGG_REACTION_TYPE": "reversible",
"target": "9993",
"SUID": 10137,
"selected": false,
"source": "9968",
"id": "10137"
}
},
{
"selected": false,
"data": {
"KEGG_RELATION_TYPE": "ECrel",
"target": "9967",
"SUID": 10095,
"selected": false,
"source": "9968",
"id": "10095"
}
},
{
"selected": false,
"data": {
"KEGG_RELATION_TYPE": "ECrel",
"target": "10013",
"SUID": 10058,
"selected": false,
"source": "9968",
"id": "10058"
}
},
{
"selected": false,
"data": {
"KEGG_RELATION_TYPE": "ECrel",
"target": "9970",
"SUID": 10057,
"selected": false,
"source": "9968",
"id": "10057"
}
},
{
"selected": false,
"data": {
"KEGG_REACTION_TYPE": "reversible",
"target": "9991",
"SUID": 10134,
"selected": false,
"source": "9967",
"id": "10134"
}
},
{
"selected": false,
"data": {
"KEGG_REACTION_TYPE": "reversible",
"target": "9990",
"SUID": 10132,
"selected": false,
"source": "9966",
"id": "10132"
}
},
{
"selected": false,
"data": {
"KEGG_RELATION_TYPE": "ECrel",
"target": "9961",
"SUID": 10093,
"selected": false,
"source": "9966",
"id": "10093"
}
},
{
"selected": false,
"data": {
"KEGG_RELATION_TYPE": "ECrel",
"target": "9962",
"SUID": 10092,
"selected": false,
"source": "9966",
"id": "10092"
}
},
{
"selected": false,
"data": {
"KEGG_REACTION_TYPE": "reversible",
"target": "9985",
"SUID": 10130,
"selected": false,
"source": "9965",
"id": "10130"
}
},
{
"selected": false,
"data": {
"KEGG_RELATION_TYPE": "ECrel",
"target": "9964",
"SUID": 10063,
"selected": false,
"source": "9965",
"id": "10063"
}
},
{
"selected": false,
"data": {
"KEGG_RELATION_TYPE": "maplink",
"target": "9982",
"SUID": 10062,
"selected": false,
"source": "9965",
"id": "10062"
}
},
{
"selected": false,
"data": {
"KEGG_RELATION_TYPE": "maplink",
"target": "9979",
"SUID": 10061,
"selected": false,
"source": "9965",
"id": "10061"
}
},
{
"selected": false,
"data": {
"KEGG_REACTION_TYPE": "reversible",
"target": "9985",
"SUID": 10128,
"selected": false,
"source": "9964",
"id": "10128"
}
},
{
"selected": false,
"data": {
"KEGG_RELATION_TYPE": "ECrel",
"target": "9958",
"SUID": 10068,
"selected": false,
"source": "9964",
"id": "10068"
}
},
{
"selected": false,
"data": {
"KEGG_RELATION_TYPE": "ECrel",
"target": "9959",
"SUID": 10067,
"selected": false,
"source": "9964",
"id": "10067"
}
},
{
"selected": false,
"data": {
"KEGG_REACTION_TYPE": "reversible",
"target": "9993",
"SUID": 10126,
"selected": false,
"source": "9963",
"id": "10126"
}
},
{
"selected": false,
"data": {
"KEGG_RELATION_TYPE": "ECrel",
"target": "9967",
"SUID": 10096,
"selected": false,
"source": "9963",
"id": "10096"
}
},
{
"selected": false,
"data": {
"KEGG_RELATION_TYPE": "ECrel",
"target": "10013",
"SUID": 10056,
"selected": false,
"source": "9963",
"id": "10056"
}
},
{
"selected": false,
"data": {
"KEGG_RELATION_TYPE": "ECrel",
"target": "9970",
"SUID": 10055,
"selected": false,
"source": "9963",
"id": "10055"
}
},
{
"selected": false,
"data": {
"KEGG_REACTION_TYPE": "reversible",
"target": "9987",
"SUID": 10123,
"selected": false,
"source": "9962",
"id": "10123"
}
},
{
"selected": false,
"data": {
"KEGG_RELATION_TYPE": "ECrel",
"target": "9961",
"SUID": 10094,
"selected": false,
"source": "9962",
"id": "10094"
}
},
{
"selected": false,
"data": {
"KEGG_REACTION_TYPE": "reversible",
"target": "9999",
"SUID": 10121,
"selected": false,
"source": "9961",
"id": "10121"
}
},
{
"selected": false,
"data": {
"KEGG_RELATION_TYPE": "ECrel",
"target": "9960",
"SUID": 10091,
"selected": false,
"source": "9961",
"id": "10091"
}
},
{
"selected": false,
"data": {
"KEGG_REACTION_TYPE": "reversible",
"target": "9999",
"SUID": 10119,
"selected": false,
"source": "9960",
"id": "10119"
}
},
{
"selected": false,
"data": {
"KEGG_REACTION_TYPE": "reversible",
"target": "9998",
"SUID": 10117,
"selected": false,
"source": "9959",
"id": "10117"
}
},
{
"selected": false,
"data": {
"KEGG_RELATION_TYPE": "ECrel",
"target": "9957",
"SUID": 10070,
"selected": false,
"source": "9959",
"id": "10070"
}
},
{
"selected": false,
"data": {
"KEGG_RELATION_TYPE": "maplink",
"target": "9980",
"SUID": 10069,
"selected": false,
"source": "9959",
"id": "10069"
}
},
{
"selected": false,
"data": {
"KEGG_REACTION_TYPE": "reversible",
"target": "9998",
"SUID": 10115,
"selected": false,
"source": "9958",
"id": "10115"
}
},
{
"selected": false,
"data": {
"KEGG_RELATION_TYPE": "ECrel",
"target": "9957",
"SUID": 10072,
"selected": false,
"source": "9958",
"id": "10072"
}
},
{
"selected": false,
"data": {
"KEGG_RELATION_TYPE": "maplink",
"target": "9980",
"SUID": 10071,
"selected": false,
"source": "9958",
"id": "10071"
}
},
{
"selected": false,
"data": {
"KEGG_REACTION_TYPE": "reversible",
"target": "9996",
"SUID": 10113,
"selected": false,
"source": "9957",
"id": "10113"
}
},
{
"selected": false,
"data": {
"KEGG_RELATION_TYPE": "ECrel",
"target": "9954",
"SUID": 10075,
"selected": false,
"source": "9957",
"id": "10075"
}
},
{
"selected": false,
"data": {
"KEGG_RELATION_TYPE": "ECrel",
"target": "9956",
"SUID": 10074,
"selected": false,
"source": "9957",
"id": "10074"
}
},
{
"selected": false,
"data": {
"KEGG_REACTION_TYPE": "irreversible",
"target": "9995",
"SUID": 10110,
"selected": false,
"source": "9956",
"id": "10110"
}
},
{
"selected": false,
"data": {
"KEGG_REACTION_TYPE": "irreversible",
"target": "9996",
"SUID": 10109,
"selected": false,
"source": "9956",
"id": "10109"
}
},
{
"selected": false,
"data": {
"KEGG_REACTION_TYPE": "irreversible",
"target": "10000",
"SUID": 10106,
"selected": false,
"source": "9955",
"id": "10106"
}
},
{
"selected": false,
"data": {
"KEGG_RELATION_TYPE": "ECrel",
"target": "9960",
"SUID": 10081,
"selected": false,
"source": "9955",
"id": "10081"
}
},
{
"selected": false,
"data": {
"KEGG_RELATION_TYPE": "ECrel",
"target": "9961",
"SUID": 10080,
"selected": false,
"source": "9955",
"id": "10080"
}
},
{
"selected": false,
"data": {
"KEGG_RELATION_TYPE": "maplink",
"target": "9976",
"SUID": 10079,
"selected": false,
"source": "9955",
"id": "10079"
}
},
{
"selected": false,
"data": {
"KEGG_RELATION_TYPE": "maplink",
"target": "9977",
"SUID": 10078,
"selected": false,
"source": "9955",
"id": "10078"
}
},
{
"selected": false,
"data": {
"KEGG_RELATION_TYPE": "maplink",
"target": "9983",
"SUID": 10077,
"selected": false,
"source": "9955",
"id": "10077"
}
},
{
"selected": false,
"data": {
"KEGG_REACTION_TYPE": "reversible",
"target": "9994",
"SUID": 10103,
"selected": false,
"source": "9954",
"id": "10103"
}
},
{
"selected": false,
"data": {
"KEGG_RELATION_TYPE": "ECrel",
"target": "9956",
"SUID": 10076,
"selected": false,
"source": "9954",
"id": "10076"
}
}
]
},
"target_cytoscapejs_version": "~2.1",
"data": {
"KEGG_PATHWAY_LINK": "http://www.kegg.jp/kegg-bin/show_pathway?hsa00020",
"name": "Citrate cycle (TCA cycle)",
"SUID": 9942,
"__Annotations": [],
"selected": true,
"KEGG_PATHWAY_ID": "path:hsa00020",
"shared_name": "Citrate cycle (TCA cycle)",
"KEGG_PATHWAY_IMAGE": "http://www.kegg.jp/kegg/pathway/hsa/hsa00020.png"
},
"generated_by": "cytoscape-3.1.1",
"format_version": "1.0"
}
In [7]:
ba1 = nx.barabasi_albert_graph(100,3)
clustering = nx.clustering(ba1)
degrees = nx.degree(ba1)
nx.set_node_attributes(ba1, 'degree', degrees)
nx.set_node_attributes(ba1, 'clustering', clustering)
min_degree = min(degrees.values())
max_degree = max(degrees.values())
min_cl = min(clustering.values())
max_cl = max(clustering.values())
In [8]:
# Convert to Cytoscape.js compatible format
ba1_cyjs = cy.from_networkx(ba1)
# Create custom Visual Style programatically
new_directed = styles['Directed']
new_directed.append({
'selector':'node',
'css':{
'width': 'mapData(degree,' + str(min_degree) + ',' + str(max_degree) + ', 20, 80)',
'height': 'mapData(degree,' + str(min_degree) + ',' + str(max_degree) + ', 20, 80)',
'font-size': 'mapData(degree,' + str(min_degree) + ',' + str(max_degree) + ', 10, 50)',
'border-width': 1,
'border-width': 0,
'opacity': 0.9,
'color': '#222222',
'background-color': 'mapData(clustering,' + str(min_cl) + ',' + str(max_cl) + ', white, red)'
}
})
new_directed.append({
'selector':'edge',
'css':{
'width':0.5,
'opacity': 0.5,
'line-color': '#aaaaaa'
}
})
networks['BA Graph 1'] = ba1_cyjs
interact(render_graph,
Network = DropdownWidget(values=networks, value=ba1_cyjs),
Style = DropdownWidget(values=styles, value=styles['Directed']),
Layout = DropdownWidget(values=layouts, value=layouts['Breadthfirst'])
)
Out[8]:
<function __main__.render_graph>
In [9]:
# Generate with igraph
generated1 = Graph.Watts_Strogatz(1,600, 4, 0.15)
layout = generated1.layout("lgl")
# Community detection
communities = generated1.community_label_propagation()
com_count = len(communities)
print('Communities = ' + str(com_count))
rainbow = RainbowPalette(n=com_count)
generated1.vs['community'] = communities.membership
print(generated1.vs[100]['community'])
# Assign color
for node in generated1.vs:
assigned_color = rainbow[node['community']]
node['color'] = 'rgba(' + str(assigned_color[0]*255) +',' + str(assigned_color[1]*255) + ',' + str(assigned_color[2]*255) + ')'
print(generated1.vs.attributes())
generated1_cyjs = cy.from_igraph(generated1, layout, 20)
# Override the existing style
new_style = styles['default']
new_style.append({
'selector':'node',
'css':{
'width':30,
'height':30,
'border-width': 0,
'content': 'data(community)',
'font-size': 22,
'background-color': 'data(color)'
}
})
new_style.append({
'selector':'edge',
'css':{
'width':2,
'opacity': 0.4
}
})
Communities = 52
9
['color', 'community']
In [10]:
networks['WS200'] = generated1_cyjs
interact(render_graph,
Network = DropdownWidget(values=networks, value=generated1_cyjs),
Style = DropdownWidget(values=styles, value=styles['default']),
Layout = DropdownWidget(values=layouts, value=layouts['Preset'])
)
Out[10]:
<function __main__.render_graph>
In [11]:
start = generated1.vs[1]
end = generated1.vs[156]
paths = generated1.get_all_shortest_paths(start, end)
communities = generated1.community_label_propagation()
print(len(communities))
generated1.vs['community'] = communities.membership
print(generated1.vs['community'])
edges = []
for path in paths:
for index, v in enumerate(path):
if index < len(path)-1:
edge = (v, path[index+1])
edges.append(edge)
53
[0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 8, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 18, 18, 18, 18, 18, 18, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 20, 20, 20, 20, 20, 20, 20, 20, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 24, 24, 24, 24, 24, 24, 24, 24, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 27, 27, 27, 27, 27, 27, 27, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 29, 29, 29, 29, 29, 14, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 35, 35, 35, 35, 35, 35, 36, 36, 36, 36, 36, 36, 36, 36, 36, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 38, 38, 38, 38, 38, 38, 38, 38, 38, 39, 39, 39, 39, 39, 39, 39, 40, 40, 40, 40, 40, 40, 40, 40, 40, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 42, 41, 42, 42, 42, 42, 42, 42, 42, 42, 42, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 45, 45, 45, 45, 45, 45, 45, 45, 45, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 47, 47, 47, 47, 47, 47, 47, 47, 48, 48, 48, 48, 48, 48, 48, 48, 48, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 50, 49, 50, 50, 50, 51, 51, 51, 51, 51, 51, 51, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
In [11]:
Content source: muratcemkose/cy-rest-python
Similar notebooks: