Removealt

From PyMOLWiki
Revision as of 18:08, 13 December 2011 by Tlinnet (talk | contribs)
Jump to navigation Jump to search
Type Python Script
Download removealt.py
Author(s) Jason Vertrees
License Free
This code has been put under version control in the project Pymol-script-repo

Overview

removeAlt removes all atoms from obj that have alternate locations but aren't altloc keep.

Example 1

Download: examples/removealt_1.pml
This code has been put under version control in the project Pymol-script-repo
reinitialize
import removealt

fetch 1hxb, async=0

print("Try: select resn ROC")
print("Try: select ligA, alt a")
print("Try: select ligB, alt b")
print("Try: removealt 1hxb, b")
print("Try: select ligA, alt a")
print("Try: select ligB, alt b")
print("Try: select resn ROC")

See Also

Handling Alternate Locations and alter