This is a read-only mirror of

Difference between revisions of "Removealt"

From PyMOL Wiki
Jump to navigation Jump to search
(usage, example)
Line 2: Line 2:
|type      = script
|type      = script
|filename  =
|filename  =
|author    = [[Users:Inchoate|Jason Vertrees]]
|author    = [[User:Inchoate|Jason Vertrees]]
|license  = Free
|license  = Free

Revision as of 23:26, 13 January 2012

Type Python Script
Author(s) Jason Vertrees
License Free
This code has been put under version control in the project Pymol-script-repo

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


removealt [ obj [, keep ]]


import removealt

fetch 1hxb, async=0

select ligA, alt a
select ligB, alt b

count_atoms ligA    # 49 atoms
count_atoms ligB    # 49 atoms

removealt 1hxb, b

count_atoms ligA    # 0 atoms
count_atoms ligB    # 49 atoms

See Also

Handling Alternate Locations and alter