Skip to content

Another thing people use ParmEd for - translate data into a richer format for use in VMD.  #356

@mrshirts

Description

@mrshirts

Example ParmEd use case that we may (or may not!) want to support; just want to mention interconversion uses.


VMD doesn't recognize the gromacs topology files (.top and .itp) which have bond and charge information. When we load a gro/xtc/trr file, VMD simply guesses bonds based on residue and distance information. For accurate visualization of bonds and charges in VMD, it can be useful to instead read a CHARMM psf file. Psf file files can be generated using the information in gromacs topology files with ParmEd. PSF file can be generated as follows:

`
import parmed

gmx_top = parmed.load_file("topol.top", xyz = 'coordinates.gro', parametrize= False)

gmx_top.save('structure.psf')
`

Then 'structure.psf' can be loaded in VMD along with 'coordinates.gro' and visualize bonds, as well as color code the charge of the atoms.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestneeds-infoNeeds more information from user(s)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions