Removealt: Difference between revisions
Jump to navigation
Jump to search
(usage, example) |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 2: | Line 2: | ||
|type = script | |type = script | ||
|filename = removealt.py | |filename = removealt.py | ||
|author = [[ | |author = [[User:Inchoate|Jason Vertrees]] | ||
|license = Free | |license = Free | ||
}} | }} | ||
Line 36: | Line 36: | ||
[[Category:Script_Library]] | [[Category:Script_Library]] | ||
[[Category:ObjSel_Scripts]] | [[Category:ObjSel_Scripts]] | ||
[[Category:Pymol-script-repo]] |
Latest revision as of 10:04, 15 January 2012
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 |
removeAlt removes all atoms from obj that have alternate locations but aren't altloc keep.
Usage
removealt [ obj [, keep ]]
Example
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