GithubHelp home page GithubHelp logo

brendaferrari / hbondauto Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 38 KB

HBondAuto is a program developed to calculate and automate the hydrogen bond analysis in Molecular Dynamics Simulations.

License: MIT License

Python 96.54% Shell 3.46%
hydrogen-bonds molecular-dynamics-simulation

hbondauto's Introduction

🔴❗UNDER DEVELOPMENT❗🔴

Hydrogen bond analysis automation (HBondAuto)

HBondAuto is a program developed to calculate and automate the hydrogen bond analysis in Molecular Dynamics Simulations.

Up until now the program is able to:

  • Calculate the hydrogen bonds in the system through simulation time
  • Calculate the hydrogen bonds in specific residues of interest: Up until three.
  • Plot the hydrogen bonds in specific residues of interest

In future updates:

  • Plot all the hydrogen bonds

Instalation

Download the code and unzip it on the desirable directory. To prepare the environment use the following command:

conda env create -f environment.yml

Be aware to uncomment the sections on the environment.yml file depending on which OS you are using.


How to use

To calculate the hydrogen bonds this program needs the protein file (pdb), with only the protein, and the trajectory file (xtc) with only the protein atoms (please use gmx make_ndx -f md_protein-only.pdb -o index.ndx to create an index and gmx trjconv -f md.xtc -o md_protein-only.xtc -n index.ndx to get only the protein trajectory). Do not use the noPBC file in this analysis.

Modify line 47 to add the residues of interest:

# Modify here the residues of interest
residues = {'donor_residues':[["PHE"],["GLY"],["GLN"]],
            'donor_indexes':[["28"],["32"],["33"]],
            'acceptor_residues':[["ALA"],["ASN"],["ASN"]],
            'acceptor_indexes':[["23"],["30"],["30"]]}

Activate the environment using:

conda activate hbondanalysis

The program uses a shell script to automate the calculation of data in multiple folders. To use this feature go to the root directory and on the terminal use:

bash \hbondauto.sh

If you are interested only on running one folder, you may just add your files to the HBondAuto directory and use:

python analysis.py

Observations

  • This script was developed following some steps on the MDAnalysis tutorial for calculating hydrogen bonds. The tutorial can be found here.

Authorship

Social preview original photo by Brenda Ferrari (brendaferrari)

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.