Skip to content

Instantly share code, notes, and snippets.

@renaud
Created April 29, 2014 22:15
Show Gist options
  • Select an option

  • Save renaud/15804ab968cfa1d96c64 to your computer and use it in GitHub Desktop.

Select an option

Save renaud/15804ab968cfa1d96c64 to your computer and use it in GitHub Desktop.
Parse OBO
#http://techoverflow.net/blog/2013/11/18/a-geneontology-obo-v1.2-parser-in-python/
import go_obo_parser
for p in go_obo_parser.parseGOOBO('....../pro.obo'):
if 'is_a' in p and p['is_a'] == 'PR:000000001 ! protein':
print p['name']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment