Help!!! As a biologist I am just interested in visualizing and displaying my data and I am very new to programming. Here I have a set of data in a excel file, which looks like this-
I guess it's very perfect to display my data set using Sunburst chart in Protovis.
But I have stuck with preparing the data, which has to be in json format. If you notice that the structure of the data is hierarchical (Parent - Child hierarchy). Being not so good in programming (just know a little bit of Python) it's difficult to go ahead.
I need a python script which can read my excel file and generate a json as specified above.
In my data set, there is a parent and child relationship. L1 is Parent to L2 and L2 is parent to L3, so on...
- >L1 (PARENT) - L2 (CHILD)
- >L2 (PARENT) - L3 (CHILD)
- >L3 (PARENT) - L4 (CHILD)
- >L4 (PARENT) - L5 (CHILD)
- >L5 (PARENT) - GENE_NAME (CHILD)
Hope I can get my data set visualized in the above format. But I should have my data-set in the json format specified in here
I was looking to display my data something like this.
Any sort of help appreciated.
Thanks for the script, it is very useful. But I still have one more issue to resolve. I generated the json file with my dataset but now the problem is with handling data.
As you can see from the data, there are few blank cells in the data set. Which means that L1, L2, L3, GENE_NAME are mandatory fields and L4, L5 instances are not mandatory (may be present or may not be). For instance for a data point when there is no data in L4, L5 the json which I get will be 2 blank quotes. This should be handled and removed.
Could you help me out in handling these data. Much appreciated help. Cheers!
Sure! I edited my answer. This should do the trick.