Skip to content

Shift in grid-based calculations #1127

@choutkaj

Description

@choutkaj

Hi all,

I am running GIST on some small molecules and the resulting maps for all the calculated quantities are shifted in space relative to the solute. I am getting this issue with both gist and grid commands. The amount of shift depends on grid spacing (voxel size). With gridspacn 0.1 the shift is almost not noticeable, but the higher gridspacn the more the maps deviate from the solute. Even with default gridspacn 0.5 the maps are quite notably off. See the attached picture for examples of O density around benzene and acetonitrile with different gridspacn values.

The trajectories were generated in OpenMM. I am getting this issue both when I wrap the trajectory in OpenMM (enforcePeriodicBox=True) or keep in unwrapped and then wrap (autoimage) in CPPTRAJ. I am even getting this issue when I run gist from the beginning of an unwrapped trajectory (before the waters float away). So I don’t think it's caused by wrapping. I have tried different sizes of the simulation box and different sizes and centers of GIST boxes, but the issue is still the same.

CPPTRAJ input looks like this with wrapping and rms to the original solute position:

parm solvated_system.prmtop
trajin trajectory.dcd
autoimage
reference solvated_system.pdb
rms reference :1
gist gridcntr 15.0 -10.0 -15.0 griddim 25 25 25 gridspacn 0.5 out gist.out
go

and like this with no wrapping:

parm solvated_system.prmtop
trajin trajectory.dcd
gist gridcntr 15.0 -10.0 -15.0 griddim 25 25 25 gridspacn 0.5 out gist.out
go

I don’t think my problem is related to #198 as I have identical grids in both gist and grid, that doesn’t seem to be the problem either. I am using CPPTRAJ V6.18.1 (AmberTools) and OpenMM 8.2.0, both installed via micromamba.

Any ideas where the problem might be?

Many thanks,
Jan

benzene_acetamide_gist

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