Difference between revisions of "Alter State"
Jump to navigation
Jump to search
(redirect iterate) |
|||
(6 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | + | #REDIRECT [[iterate]] | |
+ | |||
'''alter_state''' changes the atomic coordinates of a particular state using the python evaluator with a separate name space for each atom. The symbols defined in the name space are: | '''alter_state''' changes the atomic coordinates of a particular state using the python evaluator with a separate name space for each atom. The symbols defined in the name space are: | ||
− | + | * x | |
+ | * y | ||
+ | * z | ||
===USAGE=== | ===USAGE=== | ||
Line 9: | Line 12: | ||
===EXAMPLES=== | ===EXAMPLES=== | ||
− | Alter the X coordinate for all | + | <source lang="python"> |
− | + | # Alter the X coordinate for all | |
− | + | alter_state 1,(all),x=x+5 | |
− | |||
+ | #Shift the coordinates of the entire PDB file | ||
+ | alter_state 1,selection,(x,y,z)=(newx,newy,newz) | ||
+ | </source> | ||
===SEE ALSO=== | ===SEE ALSO=== | ||
− | [[ | + | [[Iterate_State]], [[alter]], [[iterate]] |
− | [[Category:Commands| | + | [[Category:Commands|Alter State]] |
+ | [[Category:States|Alter State]] |
Latest revision as of 17:01, 23 December 2015
Redirect to:
alter_state changes the atomic coordinates of a particular state using the python evaluator with a separate name space for each atom. The symbols defined in the name space are:
- x
- y
- z
USAGE
alter_state state,(selection),expression
EXAMPLES
# Alter the X coordinate for all
alter_state 1,(all),x=x+5
#Shift the coordinates of the entire PDB file
alter_state 1,selection,(x,y,z)=(newx,newy,newz)