This is a file conversion utility for CX. Main function of this tool is data format conversion from/to SIF, Cytoscape.js JSON and many others.
- 5/5/2016: Repository moved to cyService.
- 11/20/2015: Pre alpha. Simply converts CX to basic Cytoscpae.js JSON.
In addition to build executables, you need to generate
Run:
go-bindata -o converter/ data/
to generate new bundle. And copy it to
-
From CX
- Cytoscape.js (both Style and Graph)
-
To CX
- SIF (Simple Interaction Format)
- Cytoscape.js (ONGOING)
- MITAB (TODO)
- GraphML (TODO)
This is a small collection of tools to support round-trip for CX and related documents.
- Show Help
cxtool -h
Or simply
cxtool
- Convert CX file into Cytoscape.js
cxtool input_file
We recommend to install jq for generating human-friendly output.
The following command creates nicely formatted Cytoscape.js JSON.
cxtool input_file | jq
Or, use pipe for input
cat network.cx | cxtool | jq .
curl http://example.com/network.cx | cxtool | jq . > cytoscapejs1.json
- Create CX from SIF
cxtool -f sif galFiltered.sif | jq | from_sif.cx
(TBD)
MIT License
Please send your question to (kono at ucsd edu).
© 2015 The Cytoscape Consortium