This is a test version of Biostars. For the public version, visit https://www.biostars.org.
CSV to JSON D3Js hierarchical flare.json can you help in Python

I am just using data from another question with an additional column..

L1  L2  L3  L4  L5  GENE_NAME   Values
Enzyme  Kinase  Protein Kinase  Ser_Thr Cmgc    MAPK11  1
Enzyme  Kinase  Protein Kinase  Tyr Tk  ABL1    2
Enzyme  Kinase  Protein Kinase  Tyr Tk  PDGFRB  3
Enzyme  Kinase  Protein Kinase  Tyr Tk  PDGFRA  4
Enzyme  Kinase  Protein Kinase  Ser_Thr Tkl ALK 5
Enzyme  Isomerase   Isomerase Other         gyrB    6
Enzyme  Oxidoreductase  Oxidoreductase Other            ALOX5   7
Enzyme  Oxidoreductase  Oxidoreductase Other            IMPDH1  8
Enzyme  Transferase Transferase Other           COMT    9
Enzyme  Oxidoreductase  Oxidoreductase Other            RRM1    10
Enzyme  Oxidoreductase  Oxidoreductase Other            PTGS2   11
Enzyme  Lyase   Lyase Other         POLB    12
Enzyme  Lyase   Lyase Other         CA5B    13
Enzyme  Hydrolase   Hydrolase Other         GAA 14
Enzyme  Protease    Metallo MAM M10A    MMP8    15
Enzyme  Lyase   Lyase Other         CA5A    16
Enzyme  Lyase   Lyase Other         CA7 17

To Create Protovis Sunburst Charts : Python Script To Create Dataset In Json Format (Or) Parent - Child Json

Want to create a similar chart in D3js.

https://www.jasondavies.com/coffee-wheel/

https://strongriley.github.io/d3//data/flare.json

which is using the following format a snipet. for the full sample file please refer to the flare.json file link just above { "name": "flare", "children": [ { "name": "analytics", "children": [

Thanks for helping... Many thanks in advance..

json d3js python csv

Properly format your data in your post, I'm not able to make any sense out of it. Better you paste in a table format.

just updated the questions with clarification. Please refer flare,json for the sample. Since it is a big file i have a link for it,

got it , new to this so .. learning.. thanks for highlighting it.

Where are you stuck? Were you just asking how to generate the json? This is confusing and a bit odd if the question you linked to has the solution.

0 answers

No answers yet.

Log in to answer this question.