A Python library for parsing OBO (Open Biological and Biomedical Ontologies) files.
Project description
A Python library for parsing OBO (Open Biological and Biomedical Ontologies) files.
Installation
pip install obo_parser
Usage
Use in Commmand Line
obo_parser headers -f path/to/obo_file.obo
obo_parser headers -f path/to/obo_file.obo -o headers.json
obo_parser terms -f path/to/obo_file.obo
obo_parser terms -f path/to/obo_file.obo -o terms.jl
Use in Python
from obo_parser.parser import OBO_Parser
obo = OBO_Parser('./hp.obo')
print(obo.headers)
for term in obo.terms:
print(term)
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
obo_parser-1.0.0.tar.gz
(3.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file obo_parser-1.0.0.tar.gz.
File metadata
- Download URL: obo_parser-1.0.0.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b2d34db18cdf6aa31b7522577ad29b38778cb6a558c342f3c2899ea9c70f8cf1
|
|
| MD5 |
c83ef9f47736acd247fcd75b51b28509
|
|
| BLAKE2b-256 |
b96e78032e975afbd47b5ee391b5e73551ff487f0e67299c6f0331cb82431e71
|
File details
Details for the file obo_parser-1.0.0-py3-none-any.whl.
File metadata
- Download URL: obo_parser-1.0.0-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3cfe2098e25852d9efa0f235f0525b38ecab7bb8cae7e621df435b698231f696
|
|
| MD5 |
9d9ee63fda489fe0fedcbf0bfc8f2316
|
|
| BLAKE2b-256 |
5d95b65c90b4cb5a2fbbe8619795dc68066130c18063f24b8e7a59f50a500af8
|