Skip to main content

https://github.com/ContaTP/BATS-Bayesian-Adaptive-Trial-Simulator

Project description

BATS - Bayesian Adaptive Trial Simulator
=========================

Introduction
-----------

Bayesian Adaptive Trial Simulator (BATS) is a Qt-based software used to perform simulation for Bayeisan Multi-arm Multi-stage design.

Installation
------------

Users can install BATS through an installer with no dependencies (The msi installer only works in Windows now), or through PyPI, which requires Python 3.4 +, several packages and GNU Scientific Library (GSL):

.. code-block:: bash

$ pip install BATS

**Dependencies**:

* Numpy
* Pandas
* Matplotlib
* Cython
* `cythonGSL <https://github.com/twiecki/CythonGSL>`_
* `PyQt5 <https://www.riverbankcomputing.com/software/pyqt/download5>`_

**Other dependencies**:

The module requires GNU Scientific Library (`GSL <https://www.gnu.org/software/gsl/>`_) to be installed on user's operating system, because it use the GSL module to draw random variables and calculate choose functions.

* `GSL <https://code.google.com/archive/p/oscats/downloads>`_ For Windows Port.

**Install cythonGSL**

To install cythonGSL, download the source from `Thomas Wiecki's repository <https://github.com/twiecki/CythonGSL>`_, follows the instructions for installation under the page.

**Install Python Dependencies on Windows (Python 3.4 required)**

.. code-block:: bash

$ pip install numpy pandas matplotlib cython PyQt5

**Install GSL on Windows (Python 3.4 required)**

Download GSL from the link above, following the `instructions <http://joonro.github.io/blog/posts/installing-gsl-and-cythongsl-in-windows.html>`_, Cython will also require a `C/C++ compiler <https://github.com/cython/cython/wiki/CythonExtensionsOnWindows>`_ to complie the code into Python module.

**Install the Python Dependencies and GSL on Linux**:

.. code-block:: bash

$ pip3 install numpy pandas matplotlib cython PyQt5

$ apt-get install libgsl2


Usage
-----

.. code-block:: python

import BATS
BATS.__init__()


See `documentation <https://github.com/ContaTP/BATS-Bayesian-Adaptive-Trial-Simulator/blob/master/BATS/documentation/Documentation.pdf>`_ for detailed settings


License
-------
The software is distributed under GPLv3. See License for details

Contact: yuzhenning.bio@gmail.com

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

BATS-1.0.0b9.tar.gz (3.7 MB view hashes)

Uploaded Source

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