Skip to content

Instantly share code, notes, and snippets.

@hainm
Last active August 31, 2016 15:39
Show Gist options
  • Save hainm/ded7aaf02f8560bdba6cd357bb7672ec to your computer and use it in GitHub Desktop.
Save hainm/ded7aaf02f8560bdba6cd357bb7672ec to your computer and use it in GitHub Desktop.
import parmed as pmd
parm = pmd.load_file("old.parm7")
# suppose your H is 1st atom
atom = parm.atoms[0]
# add you stuff here
atom.name =
atom.type =
atom.atomic_number =
atom.charge =
parm.save('new.parm7')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment