Skip to content

Instantly share code, notes, and snippets.

@madscientist01
Last active December 10, 2015 11:58
Show Gist options
  • Select an option

  • Save madscientist01/4430895 to your computer and use it in GitHub Desktop.

Select an option

Save madscientist01/4430895 to your computer and use it in GitHub Desktop.
Pymol scripts for TALE-DNA structure movie
set matrix_mode, 1
load ~/Dropbox/talen/3ugm.pdb
create DNA, /3UGM//B/ or /3UGM//C
create TALECARTOON, /3UGM//A/
create TALE, /3UGM//A/
create HD1, /3UGM//A/334-335/
create HD2, /3UGM//A/368-369/
set cartoon_ring_mode,1
spectrum count,rainbow, TALE
spectrum count,rainbow, TALECARTOON
bg_color white
hide all
as cartoon, DNA
set cartoon_oval_width, 0.07
set cartoon_oval_length, 1
set_view (\
0.917161584, 0.035160903, 0.396963686,\
-0.073943011, 0.993817449, 0.082813837,\
-0.391597897, -0.105305314, 0.914089859,\
0.000000000, 0.000000000, -398.607299805,\
-2.612998962, 57.615203857, -11.957862854,\
321.190734863, 476.023925781, -20.000000000 )
scene DNA, store
hide all
as cartoon, DNA
as cartoon, TALECARTOON
set_view (\
0.917161584, 0.035160903, 0.396963686,\
-0.073943011, 0.993817449, 0.082813837,\
-0.391597897, -0.105305314, 0.914089859,\
0.000000000, 0.000000000, -398.607299805,\
-2.612998962, 57.615203857, -11.957862854,\
321.190734863, 476.023925781, -20.000000000 )
scene DNATALE1, store
hide all
as cartoon, DNA
as cartoon, TALECARTOON
as surface, TALE
set transparency, 0.3
set_view (\
0.917161584, 0.035160903, 0.396963686,\
-0.073943011, 0.993817449, 0.082813837,\
-0.391597897, -0.105305314, 0.914089859,\
0.000000000, 0.000000000, -398.607299805,\
-2.612998962, 57.615203857, -11.957862854,\
321.190734863, 476.023925781, -20.000000000 )
scene DNATALE2, store
hide all
as cartoon, DNA
as cartoon, TALECARTOON
as surface, TALE
set transparency, 0.3
set_view (\
0.917161584, 0.035160903, 0.396963686,\
-0.073943011, 0.993817449, 0.082813837,\
-0.391597897, -0.105305314, 0.914089859,\
0.000000000, 0.000000000, -398.607299805,\
-2.612998962, 57.615203857, -11.957862854,\
321.190734863, 476.023925781, -20.000000000 )
scene rotate1, store
hide all
as cartoon, DNA
as cartoon, TALECARTOON
as surface, TALE
set transparency, 0.3
set_view (\
-0.221848860, 0.040818494, 0.974225879,\
-0.048463572, 0.997427225, -0.052826583,\
-0.973876059, -0.058934011, -0.219299749,\
0.000000000, 0.000000000, -398.607299805,\
-2.612998962, 57.615203857, -11.957862854,\
321.190734863, 476.023925781, -20.000000000 )
scene rotate2, store
hide all
as cartoon, DNA
as cartoon, TALECARTOON
as surface, TALE
set transparency, 0.3
set_view (\
-0.994272649, 0.056723613, -0.090576209,\
0.064241268, 0.994530082, -0.082360663,\
0.085408673, -0.087707609, -0.992478251,\
0.000000000, 0.000000000, -398.607299805,\
-2.612998962, 57.615203857, -11.957862854,\
321.190734863, 476.023925781, -20.000000000 )
scene rotate3, store
hide all
as cartoon, DNA
as cartoon, TALECARTOON
as surface, TALE
set transparency, 0.3
### cut below here and paste into script ###
set_view (\
0.583561420, 0.066711508, -0.809323728,\
0.063115351, 0.989879608, 0.127103716,\
0.809612572, -0.125253588, 0.573444724,\
0.000000000, 0.000000000, -398.607299805,\
-2.612998962, 57.615203857, -11.957862854,\
321.190734863, 476.023925781, -20.000000000 )
scene rotate4, store
hide all
as cartoon, DNA
as cartoon, TALECARTOON
as stick, HD1
label n. CA and HD1, resn, resi
set label_position,(1,-3,3)
set_view (\
0.669072568, 0.098997362, 0.736572385,\
0.607038200, 0.498988479, -0.618475378,\
-0.428770632, 0.860934496, 0.273765475,\
0.000000000, 0.000000000, -61.022392273,\
-11.458999634, 91.259002686, -10.211000443,\
51.841697693, 70.203086853, -20.000001907 )
scene HD1, store
mset 1 x 550
frame 1
mview store, scene=DNA
frame 50
mview store, scene=DNATALE1
frame 100
mview storem scene=DNATALE2
frame 150
mview store, scene=rotate1
frame 200
mview store, scene=rotate2
frame 250
mview store, scene=rotate3
frame 300
mview store, scene=rotate4
frame 350
mview store, scene=rotate1
frame 400
mview store, scene=HD1
frame 450
mview store, scene=HD1
frame 500
mview store, scene=HD1
frame 550
mview store, scene=rotate
mview interpolate
mview smooth
set cache_frames, 1
set ray_shadows, 1
set mesh_width, 0.25
set ray_trace_frame, 1
mplay
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment