Skip to main content

This package connects large language models with bioinformatics workflows.

Project description

BRAD: Bioinformatics Digital Assistant

Please see the projects main page available here!

Architecture

brad-dl-vision

Installation

Brad can be installed directly from pip

Web Server deployment

BRAD can be deployed as a web server to interact and experiment with its functionalities.

The BRAD web server is written with react.js for the frontend and flask backend.

The recommended method is to use docker.


Docker instructions

The Docker build can be used to deploy brad without having to install packages manually. after installing either docker desktop or docker engine docker intsallation, you can follow one of the following commands to install and run BRAD

  1. Use with docker compose:
cd deployment
docker compose up -d
  1. OR with just docker
docker run -e OPENAI_API_KEY=your_open_ai_key -e  PYDANTIC_SKIP_VALIDATING_CORE_SCHEMAS='True' -p 5001:5000 -p 3000:3000  brad:full_frontend
  1. To build the dockerfile yourself:
docker build -t brad:local .

Then proceed to http://localhost:3000 to view the frontend

Development Environment

To contribute or make your own modifications to BRAD, A separate development environment needs to be set up. Follow the instructions below to set up your environment

Download the BRAD repository

git clone https://github.com/Jpickard1/BRAD.git
cd BRAD

Update ./BRAD/config/config.json to your preference ( specifically update the log_path key to point somewhere on your local system )

Make sure python is installed and then install the requirements

Our recommendation is to use conda and setup a separate conda environment to ensure package discrepencies

pip install -r requirements_frozen.txt

Install node=v20.18.0 and npm=10.8.2 from the (website)[https://nodejs.org/en/download/package-manager] or by using nvm

Our recommendation is to use nvm

https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash
source ~/.nvm/nvm.sh \
nvm install 20.18.0 \
nvm use 20.18.0

# install the necessary packages
npm install --prefix ./brad-chat

Start BRAD backend with

PYDANTIC_SKIP_VALIDATING_CORE_SCHEMAS=True OPENAI_API_KEY=<your_open_api_key> flask --app app run --host=0.0.0.0 --port=5000

Start BRAD frontend with

cd brad-chat
npm start

This will start BRAD Backend at - http://localhost:3000
And the BRAD frontend at - http://localhost:5000



Documentation

To build the projects documentation in the ReadTheDocs html formatting, in the docs/ directory, run the command make html. This will populate the docs/build/html directory with the webpages. The docs/build/ directory is excluded from git but will automatically be built when pushing to main.

During the build, the tutorials/ directory is automatically pulled in to the source by copying all jupyter notebooks. These are included in the user guide section of the documentation.

To remove the documentation from docs/build/ run make clean from the same directory where you built it.


Cite Us

@article{pickard2024bioinformatics,
  title={Language Model Powered Digital Biology},
  author={Pickard, Joshua and Choi, Marc Andrew and Oliven, Natalie and
          Stansbury, Cooper and Cwycyshyn, Jillian and Galioto, Nicholas
          and Gorodetsky, Alex and Velasquez, Alvaro and Rajapakse, Indika},
  journal={arXiv preprint arXiv:2409.02864},
  url={https://arxiv.org/abs/2409.02864},
  year={2024}
}

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

brad_chat-0.0.2.tar.gz (249.4 kB view details)

Uploaded Source

Built Distribution

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

brad_chat-0.0.2-py3-none-any.whl (259.4 kB view details)

Uploaded Python 3

File details

Details for the file brad_chat-0.0.2.tar.gz.

File metadata

  • Download URL: brad_chat-0.0.2.tar.gz
  • Upload date:
  • Size: 249.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.10

File hashes

Hashes for brad_chat-0.0.2.tar.gz
Algorithm Hash digest
SHA256 47d93297cac634923fe2d141f3ac6c84099cc9183cc03045153b92f57c3c6e94
MD5 8d2887c6ab4d4f3a3d573f3e31cd2ecb
BLAKE2b-256 1488d99a2e39c27fb8e7d195e54af6adf62df0271d2c6bb115c2c62b2fc977af

See more details on using hashes here.

File details

Details for the file brad_chat-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: brad_chat-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 259.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.10

File hashes

Hashes for brad_chat-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 73ff7cbffd6bc6d916420bd5c3915438f97cb6a736543baad6f590bccabdd38f
MD5 cd7ae111f86da520dfddeb63c84f8f90
BLAKE2b-256 3cc4ec121d6c2419641addf4a5f867083454ac909d654798dc0a06d393ffc181

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