Skip to main content

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

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

Project description

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

This Python 2 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.1.0.tar.gz (16.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bmds-0.1.0-py2.py3-none-any.whl (22.6 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

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

File hashes

Hashes for bmds-0.1.0.tar.gz
Algorithm Hash digest
SHA256 515d3dd58808335884d3075ad8e2a763ea416344e461d8654a46912db19cba29
MD5 1e1adb3437495272860ffa384d24ef80
BLAKE2b-256 9cdbb1233f4e16b1202c81f8c0be91847e822c6c7ba64a0c5091b424f2b9bd6c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bmds-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 1e936da975853d29261a215b673da9bad7262f8c9cdac7aa375e939e51e65fbd
MD5 8cd52167b4b2ebf0aa30a1b251bcde42
BLAKE2b-256 9238a807bf580ef0353e0918c844848b641ff14ed98b11c4a7dc3267bfc0265e

See more details on using hashes here.

Supported by

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