User:Wayne Decatur/3kg2 Morph Methods: Difference between revisions

From Proteopedia
Jump to navigationJump to search
Wayne Decatur (talk | contribs)
mNo edit summary
Wayne Decatur (talk | contribs)
mNo edit summary
Line 22: Line 22:
save test.pdb, all  
save test.pdb, all  
</pre>
</pre>
(By the way 'hide everything' can be typed as command since hard to hit using sidebar menu with many large files open.)


'''However, this didn't save the orientation I had moved it to at the start.''' Seems I could use [http://pymolwiki.org/index.php/Get_View get_view] and [http://pymolwiki.org/index.php/Set_View set_view] commands to get back to what I wanted after reload but I need it to open in Jmol the way I wanted so that doesn't help. A little more searching turned up on the [http://pymolwiki.org/index.php/Modeling_and_Editing_Structures Modeling and Editing Structures page of the PyMol Wiki] that I could save with transformed coordinates using a simple Python script:<br>
'''However, this didn't save the orientation I had moved it to at the start.''' Seems I could use [http://pymolwiki.org/index.php/Get_View get_view] and [http://pymolwiki.org/index.php/Set_View set_view] commands to get back to what I wanted after reload but I need it to open in Jmol the way I wanted so that doesn't help. A little more searching turned up on the [http://pymolwiki.org/index.php/Modeling_and_Editing_Structures Modeling and Editing Structures page of the PyMol Wiki] that I could save with transformed coordinates using a simple Python script:<br>
Line 42: Line 44:
'''However, that didn't save orientation I expected.''' I tried it on a single pdb file (no multiple models in the file) that I did rotate and instead of using 'all' as the name I used the object ('save_transformed 3KG2a, test.pdb') and it did save it as a different orientation; however, strangely not the exact one I expected. '''There must be an error in how the matrix is applied or the script is old and the matrix was altered afer.''. Yet since each of the ten models in the subunit A to B morph would need to be changed individually, it wouldn't be worth it when Jmol can fix it right after it loads.  
'''However, that didn't save orientation I expected.''' I tried it on a single pdb file (no multiple models in the file) that I did rotate and instead of using 'all' as the name I used the object ('save_transformed 3KG2a, test.pdb') and it did save it as a different orientation; however, strangely not the exact one I expected. '''There must be an error in how the matrix is applied or the script is old and the matrix was altered afer.''. Yet since each of the ten models in the subunit A to B morph would need to be changed individually, it wouldn't be worth it when Jmol can fix it right after it loads.  


'''Problem was earlier in PyMol that I was orienting the view the way I wanted but not actually changing orientation of molecule.''' To move one molecule to where I want and change coordinates I really need to just go into the 3-butting editing mode and while holding down the SHIFT BUTTON, rotate the molecule to where I want, and then save from the main menu. This is similar to how it tells you to superimpose by hand according to [http://pymolwiki.org/index.php/Modeling_and_Editing_Structures Modeling and Editing Structures page of the PyMol Wiki]. Except I don't have a real other molecule there. I just have a vision of where I want the molecule to be. Now to test of I can load the subunit a to b morph and get the correct file back out?
'''Problem was earlier in PyMol that I was orienting the view the way I wanted but not actually changing orientation of molecule.''' To move one molecule to where I want and change coordinates I really need to just go into the 3-butting editing mode and while holding down the SHIFT BUTTON, rotate the molecule to where I want, and then save from the main menu. This is similar to how it tells you to superimpose by hand according to [http://pymolwiki.org/index.php/Modeling_and_Editing_Structures Modeling and Editing Structures page of the PyMol Wiki]. Except I don't have a real other molecule there. I just have a vision of where I want the molecule to be. Now to test of I can load the subunit a to b morph and get the correct file back out?<br>
Doing that (a) only rotates one of the models at a time; and (b) results in saving only the one model in first frame even if you issue command 'save test.pdb, all'.  Though I could do by commands such as' rotate x, 270, state=0' so it will move all at once (http://pymolwiki.org/index.php/Rotate) and then get past saving problem by issuing the 'split_states' command I used earlier.
 
 
Saving a layer from pymol after it had been pair_fit (PyMol moves the first object in a command like 'pair_fit 3KG2a,3KG2b' onto the second one does indeed change the orientation of the second one;note DeepView keeps what you loaded first in place and magic fits second item when magicfitting default way so second orientation gets changed and saves different) and so they will be able to be superimposed in Jmol when superimposed that way.




Saving a layer from pymol after it had been pair_fit (PyMol moves the first object in a command like 'pair_fit 3KG2a,3KG2b' onto the second one does indeed change the orientation of the second one;note DeepView keeps what you loaded first in place and magic fits second item when magicftting default way so second orientation gets changed and saves different) and so they will be able to be superimposed in Jmol when superimposed that way.


==In Jmol Application==
In JMOL,  
In JMOL,  
<pre>
<pre>
Line 53: Line 59:
saves both models with model numbers already included if multiple PDB files loaded with append on originally in the Jmol application.
saves both models with model numbers already included if multiple PDB files loaded with append on originally in the Jmol application.


==In Jmol Application==
 
load subunit A and then B with load append on in Jmol
load subunit A and then B with load append on in Jmol
<pre>  
<pre>  
Line 68: Line 74:
cowrite COORDS PDB "test.pdb"  
cowrite COORDS PDB "test.pdb"  
</pre>
</pre>
'translateSelected' is available too. Just be careful not to move view using mouse before set.