-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ubiome R notebook #10
base: master
Are you sure you want to change the base?
Conversation
install necessary packages build data frame from the api and public data info try to import json
On this repo, I think! https://github.com/OpenHumans/oh-ubiome-source |
the notebook can now import the public data in (valid) json, tsv and csv
I had some trouble getting it to run on my end:
Then I had a problem with getting the reference data loaded in. There's a lot of
And in the end the Just for fun I also tried loading my own data in the next steps but that also yielded an error: |
Could you give me the whole traceback for the |
Sure, running
I get the following output and
|
thanks for the traceback. Yes I did run it on openhumans. I'll take a look, but I think it's because one of the json files has unquoted strings (which is not valid json) The warnings can safely be ignored, maybe I should wrap the call in an |
Great, thanks so much! I was just asking as otherwise different package versions might be to blame for some weird behavior. I'm not sure how to best turn off the warnings (my own R skills are basically limited to making things look nice thanks to the |
Ready for testing
Additional remarks
Some of the ubiome json files are not valid json, or are in other format (csv and tab delimited). Ideally there should be a data validation when accepting the upload files (I can file an issue in the repo if you want). Anyway the r code in the notebook should handle the different formats 🎉