OMOP2OWL-vocab
Convert OMOP vocab into OWL and SemanticSQL.
Prerequisites
- Python 3.9+
- Java 11+
- Docker
Installation
pip install omop2owl-vocabomop2owl-vocab --install
Dev installation
- Set up a virtual environment and activate it.
- Run:
make install
Running
Run: omop2owl-vocab OPTIONS
CLI
omop2owl-vocab --help
usage: omop2owl-vocab [-h] [-c CONCEPT_CSV_PATH] [-r CONCEPT_RELATIONSHIP_CSV_PATH] [-O OUTDIR] [-I ONTOLOGY_ID] [-o {merged,split,merged-post-split,rxnorm}]
[-v VOCABS [VOCABS ...]] [-R RELATIONSHIPS [RELATIONSHIPS ...]] [-S] [-e] [-s] [-C] [-M MEMORY] [-i]
Convert OMOP vocabularies to OWL and SemanticSQL.
options:
-h, --help show this help message and exit
-c CONCEPT_CSV_PATH, --concept-csv-path CONCEPT_CSV_PATH
Path to CSV of OMOP concept table.
-r CONCEPT_RELATIONSHIP_CSV_PATH, --concept-relationship-csv-path CONCEPT_RELATIONSHIP_CSV_PATH
Path to CSV of OMOP concept_relationship table.
-O OUTDIR, --outdir OUTDIR
Output directory.
-I ONTOLOGY_ID, --ontology-id ONTOLOGY_ID
Identifier for ontology. Used to generate a pURL and file name.
-o {merged,split,merged-post-split,rxnorm}, --output-type {merged,split,merged-post-split,rxnorm}
What output to generate? If "merged" will create an ONTOLOGY_ID.db file with all concepts of all vocabs merged into one. If "split" will
create an ONTOLOGY_ID-*.db file for each vocab. "merged-post-split" output will be as if running both "split" and "merged", but the
merging implementation is different. Use this option if running out of memory. If using "rxnorm", will create a specifically customized
ONTOLOGY_ID-RxNorm.db.
-v VOCABS [VOCABS ...], --vocabs VOCABS [VOCABS ...]
Used with `--output-type specific-vocabs-merged`. Which vocabularies to include in the output? Usage: --vocabs "Procedure Type" "Device
Type"
-R RELATIONSHIPS [RELATIONSHIPS ...], --relationships RELATIONSHIPS [RELATIONSHIPS ...]
Which relationship types from the concept_relationship table's relationship_id field to include? Default is "Is a" only. Passing "ALL"
includes everything. Ignored for --output-type options that are specific to a pre-set vocabulary (e.g. rxnorm). Usage: --realationships
"Is a" "Maps to"
-S, --skip-semsql In addition to .owl, also convert to a SemanticSQL .db? This is always True except when --output-type is all-merged-post-split and it is
creating initial .owl files to be merged.
-e, --exclude-singletons
Exclude terms that do not have any relationships. This only applies to --method robot.
-s, --semsql-only Use this if the .owl already exists and you just want to create a SemanticSQL .db.
-C, --use-cache Of outputs or intermediates already exist, use them.
-M MEMORY, --memory MEMORY
The amount of Java memory (GB) to allocate.
-i, --install Installs necessary docker images.
Metadata
Release files for omop2owl-vocab 1.3.5
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 | |
|---|---|---|---|---|
| omop2owl-vocab-1.3.5.tar.gz | 80.7 MB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| omop2owl_vocab-1.3.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 161.4 MB
Release files / omop2owl-vocab-1.3.5.tar.gz
| Download URL | omop2owl-vocab-1.3.5.tar.gz |
|---|---|
| Size | 80.7 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2aa619299d4a7044b109cf37f32449aff8083ebf5f3e33c59302edd2542cd3ba
|
|
BLAKE2b-256 checksum How to use checksums |
4da6fd92371a22c01bbc4afe4c213f10356767ed80cc229e51ab3944667ec9b9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.4
|
Release files / omop2owl_vocab-1.3.5-py3-none-any.whl
| Download URL | omop2owl_vocab-1.3.5-py3-none-any.whl |
|---|---|
| Size | 80.7 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6d6579ea03a97589bb3105675e033f7cee5d5bd4e4dc56918a465c2c84c8269d
|
|
BLAKE2b-256 checksum How to use checksums |
ff4a0b53ec8bb09f4d2a1b25f16200da0ca51b760fcd81f3c0517eb8aedaed1f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.4
|
Security for omop2owl-vocab 1.3.5
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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.