1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156
|
PyMOL>from pymol2 import PyMOL
PyMOL>lst = []
PyMOL>for i in range(0,3): lst.append( PyMOL() )
PyMOL>for pi in lst: pi.start()
PyMOL>cmd.load("dat/1tii.pdb",quiet=0)
HEADER ENTEROTOXIN 20-MAR-96 1TII
TITLE ESCHERICHIA COLI HEAT LABILE ENTEROTOXIN TYPE IIB
COMPND MOL_ID: 1;
COMPND 2 MOLECULE: HEAT LABILE ENTEROTOXIN TYPE IIB;
COMPND 3 CHAIN: D, E, F, G, H, A, C;
COMPND 4 SYNONYM: LT-IIB;
COMPND 5 ENGINEERED: YES;
COMPND 6 OTHER_DETAILS: LATENT/INACTIVE FORM
ObjectMolecule: Read secondary structure assignments.
ObjectMolecule: Read crystal symmetry information.
Symmetry: Found 6 symmetry operators.
CmdLoad: "dat/1tii.pdb" loaded as "1tii".
PyMOL>lst[0].cmd.load("dat/pept.pdb",quiet=0)
CmdLoad: "dat/pept.pdb" loaded as "pept".
PyMOL>lst[1].cmd.load("dat/3al1.pdb",quiet=0)
HEADER STRUCTURAL PROTEIN 26-OCT-98 3AL1
TITLE DESIGNED PEPTIDE ALPHA-1, RACEMIC P1BAR FORM
COMPND MOL_ID: 1;
COMPND 2 MOLECULE: D, L-ALPHA-1;
COMPND 3 CHAIN: A, B;
COMPND 4 ENGINEERED: YES;
COMPND 5 OTHER_DETAILS: N TERMINI ARE ACETYLATED
ObjectMolecule: Read secondary structure assignments.
ObjectMolecule: Read crystal symmetry information.
Symmetry: Found 2 symmetry operators.
CmdLoad: "dat/3al1.pdb" loaded as "3al1".
PyMOL>print cmd.count_atoms()
5684
PyMOL>for pi in lst: print pi.cmd.count_atoms()
107
679
0
PyMOL>cmd._dump_floats(lst[0].cmd.get_view())
1.000 0.000 0.000 0.000 1.000 0.000 0.000 0.000 1.000
0.000 0.000 -63.191 1.224 -10.279 20.545 49.820 76.561 0.000
PyMOL>lst[0].cmd.ray(renderer=2)
RayRenderTest: obtained 166 graphics primitives.
PyMOL>lst[0].cmd.view("F1","store")
view: view stored as "F1".
PyMOL>lst[0].cmd.turn("x",45)
PyMOL>cmd._dump_floats(lst[0].cmd.get_view())
1.000 0.000 0.000 0.000 0.707 0.707 0.000 -0.707 0.707
0.000 0.000 -63.191 1.224 -10.279 20.545 49.820 76.561 0.000
PyMOL>lst[0].cmd.show_as("cartoon")
PyMOL>lst[0].cmd.ray(renderer=2)
RayRenderTest: obtained 800 graphics primitives.
PyMOL>lst[0].cmd.view("F2","store")
view: view stored as "F2".
PyMOL>cmd._dump_floats(lst[1].cmd.get_view())
1.000 0.000 0.000 0.000 1.000 0.000 0.000 0.000 1.000
0.000 0.000 -100.481 -9.632 2.772 -6.069 79.220 121.742 0.000
PyMOL>lst[1].cmd.ray(renderer=2)
RayRenderTest: obtained 1266 graphics primitives.
PyMOL>lst[1].cmd.view("F1","store")
view: view stored as "F1".
PyMOL>lst[1].cmd.turn("y",45)
PyMOL>cmd._dump_floats(lst[1].cmd.get_view())
0.707 0.000 -0.707 0.000 1.000 0.000 0.707 0.000 0.707
0.000 0.000 -100.481 -9.632 2.772 -6.069 79.220 121.742 0.000
PyMOL>lst[1].cmd.show_as("cartoon")
PyMOL>lst[1].cmd.ray(renderer=2)
RayRenderTest: obtained 2832 graphics primitives.
PyMOL>lst[1].cmd.view("F2","store")
view: view stored as "F2".
PyMOL>cmd._dump_floats(cmd.get_view())
1.000 0.000 0.000 0.000 1.000 0.000 0.000 0.000 1.000
0.000 0.000 -227.278 51.665 11.519 10.196 179.188 275.368 0.000
PyMOL>for pi in lst: cmd._dump_floats(pi.cmd.get_view())
1.000 0.000 0.000 0.000 0.707 0.707 0.000 -0.707 0.707
0.000 0.000 -63.191 1.224 -10.279 20.545 49.820 76.561 0.000
0.707 0.000 -0.707 0.000 1.000 0.000 0.707 0.000 0.707
0.000 0.000 -100.481 -9.632 2.772 -6.069 79.220 121.742 0.000
1.000 0.000 0.000 0.000 1.000 0.000 0.000 0.000 1.000
0.000 0.000 -50.000 0.000 0.000 0.000 40.000 100.000 0.000
PyMOL>lst[0].cmd.hide("everything")
PyMOL>lst[1].cmd.hide("everything")
PyMOL>lst[0].cmd.save("tmp/M0053sess0.pse",quiet=0)
Save: wrote "tmp/M0053sess0.pse".
PyMOL>lst[1].cmd.save("tmp/M0053sess1.pse",quiet=0)
Save: wrote "tmp/M0053sess1.pse".
PyMOL>lst[0].cmd.load("tmp/M0053sess1.pse",quiet=0)
Executive: Loading version 1.10 session...
PyMOL>lst[1].cmd.load("tmp/M0053sess0.pse",quiet=0)
Executive: Loading version 1.10 session...
PyMOL>cmd.ray(renderer=2)
RayRenderTest: obtained 9114 graphics primitives.
PyMOL>for pi in lst: pi.cmd.ray(renderer=2)
RayRenderTest: obtained 0 graphics primitives.
RayRenderTest: obtained 0 graphics primitives.
RayRenderTest: obtained 0 graphics primitives.
PyMOL>print cmd.count_atoms()
5684
PyMOL>or pi in lst: print pi.cmd.count_atoms()
Error: ambiguous command:
order orient origin
PyMOL>cmd._dump_floats(cmd.get_view())
1.000 0.000 0.000 0.000 1.000 0.000 0.000 0.000 1.000
0.000 0.000 -227.278 51.665 11.519 10.196 179.188 275.368 0.000
PyMOL>for pi in lst: cmd._dump_floats(pi.cmd.get_view())
0.707 0.000 -0.707 0.000 1.000 0.000 0.707 0.000 0.707
0.000 0.000 -100.481 -9.632 2.772 -6.069 79.220 121.742 0.000
1.000 0.000 0.000 0.000 0.707 0.707 0.000 -0.707 0.707
0.000 0.000 -63.191 1.224 -10.279 20.545 49.820 76.561 0.000
1.000 0.000 0.000 0.000 1.000 0.000 0.000 0.000 1.000
0.000 0.000 -50.000 0.000 0.000 0.000 40.000 100.000 0.000
PyMOL>lst[0].cmd.show_as("lines")
PyMOL>lst[1].cmd.show_as("lines")
PyMOL>lst[0].cmd.view("F1",animate=0)
view: "F1" recalled.
PyMOL>lst[1].cmd.view("F1",animate=0)
view: "F1" recalled.
PyMOL>cmd._dump_floats(cmd.get_view())
1.000 0.000 0.000 0.000 1.000 0.000 0.000 0.000 1.000
0.000 0.000 -227.278 51.665 11.519 10.196 179.188 275.368 0.000
PyMOL>for pi in lst: cmd._dump_floats(pi.cmd.get_view())
1.000 0.000 0.000 0.000 1.000 0.000 0.000 0.000 1.000
0.000 0.000 -100.481 -9.632 2.772 -6.069 79.220 121.742 0.000
1.000 0.000 0.000 0.000 1.000 0.000 0.000 0.000 1.000
0.000 0.000 -63.191 1.224 -10.279 20.545 49.820 76.561 0.000
1.000 0.000 0.000 0.000 1.000 0.000 0.000 0.000 1.000
0.000 0.000 -50.000 0.000 0.000 0.000 40.000 100.000 0.000
PyMOL>cmd.ray(renderer=2)
RayRenderTest: obtained 9114 graphics primitives.
PyMOL>for pi in lst: pi.cmd.ray(renderer=2)
RayRenderTest: obtained 1062 graphics primitives.
RayRenderTest: obtained 166 graphics primitives.
RayRenderTest: obtained 0 graphics primitives.
PyMOL>lst[0].cmd.show_as("cartoon")
PyMOL>lst[1].cmd.show_as("cartoon")
PyMOL>lst[0].cmd.view("F2",animate=0)
view: "F2" recalled.
PyMOL>lst[1].cmd.view("F2",animate=0)
view: "F2" recalled.
PyMOL>cmd._dump_floats(cmd.get_view())
1.000 0.000 0.000 0.000 1.000 0.000 0.000 0.000 1.000
0.000 0.000 -227.278 51.665 11.519 10.196 179.188 275.368 0.000
PyMOL>for pi in lst: cmd._dump_floats(pi.cmd.get_view())
0.707 0.000 -0.707 0.000 1.000 0.000 0.707 0.000 0.707
0.000 0.000 -100.481 -9.632 2.772 -6.069 79.220 121.742 0.000
1.000 0.000 0.000 0.000 0.707 0.707 0.000 -0.707 0.707
0.000 0.000 -63.191 1.224 -10.279 20.545 49.820 76.561 0.000
1.000 0.000 0.000 0.000 1.000 0.000 0.000 0.000 1.000
0.000 0.000 -50.000 0.000 0.000 0.000 40.000 100.000 0.000
PyMOL>cmd.ray(renderer=2)
RayRenderTest: obtained 9114 graphics primitives.
PyMOL>for pi in lst: pi.cmd.ray(renderer=2)
RayRenderTest: obtained 2832 graphics primitives.
RayRenderTest: obtained 800 graphics primitives.
RayRenderTest: obtained 0 graphics primitives.
PyMOL>for pi in lst: pi.stop()
PyMOL>del lst
|