Coder Social home page Coder Social logo

kf-omop-imports's Introduction

Kids First OMOP Imports

This repository is primarily meant to store configurations for importing study datasets into the experimental Kids First OMOP Database.

Note

Currently, the repository also contains a basic library (source code in common) with command line interface for running the ingestions in OMOP Postgres database. This is in place of the soon to be complete Kids First Data Ingest library. Once the Kids First Data Ingest library is complete, the common package will go away and the new library can be used.

There are only two datasets that have ingest configurations implemented: Vilain 2015 and CBTTC Proteomics.

Getting Started

Install

 # Git clone this repository
git clone [email protected]:kids-first/kf-omop-imports.git

# Setup and activate virtual env
python3 -m venv venv
source venv/bin/activate

# Install requirements
pip install -e .
pip install -r requirements.txt

Set Environment Variables

The import tool loads data into the OMOP database by connecting directly to it. It uses the following environment variables to make the connection URL. Change these to control the database connection.

  1. PG_HOST - if not set will default to localhost
  2. PG_NAME - if not set will default to omop
  3. PG_USER - if not set will default to postgres
  4. PG_PASS - if not set will default to empty string

Usage

$ cd kf-omop-imports
$ omop ingest <path to folder containing extract configs>

Example

$ omop ingest cbttc_proteomics

kf-omop-imports's People

Contributors

znatty22 avatar

Watchers

Kyle Ellrott avatar James Cloos avatar Allison Heath avatar Yuankun Zhu avatar Dušan Andrić avatar Trevar Simmons avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.