Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing data in over_time output file #3

Open
ErikPoppleton opened this issue Sep 20, 2024 · 5 comments
Open

Missing data in over_time output file #3

ErikPoppleton opened this issue Sep 20, 2024 · 5 comments

Comments

@ErikPoppleton
Copy link

I am trying to get the thickness of a simulation of a DOPC membrane over time. I first made an index file with all the phosphates and lipid tails selected (groups 'PA' and 'OL') and then used that as input for g_lomepro:

{ echo -e "PA"; echo -e "OL"; } | ~/software/g_lomepro/g_lomepro_static -b 0 -e 500000 -f md.xtc -n lomepro.ndx -s md.gro -apl apl1 -thick thick1 -curve curve1 -lip_num 898 -nonflat -binx 100 -biny 100

However in the thick1.out_over_time.dat file, there are not always 898 entries per time step. Can you explain why in some time steps some of the phosphate IDs are missing from the thickness?

Also am I correct that when I choose the -nonflat option, I'm supposed to have a group containing the whole lipid tails, or is it supposed to be just the last atom in each tail? The paper and the help say different things.

@vgapsys
Copy link
Owner

vgapsys commented Sep 20, 2024

Hey Erik,
so far I was not able to reproduce this. I added a folder "examples/thickness" with a small example: there I seem to get consistently all lipids as expected. Could you share a small snippet of trj where the issue occurs?

For -nonflat only one atom per lipid should be selected

@ErikPoppleton
Copy link
Author

It appears to happen when you have a raw trajectory and pick whole lipid tails instead of just terminal carbons. I have attached an example with a 5-frame trajectory where it happens on the 3rd frame.

DOPC_example.zip

For "one atom per lipid", does that means one atom per tail, or only one atom total? I switched doing one atom per tail because that's much easier to select (and seems to work?), but I can figure out how to do just one between the two tails as well.

Thanks for the very useful tool!

@vgapsys
Copy link
Owner

vgapsys commented Sep 25, 2024

Ok, this is indeed due to the fact that -nonflat needs a single atom per lipid, i.e. the identity needs to be strictly kept 1 lipid - 1 atom (not one atom per chain).

In the current example, the initial membrane is setup to be rather flat, so unless it undulates a lot in the simulation, I would not use -nonflat flag.

@ErikPoppleton
Copy link
Author

I notice that when I try to decrease the number of grid points (from 100 to 30 in each direction), the number of lipids included in the out_over_time.dat file varies quite substantially. I am confused about this result, because 30 should be about 1 grid point per lipid, but it seems like somehow it misses lipids if I don't have substantially more grid points than lipids.

@vgapsys
Copy link
Owner

vgapsys commented Sep 27, 2024

Yes, that might happen if you have too few grid points. The lipids compete for the grid cells, so if a molecule ends up somewhere on the edge of two cells, other lipids may claim all the nearest neighbours and the lipid is not assigned any cell, hence, no property is assigned to it. This issue should not be present with a larger number of grid cells.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants