joiningdata / lollipops

Lollipop-style mutation diagrams for annotating genetic variations.
GNU General Public License v3.0
182 stars 70 forks source link

Using a local JSON file #36

Closed grrchrr closed 6 years ago

grrchrr commented 6 years ago

Hey, is there maybe a minimal example for the usage of a local JSON file? - More specifically: Which of the graphical elements of the PFAM domain generator are recognized/ needed for lollipops to accurately perform the plotting? I converted my mutational data set to a JSON which works properly with the PFAM domain graphic generator: screen shot 2018-06-04 at 11 06 02 For lollipops I assumed that just the regions information is needed, so I reduced my JSON to that information kind, but I am still getting this error message: "json: cannot unmarshal string into Go struct field PfamGraphicFeature.display of type bool"

Hope you can help!

Greetings, grrchrr

pbnjay commented 6 years ago

Go's parser is a bit more strict, I believe the issue is that you quoted the bool values eg "display": "true" instead of "display": true