Skip to content

Instantly share code, notes, and snippets.

@jaimergp
Created January 18, 2016 09:33
Show Gist options
  • Save jaimergp/52e04a33603e067b1b07 to your computer and use it in GitHub Desktop.
Save jaimergp/52e04a33603e067b1b07 to your computer and use it in GitHub Desktop.
Center MD protein in PBC box with VMD
######################################################################
### Center multi-unit protein in pbc box with VMD
### Make sure you are in first frame of MD
######################################################################
# Join separate units for this first frame only
pbc join connected -now
pbc join residue -now
# Join the protein for all MD
pbc unwrap -sel "not waters" -all
# Place the protein in the center of the box
pbc wrap -centersel "not waters" -center com -compound residue -all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment