My project is based on MD simulation analysis on a system containing water box and lipid bilayer containing Aquaporin embedded in it. Simulations of timestep 150 ns is performed on this system to study the analysis of water permeation and flow through the lipid bilayer. one of the analysis of my work demands the calculation of water permeation events through each channel of this embedded proteins (this protein contains four monomers forming four water channels). I am performing my analysis using VMD.
I got this script https://www.ks.uiuc.edu/Training/Tutorials/science/nanotubes/files/permeation.tcl surfing from the internet. But this script is not giving the results according to my requirement.
As I wanted to find out permeation events happening through each pore/water channel separately and this script just calculate the water permeation events through the AQP layer as a whole. I have not as much expertise to change this script according to my requirement.
The first question is, of course, whether the simulation has the information that you need. After all, if we can't discover that, then we've got a problem!
If we look at the analysis code itself, we can see that all it is actually doing is using the Z coordinate of the water molecules in each frame and ignoring the other coordinates (which would be required for estimating which pore was used). It decides what is going on with them using a tiny little state machine per molecule. The relevant code is this (after conventionalising the input):
Perhaps a start would be to collect the X and Y coordinates of the molecules immediately after the transit events and to plot those? I don't know if that will help, but maybe?
Now that we have those lists, we can try to print them to a file so that you can plot them:
There's plenty of tools that can plot a series of points in a CSV, and you can look at that and see if what you've got is at least reasonable.