Rotation with "turn" Command

This section provides a tutorial on how to rotate the molecule structure by using the 'turn' command to rotate the camera on PyMol.

You can also use the "turn" command to rotate the camera and let PyMol to update the rotation transformation matrix.

Let's load the molecule structure, rotate the camera, and check the transformation matrix in view parameters.

PyMOL>load /Users/herong/Molecule-HY-001.sdf

PyMOL>turn x, 45

PyMOL>get_view

### cut below here and paste into script ###
set_view (\
     1.000000000,    0.000000000,    0.000000000,\
     0.000000000,    0.707106769,    0.707106829,\
     0.000000000,   -0.707106829,    0.707106769,\
     0.000000000,    0.000000000,  -17.179622650,\
     0.876923084,   -0.289230824,    0.000000000,\
    13.544545174,   20.814699173,  -20.000000000 )
### cut above here and paste into script ###

As you can see, the "turn x, 45" command actually updated the rotation transformation matrix as:

  1.0, 0.0, 0.0
  0.0, 0.7, 0.7
  0.0,-0.7, 0.7

Don't mix up the "turn" command with the "rotate" command. See the next tutorial to find out the differences.

Table of Contents

 About This Book

 Introduction of Molecules

 Molecule Names and Identifications

 Protein and Amino Acid

 Nucleobase, Nucleoside, Nucleotide, DNA and RNA

 Gene and Chromosome

 Protein Kinase (PK)

 SDF (Structure Data File)

 RDKit: Open-Source Cheminformatics Software

 PyMol Installation

PyMol GUI and CLI

 PyMol Screen Layout

 Load Molecule from File into PyMol

 Virtual Trackball Rotation on PyMol

 Zoom In and Out on PyMol

 PyMol Command Line Interface

 "load" and "delete" Commands on PyMol

 "log_open" and "log_close" Commands on PyMol

 Model Space and Camera Space on PyMol

 "get_view" and "set_view" on PyMol

 View Parameters Auto Adjusted on PyMol

 Zoom In/Out by Moving Camera

 Rotation with Transformation Matrix

Rotation with "turn" Command

 Difference of "turn" and "rotate" Commands

 Difference of "move" and "translate" Commands

 "center", "zoom" and "reset" Commands

 Model-to-Camera Space Coordinates Mapping

 Camera-to-Model Space Coordinates Mapping

 Turn Structure around Camera

 "show lines" Presentation Command

 "show sticks" Presentation Command

 "show spheres" Presentation Command

 "show surface" Presentation Command

 "show mesh" Presentation Command

 PyMol Selections

 PyMol Editing Functions

 PyMol Measurement Functions

 PyMol Movie Functions

 PyMol Python Integration

 PyMol Object Functions

 ChEMBL Database - European Molecular Biology Laboratory

 PubChem Database - National Library of Medicine

 PDB (Protein Data Bank)

 INSDC (International Nucleotide Sequence Database Collaboration)

 Resources and Tools

 Molecule Related Terminologies

 References

 Full Version in PDF/EPUB