Split states: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(→Using) |
||
Line 1: | Line 1: | ||
=Overview= | =Overview= | ||
'''Split_States''' splits and orients multiple models and multimers from the biological unit file. | '''Split_States''' splits and orients multiple models and multimers from the biological unit file. | ||
= Overview = | |||
[[Split_States]] separates a multi-state molecular object into a set of single-state molecular objects. | |||
== Syntax == | |||
<source lang="python"> | |||
split_states object [, first [, last [, prefix ]]] | |||
</source> | |||
This splits the '''object''' from '''first''' to '''last''' out to the array of objects prefixed by '''prefix'''. The '''prefix''' option is very handy is all your states--or a subset of the states--have the same name. | |||
==Using== | ==Using== | ||
Line 6: | Line 17: | ||
Load your molecule | Load your molecule | ||
<source lang="python"> | <source lang="python"> | ||
# example usage | |||
load fileName.pdb1, name | load fileName.pdb1, name | ||
split_states name | split_states name | ||
delete name | delete name | ||
# split all the states to objects starting with conf | |||
fetch 1nmr | |||
split_states 1nmr, prefix=conf | |||
</source> | </source> | ||
Revision as of 08:52, 19 January 2009
Overview
Split_States splits and orients multiple models and multimers from the biological unit file.
Overview
Split_States separates a multi-state molecular object into a set of single-state molecular objects.
Syntax
split_states object [, first [, last [, prefix ]]]
This splits the object from first to last out to the array of objects prefixed by prefix. The prefix option is very handy is all your states--or a subset of the states--have the same name.
Using
To use split_states simply Load your molecule
# example usage
load fileName.pdb1, name
split_states name
delete name
# split all the states to objects starting with conf
fetch 1nmr
split_states 1nmr, prefix=conf
Example
1VLS: A dimer.
load 1vls.pdb1, 1vls
split_states 1vls
dele 1vls