sudo apt install docker.io
Example:
FROM ubuntu:16.04
def gexf(nodes, edges, output_fn, nodes_meta=[], edges_meta=[]): | |
''' | |
<?xml version="1.0" encoding="UTF-8"?> | |
<gexf xmlns="http://www.gexf.net/1.2draft" version="1.2"> | |
<meta lastmodifieddate="2009-03-20"> | |
<creator>Gexf.net</creator> | |
<description>A hello world! file</description> | |
</meta> | |
<graph mode="static" defaultedgetype="directed"> | |
<attributes class="node"> |
def cytoscape_nodes(nodes): | |
ret = [] | |
for n in nodes: | |
ret.append("{ data: { id: '%s', name: '%s' } }" % (n['id'], n['name'])) | |
print ('NODES: {}'.format(len(ret))) | |
return ',\n'.join(ret) + '\n' | |
def cytoscape_edges(edges, remove_duplicate_edges = False): |