MDAnalysis / scipy_proceedings

SciPy conference proceedings: MDAnalysis paper
Other
0 stars 4 forks source link

interactive use/nglview. #27

Closed dotsdl closed 8 years ago

dotsdl commented 8 years ago

Fixes #18.

Needs more fleshing out yet, I think. Would be nice to include a code example for calculating something simple from a test system, or maybe just gathering some distances between atoms of interest in a DataFrame and getting something interesting out with groupbys? Also a plot would be good.

Any suggestions?

orbeckst commented 8 years ago

How about some distances in AdK over a DIMS trajectory?

O. Beckstein, E. J. Denning, J. R. Perilla, and T. B. Woolf. Zipping and unzipping of adenylate kinase: Atomistic insights into the ensemble of open ↔ closed transitions. J. Mol. Biol., 394(1):160–176, 2009. doi: 10.1016/j.jmb.2009.09.009.

For the trajectory

import MDAnalysis as mda
from MDAnalysis.tests.datafiles import PSF, DCD
u = mda.Universe(PSF, DCD)

FRET distances

Fig 5B in the article above

adk_fret_distances

Salt bridge zipper

Distances in Fig 7 1-s2 0-s0022283609011164-gr7

orbeckst commented 8 years ago

@sseyler do you have the selections for the salt bridge zipper handy?

kain88-de commented 8 years ago

@orbeckst are the 98 frames we have in the test files near enough points to get such a 'nicely' converged probability anyway?

orbeckst commented 8 years ago

Probably not but you should still be able to see obvious changes during the course of th trajectory.

Oliver Beckstein email: orbeckst@gmail.com

Am May 30, 2016 um 2:52 schrieb kain88-de notifications@github.com:

@orbeckst are the 98 frames we have in the test files near enough points to get such a 'nicely' converged probability anyway?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

kain88-de commented 8 years ago

https://gist.github.com/kain88-de/edc3e17e9ee8d8dc6c3a1d8c8af9fa34

A gist calculating the change of distance over time for all residue pairs marked in the picture. The plot setting I'm using aren't very good for a publication the tick labels are too small. I don't have a style file that would fit for a publication though. But if you already have one or experience about the sizes this is changed quickly.

dotsdl commented 8 years ago

@kain88-de I'm focusing entirely on datreant today, so I leave this for anyone else who's interested to complete.

As for plots, you can take some of my suggestions from this notebook if you like. There are bits on how to adjust sizes of tick labels, adding minor ticks, etc. there.

kain88-de commented 8 years ago

Oh I know how to do all of that. I just don't know good settings for a two column paper so that it's readable.

dotsdl commented 8 years ago

Plot should be 4 inches wide, and however tall it needs to be to express its content. For a timeseries, probably try 3 inches tall first (better to go wider than tall).

dotsdl commented 8 years ago

The paper size will likely be 8.5 x 11 inches. @orbeckst is this correct?

richardjgowers commented 8 years ago

Seaborn might even have a publication preset?

On Mon, 30 May 2016, 19:10 kain88-de, notifications@github.com wrote:

Oh I know how to do all of that. I just don't know good settings for a two column paper so that it's readable.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/MDAnalysis/scipy_proceedings/pull/27#issuecomment-222536237, or mute the thread https://github.com/notifications/unsubscribe/AI0jB9b-4EcrPIsCYAy7HfsRBb40bqVhks5qGygQgaJpZM4IphMN .

kain88-de commented 8 years ago

yeah I know they are soo much worse. I don't know what they thought with the tiny fonts they use

kain88-de commented 8 years ago

actually doesn't look that bad when included.

orbeckst commented 8 years ago

I just pushed PR #30 and the example uses the RMSF calculation for AdK.

@kain88-de it would be nice if the nglview window could also show AdK.

orbeckst commented 8 years ago

The paper size will likely be 8.5 x 11 inches. @orbeckst is this correct?

Probably, it's US and I think that's what comes out when I build the paper.

kain88-de commented 8 years ago

I extended the stub from David minimally and added a figure/code how to calculate the distance for opening. The code example is minimal but I link to the gist that I have created.

orbeckst commented 8 years ago

@kain88-de the distance calculations look good to me. But if you think that #30 is enough then just make a notebook session with AdK and we just show the nglviewer window with adk.

You could add the RMSF example into the notebook, see https://gist.github.com/orbeckst/94b2aa910eb9dbfddbe9ef6dacc4e384

Don't worry about actually reproducing the graph. I have to check what equilibrium trajectory I used for the example... perhaps it was the test XTC and TPR (although then one should rmsfit before).

orbeckst commented 8 years ago

FYI: I found the trajectories and the whole example. It was something that I considered using for the CECAM workshop. Everything is in MDAnalysis_examples.ipynb and the trajectories are in a dropbox folder CECAM-Workshop/MDAnalysis/Optional.

orbeckst commented 8 years ago

@kain88-de I'll do as you said in https://github.com/MDAnalysis/scipy_proceedings/pull/30#issuecomment-222545869

orbeckst commented 8 years ago

rebased and condensed (see commit message)

orbeckst commented 8 years ago

I'll merge this but will keep the branch around for the additional work and figures (so that we can go back to it).