Skip to main content

Convert OMOP vocab into OWL and SemanticSQL.

Project description

OMOP2OWL-vocab

Convert OMOP vocab into OWL and SemanticSQL.

Prerequisites

Installation

  1. pip install omop2owl-vocab
  2. omop2owl-vocab --install

Dev installation

  1. Set up a virtual environment and activate it.
  2. 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.

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

omop2owl-vocab-1.3.5.tar.gz (80.7 MB view details)

Uploaded Source

Built Distribution

omop2owl_vocab-1.3.5-py3-none-any.whl (80.7 MB view details)

Uploaded Python 3

File details

Details for the file omop2owl-vocab-1.3.5.tar.gz.

File metadata

  • Download URL: omop2owl-vocab-1.3.5.tar.gz
  • Upload date:
  • Size: 80.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.4

File hashes

Hashes for omop2owl-vocab-1.3.5.tar.gz
Algorithm Hash digest
SHA256 2aa619299d4a7044b109cf37f32449aff8083ebf5f3e33c59302edd2542cd3ba
MD5 371684a05e1db9a0dff6e94817f9f676
BLAKE2b-256 4da6fd92371a22c01bbc4afe4c213f10356767ed80cc229e51ab3944667ec9b9

See more details on using hashes here.

File details

Details for the file omop2owl_vocab-1.3.5-py3-none-any.whl.

File metadata

  • Download URL: omop2owl_vocab-1.3.5-py3-none-any.whl
  • Upload date:
  • Size: 80.7 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.4

File hashes

Hashes for omop2owl_vocab-1.3.5-py3-none-any.whl
Algorithm Hash digest
SHA256 6d6579ea03a97589bb3105675e033f7cee5d5bd4e4dc56918a465c2c84c8269d
MD5 e8a264b115ee4079d6cee37c34e19a5e
BLAKE2b-256 ff4a0b53ec8bb09f4d2a1b25f16200da0ca51b760fcd81f3c0517eb8aedaed1f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page