This release is a pre-release and may not be stable for production use.
BioC XML format can be used to share text documents and annotations.
bioc exposes an API familiar to users of the standard library marshal and pickle modules.
Development of bioc happens on GitHub: https://github.com/yfpeng/pengyifan-pybioc
Getting started
Installing bioc
$ pip install --pre bioc
Encoding the BioC collection object `collection’:
import bioc
# Serialize ``collection`` to a BioC formatted ``str``.
bioc.dumps(collection)
# Serialize ``collection`` as a BioC formatted stream to ``fp``.
with open(filename, 'w') as fp
bioc.dump(collection, fp)
Compact encoding:
import bioc bioc.dumps(collection, pretty_print=False)
Decoding the BioC XML file:
import json
# Deserialize ``s`` to a BioC collection object.
collection = json.loads(s)
# Deserialize ``fp`` to a BioC collection object.
with open(filename, 'r') as fp:
bioc.load(fp)
Requirements
Developers
Yifan Peng (yifan.peng@nih.gov)
Acknowledgment
Webpage
The official BioC webpage is available with all up-to-date instructions, code, and corpora in the BioC format, and other research on, based on and related to BioC.
Reference
Comeau,D.C., Doğan,R.I., Ciccarese,P., Cohen,K.B., Krallinger,M., Leitner,F., Lu,Z., Peng,Y., Rinaldi,F., Torii,M., Valencia,V., Verspoor,K., Wiegers,T.C., Wu,C.H., Wilbur,W.J. (2013) BioC: A minimalist approach to interoperability for biomedical text processing. Database: The Journal of Biological Databases and Curation.
Peng,Y., Tudor,C., Torii,M., Wu,C.H., Vijay-Shanker,K. (2014) iSimp in BioC standard format: Enhancing the interoperability of a sentence simplification system. Database: The Journal of Biological Databases and Curation.
Marques,M., Rinaldi,F. (2012) PyBioC: a python implementation of the BioC core. In Proceedings of BioCreative IV workshop.
Metadata
Release files for bioc 1.0.dev22
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| bioc-1.0.dev22.tar.gz | 11.8 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| bioc-1.0.dev22-py2.7.egg | Legacy Egg format | - | - | Details |
Total release size: 14.3 kB
Release files / bioc-1.0.dev22.tar.gz
| Download URL | bioc-1.0.dev22.tar.gz |
|---|---|
| Size | 11.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
74ec68abda518d6d8b1614d2ab4e96b69fc54de3369576015008a4172b8949d8
|
|
BLAKE2b-256 checksum How to use checksums |
bc4b9a97f16faeddc10cf879dabba5be5ed4dd48146715632386eaeeffebbead
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / bioc-1.0.dev22-py2.7.egg
| Download URL | bioc-1.0.dev22-py2.7.egg |
|---|---|
| Size | 2.5 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
fe71d20d8fba2d5bf3d6107cc12184fdc99e39ac2060ec5ea4f4de7f14f2be5f
|
|
BLAKE2b-256 checksum How to use checksums |
114d0e357d942757065c619824fc3026f75143bf5b0296519e79f05bfa97dd3c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for bioc 1.0.dev22
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.