This is a service to generate network (graph) diagram from CX JSON.
git clone https://github.com/cytoscape-ci/graph-image-generator.git
cd graph-image-generator
docker build -t cytoscape-ci/graph-image-generator .
docker run -p 5000:5000 cytoscape-ci/graph-image-generator
- GET
Returns basic information of this service.
{
name: "graph-image-generator",
version: "v1",
build: "2-19-2016",
description: "Network image generator service. This service generates network images on the fly from any CX JSON.",
documents: "https://github.com/cytoscape-ci/graph-image-generator"
}
- POST
Generates PNG image from CX JSON. You can simply POST complete CX data as the body of request.
Curl
curl -X POST -v -H "content-type:application/json" --data-binary "@network1.cx" http://192.168.99.100:5000/image > network1.png
This command generates an image of network1.cx and save as network1.png in your current directory.
- POST
Generates an image from a CX JSON. You can specify image file format in the path parameter :format.
Supported image formats are:
- png
- svg
Curl
curl -X POST -v -H "content-type:application/json" --data-binary "@network1.cx" http://192.168.99.100:5000/image/svg > network1.svg
- POST
Generates an image from a CX JSON using graphviz as rendering engine. You can specify image file format in the path parameter :format.
Supported image formats are:
- png
- svg
Curl
curl -X POST -v -H "content-type:application/json" --data-binary "@network1.cx" http://192.168.99.100:5000/image/graphviz/svg > network1.svg