Skip to main content

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

Project description

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

.. image:: https://raw.githubusercontent.com/ContaTP/BATS-Bayesian-Adaptive-Trial-Simulator/master/BATS/resources/Icon.ico
:align: left
:alt:

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

.. image:: https://badge.fury.io/py/BATS.svg
:target: https://badge.fury.io/py/BATS

.. image:: https://img.shields.io/pypi/l/bats.svg
:target: http://www.gnu.org/licenses/gpl-3.0

.. image:: https://img.shields.io/pypi/status/bats.svg
:target: https://badge.fury.io/py/BATS

.. image:: https://img.shields.io/pypi/pyversions/bats.svg
:target: https://badge.fury.io/py/BATS

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

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

+---------------------+-------------------------------------------------------------------------------------------------------+
| Downloads | URL |
+=====================+=======================================================================================================+
| Windows Installer | `BATS-1.0.0-win32.msi <https://sourceforge.net/projects/bats/files/BATS-1.0.0-win32.msi/download>`_ |
+---------------------+-------------------------------------------------------------------------------------------------------+
| Source Code | `BATS-1.0.0.tar.gz <https://sourceforge.net/projects/bats/files/BATS-1.0.0b7.tar.gz/download>`_ |
+---------------------+-------------------------------------------------------------------------------------------------------+
``* The Windows users are encouraged to use the Windows Installer because the installation is easy.``

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.0b8.tar.gz (3.7 MB view details)

Uploaded Source

File details

Details for the file BATS-1.0.0b8.tar.gz.

File metadata

  • Download URL: BATS-1.0.0b8.tar.gz
  • Upload date:
  • Size: 3.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for BATS-1.0.0b8.tar.gz
Algorithm Hash digest
SHA256 7977d5efc5be61f537b700124d2bc1f7b20948cee0c32d7e41fb587a97741716
MD5 d1cfc77268cbffb28d11a80a8fce9ccc
BLAKE2b-256 92cf1293303fa5dfa0cf5bd209c4182d88241cbff3a861c41a2d6ada92b9ec59

See more details on using hashes here.

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