Giter VIP home page Giter VIP logo

Comments (4)

lohedges avatar lohedges commented on July 22, 2024

Hello there,

Thanks for reporting. Could you please repost this issue at the BioSimSpace repository under the OpenBioSim organisation here. This is the new location for development work. This repository only exists in a legacy capacity to support outstanding feature branches that have not yet been ported.

I'm not sure why the coordinates are being set to zero, but I imagine that the residue name is being changed to match the naming convention used for waters by GROMACS, which is SOL. (We generally need to swap water topologies to match the specified format so that simulations can be run by different engines, e.g. if you load AMBER files and want to run with GROMACS.)

from biosimspace.

lohedges avatar lohedges commented on July 22, 2024

I needed to modify a few things in your script in order to get things to work. (Directory names were wrong.) After this, I see the same thing for the coordinates, but I don't see the residue names changing.

The coordinates are being parsed incorrectly because the formatting of your GRO file is incorrect for the crystal waters in isolation, but is fine when they are combined with the protein, i.e.:

this is fine...

tail -n10 bug/bug/protein-amber14-all-fussion/protein_with_wt.gro'
  290NME     H3 4626   0.196   0.917   4.422
 3071COF    OWc    1   2.542  -1.493   2.303
 3071COF    HWc    2   2.597  -1.415   2.274
 3071COF    HWc    3   2.588  -1.539   2.378
 3134COF    OWc    4   1.466  -1.072   1.608
 3134COF    HWc    5   1.489  -0.996   1.669
 3134COF    HWc    6   1.510  -1.156   1.640
 3160COF    OWc    7   1.561  -1.546   2.008
 3160COF    HWc    8   1.570  -1.448   1.991
 3160COF    HWc    9   1.509  -1.587   1.932
   5.33840   5.74670   5.62630

but this isn't...

tail -n11 bug/bug/crystal-water-tip3p/wt_cofactor.gro
9
 3071COF   OWc    1   2.542  -1.493   2.303
 3071COF   HWc    2   2.597  -1.415   2.274
 3071COF   HWc    3   2.588  -1.539   2.378
 3134COF   OWc    4   1.466  -1.072   1.608
 3134COF   HWc    5   1.489  -0.996   1.669
 3134COF   HWc    6   1.510  -1.156   1.640
 3160COF   OWc    7   1.561  -1.546   2.008
 3160COF   HWc    8   1.570  -1.448   1.991
 3160COF   HWc    9   1.509  -1.587   1.932
   5.00000   5.00000   5.00000

If you fix the formatting of the wt_cofactor.gro file then the coordinates are parsed correctly and you end up with the correct values in the output file. I do think that there should be a warning/error on read, though, since it should be clear to the user when something isn't read correctly. Once this issue has been reposted I'll open a related issue for Sire so that we can debug the error handling in the Gro87 parser. Annoyingly GROMACS itself has recently changed the way that certain files are parsed and is inconsistent between tools within the GROMACS suite. Some things that were previously parsed using whitespace as a delimiter now require precise fixed-width formatting. This could be why the file isn't being loaded correctly, i.e we don't just assume the correct number of records per line, but the right layout of those records.

After modifying the crystal water GRO file I get:

tail -n10 test1.gro
 3071COF    OWc 4627   2.542  -1.493   2.303
 3071COF    HWc 4628   2.597  -1.415   2.274
 3071COF    HWc 4629   2.588  -1.539   2.378
 3134COF    OWc 4630   1.466  -1.072   1.608
 3134COF    HWc 4631   1.489  -0.996   1.669
 3134COF    HWc 4632   1.510  -1.156   1.640
 3160COF    OWc 4633   1.561  -1.546   2.008
 3160COF    HWc 4634   1.570  -1.448   1.991
 3160COF    HWc 4635   1.509  -1.587   1.932
   5.33840   5.74670   5.62630

...and

tail -n10 test2.gro
 3071COF    OWc 4627   2.542  -1.493   2.303
 3071COF    HWc 4628   2.597  -1.415   2.274
 3071COF    HWc 4629   2.588  -1.539   2.378
 3134COF    OWc 4630   1.466  -1.072   1.608
 3134COF    HWc 4631   1.489  -0.996   1.669
 3134COF    HWc 4632   1.510  -1.156   1.640
 3160COF    OWc 4633   1.561  -1.546   2.008
 3160COF    HWc 4634   1.570  -1.448   1.991
 3160COF    HWc 4635   1.509  -1.587   1.932
   5.33840   5.74670   5.62630

These are identical, i,e,:

diff <(tail -n10 test1.gro) <(tail -n10 test2.gro)

returns nothing.

from biosimspace.

ale94mleon avatar ale94mleon commented on July 22, 2024

Sorry for the wrong naming. Ok, probably I made a mistake during the creation of the gro file. I made that one manually. The change in name is not in the gro file but in the topology. But I understand why sire changes the name of water inside the topology. It is fair enough. However, a problem raises in case we would like to give a different treatment to crystal water during minimization and equilibration (e.g. restraint them) or analysis.

from biosimspace.

lohedges avatar lohedges commented on July 22, 2024

Closing since this is now tracked in OpenBioSim/biosimspace#148.

from biosimspace.

Related Issues (20)

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.