Skip to main content

Software development kit for US EPA's Benchmark dose modeling software (BMDS)

Project description

https://img.shields.io/pypi/v/bmds.svg Wheel Status https://img.shields.io/travis/shapiromatron/bmds.svg Documentation Status

This Python package is designed to run the U.S. EPA BMDS software from a python interface. It is integrated into the HAWC software, but HAWC does not be installed on your computer to use this BMDS package. Example function calls are shown below:

import bmds

# get available BMDS versions
bmds.get_versions()

# get BMDS models for the specified version
bmds.get_models_for_version('2.40')

# create example datasets
ds1 = bmds.DichotomousDataset(
    doses=[0, 1.96, 5.69, 29.75],
    ns=[75, 49, 50, 49],
    incidences=[5, 1, 3, 14])

ds2 = bmds.ContinuousDataset(
    doses=[0, 10, 50, 150, 400],
    ns=[111, 142, 143, 93, 42],
    responses=[2.112, 2.095, 1.956, 1.587, 1.254],
    stdevs=[0.235, 0.209, 0.231, 0.263, 0.159])

# create new model runs
models = [
    bmds.Gamma_215(ds1),
    bmds.Power_217(ds2),
]

# execute each model and parse results
for model in models:
    model.execute()

Install a development version:

To install a development version, first checkout from git:

git clone https://github.com/shapiromatron/bmds

Change paths to the newly created bmds folder. Then, preferably in a python virtual environment, run the command:

pip install -r requirements.txt

Check for a successful installation by using the command:

py.test

This package should install fine in any platform (Windows, PC, Linux). However, the BMDS models are only compiled for use in Windows. Therefore, the execute method is only available in Windows.

Project details


Download files

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

Source Distribution

bmds-0.2.0.tar.gz (16.6 kB view details)

Uploaded Source

Built Distribution

bmds-0.2.0-py2.py3-none-any.whl (22.5 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file bmds-0.2.0.tar.gz.

File metadata

  • Download URL: bmds-0.2.0.tar.gz
  • Upload date:
  • Size: 16.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for bmds-0.2.0.tar.gz
Algorithm Hash digest
SHA256 c5987cb52f7050c070b3a72bf277cb29d393b857ea8a282c79b587fe140f5353
MD5 7e7e75988dfec0259a74e2962c0de1a0
BLAKE2b-256 e782afa053fd4e40d7ad2c5743f717c92cd1526b02166cbb16e2f9bb947dce95

See more details on using hashes here.

Provenance

File details

Details for the file bmds-0.2.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for bmds-0.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 22548634ab58b525628eaddc6eecbb6a4a8e6133b801fdc040db50efdaaef659
MD5 f516f58aa179fe1c7c73de84293ce046
BLAKE2b-256 ef15c123e8a5af5e0a69794edfcb897f162c343f3464408ea8268f5679f08f80

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page