Question: CSV to JSON D3Js hierarchical flare.json can you help in Python
2
gravatar for gsnaveen2
3.0 years ago by
gsnaveen230
gsnaveen230 wrote:

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..

d3js json csv python • 2.2k views
ADD COMMENTlink modified 2.8 years ago by Biostar ♦♦ 20 • written 3.0 years ago by gsnaveen230
1

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.

ADD REPLYlink modified 3.0 years ago • written 3.0 years ago by ramesh.8v200
1

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

ADD REPLYlink written 3.0 years ago by gsnaveen230

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,

ADD REPLYlink written 3.0 years ago by gsnaveen230
1

Then it's already answered there

ADD REPLYlink modified 3.0 years ago • written 3.0 years ago by ramesh.8v200
1

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.

ADD REPLYlink written 3.0 years ago by SES8.2k
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1691 users visited in the last hour