Skip to content
Generate JSON and XML file from a MATLAB cell array. Format of JSON compatible with D3 hierarchical tree (Radial Reingold–Tilford Tree) and XML format compatible with iTol (interactive online tool).
MATLAB
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitattributes
.gitignore
License.txt
README.md
createJSON.m
createXML.m
license

README.md

generate-JSON-XML

Generate JSON and XML file from a MATLAB cell array. Format of JSON compatible with D3 hierarchical tree (Radial Reingold–Tilford Tree) and XML format compatible with iTol (interactive online tool).

How to use

Uses a MATLAB string cell array, where columns are hierarchical levels and rows are different classes/samples. Last column represents the child nodes/classes i.e. the classes at the bottom-most hierarchy level.

Function takes this cell array as an input argument and generates a JSON (createJSON.m) or XML (createXML.m) file in the same directory.

More details are provided on http://www.dietergalea.com/vis-hierarchical-trees/

You can’t perform that action at this time.