This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

A decision aid designed to select the best of two or more alternatives given responses to a list of criteria

Project Description

## Medical Decision Aid Tool

[![Build Status](](
[![Build Status](](

The MDAT is a set of software libraries to implement a _medical decision aid_. These libraries are designed to select the best of two or more alternatives given responses to a list of criteria.

## Installation

To install from source, use

python install

## Usage Instructions

_mdat --help_ provides current usage instructions:

usage: mdat [-h] [-i {json}] [-o {json,brief,csv,csvnoheader}]
[infile] [outfile]

Select the best of two or more alternatives given responses to a list of

positional arguments:

optional arguments:
-h, --help show this help message and exit
-i {json}, --input {json}
Specify the file type used as input. Valid types: json
-o {json,brief,csv,csvnoheader}, --output {json,brief,csv,csvnoheader}
Specify the file type used as input. Valid types:
json, brief, csv, csvnoheader

## Input data

Sample input data should be a json file with two or more labeled alternatives, one or more labeled criteria, and the numeric responses to each criteria for each alternative. This example input file shows response data for 4 criteria that could be used to determine the preferred type of colorectal cancer screening:

"Accuracy": {
"Fecal Immunochemical Test": 0.1,
"Flexible Sigmoidoscopy": 0.2,
"Colonoscopy": 0.3
"Amount of colon examined": {
"Fecal Immunochemical Test": 0.5,
"Flexible Sigmoidoscopy": 0.7,
"Colonoscopy": 0.8
"Complications": {
"Fecal Immunochemical Test": 0.2,
"Flexible Sigmoidoscopy": 0.1,
"Colonoscopy": 0.9
"Cost": {
"Fecal Immunochemical Test": 0.4,
"Flexible Sigmoidoscopy": 0.8,
"Colonoscopy": 0.9
"Discomfort": {
"Fecal Immunochemical Test": 0.1,
"Flexible Sigmoidoscopy": 0.3,
"Colonoscopy": 0.9
"Sedation": {
"Fecal Immunochemical Test": 1.0,
"Flexible Sigmoidoscopy": 0.8,
"Colonoscopy": 0.9
"Test Preparation": {
"Fecal Immunochemical Test": 0.1,
"Flexible Sigmoidoscopy": 0.2,
"Colonoscopy": 1.0

## Output data

mdat can output data in three formats.

$ mdat sample_data/test.json

$ mdat -o csv sample_data/test.json
Fecal Immunochemical Test,Flexible Sigmoidoscopy,Colonoscopy

$ mdat -o json sample_data/test.json
{"best_alternative": "Colonoscopy", "choquet_scores": {"Fecal Immunochemical Test": 0.43414030720240016, "Flexible Sigmoidoscopy": 0.4729342460226981, "Colonoscopy": 0.9068722937866821}}

## Requirements

This project requires Python 2.7 or greater.

This project uses Travis CI for automated testing. Please revise the .travis.yml to reflect any changes in required libraries as changes are made to the software.

## Contributions

The MDAT Team welcomes contributions to this project. Please fork and send pull requests with your revisions. Any code changes must be accompanied by corresponding unit tests to be accepted. Please configure your account at to test your commits to your fork so you get quick feedback on any issues created by your changes.
Release History

Release History

This version
History Node

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date (19.6 kB) Copy SHA256 Checksum SHA256 Source Jul 2, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting