Coder Social home page Coder Social logo

dijkstra-water-wire's Introduction

dijkstra-water-wire

This is a C / C++ program for Dijkstra's single source shortest path algorithm based off of code from http://www.geeksforgeeks.org/printing-paths-dijkstras-shortest-path-algorithm/, by Aditya Goel. The code has been modified to calculate water wires connecting a donor and acceptor from an MD simulation. Currently, only Amber MD has been tested and the code can use either a pdb trajectory file or an Amber ASCII trajectory file (mdcrd). For a path to be accepted, waters must be within a user defined cutoff of each other other or of the donor or acceptor.

Input file description

filetype (mdcrd/pdb) filename number of atoms atom number for start of water chain atom number for end of water chain number of water molecules (Only for mdcrd files) distance cut-off

To compile the code

g++ -O2 -o path.exe water-wire.cpp

To run the code

./path.exe < inputfile

Sample inputs are given as input.pdb and input.mdcrd

Sample outputs are given as output.pdb and output.mdcrd

Sample mdcrd and pdb files are given as ub-nvt-step1-3.pdb and ub-nvt-step13.mdcrd. They each have three geometries.

=====================

Anticipated updates:

  1. Allowing for angles. In other words, viability also has to do with the donor-hydrogen-acceptor angle.

Do you want to cite this work?

Wilson, R. H.; Zamfir, S.; Sumner, I. “Molecular dynamics simulations reveal a new role for a conserved active site asparagine in a ubiquitin-conjugating enzyme” Journal of Molecular Graphics and Modelling, 2017, 76, 403-411. doi:10.1016/j.jmgm.2017.07.006

DOI

dijkstra-water-wire's People

Contributors

sumner-group avatar

Watchers

James Cloos 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.