Giter Club home page Giter Club logo

automated-abfe-paper's Introduction

Automated-ABFE-Paper

CI

Inputs and code to reproduce the results and analysis from "Automated Adaptive Absolute Binding Free Energy Calculations"

├── analysis
│   ├── adaptive
│   ├── cyclod
│   ├── lambda_window_spacing
│   ├── non_adaptive
|   └── alibay
└── simulations
    ├── cyclod
    ├── initial_systems
    ├── scripts
    └── shared_config_files

To Rerun Simulations

It is recommended that you run the following in a TMUX session, or using nohup for the a3fe script, to ensure that the calculations are not interrupted.

  • Ensure that you have SLURM, mamba, and GROMACS installed and that that gmx is in your path
  • Clone this repository, install a3fe, and activate the environment
git clone https://github.com/michellab/Automated-ABFE-Paper.git
cd Automated-ABFE-Paper
make env
mamba activate a3fe_reproduce
  • Modify run_somd.sh to match your slurm configuration, e.g.
vim simulations/shared_config_files/run_somd.sh
  • Change into the desired directory. For example, to run T4L:
cd simulations/initial_systems/t4l
  • Run the desired ABFE script. For example, to run the non-adaptively for 0.2 ns per window, run:
python ../../scripts/run_non_adaptive_200ps.py

If you want to repeat the adaptive runs and obtain similar simulation times to those shown in the paper, you need to determine the SOMD simulation speed for the MIF bound complex on your GPUs (this is taken as the reference). This can be done by running a short non-adaptive run (as described above). Once this is complete, you can determine the cost by starting an ipython session in the directory you have run in and running:

import a3fe as a3
calc = a3.Calculation()
cost = calc.legs[0].tot_gpu_time/calc.legs[0].tot_simtime # First leg is the bound leg
print(cost) # In hr/ns

You should then modify the run_adaptive.py script to match this cost (specifically the reference_sim_cost argument to get_optimal_lam_vals).

Note that the input files provided are not identical to those used to complete the study, because old input files are incompatible with new versions of Sire due to an issue with box vectors. Hence, the provided equilibrated input files were generated from the original parameterised ligands/ complexes, and the original equilibration steps were repeated.

To Reproduce Analyses

The analysis directory contains the code and inputs required to perform analyses not already performed by a3fe by default (when calc.analyse() or calc.analyse_convergence() is run). Each sub-directory contains two notebooks - "analysis" notebooks use the pre-provided data in the final_analysis directories to generate the figures from the paper. These can be run without changes. The "preprocessing" notebooks show examples of the computationally-intensive analyses run on the simulation outputs (not included due to size) to generate the data which which is used in the "analysis" notebooks. These will not work without changes - they are intended to be adapted to run on outputs generated by the user. Note that make analysis will skip the alibay directory to avoid downloading large files from Zenodo.

To rerun the "analysis" notebooks and regenerate the plots:

  • Ensure that you have mamba installed
  • Clone this repository, install a3fe, and run all of the notebooks
git clone https://github.com/michellab/Automated-ABFE-Paper.git
cd Automated-ABFE-Paper
make env
make analysis

Alternatively, you can acitvate the environment (mamba activate a3fe_reproduce) and run the notebooks cell-by-cell. The notebooks can be cleaned and the figures removed with make clean.

automated-abfe-paper's People

Contributors

fjclark avatar

Stargazers

Parveen Gartan avatar  avatar

Watchers

Christopher Woods avatar Julien Michel avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.