Git Product home page Git Product logo

clinical-toolkit's Introduction

Processing Toolbox

Full documentation available at https://ditep.github.io/clinical-toolkit/

This repository contains scripts to preprocess a clinical database. It notably includes functions to process medical text reports, and feature selection on high cardinality categorical features (eg: for medication names).

Many of the scripts rely on scikit-learn API

Disclaimer: This repository has not yet been tested for different databases, and might not be fully compatible for many use cases. However, everyone is welcome to start pull-requests and issues to improve the development of this toolbox.

Installation

The package is not available on PyPI so you need to install it from source.

$ git clone https://github.com/DITEP/clinical-toolkit.git
$ cd preprocessing-toolbox
$ pip install -r requirements.txt
$ pip install . 

You should then run the tests to check the consistency of the installation (see subsection Testing )

Dependencies

The repository is compatible with following versions of packages but may also work with previous versions.

Python 2 has not been tested. Windows support has not yet been tested

  • beautifulsoup4==4.6.0
  • gensim==3.4.0
  • nltk==3.3
  • nose==1.3.7
  • numpy==1.14.2
  • pandas==0.23.0
  • requests==2.18.4
  • scikit-learn==0.19.1
  • scipy==1.1.0
  • SQLAlchemy==1.2.7
  • Unidecode==1.0.22

Testing

Unit testing is performed using nose library which is both efficient and easy to use. However good, Nose is now in maintenance mode and the migration to another testing framework will probably be necessary in later development.

To launch the tests of a particular module:

$ cd path/to/module
$ nosetests tests # tests is directory that contains the tests scripts

........
----------------------------------------------------------------------
Ran 8 tests in 0.309s

OK

You can also perform all the tests at once by placing at the root directory

$ nosetests

..................
----------------------------------------------------------------------
Ran 19 tests in 16.747s

OK

References

TODO

  • example notebooks

  • contributing guidelines

  • prepare init files and requirements

  • function to export decision tree to png?

clinical-toolkit's People

Contributors

dependabot[bot] avatar loicverlingue avatar vcharvet avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 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.