Git Product home page Git Product logo

pydiffusion's Introduction

PyDiffusion

image

image

PyDiffusion is a python library to analyze the rotational and translational diffusion of molecules in molecular dynamics simulation or rigid body simulations.

INSTALL

Note: You need cython and numpy to install pydiffusion

python setup.py install

If you want to install the library locally for your user then append the --user flag.

Usage

Please refer to the example notebook.

References

M. Linke, J. Köfinger, G. Hummer: Fully Anisotropic Rotational Diffusion Tensor from Molecular Dynamics Simulations. The Journal of Physical Chemistry Part B (2018, in print)

DEVELOPMENT

To install the library in development mode use

This will create a python-package-symlink to this folder and every change you make is directly applied to your installed package.

pydiffusion's People

Contributors

kain88-de avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

pydiffusion's Issues

Tutorial breaks with mda 1.0

Hi @kain88-de @jkoefinger ,

The method
rm = pydiffusion.rotation.RotationMatrix(u.atoms, ref=tetrahedron.atoms, verbose=True).run()
in the tutorial breaks when used with MDAnalysis v1.0.

The error comes from the
class RotationMatrix(AnalysisBase) in pydiffusion/rotation.py

The method _prepare() in RotationMatrix overwrites the self.frames definition of the parent class AnalysisBase, causing trouble for the latter in the run() method.

To fix this, I replaced all occurrences of self.frames in class RotationMatrix with self.Dframes in my local copy of rotation.py, corresponding to the following lines:

In method _prepare(self):
self.frames = [] --> self.Dframes = []

In method _single_frame(self):
self.frames.append(self._mobile.universe.trajectory.frame) --> self.Dframes.append(self._mobile.universe.trajectory.frame)

In method _conclude(self):
self.frames = np.asarray(self.frames) --> self.Dframes = np.asarray(self.Dframes)

This works, but there is perhaps a better way to address the issue.

Best,
Soeren

Rotational diffusion of membrane protein

Hello,

I am trying to study the diffusion of a membrane embeded protein (KcsA specifically). I have been able to replicate the tutorial but I am getting some strange results with my system and I wonder if I am doing something wrong computationally or the theory doesn't work for these cases. I get these plots:
download
I understand why one of the main component doesn't converge since there is not a lot of vertical rotation of the protein. What I don't understand is why the other components don't converge to 0.25 as in the reset of examples in the paper and the tutorial.
Thank you very much for your help!
Best regards,
Sergio

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.