Skip to content

zachary822/oboparse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OBOparse

Introduction

OBO file parser implemented with pyparsing.

Example

from oboparse import obo_parser, parse_result_to_networkx
from urllib.request import urlopen
from io import TextIOWrapper

with urlopen('http://purl.obolibrary.org/obo/go.obo') as f:
    parse_result = obo_parser.parseFile(TextIOWrapper(f), parseAll=True)
    parse_result.pprint()
    
graph = parse_result_to_networkx(parse_result)

Reference

  1. https://owlcollab.github.io/oboformat/doc/obo-syntax.html
  2. https://owlcollab.github.io/oboformat/doc/GO.format.obo-1_4.html

License

MIT

About

OBO file parser

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages