Here I will give a very rough guide on how to wrap, or rather overlay, an image onto the surface of a molecule using PhotoShop CS5 and PyMol. You should end with something like this:
My original inspiration to playing around with textures on surfaces was from this youtube tutorial. Although the video is pretty awful and waaaay to long it does however (eventually) show you how to do it and I respect the authors willingness to share. Below I have very roughly summarized how to create the effect yourself.
- Find the PDB code of the crystal structure you desire to wrap a texture around. I used one of the crystal structures of the 20S proteasome because it looks like a big canvas and it is easy to use. I have also used ribosome structures and other large molecules, but they may require more work before they are usable.
- In PyMol use the fetch command together with PDB code you found in step 1 to load the model into PyMol.
- Display the model with surface representation by typing “show surface”
- Change the color to e.g. a light grey color by typing “color grey50” or to whatever color you want.
- In PyMol set the background to transparent by turning opaque background off using “set opaque_background, off”
- Find an orientation you like and write out a PNG by typing “png structure.png, dpi=300”. This will save the png file to the current directory. (optional: raytrace the image before saving it)
- By using googles image search find a suitable motiv you want to wrap around /onto the structure, like the flag I used above. Save the image e.g. as flag.png.
- Open flag.png in a tab in PhotoShop and structure.png in another tab.
- Copy/paste the flag motiv into the structure tab. (<ctrl-A>, <ctrl-C>, change tab, <ctrl-V>)
- Scale the flag motive to cover the structure. (Click select flag, <ctrl-t>, drag at corners until it covers what you want of the structure, <enter>.
- Now while holding down Ctrl click on the layer containing the structure and you should see it outlined behind the flag.
- Now add the structure layer as a layer mask to the flag layer (I know it sounds confusing).
- Now pick a blending mode , I normally use the overlay mode or the hard/soft light mode.
- You are basically done now and if everything went like planed you will have something like the above figures. If not try again!