Skip to content

jbloomlab/SARS2-RBD-escape-calc

Repository files navigation

Escape calculator for the SARS-CoV-2 RBD

This repository implements the latest version of the escape calculator originally described Greaney, Starr, & Bloom, Virus Evolution, 8:veac021 (2022).

The interactive escape calculator itself is available at https://jbloomlab.github.io/SARS2-RBD-escape-calc/ and that page also contains a detailed explanation of how the calculator works as well as the papers from Yunlong Cao's group from which the deep mutational scanning data are derived. So go to that website to understand and use the calculator.

There is also a Python module for command-line implementation of the calculator, as described here.

Contents of this repo

Building the calculator

First, build and activate the conda environment in environment.yml.

Then process the data by running the Jupyter notebook process_data.ipynb.

Next, build the escape calculator by running the Jupyter notebook plot_calculator.ipynb.

Build the documentation for the Python module by running:

pdoc escapecalculator.py -o docs/ --no-search

This must be done before the next step to avoid overwriting the index in ./docs/.

Then format the escape calculator by running:

python format_altair_html.py \
    --chart results/escape_chart.html \
    --markdown data_for_plot_formatting/legend.md \
    --site https://jbloomlab.github.io/SARS2-RBD-escape-calc \
    --title "SARS-CoV-2 RBD antibody escape calculator" \
    --description "Calculate antibody escape by mutations to SARS-CoV-2 RBD" \
    --google_analytics_tag data_for_plot_formatting/google_analytics_tag.html \
    --output docs/index.html

You can do all of these steps automatically by just running the Bash script run_pipeline.bash.

Old version of calculator

This repo replaces that for the the original version of the calculator at https://github.com/jbloomlab//SARS2_RBD_Ab_escape_maps.

About

SARS-CoV-2 RBD antibody escape calculator

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages