Skip to content

Coupling groups in Gromacs #377

@cespos

Description

@cespos

Is your feature request related to a problem? Please describe.
Hi,
I tried to use BSS to run MD simulations for a protein-ligand complex using Gromacs.
Looking at the configuration file, I noticed that the coupling groups for temperature coupling were not appropriate.
In the BSS protocol, it is
tc-grps = system
tau-t = 2.0
ref-t = 300.00

Instead, it should be
tc-grps = Protein_LIG Water_and_ions
tau-t = 2.0 2.0
ref-t = 300 300

And this would also require the generation of the appropriate groups in the index file using gmx make_ndx.

I did not check it, but I imagine that this would be an issue also for proteins (apo) in water where the coupling groups should be
tc-grps = Protein Non-Protein

Describe the solution you'd like
I am not sure how to solve this issue, because it may change from system to system.
Maybe an additional argument coupling_groups in the functions for Gromacs protocols would do it (with an inside loop that writes the tau-t and ref-t parameters).

Describe alternatives you've considered
Alternatively, one could write a function that generates the index file and tries to smartly "guess" the coupling groups from there.
For example, if you have
gmx make_ndx -f em.gro -o index.ndx

0 System              : 33506 atoms <\br>
1 Protein              :  2614 atoms
11 non-Protein    : 30892 atoms
13 LIG                  :    22 atoms
15 Water              : 30864 atoms
17 non-Water      :  2642 atoms
18 Ion                  :     6 atoms
19 LIG                  :    22 atoms
20 CL                   :     6 atoms
21 Water_and_ions      : 30870 atoms

The function could be

def get_coupling_groups(index_file):
    if Water_and_ions in index_file:
         group1=Water_and_ions 
    elif Water in index_file:
        group1=Water   
    if Protein in index_file:
        if N_atoms_Protein + N_atoms_group1 == N_atoms_System:
            group2=Protein 
    ...

...But it will be hard this way to figure out all possibilities (e.g. multiple ligands, solvent mixtures,...)

Thanks,
Carmen

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions