Skip to main content

Python3 parser and network representation of Open Biological and Biomedical Ontologies (OBO)

Project description

Usage

from pobo import Parser

parser = Parser("file.obo")

parser.headers.get("format-version")
parser.headers.get("...")

for stanza in parser:
    stanza.name
    stanza.tags

    for tag, value in stanza.tags.items():
        ...

include modifiers

parser = Parser("file.obo", include_modifiers=True)

...

for tag, value in stanza.tags.items():
    value.value
    value.modifiers

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pobo-1.1.1.tar.gz (3.6 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page