Skip to content

Instantly share code, notes, and snippets.

@jaumebonet
Last active March 14, 2019 12:30
Show Gist options
  • Save jaumebonet/d638122218e34c8b4f18 to your computer and use it in GitHub Desktop.
Save jaumebonet/d638122218e34c8b4f18 to your computer and use it in GitHub Desktop.
Pymol Command Scripts
cartoon automatic
set cartoon_loop_radius, 0.3
set cartoon_side_chain_helper, 1
set cartoon_discrete_colors, 1
bg_color white
set ray_opaque_background, off
set ray_texture, 5
set ray_shadows, 0
set antialias, 2
set ray_trace_mode, 1
set max_threads, 4
set specular, 0
set hash_max, 600
draw 2000, 1500, 2
color blue, ss h
color red, ss s
color forest, ss l+''
util.cnc *
@jaumebonet
Copy link
Author

jaumebonet commented Oct 29, 2015

Mimic Low Resolution Structures

Represent alpha helices as cylinders:

set cartoon_cylindrical_helices, 1

Represent helix as low-res (no arrow)

set cartoon_fancy_sheets, 0

Go back to normal helix representation with:

set cartoon_cylindrical_helices, 0
set cartoon_fancy_sheets, 1

@jaumebonet
Copy link
Author

Hide Hydrogents

hide (hydro)

@jaumebonet
Copy link
Author

Cartoon Trace in CA structures

set cartoon_trace, 1

@jaumebonet
Copy link
Author

Align multiple states to a selection (in a given state)

intra_fit (selection),state

@jaumebonet
Copy link
Author

Change the width of the distance lines

set dash_width, 4

@jaumebonet
Copy link
Author

jaumebonet commented Oct 15, 2018

Take out dashed lines in chain breaks

set cartoon_gap_cutoff, 0

https://pymolwiki.org/index.php/Cartoon_gap_cutoff

@jaumebonet
Copy link
Author

Alter line thickness in ray trace mode 1

set ray_trace_gain, 0.0

https://pymolwiki.org/index.php/Ray_Trace_Gain

@jaumebonet
Copy link
Author

jaumebonet commented Nov 7, 2018

Remove light highlights

set spec_reflect, 0

https://pymolwiki.org/index.php/Spec_reflect

check also
https://pymolwiki.org/index.php/Spec_power

@jaumebonet
Copy link
Author

Change the size of a sphere

with 1 being the default value...

set sphere_scale, 0.3

https://pymolwiki.org/index.php/Sphere_scale

@jaumebonet
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment