Also, "join_states multitest, (test*)" could not achieve the purpose. The
multiple objects can be combined into one object, but the b-factor in this
object is all the same as the last frame.
-- Original --
From:
Dear Cheng,
Please note that the original split_states code that I posted
has a typo (the dangers of posting a reply before dawn!)
The semicolon after pdb should be a comma.
split_states protein, prefix=test;
Thank you Tamas for the pseudo code for iterating the application of spectrum!!!
Afte
Dear Blaine,
I tried "split_states protein, prefix=test", it can output multiple objects,
with each object having 1 frame.
However, when each object (test0001, test0002, ...) is saved as PDB, I found
that the b-factor values are all the same as the last frame of the protein.pdb.
Best
Cheng
you can also try not to split and
set/activate the given frame in the for loop
it could happen that spectrum works on the active frame (which was the
last one in your case)
https://pymolwiki.org/index.php/Frame
On 8/31/20 2:16 PM, ZHANG Cheng wrote:
Thank you, this could be a solution. I would
You may write and use a script after splitting the object.
a pseudo code:
for i in range(1, 1001):
spectrum b, rainbow, frame_i
enable frame_i
sleep sometime
disable frame_i
On 8/31/20 12:56 PM, ZHANG Cheng wrote:
Hi Blaine,
Thank you for your suggestion. "set all_states, on"
Hi Blaine,
Thank you for your suggestion. "set all_states, on" could not work.
For splitting the object, it is an alternatve. But I have 1000 frames in the
object, and I want to show a movie by playing the frames.
Best
Cheng
-- Original --
From:
Hi ZHANG Cheng,
Did you try?
set all_states, on;spectrum b
Another approach would to split the states into separate objects and then apply
the
spectrum command to each object.
split_states protein.pdb; prefix=test;spectrum b,,test*
Best regards,
Blaine
Blaine Mooers, Ph.D.
Associate Profe