BioPhi is an open-source antibody design platform. It features methods for automated antibody humanization (Sapiens), humanness evaluation (OASis) and an interface for computer-assisted antibody sequence design.
Learn more in the BioPhi, Sapiens and OASis in our publication:
David Prihoda, Jad Maamary, Andrew Waight, Veronica Juan, Laurence Fayadat-Dilman, Daniel Svozil & Danny A. Bitton (2022) BioPhi: A platform for antibody design, humanization, and humanness evaluation based on natural antibody repertoires and deep learning, mAbs, 14:1, DOI: https://doi.org/10.1080/19420862.2021.2020203
The university-hosted BioPhi web server is available at: http://biophi.dichlab.org
For more information about the Sapiens antibody language model, see the Sapiens repository
The data and notebooks supporting the analysis are found in the BioPhi-2021-publication repository
BioPhi is an open and extensible platform, contributions are welcome.
If you have ideas about what to improve or which tools could be integrated, please submit any feature requests using the Issues tab.
If you don't want to use the public BioPhi server, you can run BioPhi on your own machine.
To run BioPhi with OASis humanness evaluation locally, you will need to download and unzip the OASis database file (22GB uncompressed).
# Download database file
wget https://zenodo.org/record/5164685/files/OASis_9mers_v1.db.gz
# Unzip
gunzip OASis_9mers_v1.db.gz
You can install BioPhi using Conda or one of the alternatives (Miniconda, Miniforge).
Install BioPhi using:
# Recommended: Create a separate BioPhi environment
conda create -n biophi python=3.9
conda activate biophi
# Install BioPhi
# Using Bioconda and Conda-Forge channels
conda install biophi -c bioconda -c conda-forge --override-channels
If conda installation fails, you can try running using Docker. See Run BioPhi using provided Docker image.
# Set up path to OASis database (downloaded and unzipped)
export OASIS_DB_PATH=/path/to/downloaded/OASis_9mers_v1.db
# Run simplified BioPhi server (not for live deployment!)
biophi web
Note: This is simplified usage for local use only. See Deploying your own BioPhi server section below to learn about deploying BioPhi properly on a server.
First, download OASis DB as described above.
Then, run a simplified BioPhi server using the provided Docker image:
docker run \
-v /your/absolute/path/to/oasis/directory/:/data \
-e OASIS_DB_PATH=/data/OASis_9mers_v1.db \
-p 5000:5000 \
quay.io/biocontainers/biophi:1.0.5--pyhdfd78af_0 \
biophi web --host 0.0.0.0
The application will be accessible at localhost:5000.
Note: This is simplified usage for local use only. See Deploying your own BioPhi server section below to learn about deploying BioPhi properly on a server.
BioPhi also provides a command-line interface that enables bulk processing.
BioPhi is composed of three services that need to be running at the same time:
web
: Flask web server that handles both the frontend and the backend of the web applicationcelery
: Asynchronous worker service(s) that process long-running tasksredis
: In-memory database for storing celery queue tasks and resultsRunning through Docker Compose is easiest in terms of setup, but web server autoreload is not supported, so you will have to restart the services after each code update.
Running each service locally using Conda will enable flask auto-reload, which is useful if you are going back and forth between your IDE and the browser.
You can deploy your own internal BioPhi server. You will need to run the three separate services - the flask web server, the celery worker and the redis database.
This will depend on your platform and your cloud provider, the easiest deployment is using Docker Compose through the provided docker-compose.yml file.
For 🐧 Ubuntu deployment, feel free to copy the deployment configs used on the public university server: lich-uct/biophi.dichlab.org
BioPhi is based on antibody repertoires from the Observed Antibody Space:
Kovaltsuk, A., Leem, J., Kelm, S., Snowden, J., Deane, C. M., & Krawczyk, K. (2018). Observed Antibody Space: A Resource for Data Mining Next-Generation Sequencing of Antibody Repertoires. The Journal of Immunology, 201(8), 2502–2509. https://doi.org/10.4049/jimmunol.1800708
Antibody numbering is performed using ANARCI:
Dunbar, J., & Deane, C. M. (2016). ANARCI: Antigen receptor numbering and receptor classification. Bioinformatics, 32(2), 298–300. https://doi.org/10.1093/bioinformatics/btv552