Giter Club home page Giter Club logo

gist's Introduction

GIST v3.0

An OMOP CDM Based Automatic Clinical Trial Generalizability Assessment Framework.

Table of Content

Installation

  1. Clone this repository.
git clone https://github.com/thisisibrahimd/gist.git
cd gist
  1. Create a virtual env.
python3 -m venv venv
source venv/bin/activate
  1. Use the package manager pip to install dependencies.
pip3 install -r requirements.txt
  1. Install gist cli (this will allow you run the gist command instead of python3 gist/cli.py .
pip3 install --editable .

Usage

By default, gist automatically grabs the following environment variables

GIST_DEBUG # boolean
GIST_EHR_CONN_STR # postgresql://username:password@hostname:port/database
GIST_CRIT_CONN_STR # postgresql://username:password@hostname:port/database
GIST_TRIAL_IDS # space delimited trial ids

Run trial NCT02885496 showing debug output

gist --debug --trial_id NCT02885496

Run trial NCT02885496 and NCT00562356 with out debug output

gist -t NCT02885496 -t NCT00562356

Run trial NCT02885496 and NCT00562356 with trial ids and debug env placed in .env. When all options/arguments are placed in the .env, you can just run gist in the terminal.

gist

Config

GIST needs two postgresql connection strings in your environment variables.

An example .env file to place in root

GIST_DEBUG=True
GIST_EHR_CONN_STR=postgresql://username:password@hostname:port/database
GIST_CRIT_CONN_STR=postgresql://username:password@hostname:port/database
GIST_TRIAL_IDS=NCT02885496 NCT00562356

Main Packages used

  • Click to create the cli interface
  • sqlalchemy as an ORM to simplify query generation
  • python-dotenv to automatically grab envs from .env file(s).

Notes

Entities

Entities were generated with sqlacodegen and modifiyed to allowed for subqueryload of ehr data in the person entity.

condition_occurrence = relationship('ConditionOccurrence')
drug_exposure = relationship('DrugExposure')
procedure_occurrence = relationship('ProcedureOccurrence')
measurement = relationship('Measurement')
observation = relationship('Observation')

Databases

Criteria Database

GIST reads criteria in a certain schema. ddl can be found in the repo linked below.

criteria database

EHR Database

GIST currently supports OMOP CDM 5.2.2. It may work with later version but not for certain.

An synpuf database has been made available to test with gist.

Previous Implementation

Paper

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

Apache 2.0

gist's People

Contributors

thisisibrahimd avatar

Watchers

 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.