Skip to content

Instantly share code, notes, and snippets.

@dosumis
Created May 20, 2015 16:08
Show Gist options
  • Save dosumis/357e19813d989c4f45be to your computer and use it in GitHub Desktop.
Save dosumis/357e19813d989c4f45be to your computer and use it in GitHub Desktop.
import json
j = open("Jenett2012.json", "r")
jj = json.loads(j.read())
out = open("VFB2FBbt.tsv", "w+")
out.write("VFBid\tFBtp\n")
for k, v in jj.items():
for t in v['Types']:
if t['isAnonymous'] and t['relId'] == 'RO_0002292':
out.write(k + "\t" + t['objectId'] + "\n")
out.close()
j.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment