Coder Social home page Coder Social logo

ping543f / smartva-analyze Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ihmeuw/smartva-analyze

0.0 2.0 0.0 150.04 MB

SmartVA-Analyze Desktop Application

License: MIT License

Python 79.64% Batchfile 0.01% Shell 0.15% Dockerfile 0.22% Jupyter Notebook 12.89% HTML 7.09%

smartva-analyze's Introduction

https://travis-ci.com/ihmeuw/SmartVA-Analyze.svg?branch=master

SmartVA-Analyze is an application that implements the Tariff 2.0 Method for computer certification of verbal autopsies.

More information and the SmartVA-Analyze application can be found here: http://www.healthdata.org/verbal-autopsy/tools

The latest development version of the SmartVA-Analyze application can be found in releases. The application is available as a Windows graphical user interface (GUI), Windows command-line interface (CLI), and Linux binary.

The latest stable version of the SmartVA-Analyze application can be found here: http://www.healthdata.org/verbal-autopsy/tools

The SmartVA-Analyze application requires an input csv in the format of the PHMRC Full Questionnaire, PHMRC Shortened (SmartVA) Questionnaire, or WHO 2016 Questionnaire. The simplest workflow is to collect verbal autopsy data with ODK Collect and export the questionaire data via ODK Aggregate or ODK Briefcase.

Requirements

To compile the source code of SmartVA-Analyze, the following applications must be installed:

Build Instructions

To build the SmartVA-Analyze application as seen in releases, run one of the following commands:

Windows: build_script.bat

macOS, Linux: $ sh build_script.sh

Environment Instructions

To create your python environment, either create a conda environment or use the Docker image.

Windows:

$ conda create -n smartva python=2.7.13 wxpython=3.*
$ activate smartva
$ pip install -r requirements.txt -r requirements-dev.txt - r requirements-win.txt

macOS, Linux:

$ conda create -n smartva python=2.7.13 wxpython=3.*
$ source activate smartva
$ pip install -r requirements.txt -r requirements-dev.txt

or

$ docker build -t smartva-build-linux -f ./pkg/docker/linux-build/Dockerfile ./pkg/docker
$ docker build -t smartva-dev -f pkg/docker/dev/Dockerfile .
$ docker run -it --rm -v `pwd`:/home/smartva/smartva smartva-dev

Run Instructions

To test your python environment, run the following command to show the available options.

$ python app.py --help

Usage: app.py [OPTIONS] INPUT OUTPUT

Options:
  --country TEXT                  Data origin country abbreviation. "LIST"
                                  displays all. Default is "Unknown".
  --hiv BOOLEAN                   Data is from an HIV region. Default is True.
  --malaria BOOLEAN               Data is from a Malaria region. Default is
                                  True.
  --hce BOOLEAN                   Use Health Care Experience (HCE) variables.
                                  Default is True.
  --freetext BOOLEAN              Use "free text" variables. Default is True.
  --figures BOOLEAN               Generate charts and figures output. Default
                                  is True.
  --language [english|chinese|spanish]
                                  Language used for output files.
  --version                       Show the version and exit.
  --legacy-format                 Output files in a format that matches
                                  SmartVA v1.2
  --help                          Show this message and exit.

Example

$ mkdir ./test/example/output
$ python app.py "./test/example/input/PHMRC_short_example.csv" "./test/example/output" --hiv=False
$ python app.py "./test/example/input/WHO_2016_1_5_1_example.csv" "./test/example/output" --language=chinese --country=CHN

Test Instructions

All tests are run using pytest:

$ python -m pytest

smartva-analyze's People

Contributors

jjoseph7 avatar aflaxman avatar rileyhazard avatar yanokwa avatar chartung avatar alextwo-zz avatar brettvitaz avatar gma-uw avatar

Watchers

James Cloos 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.