https://pymolwiki.org/api.php?action=feedcontributions&user=Tree&feedformat=atom
PyMOLWiki - User contributions [en]
2024-03-28T16:03:46Z
User contributions
MediaWiki 1.35.7
https://pymolwiki.org/index.php?title=Intra_rms&diff=1279
Intra rms
2005-05-23T14:52:13Z
<p>Tree: /* USER EXAMPLES/COMMENTS */</p>
<hr />
<div>===DESCRIPTION===<br />
"intra_rms" calculates rms fit values for all states of an object over an atom selection relative to the indicated state. Coordinates are left unchanged. The rms values are returned as a python array.<br />
<br />
===PYMOL API===<br />
<source lang="python"><br />
cmd.intra_rms( string selection, int state)<br />
</source><br />
<br />
===PYTHON EXAMPLE===<br />
<source lang="python"><br />
from pymol import cmd<br />
rms = cmd.intra_rms("(name ca)",1)<br />
</source><br />
<br />
===USER EXAMPLES/COMMENTS===<br />
[[Fit]], [[Rms]], [[Rms_Cur]] are finicky and only work when all atom identifiers match: segi, chain, resn, name, alt. If they don't then you'll need to use the alter command to change the identifiers to that they do -- typically that means clearing out the SEGI field, renaming chains, and sometimes renumbering.<br />
<br />
I tried made two selections A, and D as<br />
<br />
PyMOL>sel A, 1gh2 and n. CA and i. 65-99<br />
Selector: selection "A" defined with 35 atoms.<br />
<br />
PyMOL>sel D, 1kao and n. CA and i. 64-98<br />
Selector: selection "D" defined with 35 atoms<br />
<br />
which as you can see both yield 35 atoms. Now,<br />
rms_cur A, D<br />
won't work, due to the aforementioned reason. To fix this, one needs to do,<br />
alter all,segi=''<br />
alter all,chain=''<br />
alter D, resi=str(int(resi)+1) # I don't actually use this line<br />
and now<br />
rms_cur A, D<br />
should work.<br />
<br />
===SEE ALSO===<br />
[[Fit]], [[Rms]], [[Rms_Cur]], [[Intra_Fit]], [[Intra_Rms_Cur]], [[Pair_Fit]]<br />
<br />
[[Category:Commands|intra_rms]]</div>
Tree
https://pymolwiki.org/index.php?title=Cartoon&diff=825
Cartoon
2005-05-16T21:22:38Z
<p>Tree: </p>
<hr />
<div>==Cartoon Command==<br />
===DESCRIPTION===<br />
"cartoon" changes the default cartoon for a set of atoms.<br />
<br />
===USAGE===<br />
cartoon type, (selection)<br />
<br />
type = skip | automatic | loop | rectangle | oval | tube | arrow | dumbbell<br />
<br />
===PYMOL API===<br />
<source lang="python"><br />
cmd.cartoon(string type, string selection )<br />
</source><br />
<br />
===EXAMPLES===<br />
cartoon rectangle,(chain A)<br />
cartoon skip,(resi 145:156)<br />
<br />
===NOTES===<br />
the "automatic" mode utilizes ribbons according to the<br />
information in the PDB HELIX and SHEET records. <br />
<br />
[[Category:Commands|cartoon]]<br />
<br />
<br />
==Adjusting width of cartoon==<br />
<br />
Try varying the following.<br />
<br />
For strands:<br />
<source lang="python"><br />
cartoon_rect_length<br />
cartoon_rect_width<br />
</source><br />
<br />
For helices:<br />
<source lang="python"><br />
cartoon_oval_length<br />
cartoon_oval_width<br />
</source><br />
<br />
or for "fancy" helices:<br />
<code><br />
cartoon_dumbell_length<br />
cartoon_dumbell_width<br />
cartoon_dumbell_radius (radius of cylinder at edge of helix ribbon)<br />
</code><br />
In each case "length" refers to what some might call the width and "width" refers to what some might call the thickness.<br />
<br />
<br />
[[Image:Cartoon_ex.png|thumb|center|Cartoon Representation Example|300px]]<br />
<br />
<br />
===Forcing Exact Boundaries in Coloring Secondary Structures===<br />
To force PyMol to respect secondary structural elements color-wise (PyMol smooths out colors near color chagnes for a prettier image) use the following <br />
PyMol command:<br />
<code><br />
set cartoon_discrete_colors, on<br />
</code><br />
<br />
[[Image:Cartoon_discrete_color0.png|Discrete Coloring Off|center|thumb]] [[Image:Cartoon_discrete_color1.png|Discrete Coloring On|center|thumb]]<br />
<br />
<br />
== Sausage Representation ==<br />
The familiar sausage representation in PyMol is called, "putty". To enable the putty/sausage view simply do,<br />
show cartoon<br />
cartoon putty<br />
unset cartoon_smooth_loops<br />
unset cartoon_flat_sheets<br />
<br />
==Black and White Representation==<br />
For those who want a nifty black and white representation of their protein try the following:<br />
# Ray trace your protein of choice in a cartoon representation use a BLACK background<br />
# Save the image<br />
# Load the image in GIMP. [[Image:Bw1.jpeg|thumb|Black BG Ribbon|center|350px]]<br />
# Desaturate or Grayscale the image. [[Image:Bw2.jpeg|thumb|Grayscale|center|350px]]<br />
# Run the filter: Filter->Edge-Detect->Edge. [[Image:Bw3.jpeg|thumb|Edge Detect|center|350px]]<br />
# Select: Layers->Color->Invert. [[Image:Bw4.jpeg|thumb|Invert Color|center|350px]]<br />
# Different methods of edge detection will give you different results. In the last example, I used Laplace Edge-Detect, then painted an all white layer beneath the current layer to achieve the results. [[Image:Bw5.jpeg|thumb|Other Styles|center|350px|Comments]]<br />
<br />
<br />
I'm sure there are other ways to do this. If you want to include it in a publication make sure you ray traced it large enough. For that, see [[:Category:Advanced_Issues_Image_Manipulation_Publication_Quatlity_Images|Creating Publication Quality Images]].<br />
<br />
<br />
== See Also ==<br />
[[Cmd cartoon]]<br />
<br />
[[Category:Representations|Cartoon]]</div>
Tree
https://pymolwiki.org/index.php?title=Cartoon&diff=824
Cartoon
2005-05-16T21:14:13Z
<p>Tree: /* Forcing Exact Boundaries in Coloring Secondary Structures */</p>
<hr />
<div>==Cartoon Command==<br />
===DESCRIPTION===<br />
"cartoon" changes the default cartoon for a set of atoms.<br />
<br />
===USAGE===<br />
cartoon type, (selection)<br />
<br />
type = skip | automatic | loop | rectangle | oval | tube | arrow | dumbbell<br />
<br />
===PYMOL API===<br />
<source lang="python"><br />
cmd.cartoon(string type, string selection )<br />
</source><br />
<br />
===EXAMPLES===<br />
cartoon rectangle,(chain A)<br />
cartoon skip,(resi 145:156)<br />
<br />
===NOTES===<br />
the "automatic" mode utilizes ribbons according to the<br />
information in the PDB HELIX and SHEET records. <br />
<br />
[[Category:Commands|cartoon]]<br />
<br />
<br />
==Adjusting width of cartoon==<br />
<br />
Try varying the following.<br />
<br />
For strands:<br />
<source lang="python"><br />
cartoon_rect_length<br />
cartoon_rect_width<br />
</source><br />
<br />
For helices:<br />
<source lang="python"><br />
cartoon_oval_length<br />
cartoon_oval_width<br />
</source><br />
<br />
or for "fancy" helices:<br />
<code><br />
cartoon_dumbell_length<br />
cartoon_dumbell_width<br />
cartoon_dumbell_radius (radius of cylinder at edge of helix ribbon)<br />
</code><br />
In each case "length" refers to what some might call the width and "width" refers to what some might call the thickness.<br />
<br />
[[Image:Cartoon_ex.png|thumb|Cartoon Representation Example]]<br />
<br />
===Forcing Exact Boundaries in Coloring Secondary Structures===<br />
To force PyMol to respect secondary structural elements color-wise (PyMol smooths out colors near color chagnes for a prettier image) use the following <br />
PyMol command:<br />
<code><br />
set cartoon_discrete_colors, on<br />
</code><br />
<br />
[[Image:Cartoon_discrete_color0.png|Discrete Coloring Off|left|thumb]] [[Image:Cartoon_discrete_color1.png|Discrete Coloring On|left|thumb]]<br />
<br />
== Sausage Representation ==<br />
The familiar sausage representation in PyMol is called, "putty". To enable the putty/sausage view simply do,<br />
show cartoon<br />
cartoon putty<br />
unset cartoon_smooth_loops<br />
unset cartoon_flat_sheets<br />
<br />
==Black and White Representation==<br />
For those who want a nifty black and white representation of their protein try the following:<br />
* Ray trace your protein of choice in a cartoon representation use a BLACK background<br />
* Save the image<br />
* Load the image in GIMP [[Image:Bw1.jpeg|thumb|Black BG Ribbon]]<br />
* Desaturate or Grayscale the image [[Image:Bw2.jpeg|thumb|Grayscale]]<br />
* Run the filter: Filter->Edge-Detect->Edge [[Image:Bw3.jpeg|thumb|Edge Detect]]<br />
* Select: Layers->Color->Invert [[Image:Bw4.jpeg|thumb|Invert Color]]<br />
<br />
Comments: Different methods of edge detection will give you different results. In the last example, I used Laplace Edge-Detect, then painted an all white layer beneath the current layer to achieve the results. [[Image:Bw5.jpeg|thumb|Other Styles]]<br />
<br />
I'm sure there are other ways to do this. If you want to include it in a publication make sure you ray traced it large enough. For that, see [[:Category:Advanced_Issues_Image_Manipulation_Publication_Quatlity_Images|Creating Publication Quality Images]].<br />
<br />
<br />
== See Also ==<br />
[[Cmd cartoon]]<br />
<br />
[[Category:Representations|Cartoon]]</div>
Tree
https://pymolwiki.org/index.php?title=User_talk:Tmwsiy&diff=1056
User talk:Tmwsiy
2005-05-16T21:11:16Z
<p>Tree: Media Uploads</p>
<hr />
<div>Sorry about that its: http://dwkulp.homelinux.net/tiki/tiki-index.php<br />
<br />
http://dwkulp.homelinux.net/tiki-index.php<br />
<br />
Is a 404. You may want to double check it.<br />
<br />
-- Jason<br />
<br />
== Talk Pages ==<br />
<br />
Dan,<br />
<br />
Yeah, I think these talk pages are similar to public messages to folks. Also, every page has a discussion page -- so you can talk about the page under question. WikiPedia does this quite a bit in case there are disputes to content: is someone being spiteful and posting bunk, or is the content controversial or whatnot. Here, I imagine it'll be, "how do I..." type questions.<br />
<br />
[[User:Tree|Tree]] 16:11, 12 May 2005 (CDT)<br />
<br />
== Media Uploads ==<br />
<br />
Dan,<br />
<br />
Try now. I enabled zip, tar, bz2, and some more. So, to avoid scripts and IE-unsafe stuff, let's try to keep things images or compressed.<br />
<br />
[[User:Tree|Tree]] 16:11, 16 May 2005 (CDT)</div>
Tree
https://pymolwiki.org/index.php?title=User_talk:Tmwsiy&diff=822
User talk:Tmwsiy
2005-05-12T21:11:16Z
<p>Tree: Talk Pages</p>
<hr />
<div>Sorry about that its: http://dwkulp.homelinux.net/tiki/tiki-index.php<br />
<br />
http://dwkulp.homelinux.net/tiki-index.php<br />
<br />
Is a 404. You may want to double check it.<br />
<br />
-- Jason<br />
<br />
== Talk Pages ==<br />
<br />
Dan,<br />
<br />
Yeah, I think these talk pages are similar to public messages to folks. Also, every page has a discussion page -- so you can talk about the page under question. WikiPedia does this quite a bit in case there are disputes to content: is someone being spiteful and posting bunk, or is the content controversial or whatnot. Here, I imagine it'll be, "how do I..." type questions.<br />
<br />
[[User:Tree|Tree]] 16:11, 12 May 2005 (CDT)</div>
Tree
https://pymolwiki.org/index.php?title=Hide&diff=614
Hide
2005-03-09T04:41:58Z
<p>Tree: </p>
<hr />
<div>===DESCRIPTION===<br />
<br />
"hide" turns of atom and bond representations.<br />
<br />
The available representations are:<br />
<br />
lines spheres mesh ribbon cartoon<br />
sticks dots surface labels<br />
nonbonded nb_spheres<br />
<br />
===USAGE===<br />
<br />
hide reprentation [,object]<br />
hide reprentation [,(selection)]<br />
hide (selection)<br />
<br />
===PYMOL API===<br />
<source lang="python"><br />
cmd.hide( string representation="", string selection="")<br />
</source><br />
<br />
===EXAMPLES===<br />
<br />
hide lines,all<br />
hide ribbon<br />
<br />
===SEE ALSO===<br />
<br />
[[Cmd show]], [[Cmd enable]], [[Cmd disable]]<br />
<br />
[[Category:hide|hide]]</div>
Tree
https://pymolwiki.org/index.php?title=Alter_State&diff=953
Alter State
2005-03-09T04:38:30Z
<p>Tree: </p>
<hr />
<div>===DESCRIPTION===<br />
<br />
"alter_state" changes the atomic coordinates of a particular state<br />
using the python evaluator with a separate name space for each<br />
atom. The symbols defined in the name space are:<br />
<br />
x,y,z<br />
<br />
===USAGE===<br />
<br />
alter_state state,(selection),expression<br />
<br />
===EXAMPLES===<br />
<br />
alter_state 1,(all),x=x+5<br />
<br />
===SEE ALSO===<br />
<br />
[[Cmd iterate_state]], [[Cmd alter]], [[Cmd iterate]]<br />
<br />
[[Category:Commands|alter_state]]</div>
Tree
https://pymolwiki.org/index.php?title=Unbond&diff=934
Unbond
2005-03-09T04:36:53Z
<p>Tree: </p>
<hr />
<div>===DESCRIPTION===<br />
<br />
"unbond" removes all bonds between two selections.<br />
<br />
===USAGE===<br />
<br />
unbond atom1,atom2<br />
<br />
===PYMOL API===<br />
<source lang="python"> <br />
cmd.unbond(selection atom1="(pk1)",selection atom2="(pk2)")<br />
</source><br />
<br />
===SEE ALSO===<br />
<br />
[[Cmd bond]], [[Cmd fuse]], [[Cmd remove_picked]], [[Cmd attach]], [[Cmd detach]], [[Cmd replace]]<br />
<br />
<br />
<br />
[[Category:Commands|unbond]]</div>
Tree
https://pymolwiki.org/index.php?title=Attach&diff=654
Attach
2005-03-09T04:35:04Z
<p>Tree: </p>
<hr />
<div>DESCRIPTION<br />
<br />
"attach" adds a single atom onto the picked atom.<br />
<br />
USAGE<br />
<br />
attach element, geometry, valence<br />
<br />
PYMOL API<br />
<br />
cmd.attach( element, geometry, valence )<br />
<br />
NOTES<br />
<br />
Immature functionality. See code for details. <br />
<br />
<br />
[[Category:Commands|attach]]</div>
Tree
https://pymolwiki.org/index.php?title=Bounding_Box&diff=705
Bounding Box
2005-03-08T22:15:44Z
<p>Tree: </p>
<hr />
<div><source lang="python"><br />
import math<br />
from pymol import querying<br />
from pymol.cgo import *<br />
from pymol import cmd<br />
<br />
#NOTE!! : These packages (numarray, Scientific) must be present in pymol's <br />
#'$PYMOLDIR/py23/lib/python2.3/site-packages/' directory!!<br />
from numarray import *<br />
from numarray.ma import average<br />
from numarray import linear_algebra as la<br />
<br />
from Scientific.Geometry import Vector, Tensor, Transformation<br />
<br />
def boundingBox(selectionName, colourRGB=[1,1,1]):<br />
"""<br />
The main function to call : <br />
<br />
run "box.py"<br />
boundingBox("peptide")<br />
<br />
Should make a box around "peptide" (assuming it exists!). For a different colour use:<br />
<br />
boundingBox("peptide", colourRGB=[1, 0, 1])<br />
<br />
Or whatever. The box should be a cgo called 'peptide-box' (for this example).<br />
"""<br />
model = querying.get_model(selectionName)<br />
coords = model.get_coord_list()<br />
<br />
#find the least square plane through the coordinates<br />
eigenvalues, eigenvectors, centroid = findPlaneWithEigenVectors(coords)<br />
normal = eigenvectors[eigenvalues.argmin()]<br />
eigenvectors.remove(normal)<br />
<br />
#orient the axes correctly<br />
x, y, normal = orientAxes(eigenvectors[0], eigenvectors[1], normal)<br />
<br />
#determine the dimensions and the structure's orientation wrt the origin<br />
minDimensions, rotation = findMinDimensionsAndRotation(coords, centroid, x, y, normal)<br />
<br />
#'create' the box(IE: make the corners) and 'draw' it (IE: make a cgo)<br />
box = makeBox(minDimensions, rotation, centroid)<br />
drawBox(box, selectionName, colourRGB)<br />
<br />
def findPlaneWithEigenVectors(coords):<br />
centroid = average(coords)<br />
coords -= centroid<br />
B = matrixmultiply(transpose(coords), coords)<br />
eigenvalues, eigenvectors = la.eigenvectors(B)<br />
return eigenvalues, [Vector(e) for e in eigenvectors], Vector(centroid)<br />
<br />
def orientAxes(x, y, z):<br />
XcrossY = x.cross(y)<br />
ZXY = around(math.degrees(z.angle(XcrossY)))<br />
if (ZXY == 180): x, y = y, x<br />
return x, y, z<br />
<br />
def makeBox(dimensions, rotation, centroid):<br />
x, y, z = dimensions<br />
v = [[]] * 8<br />
<br />
#make a cuboid with the lower corner on the origin<br />
v[0] = [0, 0, 0] # [0, 0, 0]<br />
v[1] = [x, 0, 0] # [1, 0, 0]<br />
v[2] = [x, y, 0] # [1, 1, 0]<br />
v[3] = [x, 0, z] # [1, 0, 1]<br />
v[4] = [0, y, 0] # [0, 1, 0]<br />
v[5] = [0, 0, z] # [0, 0, 1]<br />
v[6] = [0, y, z] # [0, 1, 1]<br />
v[7] = [x, y, z] # [1, 1, 1]<br />
<br />
#move to the origin, THEN move to the centroid of the points, then rotate<br />
translationToOrigin = Transformation.Translation(-Vector(x/2, y/2, z/2))<br />
translationToCentroid = Transformation.Translation(centroid)<br />
transform = translationToCentroid * rotation * translationToOrigin<br />
<br />
#use the Transformation to transform the corners of the box<br />
v = [transform(Vector(i)) for i in v]<br />
<br />
bot = [v[0], v[1], v[2], v[4]] # O, x, xy, y<br />
top = [v[7], v[3], v[5], v[6]] # xyz, xz, z, yz<br />
minL = [v[0], v[4], v[6], v[5]] # O, y, yz, z<br />
minR = [v[0], v[5], v[3], v[1]] # O, z, xz, x<br />
maxL = [v[4], v[2], v[7], v[6]] # y, xy, xyz, yz<br />
maxR = [v[3], v[1], v[2], v[7]] # xz, x, xy, xyz<br />
box = [bot, minR, minL, maxR, maxL, top]<br />
<br />
return box<br />
<br />
def drawBox(box, name, colourRGB):<br />
boxObj = []<br />
for side in box:<br />
boxObj.append(BEGIN)<br />
boxObj.append(LINE_STRIP)<br />
boxObj.append(COLOR)<br />
boxObj.extend(colourRGB)<br />
for point in side:<br />
boxObj.append(VERTEX)<br />
boxObj.extend(point)<br />
boxObj.append(END)<br />
<br />
cmd.set('auto_zoom', 0)<br />
cmd.load_cgo(boxObj, "%s-box" % name)<br />
cmd.set('auto_zoom', 1)<br />
<br />
def findMinDimensionsAndRotation(coords, centroid, x, y, z):<br />
O = Vector(0, 0, 0)<br />
X = Vector(1, 0, 0)<br />
Y = Vector(0, 1, 0)<br />
Z = Vector(0, 0, 1)<br />
<br />
#Create a Transformation t = |x, y, z| . |X, Y, Z| ^ -1<br />
mfinal = array([array(X), array(Y), array(Z)])<br />
morig = array([array(x), array(y), array(z)])<br />
rotmatrix = matrixmultiply(morig, transpose(mfinal))<br />
tTotal = Transformation.Rotation(Tensor(rotmatrix))<br />
<br />
#Transform the coordinates and find the min, max dimensions<br />
coordArray = array([array(tTotal(Vector(c))) for c in coords])<br />
minDimensions = [max(coordArray[:,i]) - min(coordArray[:,i]) for i in range(3)]<br />
<br />
#Now, compose the inverse rotation used to move the bounding box to the right place<br />
tForward = Transformation.Rotation(Tensor(matrixmultiply(mfinal, transpose(morig))))<br />
<br />
return minDimensions, tForward<br />
</source><br />
<br />
[[Category:Scripting_Script_Library|Bounding Box]]</div>
Tree
https://pymolwiki.org/index.php?title=Bounding_Box&diff=495
Bounding Box
2005-03-08T22:14:57Z
<p>Tree: </p>
<hr />
<div><source lang="python"><br />
import math<br />
from pymol import querying<br />
from pymol.cgo import *<br />
from pymol import cmd<br />
<br />
#NOTE!! : These packages (numarray, Scientific) must be present in pymol's <br />
#'$PYMOLDIR/py23/lib/python2.3/site-packages/' directory!!<br />
from numarray import *<br />
from numarray.ma import average<br />
from numarray import linear_algebra as la<br />
<br />
from Scientific.Geometry import Vector, Tensor, Transformation<br />
<br />
def boundingBox(selectionName, colourRGB=[1,1,1]):<br />
"""<br />
The main function to call : <br />
<br />
run "box.py"<br />
boundingBox("peptide")<br />
<br />
Should make a box around "peptide" (assuming it exists!). For a different colour use:<br />
<br />
boundingBox("peptide", colourRGB=[1, 0, 1])<br />
<br />
Or whatever. The box should be a cgo called 'peptide-box' (for this example).<br />
"""<br />
model = querying.get_model(selectionName)<br />
coords = model.get_coord_list()<br />
<br />
#find the least square plane through the coordinates<br />
eigenvalues, eigenvectors, centroid = findPlaneWithEigenVectors(coords)<br />
normal = eigenvectors[eigenvalues.argmin()]<br />
eigenvectors.remove(normal)<br />
<br />
#orient the axes correctly<br />
x, y, normal = orientAxes(eigenvectors[0], eigenvectors[1], normal)<br />
<br />
#determine the dimensions and the structure's orientation wrt the origin<br />
minDimensions, rotation = findMinDimensionsAndRotation(coords, centroid, x, y, normal)<br />
<br />
#'create' the box(IE: make the corners) and 'draw' it (IE: make a cgo)<br />
box = makeBox(minDimensions, rotation, centroid)<br />
drawBox(box, selectionName, colourRGB)<br />
<br />
def findPlaneWithEigenVectors(coords):<br />
centroid = average(coords)<br />
coords -= centroid<br />
B = matrixmultiply(transpose(coords), coords)<br />
eigenvalues, eigenvectors = la.eigenvectors(B)<br />
return eigenvalues, [Vector(e) for e in eigenvectors], Vector(centroid)<br />
<br />
def orientAxes(x, y, z):<br />
XcrossY = x.cross(y)<br />
ZXY = around(math.degrees(z.angle(XcrossY)))<br />
if (ZXY == 180): x, y = y, x<br />
return x, y, z<br />
<br />
def makeBox(dimensions, rotation, centroid):<br />
x, y, z = dimensions<br />
v = [[]] * 8<br />
<br />
#make a cuboid with the lower corner on the origin<br />
v[0] = [0, 0, 0] # [0, 0, 0]<br />
v[1] = [x, 0, 0] # [1, 0, 0]<br />
v[2] = [x, y, 0] # [1, 1, 0]<br />
v[3] = [x, 0, z] # [1, 0, 1]<br />
v[4] = [0, y, 0] # [0, 1, 0]<br />
v[5] = [0, 0, z] # [0, 0, 1]<br />
v[6] = [0, y, z] # [0, 1, 1]<br />
v[7] = [x, y, z] # [1, 1, 1]<br />
<br />
#move to the origin, THEN move to the centroid of the points, then rotate<br />
translationToOrigin = Transformation.Translation(-Vector(x/2, y/2, z/2))<br />
translationToCentroid = Transformation.Translation(centroid)<br />
transform = translationToCentroid * rotation * translationToOrigin<br />
<br />
#use the Transformation to transform the corners of the box<br />
v = [transform(Vector(i)) for i in v]<br />
<br />
bot = [v[0], v[1], v[2], v[4]] # O, x, xy, y<br />
top = [v[7], v[3], v[5], v[6]] # xyz, xz, z, yz<br />
minL = [v[0], v[4], v[6], v[5]] # O, y, yz, z<br />
minR = [v[0], v[5], v[3], v[1]] # O, z, xz, x<br />
maxL = [v[4], v[2], v[7], v[6]] # y, xy, xyz, yz<br />
maxR = [v[3], v[1], v[2], v[7]] # xz, x, xy, xyz<br />
box = [bot, minR, minL, maxR, maxL, top]<br />
<br />
return box<br />
<br />
def drawBox(box, name, colourRGB):<br />
boxObj = []<br />
for side in box:<br />
boxObj.append(BEGIN)<br />
boxObj.append(LINE_STRIP)<br />
boxObj.append(COLOR)<br />
boxObj.extend(colourRGB)<br />
for point in side:<br />
boxObj.append(VERTEX)<br />
boxObj.extend(point)<br />
boxObj.append(END)<br />
<br />
cmd.set('auto_zoom', 0)<br />
cmd.load_cgo(boxObj, "%s-box" % name)<br />
cmd.set('auto_zoom', 1)<br />
<br />
def findMinDimensionsAndRotation(coords, centroid, x, y, z):<br />
O = Vector(0, 0, 0)<br />
X = Vector(1, 0, 0)<br />
Y = Vector(0, 1, 0)<br />
Z = Vector(0, 0, 1)<br />
<br />
#Create a Transformation t = |x, y, z| . |X, Y, Z| ^ -1<br />
mfinal = array([array(X), array(Y), array(Z)])<br />
morig = array([array(x), array(y), array(z)])<br />
rotmatrix = matrixmultiply(morig, transpose(mfinal))<br />
tTotal = Transformation.Rotation(Tensor(rotmatrix))<br />
<br />
#Transform the coordinates and find the min, max dimensions<br />
coordArray = array([array(tTotal(Vector(c))) for c in coords])<br />
minDimensions = [max(coordArray[:,i]) - min(coordArray[:,i]) for i in range(3)]<br />
<br />
#Now, compose the inverse rotation used to move the bounding box to the right place<br />
tForward = Transformation.Rotation(Tensor(matrixmultiply(mfinal, transpose(morig))))<br />
<br />
return minDimensions, tForward<br />
</source><br />
<br />
[[Category:Scripting_Script_Library|Measure Distance]]</div>
Tree
https://pymolwiki.org/index.php?title=Show_hydrophilic&diff=694
Show hydrophilic
2005-03-08T03:50:17Z
<p>Tree: </p>
<hr />
<div><source lang="python"><br />
#<br />
# Show side chain sticks for hydrophilic residues<br />
#<br />
# (script for PyMol)<br />
# Tom Stout, 08/05/2004<br />
#<br />
<br />
mstop<br />
dss<br />
hide all<br />
#zoom all<br />
#orient<br />
show cartoon,all<br />
color gray,all<br />
<br />
select hydrophilics,(resn arg+lys+his+glu+asp+asn+gln+thr+ser+cys)<br />
show sticks, (hydrophilics and !name c+n+o)<br />
color green,hydrophilics<br />
disable hydrophilics<br />
set cartoon_smooth_loops,0</source><br />
<br />
<br />
[[Category:Scripting_Script_Library|Show Hydrophilic]]</div>
Tree
https://pymolwiki.org/index.php?title=Show_charged&diff=695
Show charged
2005-03-08T03:50:05Z
<p>Tree: </p>
<hr />
<div><source lang="python"><br />
#<br />
# Show side chain sticks for charged residues<br />
#<br />
# (script for PyMol)<br />
# Tom Stout, 08/05/2004<br />
#<br />
<br />
mstop<br />
dss<br />
hide all<br />
#zoom all<br />
#orient<br />
show cartoon,all<br />
color gray,all<br />
<br />
select pos,(resn arg+lys+his)<br />
show sticks, (pos and !name c+n+o)<br />
color marine,pos<br />
disable pos<br />
select neg,(resn glu+asp)<br />
show sticks, (neg and !name c+n+o)<br />
color red,neg<br />
disable neg<br />
set cartoon_smooth_loops,0</source><br />
<br />
<br />
[[Category:Scripting_Script_Library|Show Charged]]</div>
Tree
https://pymolwiki.org/index.php?title=Show_hydrophobics&diff=696
Show hydrophobics
2005-03-08T03:49:54Z
<p>Tree: </p>
<hr />
<div><source lang="python"><br />
#<br />
#<br />
#<br />
# Show side chain sticks for hydrophobic residues<br />
#<br />
# (script for PyMol)<br />
# Tom Stout, 08/05/2004<br />
#<br />
<br />
mstop<br />
dss<br />
hide all<br />
#zoom all<br />
#orient<br />
show cartoon,all<br />
color gray,all<br />
<br />
select hydrophobes,(resn ala+gly+val+ile+leu+phe+met)<br />
show sticks, (hydrophobes and (!name c+n+o))<br />
color orange,hydrophobes<br />
disable hydrophobes<br />
set cartoon_smooth_loops,0</source><br />
<br />
[[Category:Scripting_Script_Library|Show Hydrophobics]]</div>
Tree
https://pymolwiki.org/index.php?title=Show_aromatics&diff=693
Show aromatics
2005-03-08T03:49:40Z
<p>Tree: </p>
<hr />
<div><source lang="python"><br />
#<br />
#<br />
# Show side chain sticks for aromatic residues<br />
#<br />
# (script for PyMol)<br />
# Tom Stout, 08/05/2004<br />
#<br />
<br />
mstop<br />
dss<br />
hide all<br />
#zoom all<br />
#orient<br />
show cartoon,all<br />
color gray,all<br />
<br />
select aromatics,(resn phe+tyr+trp+his)<br />
show sticks, (aromatics and (!name c+n+o))<br />
color green,aromatics<br />
disable aromatics<br />
set cartoon_smooth_loops,0</source><br />
<br />
<br />
[[Category:Scripting_Script_Library|Show Aromatics]]</div>
Tree
https://pymolwiki.org/index.php?title=User_talk:Philaltist&diff=479
User talk:Philaltist
2005-03-06T04:33:32Z
<p>Tree: </p>
<hr />
<div>Hi everyone !<br />
<br />
I have created a script because I was tired of browsing the pdb for endless searches of structures relevant to my field. This scripts takes as input a text file in which you copied your favourite keywords, and the number of days you want to search back (by default, it will look at the structures added the last 50 days). It generates a report text file that contains the pdb id and name of the relevant structures that have been recently added. All you need to do is add 'run pdbsurvey.py' to your startup file, and create a text file called 'keywords.txt' with your keywords separated by an end-of-line character. Then you're ready to go. Just hit 'pdbsurvey' from within your PyMol instance, and the program returns the report file. The pdb ftp server is updated every tuesday.<br />
<br />
I am still new to wiki, so I don't know yet how to upload this script. Could someone help ?<br />
<br />
P.S. Here's the script in raw text format :<br />
<br />
<source lang="python"><br />
from pymol import cmd<br />
<br />
def pdbsurvey(days=50):<br />
<br />
"""USAGE : pdbsurvey (<days>)<br />
Surveys the updates added to the PDB (ftp.rcsb.org) in the last<br />
50 days (or otherwise specified when calling this function) for<br />
entries that contain the words specified in the file<br />
keywords.txt.<br />
"""<br />
print days<br />
<br />
import ftplib<br />
import time<br />
import os<br />
import string<br />
<br />
<br />
<br />
def todaymerge():<br />
"""Puts today's date in a pdb format string.<br />
"""<br />
date=time.localtime()<br />
fyear="%i" %(date[0])<br />
fmonth="%i" %(date[1])<br />
if date[1]<10:<br />
fmonth="0"+"%i" %(date[1])<br />
fday="%i" %(date[2])<br />
if date[2]<10:<br />
fday="0"+"%i" %(date[2])<br />
dateS=fyear+fmonth+fday<br />
return dateS<br />
<br />
def file2list(filename):<br />
"""Low-level routine to brainlessly implement<br />
file.read().<br />
"""<br />
fq=open(filename,'rb')<br />
linesS=fq.read()<br />
fq.close()<br />
LIST=linesS.splitlines()<br />
return LIST<br />
<br />
def connect2pdb():<br />
"""Opens an anonymous socket to ftp://ftp.rcsb.org<br />
"""<br />
f=ftplib.FTP()<br />
f.connect ('ftp.rcsb.org')<br />
f.login ()<br />
print "Remote connection established","\n"<br />
return f<br />
<br />
def decrementdate(dateS):<br />
"""given a string date (pdb format yyyymmdd)<br />
this routine returns a string of the day before<br />
(sadly assuming that every month has 31 days, but<br />
no big deal here...).<br />
"""<br />
#decompose dateS into components<br />
yearS=dateS[0]+dateS[1]+dateS[2]+dateS[3]<br />
monthS=dateS[4]+dateS[5]<br />
dayS=dateS[6]+dateS[7]<br />
<br />
#convert each into integers<br />
yearI=int(yearS)<br />
monthI=int(monthS)<br />
dayI=int(dayS)<br />
<br />
#actual stuff<br />
dayI=dayI-1<br />
if dayI==0:<br />
dayI=31<br />
monthI=monthI-1<br />
if monthI==0:<br />
monthI=12<br />
yearI=yearI-1<br />
dayS="%i" %(dayI)<br />
monthS="%i" %(monthI)<br />
yearS="%i" %(yearI)<br />
if dayI<10:<br />
dayS="0"+dayS<br />
if monthI<10:<br />
monthS="0"+monthS<br />
#and finally...<br />
dateS=yearS+monthS+dayS<br />
return dateS<br />
<br />
def findlastdir(dateS,f,days):<br />
"""Puts the names of the "recent" directories in the<br />
list named "directoriesL".<br />
"""<br />
directoriesL=['']<br />
j=p=0<br />
while p<days:<br />
dateS=decrementdate(dateS)<br />
attempt="/pub/pdb/data/status/"+dateS<br />
try :<br />
f.cwd(attempt)<br />
directoriesL[j:j]=[attempt]<br />
j=j+1<br />
except :<br />
pass<br />
p=p+1<br />
directoriesL.pop()<br />
return directoriesL<br />
<br />
def compilinfile(directoriesL,f):<br />
"""lists all structures in the added.pdb files<br />
contained in the directories specified in directoriesL<br />
"""<br />
command="RETR added.pdb"<br />
handle=open("donotedit.dat","wrb")<br />
for k in directoriesL:<br />
f.cwd(k)<br />
print "Currently in directory ",f.pwd()<br />
f.retrbinary(command,handle.write)<br />
handle.close()<br />
return len(directoriesL)<br />
<br />
def listparser():<br />
"""Extracts the pdbids from donotedit.dat file,<br />
and stacks them into the list pdbidsL<br />
"""<br />
linesL=file2list("donotedit.dat")<br />
pdbidsL=[]<br />
for iter in linesL:<br />
pdbidsL.append(iter[57:61])<br />
for iter in pdbidsL:<br />
iter=string.lower(iter)<br />
pdbidsL.sort()<br />
return pdbidsL<br />
<br />
def currentrelease(f):<br />
"""Stores the content of cmpd_res.idx file<br />
This file contains the equivalencies pdbid<->title<br />
for all current entries of the PDB.<br />
"""<br />
command="RETR cmpd_res.idx"<br />
f.cwd("/pub/pdb/derived_data/index/")<br />
print "Currently in directory ",f.pwd()<br />
fq=open("dictionnary.dat",'wrb')<br />
f.retrbinary(command,fq.write)<br />
fq.close()<br />
dictL=file2list("dictionnary.dat")<br />
return dictL<br />
<br />
def extract(pdbidsL,dictL):<br />
"""Populates dictionnaryD with pdb entries found in the<br />
latest releases.<br />
"""<br />
dictionnaryD={}<br />
problemL=[]<br />
extractL=[dictionnaryD,problemL]<br />
for i in dictL:<br />
tempS=string.lower(i[0:4])<br />
for ii in pdbidsL:<br />
if ii == tempS:<br />
title=i[14:216]<br />
extractL[0][ii]=title<br />
if len(extractL[0].keys()) != len(pdbidsL):<br />
print "Dimension mismatch, seeking troublemaker..."<br />
for i in pdbidsL:<br />
equiv=0<br />
for ii in extractL[0].keys():<br />
if i==ii:<br />
equiv=equiv+1<br />
if equiv==0:<br />
extractL[1].append(i)<br />
return extractL<br />
<br />
def disconnectpdb(f):<br />
"""Diconnects the current ftp session<br />
"""<br />
f.quit()<br />
print "Remote connection terminated","\n"<br />
return f<br />
<br />
def releventries(dictionnaryD):<br />
"""Generates a cleaned dictionnary with only entries<br />
that have one or more keywords specified in the local<br />
user-defined keywords.txt file<br />
"""<br />
keywL=file2list("keywords.txt")<br />
relevdicD={}<br />
for i in keywL:<br />
for elem in dictionnaryD.keys():<br />
temp=dictionnaryD[elem]<br />
if temp.find(i) != -1:<br />
relevdicD[elem]=temp<br />
return relevdicD<br />
<br />
def diskcleanup(filelist=["donotedit.dat","dictionnary.dat"]):<br />
"""Lo-level disk cleanup to free up memory without the user<br />
"""<br />
for filename in filelist:<br />
command='DEL '+filename<br />
os.system(command)<br />
return "clean"<br />
<br />
<br />
<br />
<br />
print "Welcome in the auto-PDB updater !"<br />
<br />
print "Survey of updates made since",days,"days ago."<br />
<br />
print "Acquisition of local time..."<br />
dateS=todaymerge() #Initializes dateS<br />
print "today is ",dateS<br />
print "Connecting to remote ftp server..."<br />
f=connect2pdb() #Connect anonymously to ftp.rcsb.org<br />
<br />
print "Acquisition of latest added remote directories..."<br />
directoriesL=findlastdir(dateS,f,days) #Lists recent directories in directoriesL<br />
if len(directoriesL)==0:<br />
print "No updates have been found since",days,"ago. Starting over with 50 days ago."<br />
directoriesL=findlastdir(dateS,f,50)<br />
<br />
print "Acquisition of latest addedremote files..."<br />
updatesnumberI=compilinfile(directoriesL,f) #Concatenates the corresponding added.pdb into donotedit.dat<br />
<br />
print "Parsing of latest entries..."<br />
pdbidsL=listparser() #Recent names now present in the pdbidsL list (one name per element)<br />
<br />
print "Acquisition of the current pdb distribution..."<br />
dictL=currentrelease(f) #Populates dictL with the current entries of the PDB<br />
<br />
print "Parsing of the current pdb distribution into [code,title] tuples..."<br />
extractL=extract(pdbidsL,dictL) #generates the dictionnary of latest releases key:PDBid ; definition:pdbtitle<br />
<br />
print "Disconnection from the remote ftp server..."<br />
f=disconnectpdb(f) #Closes the ftp instance<br />
<br />
print "Extraction of the relevant entries..."<br />
relevdicD=releventries(extractL[0]) #Generates a subset of dictionnary D with criterion being "has keywords contained in keywords.txt in its title"<br />
<br />
print "Cleaning program-generated temporary files..."<br />
clean=diskcleanup() #Cleans the mess generated by the program<br />
<br />
reportL=[]<br />
reportL.append("\n")<br />
reportL.append("###############REPORT########################################\n")<br />
reportL.append("\n")<br />
lendictS="%i" %(len(dictL))<br />
chmilblik = 'The current pdb version (as of '+dateS+") has "+lendictS+" entries.\n"<br />
reportL.append(chmilblik)<br />
line="The most recent directory is : "+directoriesL[0]+".\n"<br />
reportL.append(line)<br />
updatesnumberS="%i" %(updatesnumberI)<br />
entriesnumber="%i" %(len(extractL[0].keys()))<br />
line="The "+updatesnumberS+" last updates ("+entriesnumber+" entries) have been examined.\n"<br />
reportL.append(line)<br />
diclengthS="%i" %(len(relevdicD.keys()))<br />
line=diclengthS+" are relevant to you :\n"<br />
reportL.append(line)<br />
for i in relevdicD.keys():<br />
entry=i+" : "+relevdicD[i]+"\n"<br />
reportL.append(entry)<br />
problemS=""<br />
for i in extractL[1]:<br />
problemS=i+";"+problemS<br />
problemS="["+problemS<br />
problemS=problemS.strip(";")<br />
problemS=problemS+"]"<br />
lineS="The entries "+problemS+" raised problems,"<br />
reportL.append(lineS)<br />
reportL.append("they should be examined manually.")<br />
reportL.append("\n")<br />
reportL.append("###############END OF REPORT#################################\n")<br />
report=open("report.aut","w")<br />
for elem in reportL:<br />
print elem<br />
elem=elem+'\n'<br />
report.writelines(elem)<br />
report.close()<br />
command2='start keywords.txt'<br />
command3='start report.aut'<br />
os.system(command2)<br />
os.system(command3)<br />
<br />
cmd.extend("pdbsurvey",pdbsurvey)<br />
</source><br />
<br />
Philaltist,<br />
<br />
To make scripts available to folks, the simplest method is to upload the script as you did and then just wrap the script in &lt;python&gt; and &lt;/python&gt; code. Look at what I did to your code for an example. If you want line numbers in your code, use "npython" instead of "python".<br />
<br />
-- tree</div>
Tree
https://pymolwiki.org/index.php?title=User_talk:Philaltist&diff=478
User talk:Philaltist
2005-03-06T04:30:15Z
<p>Tree: </p>
<hr />
<div>Hi everyone !<br />
<br />
I have created a script because I was tired of browsing the pdb for endless searches of structures relevant to my field. This scripts takes as input a text file in which you copied your favourite keywords, and the number of days you want to search back (by default, it will look at the structures added the last 50 days). It generates a report text file that contains the pdb id and name of the relevant structures that have been recently added. All you need to do is add 'run pdbsurvey.py' to your startup file, and create a text file called 'keywords.txt' with your keywords separated by an end-of-line character. Then you're ready to go. Just hit 'pdbsurvey' from within your PyMol instance, and the program returns the report file. The pdb ftp server is updated every tuesday.<br />
<br />
I am still new to wiki, so I don't know yet how to upload this script. Could someone help ?<br />
<br />
P.S. Here's the script in raw text format :<br />
<br />
<source lang="python"><br />
from pymol import cmd<br />
<br />
def pdbsurvey(days=50):<br />
<br />
"""USAGE : pdbsurvey (<days>)<br />
Surveys the updates added to the PDB (ftp.rcsb.org) in the last<br />
50 days (or otherwise specified when calling this function) for<br />
entries that contain the words specified in the file<br />
keywords.txt.<br />
"""<br />
print days<br />
<br />
import ftplib<br />
import time<br />
import os<br />
import string<br />
<br />
<br />
<br />
def todaymerge():<br />
"""Puts today's date in a pdb format string.<br />
"""<br />
date=time.localtime()<br />
fyear="%i" %(date[0])<br />
fmonth="%i" %(date[1])<br />
if date[1]<10:<br />
fmonth="0"+"%i" %(date[1])<br />
fday="%i" %(date[2])<br />
if date[2]<10:<br />
fday="0"+"%i" %(date[2])<br />
dateS=fyear+fmonth+fday<br />
return dateS<br />
<br />
def file2list(filename):<br />
"""Low-level routine to brainlessly implement<br />
file.read().<br />
"""<br />
fq=open(filename,'rb')<br />
linesS=fq.read()<br />
fq.close()<br />
LIST=linesS.splitlines()<br />
return LIST<br />
<br />
def connect2pdb():<br />
"""Opens an anonymous socket to ftp://ftp.rcsb.org<br />
"""<br />
f=ftplib.FTP()<br />
f.connect ('ftp.rcsb.org')<br />
f.login ()<br />
print "Remote connection established","\n"<br />
return f<br />
<br />
def decrementdate(dateS):<br />
"""given a string date (pdb format yyyymmdd)<br />
this routine returns a string of the day before<br />
(sadly assuming that every month has 31 days, but<br />
no big deal here...).<br />
"""<br />
#decompose dateS into components<br />
yearS=dateS[0]+dateS[1]+dateS[2]+dateS[3]<br />
monthS=dateS[4]+dateS[5]<br />
dayS=dateS[6]+dateS[7]<br />
<br />
#convert each into integers<br />
yearI=int(yearS)<br />
monthI=int(monthS)<br />
dayI=int(dayS)<br />
<br />
#actual stuff<br />
dayI=dayI-1<br />
if dayI==0:<br />
dayI=31<br />
monthI=monthI-1<br />
if monthI==0:<br />
monthI=12<br />
yearI=yearI-1<br />
dayS="%i" %(dayI)<br />
monthS="%i" %(monthI)<br />
yearS="%i" %(yearI)<br />
if dayI<10:<br />
dayS="0"+dayS<br />
if monthI<10:<br />
monthS="0"+monthS<br />
#and finally...<br />
dateS=yearS+monthS+dayS<br />
return dateS<br />
<br />
def findlastdir(dateS,f,days):<br />
"""Puts the names of the "recent" directories in the<br />
list named "directoriesL".<br />
"""<br />
directoriesL=['']<br />
j=p=0<br />
while p<days:<br />
dateS=decrementdate(dateS)<br />
attempt="/pub/pdb/data/status/"+dateS<br />
try :<br />
f.cwd(attempt)<br />
directoriesL[j:j]=[attempt]<br />
j=j+1<br />
except :<br />
pass<br />
p=p+1<br />
directoriesL.pop()<br />
return directoriesL<br />
<br />
def compilinfile(directoriesL,f):<br />
"""lists all structures in the added.pdb files<br />
contained in the directories specified in directoriesL<br />
"""<br />
command="RETR added.pdb"<br />
handle=open("donotedit.dat","wrb")<br />
for k in directoriesL:<br />
f.cwd(k)<br />
print "Currently in directory ",f.pwd()<br />
f.retrbinary(command,handle.write)<br />
handle.close()<br />
return len(directoriesL)<br />
<br />
def listparser():<br />
"""Extracts the pdbids from donotedit.dat file,<br />
and stacks them into the list pdbidsL<br />
"""<br />
linesL=file2list("donotedit.dat")<br />
pdbidsL=[]<br />
for iter in linesL:<br />
pdbidsL.append(iter[57:61])<br />
for iter in pdbidsL:<br />
iter=string.lower(iter)<br />
pdbidsL.sort()<br />
return pdbidsL<br />
<br />
def currentrelease(f):<br />
"""Stores the content of cmpd_res.idx file<br />
This file contains the equivalencies pdbid<->title<br />
for all current entries of the PDB.<br />
"""<br />
command="RETR cmpd_res.idx"<br />
f.cwd("/pub/pdb/derived_data/index/")<br />
print "Currently in directory ",f.pwd()<br />
fq=open("dictionnary.dat",'wrb')<br />
f.retrbinary(command,fq.write)<br />
fq.close()<br />
dictL=file2list("dictionnary.dat")<br />
return dictL<br />
<br />
def extract(pdbidsL,dictL):<br />
"""Populates dictionnaryD with pdb entries found in the<br />
latest releases.<br />
"""<br />
dictionnaryD={}<br />
problemL=[]<br />
extractL=[dictionnaryD,problemL]<br />
for i in dictL:<br />
tempS=string.lower(i[0:4])<br />
for ii in pdbidsL:<br />
if ii == tempS:<br />
title=i[14:216]<br />
extractL[0][ii]=title<br />
if len(extractL[0].keys()) != len(pdbidsL):<br />
print "Dimension mismatch, seeking troublemaker..."<br />
for i in pdbidsL:<br />
equiv=0<br />
for ii in extractL[0].keys():<br />
if i==ii:<br />
equiv=equiv+1<br />
if equiv==0:<br />
extractL[1].append(i)<br />
return extractL<br />
<br />
def disconnectpdb(f):<br />
"""Diconnects the current ftp session<br />
"""<br />
f.quit()<br />
print "Remote connection terminated","\n"<br />
return f<br />
<br />
def releventries(dictionnaryD):<br />
"""Generates a cleaned dictionnary with only entries<br />
that have one or more keywords specified in the local<br />
user-defined keywords.txt file<br />
"""<br />
keywL=file2list("keywords.txt")<br />
relevdicD={}<br />
for i in keywL:<br />
for elem in dictionnaryD.keys():<br />
temp=dictionnaryD[elem]<br />
if temp.find(i) != -1:<br />
relevdicD[elem]=temp<br />
return relevdicD<br />
<br />
def diskcleanup(filelist=["donotedit.dat","dictionnary.dat"]):<br />
"""Lo-level disk cleanup to free up memory without the user<br />
"""<br />
for filename in filelist:<br />
command='DEL '+filename<br />
os.system(command)<br />
return "clean"<br />
<br />
<br />
<br />
<br />
print "Welcome in the auto-PDB updater !"<br />
<br />
print "Survey of updates made since",days,"days ago."<br />
<br />
print "Acquisition of local time..."<br />
dateS=todaymerge() #Initializes dateS<br />
print "today is ",dateS<br />
print "Connecting to remote ftp server..."<br />
f=connect2pdb() #Connect anonymously to ftp.rcsb.org<br />
<br />
print "Acquisition of latest added remote directories..."<br />
directoriesL=findlastdir(dateS,f,days) #Lists recent directories in directoriesL<br />
if len(directoriesL)==0:<br />
print "No updates have been found since",days,"ago. Starting over with 50 days ago."<br />
directoriesL=findlastdir(dateS,f,50)<br />
<br />
print "Acquisition of latest addedremote files..."<br />
updatesnumberI=compilinfile(directoriesL,f) #Concatenates the corresponding added.pdb into donotedit.dat<br />
<br />
print "Parsing of latest entries..."<br />
pdbidsL=listparser() #Recent names now present in the pdbidsL list (one name per element)<br />
<br />
print "Acquisition of the current pdb distribution..."<br />
dictL=currentrelease(f) #Populates dictL with the current entries of the PDB<br />
<br />
print "Parsing of the current pdb distribution into [code,title] tuples..."<br />
extractL=extract(pdbidsL,dictL) #generates the dictionnary of latest releases key:PDBid ; definition:pdbtitle<br />
<br />
print "Disconnection from the remote ftp server..."<br />
f=disconnectpdb(f) #Closes the ftp instance<br />
<br />
print "Extraction of the relevant entries..."<br />
relevdicD=releventries(extractL[0]) #Generates a subset of dictionnary D with criterion being "has keywords contained in keywords.txt in its title"<br />
<br />
print "Cleaning program-generated temporary files..."<br />
clean=diskcleanup() #Cleans the mess generated by the program<br />
<br />
reportL=[]<br />
reportL.append("\n")<br />
reportL.append("###############REPORT########################################\n")<br />
reportL.append("\n")<br />
lendictS="%i" %(len(dictL))<br />
chmilblik = 'The current pdb version (as of '+dateS+") has "+lendictS+" entries.\n"<br />
reportL.append(chmilblik)<br />
line="The most recent directory is : "+directoriesL[0]+".\n"<br />
reportL.append(line)<br />
updatesnumberS="%i" %(updatesnumberI)<br />
entriesnumber="%i" %(len(extractL[0].keys()))<br />
line="The "+updatesnumberS+" last updates ("+entriesnumber+" entries) have been examined.\n"<br />
reportL.append(line)<br />
diclengthS="%i" %(len(relevdicD.keys()))<br />
line=diclengthS+" are relevant to you :\n"<br />
reportL.append(line)<br />
for i in relevdicD.keys():<br />
entry=i+" : "+relevdicD[i]+"\n"<br />
reportL.append(entry)<br />
problemS=""<br />
for i in extractL[1]:<br />
problemS=i+";"+problemS<br />
problemS="["+problemS<br />
problemS=problemS.strip(";")<br />
problemS=problemS+"]"<br />
lineS="The entries "+problemS+" raised problems,"<br />
reportL.append(lineS)<br />
reportL.append("they should be examined manually.")<br />
reportL.append("\n")<br />
reportL.append("###############END OF REPORT#################################\n")<br />
report=open("report.aut","w")<br />
for elem in reportL:<br />
print elem<br />
elem=elem+'\n'<br />
report.writelines(elem)<br />
report.close()<br />
command2='start keywords.txt'<br />
command3='start report.aut'<br />
os.system(command2)<br />
os.system(command3)<br />
<br />
cmd.extend("pdbsurvey",pdbsurvey)<br />
</source></div>
Tree
https://pymolwiki.org/index.php?title=Category:FAQ&diff=629
Category:FAQ
2005-03-06T03:25:36Z
<p>Tree: </p>
<hr />
<div>==FAQ==<br />
<br />
===Overview===<br />
Please post your FAQs here. I suggest you write a Q&A style list with a short answer. More involved answers should link to its own page. Just my suggestion. Should we have topics?<br />
<br />
==FAQs==</div>
Tree
https://pymolwiki.org/index.php?title=Main_Page&diff=543
Main Page
2005-03-06T03:20:02Z
<p>Tree: /* Links of Interest */</p>
<hr />
<div>== PyMol Wiki Home ==<br />
You have reached the (new) home of the PyMolWiki, a user-driven web-oriented CMS.<br />
<br />
We (will) strive to provide<br />
* updates on PyMol<br />
* a stable user-oriented documentation base<br />
* a thorough treatment of the PyMol program<br />
* feature rich scripts for general PyMol use<br />
<br />
== Links of Interest ==<br />
* [[TOPTOC|Top Level Table of Contents]]<br />
* [[:Category:FAQ|Frequently Asked Questions]] -- new!<br />
<br />
* Updated! [[PyMolWiki:Community_Portal| How to get involved!]] -- read me if you want to add something<br />
* [[:Category:Scripting Script Library| Script Library]] -- add one! (rTools info!)<br />
* [[:Category:Commands|PyMol Commands]] (>130 documented!)<br />
* [[:Special:Allpages| All Pages]]<br />
* [[:Category:Plugins|Plugins]]<br />
* [[:Special:Categories| See All Categories]]</div>
Tree
https://pymolwiki.org/index.php?title=Main_Page&diff=476
Main Page
2005-03-06T03:19:31Z
<p>Tree: /* Links of Interest */</p>
<hr />
<div>== PyMol Wiki Home ==<br />
You have reached the (new) home of the PyMolWiki, a user-driven web-oriented CMS.<br />
<br />
We (will) strive to provide<br />
* updates on PyMol<br />
* a stable user-oriented documentation base<br />
* a thorough treatment of the PyMol program<br />
* feature rich scripts for general PyMol use<br />
<br />
== Links of Interest ==<br />
* [[TOPTOC|Top Level Table of Contents]]<br />
* [[:FAQ:FAQ|Frequently Asked Questions]] -- new!<br />
<br />
* Updated! [[PyMolWiki:Community_Portal| How to get involved!]] -- read me if you want to add something<br />
* [[:Category:Scripting Script Library| Script Library]] -- add one! (rTools info!)<br />
* [[:Category:Commands|PyMol Commands]] (>130 documented!)<br />
* [[:Special:Allpages| All Pages]]<br />
* [[:Category:Plugins|Plugins]]<br />
* [[:Special:Categories| See All Categories]]</div>
Tree
https://pymolwiki.org/index.php?title=TOPTOC&diff=534
TOPTOC
2005-03-06T03:18:27Z
<p>Tree: /* PyMolWiki Top-Level Table Of Contents */</p>
<hr />
<div>== Section Layout ==<br />
Please see [[:Talk:Main Page|Discussion]] for more thoughts on the site organizaiton.<br />
<br />
== PyMolWiki Top-Level Table Of Contents ==<br />
# [[:Category:News|News]]<br />
# [[:Category:FAQ|Frequently Asked Questions]]<br />
# [[:Category:Brag|Brag]] -- show off your best images or movies.<br />
## [[:Category:News Discussion|Discussion]]<br />
## [[:Category:News PyMol Beta|PyMol Beta]]<br />
# [[:Category:Technical Issues|Technical Issues]]<br />
## [[:Category:Technical Issues Installation|Installation]]<br />
### [[:Category:Technical Issues Installation OS Dependent|OS Dependent]]<br />
#### [[:Category:Technical Issues Installation OS Dependent Linux|Linux]]<br />
#### [[:Category:Technical Issues Installation OS Dependent MAC|MAC]]<br />
#### [[:Category:Technical Issues Installation OS Dependent Windows|Windows]]<br />
# [[:Category:Launching PyMOL|Launching PyMOL]]<br />
## [[:Category:Launching PyMOL Command Line Options| Command Line Options]]<br />
## [[:Category:Launching PyMOL Launching From a Script|Launching From a Script]]<br />
# [[:Category:Using Pymol|Using PyMol]]<br />
## [[:Category:Using Pymol Mouse Controls|Mouse Controls]]<br />
## [[:Category:Using Pymol Objects and Selections|Objects and Selections]]<br />
### [[:Category:Using Pymol Objects and Selections Working with Objects|Working with Objects]]<br />
### [[:Category:Using Pymol Objects and Selections Working with Selections|Working with Selections]]<br />
### [[:Category:Using Pymol Objects and Selections Selector Quick Reference|Selector Quick Reference]]<br />
#### [[:Category:Using Pymol Objects and Selections Selector Quick Reference Single-word Selectors|Single-word Selectors]]<br />
#### [[:Category:Using Pymol Objects and Selections Selector Quick Reference Property Selectors|Property Selectors]]<br />
#### [[:Category:Using Pymol Objects and Selections Selector Quick Reference Selection Algebra|Selection Algebra]]<br />
#### [[:Category:Using Pymol Objects and Selections Selector Quick Reference Selection Macros|Selection Macros]]<br />
### [[:Category:Using Pymol Objects and Selections Representations|Representations]]<br />
#### [[:Category:Using Pymol Objects and Selections Representations Lines|Lines]]<br />
#### [[:Category:Using Pymol Objects and Selections Representations Sticks|Sticks]]<br />
#### [[:Category:Using Pymol Objects and Selections Representations Cartoon|Cartoon]]<br />
#### [[:Category:Using Pymol Objects and Selections Representations Surface|Surface]]<br />
#### [[:Category:Using Pymol Objects and Selections Representations Mesh|Mesh]]<br />
#### [[:Category:Using Pymol Objects and Selections Representations Spheres|Spheres]]<br />
#### [[:Category:Using Pymol Objects and Selections Representations Dots|Dots]]<br />
### [[:Category:Using Pymol Objects and Selections Color|Color]]<br />
### [[:Category:Using Pymol Objects and Selections Displaying Biochemical Properties|Displaying biochemical properties]]<br />
## [[:Category:Using Pymol Display Settings|Display Settings]]<br />
## [[:Category:Using Pymol Stereo 3D Display|Stereo 3D Display]] -- wrong place<br />
### [[:Category:Using Pymol Hardware Options|Hardware Options]] -- wrong place?<br />
### [[Linux XFree86 Configuration]] -- wrong place<br />
## [[:Category:Using Pymol Scenes|Scenes]]<br />
## [[:Category:Using Pymol Mouse Settings|Mouse Settings]]<br />
## [[:Category:Using Pymol Wizards|Wizards]]<br />
## [[:Category:Using Pymol Ray-tracing|Ray-tracing]]<br />
## [[:Category:Using Pymol Settings Reference|Settings Reference]]<br />
## [[:Category:Using Pymol Movies and Animations|Movies and Animations]]<br />
## [[:Category:Using Pymol Structure Alignment|Structure Alignment]]<br />
## [[:Category:Using Pymol Structure Alignment Editor|Structure Alignment Editor]]<br />
# [[:Category:Commands|Command Language]]<br />
## [[:Category:Commands PyMOL Command Script|PyMOL Command Script]]<br />
## [[:Category:Commands PyMOL Python API|PyMOL Python API]]<br />
# [[:Category:Advanced Issues|Advanced Issues]]<br />
## [[:Category:Advanced Issues Modeling and Editing Structures|Modeling and editing structures]]<br />
### [[:Category:Advanced Issues Modeling and Editing Structures Editing atoms|Editing Atoms]]<br />
### [[:Category:Advanced Issues Modeling and Editing Structures Molecular Sculpting|Molecular sculpting]]<br />
### [[:Category:Advanced Issues Modeling and Editing Structures Homology Modeling|Homology modeling]]<br />
## [[:Category:Advanced Issues Image Manipulation|Image Manipulation]]<br />
### [[:Category:Advanced Issues Image Manipulation labels|labels]]<br />
### [[:Category:Advanced Issues Image Manipulation Photoshop and GIMP|Photoshop/GIMP]]<br />
### [[:Category:Advanced Issues Image Manipulation Stereo Figures|Stereo Figures]]<br />
### [[:Category:Advanced Issues Image Manipulation Publication Quatlity Images|Publication-quality images]]<br />
# [[:Category:Scripting|Scripting]]<br />
## [[:Category:Scripting Example Scripts|Example Scripts]]<br />
## [[:Category:Scripting Script Library|Script Library]]<br />
# [[:Category:Plugins|Plugins]]<br />
## [[:Category:Plugins Electrostatics and Energy Minimization| How to do electrostatics and energy minimization.]]<br />
### [[:Category:Plugins Electrostatics and Energy Minimization APBS| APBS Plugin]]<br />
## [[:Category:Plugins rtools | rtools]]<br />
## [[:Category:Plugins Tutorial|Tutorial on writing plugins]]<br />
## [[:Category:Plugins Others| Others]]<br />
# [[:Category:High-Level Applications|High-Level Applications]]<br />
## [[:Category:High-Level Applications Crystallography Applications|Crystallography Applications]]<br />
### [[:Category:High-Level Applications Symmetry|Symmetry]]<br />
### [[:Category:High-Level Applications Electron Density|Electron Density]]<br />
## [[:Category:High-Level Applications NMR Applications|NMR Applications]]<br />
### [[:Category:High-Level Applications NMR Applications Working with a Family of Structures|Working with Structure Families]]<br />
### [[:Category:High-Level Applications NMR Applications Superimposition and RMSD|Superimposition and RMSD]]<br />
### [[:Category:High-Level Applications NMR Applications NMR Restraints Analysis|NMR Restraints and Analysis]]<br />
# [[:Category:Third Party Software|Third Party Software]]<br />
## [[:Category:Third Party Software PovRay|PovRay]]<br />
## [[:Category:Third Party Software Movies|Movies]]<br />
## [[:Category:Third Party Software Codecs|Codecs]]<br />
# [[:Category:Python Integration|Python Integration]]<br />
# [[:Category:Using PyMol For Unintended Uses|Unintended Uses]] (OpenGL Object Renderer)<br />
## [[:Category:Using PyMol For Unintended Uses Arbitrary Graphics Objects| Arbitrary Graphics Objects]]<br />
# [[:Category:Uncategorized|Uncategorized]] For new pages, misplaced pages, etc.<br />
----<br />
[[User:Tree|Tree]] 02:09, 16 Feb 2005 (CST)<br />
----</div>
Tree
https://pymolwiki.org/index.php?title=File:Cartoon_discrete_color1.png&diff=3129
File:Cartoon discrete color1.png
2005-03-06T02:01:27Z
<p>Tree: Discrete Coloring On</p>
<hr />
<div>Discrete Coloring On</div>
Tree
https://pymolwiki.org/index.php?title=File:Cartoon_discrete_color0.png&diff=3128
File:Cartoon discrete color0.png
2005-03-06T02:00:40Z
<p>Tree: Discrete Coloring Off</p>
<hr />
<div>Discrete Coloring Off</div>
Tree
https://pymolwiki.org/index.php?title=Category:Third_Party_Software&diff=3127
Category:Third Party Software
2005-03-04T05:59:45Z
<p>Tree: </p>
<hr />
<div>Third Party Software Information here.</div>
Tree
https://pymolwiki.org/index.php?title=Category:Using_Pymol&diff=3111
Category:Using Pymol
2005-03-04T05:42:33Z
<p>Tree: </p>
<hr />
<div>Here you will find basic information about using PyMol.</div>
Tree
https://pymolwiki.org/index.php?title=TOPTOC&diff=474
TOPTOC
2005-03-02T07:26:44Z
<p>Tree: /* PyMolWiki Top-Level Table Of Contents */</p>
<hr />
<div>== Section Layout ==<br />
Please see [[:Talk:Main Page|Discussion]] for more thoughts on the site organizaiton.<br />
<br />
== PyMolWiki Top-Level Table Of Contents ==<br />
# [[:Category:News|News]]<br />
# [[:Category:Brag|Brag]] -- show off your best images or movies.<br />
## [[:Category:News Discussion|Discussion]]<br />
## [[:Category:News PyMol Beta|PyMol Beta]]<br />
# [[:Category:Technical Issues|Technical Issues]]<br />
## [[:Category:Technical Issues Installation|Installation]]<br />
### [[:Category:Technical Issues Installation OS Dependent|OS Dependent]]<br />
#### [[:Category:Technical Issues Installation OS Dependent Linux|Linux]]<br />
#### [[:Category:Technical Issues Installation OS Dependent MAC|MAC]]<br />
#### [[:Category:Technical Issues Installation OS Dependent Windows|Windows]]<br />
# [[:Category:Launching PyMOL|Launching PyMOL]]<br />
## [[:Category:Launching PyMOL Command Line Options| Command Line Options]]<br />
## [[:Category:Launching PyMOL Launching From a Script|Launching From a Script]]<br />
# [[:Category:Using Pymol|Using PyMol]]<br />
## [[:Category:Using Pymol Mouse Controls|Mouse Controls]]<br />
## [[:Category:Using Pymol Objects and Selections|Objects and Selections]]<br />
### [[:Category:Using Pymol Objects and Selections Working with Objects|Working with Objects]]<br />
### [[:Category:Using Pymol Objects and Selections Working with Selections|Working with Selections]]<br />
### [[:Category:Using Pymol Objects and Selections Selector Quick Reference|Selector Quick Reference]]<br />
#### [[:Category:Using Pymol Objects and Selections Selector Quick Reference Single-word Selectors|Single-word Selectors]]<br />
#### [[:Category:Using Pymol Objects and Selections Selector Quick Reference Property Selectors|Property Selectors]]<br />
#### [[:Category:Using Pymol Objects and Selections Selector Quick Reference Selection Algebra|Selection Algebra]]<br />
#### [[:Category:Using Pymol Objects and Selections Selector Quick Reference Selection Macros|Selection Macros]]<br />
### [[:Category:Using Pymol Objects and Selections Representations|Representations]]<br />
#### [[:Category:Using Pymol Objects and Selections Representations Lines|Lines]]<br />
#### [[:Category:Using Pymol Objects and Selections Representations Sticks|Sticks]]<br />
#### [[:Category:Using Pymol Objects and Selections Representations Cartoon|Cartoon]]<br />
#### [[:Category:Using Pymol Objects and Selections Representations Surface|Surface]]<br />
#### [[:Category:Using Pymol Objects and Selections Representations Mesh|Mesh]]<br />
#### [[:Category:Using Pymol Objects and Selections Representations Spheres|Spheres]]<br />
#### [[:Category:Using Pymol Objects and Selections Representations Dots|Dots]]<br />
### [[:Category:Using Pymol Objects and Selections Color|Color]]<br />
### [[:Category:Using Pymol Objects and Selections Displaying Biochemical Properties|Displaying biochemical properties]]<br />
## [[:Category:Using Pymol Display Settings|Display Settings]]<br />
## [[:Category:Using Pymol Stereo 3D Display|Stereo 3D Display]] -- wrong place<br />
### [[:Category:Using Pymol Hardware Options|Hardware Options]] -- wrong place?<br />
### [[Linux XFree86 Configuration]] -- wrong place<br />
## [[:Category:Using Pymol Scenes|Scenes]]<br />
## [[:Category:Using Pymol Mouse Settings|Mouse Settings]]<br />
## [[:Category:Using Pymol Wizards|Wizards]]<br />
## [[:Category:Using Pymol Ray-tracing|Ray-tracing]]<br />
## [[:Category:Using Pymol Settings Reference|Settings Reference]]<br />
## [[:Category:Using Pymol Movies and Animations|Movies and Animations]]<br />
## [[:Category:Using Pymol Structure Alignment|Structure Alignment]]<br />
## [[:Category:Using Pymol Structure Alignment Editor|Structure Alignment Editor]]<br />
# [[:Category:Commands|Command Language]]<br />
## [[:Category:Commands PyMOL Command Script|PyMOL Command Script]]<br />
## [[:Category:Commands PyMOL Python API|PyMOL Python API]]<br />
# [[:Category:Advanced Issues|Advanced Issues]]<br />
## [[:Category:Advanced Issues Modeling and Editing Structures|Modeling and editing structures]]<br />
### [[:Category:Advanced Issues Modeling and Editing Structures Editing atoms|Editing Atoms]]<br />
### [[:Category:Advanced Issues Modeling and Editing Structures Molecular Sculpting|Molecular sculpting]]<br />
### [[:Category:Advanced Issues Modeling and Editing Structures Homology Modeling|Homology modeling]]<br />
## [[:Category:Advanced Issues Image Manipulation|Image Manipulation]]<br />
### [[:Category:Advanced Issues Image Manipulation labels|labels]]<br />
### [[:Category:Advanced Issues Image Manipulation Photoshop and GIMP|Photoshop/GIMP]]<br />
### [[:Category:Advanced Issues Image Manipulation Stereo Figures|Stereo Figures]]<br />
### [[:Category:Advanced Issues Image Manipulation Publication Quatlity Images|Publication-quality images]]<br />
# [[:Category:Scripting|Scripting]]<br />
## [[:Category:Scripting Example Scripts|Example Scripts]]<br />
## [[:Category:Scripting Script Library|Script Library]]<br />
# [[:Category:Plugins|Plugins]]<br />
## [[:Category:Plugins Electrostatics and Energy Minimization| How to do electrostatics and energy minimization.]]<br />
### [[:Category:Plugins Electrostatics and Energy Minimization APBS| APBS Plugin]]<br />
## [[:Category:Plugins rtools | rtools]]<br />
## [[:Category:Plugins Tutorial|Tutorial on writing plugins]]<br />
## [[:Category:Plugins Others| Others]]<br />
# [[:Category:High-Level Applications|High-Level Applications]]<br />
## [[:Category:High-Level Applications Crystallography Applications|Crystallography Applications]]<br />
### [[:Category:High-Level Applications Symmetry|Symmetry]]<br />
### [[:Category:High-Level Applications Electron Density|Electron Density]]<br />
## [[:Category:High-Level Applications NMR Applications|NMR Applications]]<br />
### [[:Category:High-Level Applications NMR Applications Working with a Family of Structures|Working with Structure Families]]<br />
### [[:Category:High-Level Applications NMR Applications Superimposition and RMSD|Superimposition and RMSD]]<br />
### [[:Category:High-Level Applications NMR Applications NMR Restraints Analysis|NMR Restraints and Analysis]]<br />
# [[:Category:Third Party Software|Third Party Software]]<br />
## [[:Category:Third Party Software PovRay|PovRay]]<br />
## [[:Category:Third Party Software Movies|Movies]]<br />
## [[:Category:Third Party Software Codecs|Codecs]]<br />
# [[:Category:Python Integration|Python Integration]]<br />
# [[:Category:Using PyMol For Unintended Uses|Unintended Uses]] (OpenGL Object Renderer)<br />
## [[:Category:Using PyMol For Unintended Uses Arbitrary Graphics Objects| Arbitrary Graphics Objects]]<br />
# [[:Category:Uncategorized|Uncategorized]] For new pages, misplaced pages, etc.<br />
----<br />
[[User:Tree|Tree]] 02:09, 16 Feb 2005 (CST)<br />
----</div>
Tree
https://pymolwiki.org/index.php?title=PyMOLWiki:Community_Portal&diff=523
PyMOLWiki:Community Portal
2005-03-02T07:19:35Z
<p>Tree: </p>
<hr />
<div>== CP ==<br />
Look here for ways to get involved in the PyMolWiki!<br />
<br />
Editors, you can upload images for your examples and supporting text! Check out [[Special:Upload]].<br />
<br />
<br />
== Helping ==<br />
* Importing the email list content: We have (lots) of email to sift through, extract data from and import into the Wiki<br />
* If you feel you have the time to help import data into the PyMol wiki, please email [[User:Tree|Tree]].<br />
<br />
=== New! GeShi: Syntax Highlighting for Python & More ===<br />
'''Update''': I have added the option for numbered syntax highlighting and non-numbered.<br />
<pre><br />
<source lang="python">Non line-numbered code here</source><br />
</pre><br />
<br />
<pre><br />
<npython>line-numbered code here</npython><br />
</pre><br />
<br />
Now with line numbers (or not)!<br />
<br />
<npython><br />
# axes.py<br />
from pymol.cgo import *<br />
from pymol import cmd<br />
from pymol.vfont import plain<br />
<br />
# create the axes object, draw axes with cylinders coloured red, green,<br />
#blue for X, Y and Z<br />
<br />
obj = [<br />
CYLINDER, 0., 0., 0., 50., 0., 0., 0.2, 1.0, 1.0, 1.0, 1.0, 0.0, 0.,<br />
CYLINDER, 0., 0., 0., 0., 50., 0., 0.2, 1.0, 1.0, 1.0, 0., 1.0, 0.,<br />
CYLINDER, 0., 0., 0., 0., 0., 50., 0.2, 1.0, 1.0, 1.0, 0., 0.0, 1.0,<br />
]<br />
<br />
# add labels to axes object (requires pymol version 0.8 or greater, I<br />
# believe<br />
<br />
cyl_text(obj,plain,[-5.,-5.,-1],'Origin',0.20,axes=[[3,0,0],[0,3,0],[0,0,3]])<br />
cyl_text(obj,plain,[50.,0.,0.],'X',0.20,axes=[[3,0,0],[0,3,0],[0,0,3]])<br />
cyl_text(obj,plain,[0.,50.,0.],'Y',0.20,axes=[[3,0,0],[0,3,0],[0,0,3]])<br />
cyl_text(obj,plain,[0.,0.,50.],'Z',0.20,axes=[[3,0,0],[0,3,0],[0,0,3]])<br />
<br />
# then we load it into PyMOL<br />
cmd.load_cgo(obj,'axes')<br />
</npython><br />
<br />
<br />
See [http://qbnz.com/highlighter/index.php The Geshi Home Page]<br />
<br />
[[User:Tree|Tree]]</div>
Tree
https://pymolwiki.org/index.php?title=PyMOLWiki:Community_Portal&diff=446
PyMOLWiki:Community Portal
2005-03-02T07:17:50Z
<p>Tree: /* New! GeShi: Syntax Highlighting for Python & More */</p>
<hr />
<div>== CP ==<br />
Look here for ways to get involved in the PyMolWiki!<br />
<br />
== Helping ==<br />
* Importing the email list content: We have (lots) of email to sift through, extract data from and import into the Wiki<br />
* If you feel you have the time to help import data into the PyMol wiki, please email [[User:Tree|Tree]].<br />
<br />
=== New! GeShi: Syntax Highlighting for Python & More ===<br />
'''Update''': I have added the option for numbered syntax highlighting and non-numbered.<br />
<pre><br />
<source lang="python">Non line-numbered code here</source><br />
</pre><br />
<br />
<pre><br />
<npython>line-numbered code here</npython><br />
</pre><br />
<br />
Now with line numbers (or not)!<br />
<br />
<npython><br />
# axes.py<br />
from pymol.cgo import *<br />
from pymol import cmd<br />
from pymol.vfont import plain<br />
<br />
# create the axes object, draw axes with cylinders coloured red, green,<br />
#blue for X, Y and Z<br />
<br />
obj = [<br />
CYLINDER, 0., 0., 0., 50., 0., 0., 0.2, 1.0, 1.0, 1.0, 1.0, 0.0, 0.,<br />
CYLINDER, 0., 0., 0., 0., 50., 0., 0.2, 1.0, 1.0, 1.0, 0., 1.0, 0.,<br />
CYLINDER, 0., 0., 0., 0., 0., 50., 0.2, 1.0, 1.0, 1.0, 0., 0.0, 1.0,<br />
]<br />
<br />
# add labels to axes object (requires pymol version 0.8 or greater, I<br />
# believe<br />
<br />
cyl_text(obj,plain,[-5.,-5.,-1],'Origin',0.20,axes=[[3,0,0],[0,3,0],[0,0,3]])<br />
cyl_text(obj,plain,[50.,0.,0.],'X',0.20,axes=[[3,0,0],[0,3,0],[0,0,3]])<br />
cyl_text(obj,plain,[0.,50.,0.],'Y',0.20,axes=[[3,0,0],[0,3,0],[0,0,3]])<br />
cyl_text(obj,plain,[0.,0.,50.],'Z',0.20,axes=[[3,0,0],[0,3,0],[0,0,3]])<br />
<br />
# then we load it into PyMOL<br />
cmd.load_cgo(obj,'axes')<br />
</npython><br />
<br />
<br />
See [http://qbnz.com/highlighter/index.php The Geshi Home Page]<br />
<br />
[[User:Tree|Tree]]</div>
Tree
https://pymolwiki.org/index.php?title=PyMOLWiki:Community_Portal&diff=445
PyMOLWiki:Community Portal
2005-03-02T07:17:31Z
<p>Tree: /* Helping */</p>
<hr />
<div>== CP ==<br />
Look here for ways to get involved in the PyMolWiki!<br />
<br />
== Helping ==<br />
* Importing the email list content: We have (lots) of email to sift through, extract data from and import into the Wiki<br />
* If you feel you have the time to help import data into the PyMol wiki, please email [[User:Tree|Tree]].<br />
<br />
=== New! GeShi: Syntax Highlighting for Python & More ===<br />
'''Update''': I have added the option for numbered syntax highlighting and non-numbered.<br />
<pre><br />
<source lang="python">Non line-numbered code here</source><br />
</pre><br />
<br />
<pre><br />
<npython>line-numbered code here</npython><br />
</pre><br />
<br />
Now with line numbers!<br />
<br />
<npython><br />
# axes.py<br />
from pymol.cgo import *<br />
from pymol import cmd<br />
from pymol.vfont import plain<br />
<br />
# create the axes object, draw axes with cylinders coloured red, green,<br />
#blue for X, Y and Z<br />
<br />
obj = [<br />
CYLINDER, 0., 0., 0., 50., 0., 0., 0.2, 1.0, 1.0, 1.0, 1.0, 0.0, 0.,<br />
CYLINDER, 0., 0., 0., 0., 50., 0., 0.2, 1.0, 1.0, 1.0, 0., 1.0, 0.,<br />
CYLINDER, 0., 0., 0., 0., 0., 50., 0.2, 1.0, 1.0, 1.0, 0., 0.0, 1.0,<br />
]<br />
<br />
# add labels to axes object (requires pymol version 0.8 or greater, I<br />
# believe<br />
<br />
cyl_text(obj,plain,[-5.,-5.,-1],'Origin',0.20,axes=[[3,0,0],[0,3,0],[0,0,3]])<br />
cyl_text(obj,plain,[50.,0.,0.],'X',0.20,axes=[[3,0,0],[0,3,0],[0,0,3]])<br />
cyl_text(obj,plain,[0.,50.,0.],'Y',0.20,axes=[[3,0,0],[0,3,0],[0,0,3]])<br />
cyl_text(obj,plain,[0.,0.,50.],'Z',0.20,axes=[[3,0,0],[0,3,0],[0,0,3]])<br />
<br />
# then we load it into PyMOL<br />
cmd.load_cgo(obj,'axes')<br />
</npython><br />
<br />
<br />
See [http://qbnz.com/highlighter/index.php The Geshi Home Page]<br />
<br />
[[User:Tree|Tree]]</div>
Tree
https://pymolwiki.org/index.php?title=Main_Page&diff=475
Main Page
2005-03-02T06:53:34Z
<p>Tree: </p>
<hr />
<div>== PyMol Wiki Home ==<br />
You have reached the (new) home of the PyMolWiki, a user-driven web-oriented CMS.<br />
<br />
We (will) strive to provide<br />
* updates on PyMol<br />
* a stable user-oriented documentation base<br />
* a thorough treatment of the PyMol program<br />
* feature rich scripts for general PyMol use<br />
<br />
== Links of Interest ==<br />
* [[TOPTOC|Top Level Table of Contents]]<br />
<br />
<br />
* Updated! [[PyMolWiki:Community_Portal| How to get involved!]] -- read me if you want to add something<br />
* [[:Category:Scripting Script Library| Script Library]] -- add one! (rTools info!)<br />
* [[:Category:Commands|PyMol Commands]] (>130 documented!)<br />
* [[:Special:Allpages| All Pages]]<br />
* [[:Category:Plugins|Plugins]]<br />
* [[:Special:Categories| See All Categories]]</div>
Tree
https://pymolwiki.org/index.php?title=Main_Page&diff=440
Main Page
2005-03-02T06:28:30Z
<p>Tree: </p>
<hr />
<div>== PyMol Wiki Home ==<br />
You have reached the (new) home of the PyMolWiki, a user-driven web-oriented CMS.<br />
<br />
We (will) strive to provide<br />
* updates on PyMol<br />
* a stable user-oriented documentation base<br />
* a thorough treatment of the PyMol program<br />
* feature rich scripts for general PyMol use<br />
<br />
== Links of Interest ==<br />
* [[TOPTOC|Top Level Table of Contents]]<br />
* Updated! [[PyMolWiki:Community_Portal| How to get involved!]] -- read me if you want to add something<br />
* [[:Category:Scripting Script Library| Script Library]] -- add one! (rTools info!)<br />
* [[:Category:Commands|PyMol Commands]] (>130 documented!)<br />
* [[:Special:Allpages| All Pages]]<br />
* [[:Category:Plugins|Plugins]]<br />
* [[:Special:Categories| See All Categories]]</div>
Tree
https://pymolwiki.org/index.php?title=TOPTOC&diff=447
TOPTOC
2005-03-02T06:27:49Z
<p>Tree: /* Layout Schema */</p>
<hr />
<div>== Section Layout ==<br />
Please see [[:Talk:Main Page|Discussion]] for more thoughts on the site organizaiton.<br />
<br />
== PyMolWiki Top-Level Table Of Contents ==<br />
# [[:Category:News|News]]<br />
## [[:Category:News Discussion|Discussion]]<br />
## [[:Category:News PyMol Beta|PyMol Beta]]<br />
# [[:Category:Technical Issues|Technical Issues]]<br />
## [[:Category:Technical Issues Installation|Installation]]<br />
### [[:Category:Technical Issues Installation OS Dependent|OS Dependent]]<br />
#### [[:Category:Technical Issues Installation OS Dependent Linux|Linux]]<br />
#### [[:Category:Technical Issues Installation OS Dependent MAC|MAC]]<br />
#### [[:Category:Technical Issues Installation OS Dependent Windows|Windows]]<br />
# [[:Category:Launching PyMOL|Launching PyMOL]]<br />
## [[:Category:Launching PyMOL Command Line Options| Command Line Options]]<br />
## [[:Category:Launching PyMOL Launching From a Script|Launching From a Script]]<br />
# [[:Category:Using Pymol|Using PyMol]]<br />
## [[:Category:Using Pymol Mouse Controls|Mouse Controls]]<br />
## [[:Category:Using Pymol Objects and Selections|Objects and Selections]]<br />
### [[:Category:Using Pymol Objects and Selections Working with Objects|Working with Objects]]<br />
### [[:Category:Using Pymol Objects and Selections Working with Selections|Working with Selections]]<br />
### [[:Category:Using Pymol Objects and Selections Selector Quick Reference|Selector Quick Reference]]<br />
#### [[:Category:Using Pymol Objects and Selections Selector Quick Reference Single-word Selectors|Single-word Selectors]]<br />
#### [[:Category:Using Pymol Objects and Selections Selector Quick Reference Property Selectors|Property Selectors]]<br />
#### [[:Category:Using Pymol Objects and Selections Selector Quick Reference Selection Algebra|Selection Algebra]]<br />
#### [[:Category:Using Pymol Objects and Selections Selector Quick Reference Selection Macros|Selection Macros]]<br />
### [[:Category:Using Pymol Objects and Selections Representations|Representations]]<br />
#### [[:Category:Using Pymol Objects and Selections Representations Lines|Lines]]<br />
#### [[:Category:Using Pymol Objects and Selections Representations Sticks|Sticks]]<br />
#### [[:Category:Using Pymol Objects and Selections Representations Cartoon|Cartoon]]<br />
#### [[:Category:Using Pymol Objects and Selections Representations Surface|Surface]]<br />
#### [[:Category:Using Pymol Objects and Selections Representations Mesh|Mesh]]<br />
#### [[:Category:Using Pymol Objects and Selections Representations Spheres|Spheres]]<br />
#### [[:Category:Using Pymol Objects and Selections Representations Dots|Dots]]<br />
### [[:Category:Using Pymol Objects and Selections Color|Color]]<br />
### [[:Category:Using Pymol Objects and Selections Displaying Biochemical Properties|Displaying biochemical properties]]<br />
## [[:Category:Using Pymol Display Settings|Display Settings]]<br />
## [[:Category:Using Pymol Stereo 3D Display|Stereo 3D Display]] -- wrong place<br />
### [[:Category:Using Pymol Hardware Options|Hardware Options]] -- wrong place?<br />
### [[Linux XFree86 Configuration]] -- wrong place<br />
## [[:Category:Using Pymol Scenes|Scenes]]<br />
## [[:Category:Using Pymol Mouse Settings|Mouse Settings]]<br />
## [[:Category:Using Pymol Wizards|Wizards]]<br />
## [[:Category:Using Pymol Ray-tracing|Ray-tracing]]<br />
## [[:Category:Using Pymol Settings Reference|Settings Reference]]<br />
## [[:Category:Using Pymol Movies and Animations|Movies and Animations]]<br />
## [[:Category:Using Pymol Structure Alignment|Structure Alignment]]<br />
## [[:Category:Using Pymol Structure Alignment Editor|Structure Alignment Editor]]<br />
# [[:Category:Commands|Command Language]]<br />
## [[:Category:Commands PyMOL Command Script|PyMOL Command Script]]<br />
## [[:Category:Commands PyMOL Python API|PyMOL Python API]]<br />
# [[:Category:Advanced Issues|Advanced Issues]]<br />
## [[:Category:Advanced Issues Modeling and Editing Structures|Modeling and editing structures]]<br />
### [[:Category:Advanced Issues Modeling and Editing Structures Editing atoms|Editing Atoms]]<br />
### [[:Category:Advanced Issues Modeling and Editing Structures Molecular Sculpting|Molecular sculpting]]<br />
### [[:Category:Advanced Issues Modeling and Editing Structures Homology Modeling|Homology modeling]]<br />
## [[:Category:Advanced Issues Image Manipulation|Image Manipulation]]<br />
### [[:Category:Advanced Issues Image Manipulation labels|labels]]<br />
### [[:Category:Advanced Issues Image Manipulation Photoshop and GIMP|Photoshop/GIMP]]<br />
### [[:Category:Advanced Issues Image Manipulation Stereo Figures|Stereo Figures]]<br />
### [[:Category:Advanced Issues Image Manipulation Publication Quatlity Images|Publication-quality images]]<br />
# [[:Category:Scripting|Scripting]]<br />
## [[:Category:Scripting Example Scripts|Example Scripts]]<br />
## [[:Category:Scripting Script Library|Script Library]]<br />
# [[:Category:Plugins|Plugins]]<br />
## [[:Category:Plugins Electrostatics and Energy Minimization| How to do electrostatics and energy minimization.]]<br />
### [[:Category:Plugins Electrostatics and Energy Minimization APBS| APBS Plugin]]<br />
## [[:Category:Plugins rtools | rtools]]<br />
## [[:Category:Plugins Tutorial|Tutorial on writing plugins]]<br />
## [[:Category:Plugins Others| Others]]<br />
# [[:Category:High-Level Applications|High-Level Applications]]<br />
## [[:Category:High-Level Applications Crystallography Applications|Crystallography Applications]]<br />
### [[:Category:High-Level Applications Symmetry|Symmetry]]<br />
### [[:Category:High-Level Applications Electron Density|Electron Density]]<br />
## [[:Category:High-Level Applications NMR Applications|NMR Applications]]<br />
### [[:Category:High-Level Applications NMR Applications Working with a Family of Structures|Working with Structure Families]]<br />
### [[:Category:High-Level Applications NMR Applications Superimposition and RMSD|Superimposition and RMSD]]<br />
### [[:Category:High-Level Applications NMR Applications NMR Restraints Analysis|NMR Restraints and Analysis]]<br />
# [[:Category:Third Party Software|Third Party Software]]<br />
## [[:Category:Third Party Software PovRay|PovRay]]<br />
## [[:Category:Third Party Software Movies|Movies]]<br />
## [[:Category:Third Party Software Codecs|Codecs]]<br />
# [[:Category:Python Integration|Python Integration]]<br />
# [[:Category:Using PyMol For Unintended Uses|Unintended Uses]] (OpenGL Object Renderer)<br />
## [[:Category:Using PyMol For Unintended Uses Arbitrary Graphics Objects| Arbitrary Graphics Objects]]<br />
# [[:Category:Uncategorized|Uncategorized]] For new pages, misplaced pages, etc.<br />
----<br />
[[User:Tree|Tree]] 02:09, 16 Feb 2005 (CST)<br />
----</div>
Tree
https://pymolwiki.org/index.php?title=TOPTOC&diff=438
TOPTOC
2005-03-02T06:27:21Z
<p>Tree: </p>
<hr />
<div>== Section Layout ==<br />
Please see [[:Talk:Main Page|Discussion]] for more thoughts on the site organizaiton.<br />
<br />
=== Layout Schema ===<br />
# [[:Category:News|News]]<br />
## [[:Category:News Discussion|Discussion]]<br />
## [[:Category:News PyMol Beta|PyMol Beta]]<br />
# [[:Category:Technical Issues|Technical Issues]]<br />
## [[:Category:Technical Issues Installation|Installation]]<br />
### [[:Category:Technical Issues Installation OS Dependent|OS Dependent]]<br />
#### [[:Category:Technical Issues Installation OS Dependent Linux|Linux]]<br />
#### [[:Category:Technical Issues Installation OS Dependent MAC|MAC]]<br />
#### [[:Category:Technical Issues Installation OS Dependent Windows|Windows]]<br />
# [[:Category:Launching PyMOL|Launching PyMOL]]<br />
## [[:Category:Launching PyMOL Command Line Options| Command Line Options]]<br />
## [[:Category:Launching PyMOL Launching From a Script|Launching From a Script]]<br />
# [[:Category:Using Pymol|Using PyMol]]<br />
## [[:Category:Using Pymol Mouse Controls|Mouse Controls]]<br />
## [[:Category:Using Pymol Objects and Selections|Objects and Selections]]<br />
### [[:Category:Using Pymol Objects and Selections Working with Objects|Working with Objects]]<br />
### [[:Category:Using Pymol Objects and Selections Working with Selections|Working with Selections]]<br />
### [[:Category:Using Pymol Objects and Selections Selector Quick Reference|Selector Quick Reference]]<br />
#### [[:Category:Using Pymol Objects and Selections Selector Quick Reference Single-word Selectors|Single-word Selectors]]<br />
#### [[:Category:Using Pymol Objects and Selections Selector Quick Reference Property Selectors|Property Selectors]]<br />
#### [[:Category:Using Pymol Objects and Selections Selector Quick Reference Selection Algebra|Selection Algebra]]<br />
#### [[:Category:Using Pymol Objects and Selections Selector Quick Reference Selection Macros|Selection Macros]]<br />
### [[:Category:Using Pymol Objects and Selections Representations|Representations]]<br />
#### [[:Category:Using Pymol Objects and Selections Representations Lines|Lines]]<br />
#### [[:Category:Using Pymol Objects and Selections Representations Sticks|Sticks]]<br />
#### [[:Category:Using Pymol Objects and Selections Representations Cartoon|Cartoon]]<br />
#### [[:Category:Using Pymol Objects and Selections Representations Surface|Surface]]<br />
#### [[:Category:Using Pymol Objects and Selections Representations Mesh|Mesh]]<br />
#### [[:Category:Using Pymol Objects and Selections Representations Spheres|Spheres]]<br />
#### [[:Category:Using Pymol Objects and Selections Representations Dots|Dots]]<br />
### [[:Category:Using Pymol Objects and Selections Color|Color]]<br />
### [[:Category:Using Pymol Objects and Selections Displaying Biochemical Properties|Displaying biochemical properties]]<br />
## [[:Category:Using Pymol Display Settings|Display Settings]]<br />
## [[:Category:Using Pymol Stereo 3D Display|Stereo 3D Display]] -- wrong place<br />
### [[:Category:Using Pymol Hardware Options|Hardware Options]] -- wrong place?<br />
### [[Linux XFree86 Configuration]] -- wrong place<br />
## [[:Category:Using Pymol Scenes|Scenes]]<br />
## [[:Category:Using Pymol Mouse Settings|Mouse Settings]]<br />
## [[:Category:Using Pymol Wizards|Wizards]]<br />
## [[:Category:Using Pymol Ray-tracing|Ray-tracing]]<br />
## [[:Category:Using Pymol Settings Reference|Settings Reference]]<br />
## [[:Category:Using Pymol Movies and Animations|Movies and Animations]]<br />
## [[:Category:Using Pymol Structure Alignment|Structure Alignment]]<br />
## [[:Category:Using Pymol Structure Alignment Editor|Structure Alignment Editor]]<br />
# [[:Category:Commands|Command Language]]<br />
## [[:Category:Commands PyMOL Command Script|PyMOL Command Script]]<br />
## [[:Category:Commands PyMOL Python API|PyMOL Python API]]<br />
# [[:Category:Advanced Issues|Advanced Issues]]<br />
## [[:Category:Advanced Issues Modeling and Editing Structures|Modeling and editing structures]]<br />
### [[:Category:Advanced Issues Modeling and Editing Structures Editing atoms|Editing Atoms]]<br />
### [[:Category:Advanced Issues Modeling and Editing Structures Molecular Sculpting|Molecular sculpting]]<br />
### [[:Category:Advanced Issues Modeling and Editing Structures Homology Modeling|Homology modeling]]<br />
## [[:Category:Advanced Issues Image Manipulation|Image Manipulation]]<br />
### [[:Category:Advanced Issues Image Manipulation labels|labels]]<br />
### [[:Category:Advanced Issues Image Manipulation Photoshop and GIMP|Photoshop/GIMP]]<br />
### [[:Category:Advanced Issues Image Manipulation Stereo Figures|Stereo Figures]]<br />
### [[:Category:Advanced Issues Image Manipulation Publication Quatlity Images|Publication-quality images]]<br />
# [[:Category:Scripting|Scripting]]<br />
## [[:Category:Scripting Example Scripts|Example Scripts]]<br />
## [[:Category:Scripting Script Library|Script Library]]<br />
# [[:Category:Plugins|Plugins]]<br />
## [[:Category:Plugins Electrostatics and Energy Minimization| How to do electrostatics and energy minimization.]]<br />
### [[:Category:Plugins Electrostatics and Energy Minimization APBS| APBS Plugin]]<br />
## [[:Category:Plugins rtools | rtools]]<br />
## [[:Category:Plugins Tutorial|Tutorial on writing plugins]]<br />
## [[:Category:Plugins Others| Others]]<br />
# [[:Category:High-Level Applications|High-Level Applications]]<br />
## [[:Category:High-Level Applications Crystallography Applications|Crystallography Applications]]<br />
### [[:Category:High-Level Applications Symmetry|Symmetry]]<br />
### [[:Category:High-Level Applications Electron Density|Electron Density]]<br />
## [[:Category:High-Level Applications NMR Applications|NMR Applications]]<br />
### [[:Category:High-Level Applications NMR Applications Working with a Family of Structures|Working with Structure Families]]<br />
### [[:Category:High-Level Applications NMR Applications Superimposition and RMSD|Superimposition and RMSD]]<br />
### [[:Category:High-Level Applications NMR Applications NMR Restraints Analysis|NMR Restraints and Analysis]]<br />
# [[:Category:Third Party Software|Third Party Software]]<br />
## [[:Category:Third Party Software PovRay|PovRay]]<br />
## [[:Category:Third Party Software Movies|Movies]]<br />
## [[:Category:Third Party Software Codecs|Codecs]]<br />
# [[:Category:Python Integration|Python Integration]]<br />
# [[:Category:Using PyMol For Unintended Uses|Unintended Uses]] (OpenGL Object Renderer)<br />
## [[:Category:Using PyMol For Unintended Uses Arbitrary Graphics Objects| Arbitrary Graphics Objects]]<br />
# [[:Category:Uncategorized|Uncategorized]] For new pages, misplaced pages, etc.<br />
----<br />
[[User:Tree|Tree]] 02:09, 16 Feb 2005 (CST)<br />
----</div>
Tree
https://pymolwiki.org/index.php?title=Main_Page&diff=439
Main Page
2005-03-02T06:27:15Z
<p>Tree: </p>
<hr />
<div>== PyMol Wiki Home ==<br />
You have reached the (new) home of the PyMolWiki, a user-driven web-oriented CMS.<br />
<br />
We (will) strive to provide<br />
* updates on PyMol<br />
* a stable user-oriented documentation base<br />
* a thorough treatment of the PyMol program<br />
* feature rich scripts for general PyMol use<br />
<br />
== Links of Interest ==<br />
* Updated! [[PyMolWiki:Community_Portal| How to get involved!]] -- read me if you want to add something<br />
* [[:Category:Scripting Script Library| Script Library]] -- add one!<br />
* [[:Category:Commands|PyMol Commands]] (>130 documented!)<br />
* [[:Special:Allpages| All Pages]]<br />
* [[:Category:Plugins|Plugins]]<br />
* [[:Special:Categories| See All Categories]]<br />
* [[TOPTOC|Top Level Table of Contents]]</div>
Tree
https://pymolwiki.org/index.php?title=PyMOLWiki:Community_Portal&diff=444
PyMOLWiki:Community Portal
2005-03-02T06:26:42Z
<p>Tree: /* Section Layout */</p>
<hr />
<div>== CP ==<br />
Look here for ways to get involved in the PyMolWiki!<br />
<br />
== Helping ==<br />
* A wiki edit/user policy is needed.<br />
* Graphic design and CSS layout: We need logos, BG images and CSS layout<br />
* Importing the email list content: We have (lots) of email to sift through, extract data from and import into the Wiki<br />
* If you feel you have the time to help import data into the PyMol wiki, please email [[User:Tree|Tree]].<br />
<br />
=== Categories/Content ===<br />
You may now add content to the wiki. This is a semi-structured wiki in that the categories are pseudo-hierarchically linked. <br />
If you feel we're missing a category, please find where it would most logically fit, add it to the main page via the [[Top Level Schema Policy]].<br />
<br />
=== New! GeShi: Syntax Highlighting for Python & More ===<br />
'''Update''': I have added the option for numbered syntax highlighting and non-numbered.<br />
<pre><br />
<source lang="python">Non line-numbered code here</source><br />
</pre><br />
<br />
<pre><br />
<npython>line-numbered code here</npython><br />
</pre><br />
<br />
<br />
We now have a syntax highlighter installed. It now supports something like 28 programming languages! When you paste your code simply wrap it in<br />
&lt;language_name&gt; ... code here ... &lt;/language_name&gt;. <br />
<br />
Here's an example:<br />
<pre><br />
&lt;python&gt;<br />
# axes.py<br />
from pymol.cgo import *<br />
from pymol import cmd<br />
from pymol.vfont import plain<br />
<br />
# create the axes object, draw axes with cylinders coloured red, green,<br />
#blue for X, Y and Z<br />
<br />
obj = [<br />
CYLINDER, 0., 0., 0., 50., 0., 0., 0.2, 1.0, 1.0, 1.0, 1.0, 0.0, 0.,<br />
CYLINDER, 0., 0., 0., 0., 50., 0., 0.2, 1.0, 1.0, 1.0, 0., 1.0, 0.,<br />
CYLINDER, 0., 0., 0., 0., 0., 50., 0.2, 1.0, 1.0, 1.0, 0., 0.0, 1.0,<br />
]<br />
<br />
# add labels to axes object (requires pymol version 0.8 or greater, I<br />
# believe<br />
<br />
cyl_text(obj,plain,[-5.,-5.,-1],'Origin',0.20,axes=[[3,0,0],[0,3,0],[0,0,3]])<br />
cyl_text(obj,plain,[50.,0.,0.],'X',0.20,axes=[[3,0,0],[0,3,0],[0,0,3]])<br />
cyl_text(obj,plain,[0.,50.,0.],'Y',0.20,axes=[[3,0,0],[0,3,0],[0,0,3]])<br />
cyl_text(obj,plain,[0.,0.,50.],'Z',0.20,axes=[[3,0,0],[0,3,0],[0,0,3]])<br />
<br />
# then we load it into PyMOL<br />
cmd.load_cgo(obj,'axes')<br />
<br />
&lt;python&gt;<br />
</pre><br />
<br />
gives us the code<br />
<source lang="python"><br />
# axes.py<br />
from pymol.cgo import *<br />
from pymol import cmd<br />
from pymol.vfont import plain<br />
<br />
# create the axes object, draw axes with cylinders coloured red, green,<br />
#blue for X, Y and Z<br />
<br />
obj = [<br />
CYLINDER, 0., 0., 0., 50., 0., 0., 0.2, 1.0, 1.0, 1.0, 1.0, 0.0, 0.,<br />
CYLINDER, 0., 0., 0., 0., 50., 0., 0.2, 1.0, 1.0, 1.0, 0., 1.0, 0.,<br />
CYLINDER, 0., 0., 0., 0., 0., 50., 0.2, 1.0, 1.0, 1.0, 0., 0.0, 1.0,<br />
]<br />
<br />
# add labels to axes object (requires pymol version 0.8 or greater, I<br />
# believe<br />
<br />
cyl_text(obj,plain,[-5.,-5.,-1],'Origin',0.20,axes=[[3,0,0],[0,3,0],[0,0,3]])<br />
cyl_text(obj,plain,[50.,0.,0.],'X',0.20,axes=[[3,0,0],[0,3,0],[0,0,3]])<br />
cyl_text(obj,plain,[0.,50.,0.],'Y',0.20,axes=[[3,0,0],[0,3,0],[0,0,3]])<br />
cyl_text(obj,plain,[0.,0.,50.],'Z',0.20,axes=[[3,0,0],[0,3,0],[0,0,3]])<br />
<br />
# then we load it into PyMOL<br />
cmd.load_cgo(obj,'axes')<br />
</source><br />
<br />
Now with line numbers!<br />
<br />
<npython><br />
# axes.py<br />
from pymol.cgo import *<br />
from pymol import cmd<br />
from pymol.vfont import plain<br />
<br />
# create the axes object, draw axes with cylinders coloured red, green,<br />
#blue for X, Y and Z<br />
<br />
obj = [<br />
CYLINDER, 0., 0., 0., 50., 0., 0., 0.2, 1.0, 1.0, 1.0, 1.0, 0.0, 0.,<br />
CYLINDER, 0., 0., 0., 0., 50., 0., 0.2, 1.0, 1.0, 1.0, 0., 1.0, 0.,<br />
CYLINDER, 0., 0., 0., 0., 0., 50., 0.2, 1.0, 1.0, 1.0, 0., 0.0, 1.0,<br />
]<br />
<br />
# add labels to axes object (requires pymol version 0.8 or greater, I<br />
# believe<br />
<br />
cyl_text(obj,plain,[-5.,-5.,-1],'Origin',0.20,axes=[[3,0,0],[0,3,0],[0,0,3]])<br />
cyl_text(obj,plain,[50.,0.,0.],'X',0.20,axes=[[3,0,0],[0,3,0],[0,0,3]])<br />
cyl_text(obj,plain,[0.,50.,0.],'Y',0.20,axes=[[3,0,0],[0,3,0],[0,0,3]])<br />
cyl_text(obj,plain,[0.,0.,50.],'Z',0.20,axes=[[3,0,0],[0,3,0],[0,0,3]])<br />
<br />
# then we load it into PyMOL<br />
cmd.load_cgo(obj,'axes')<br />
</npython><br />
<br />
<br />
See [http://qbnz.com/highlighter/index.php The Geshi Home Page]<br />
<br />
[[User:Tree|Tree]]</div>
Tree
https://pymolwiki.org/index.php?title=PyMOLWiki:Community_Portal&diff=436
PyMOLWiki:Community Portal
2005-02-28T17:55:27Z
<p>Tree: /* New! GeShi: Syntax Highlighting for Python & More */</p>
<hr />
<div>== CP ==<br />
Look here for ways to get involved in the PyMolWiki!<br />
<br />
== Helping ==<br />
* A wiki edit/user policy is needed.<br />
* Graphic design and CSS layout: We need logos, BG images and CSS layout<br />
* Importing the email list content: We have (lots) of email to sift through, extract data from and import into the Wiki<br />
* If you feel you have the time to help import data into the PyMol wiki, please email [[User:Tree|Tree]].<br />
<br />
=== Categories/Content ===<br />
You may now add content to the wiki. This is a semi-structured wiki in that the categories are pseudo-hierarchically linked. <br />
If you feel we're missing a category, please find where it would most logically fit, add it to the main page via the [[Top Level Schema Policy]].<br />
<br />
== Section Layout ==<br />
Please see [[:Talk:Main Page|Discussion]] for more thoughts on the site organizaiton.<br />
<br />
=== Layout Schema ===<br />
# [[:Category:News|News]]<br />
## [[:Category:News Discussion|Discussion]]<br />
## [[:Category:News PyMol Beta|PyMol Beta]]<br />
# [[:Category:Technical Issues|Technical Issues]]<br />
## [[:Category:Technical Issues Installation|Installation]]<br />
### [[:Category:Technical Issues Installation OS Dependent|OS Dependent]]<br />
#### [[:Category:Technical Issues Installation OS Dependent Linux|Linux]]<br />
#### [[:Category:Technical Issues Installation OS Dependent MAC|MAC]]<br />
#### [[:Category:Technical Issues Installation OS Dependent Windows|Windows]]<br />
# [[:Category:Launching PyMOL|Launching PyMOL]]<br />
## [[:Category:Launching PyMOL Command Line Options| Command Line Options]]<br />
## [[:Category:Launching PyMOL Launching From a Script|Launching From a Script]]<br />
# [[:Category:Using Pymol|Using PyMol]]<br />
## [[:Category:Using Pymol Mouse Controls|Mouse Controls]]<br />
## [[:Category:Using Pymol Objects and Selections|Objects and Selections]]<br />
### [[:Category:Using Pymol Objects and Selections Working with Objects|Working with Objects]]<br />
### [[:Category:Using Pymol Objects and Selections Working with Selections|Working with Selections]]<br />
### [[:Category:Using Pymol Objects and Selections Selector Quick Reference|Selector Quick Reference]]<br />
#### [[:Category:Using Pymol Objects and Selections Selector Quick Reference Single-word Selectors|Single-word Selectors]]<br />
#### [[:Category:Using Pymol Objects and Selections Selector Quick Reference Property Selectors|Property Selectors]]<br />
#### [[:Category:Using Pymol Objects and Selections Selector Quick Reference Selection Algebra|Selection Algebra]]<br />
#### [[:Category:Using Pymol Objects and Selections Selector Quick Reference Selection Macros|Selection Macros]]<br />
### [[:Category:Using Pymol Objects and Selections Representations|Representations]]<br />
#### [[:Category:Using Pymol Objects and Selections Representations Lines|Lines]]<br />
#### [[:Category:Using Pymol Objects and Selections Representations Sticks|Sticks]]<br />
#### [[:Category:Using Pymol Objects and Selections Representations Cartoon|Cartoon]]<br />
#### [[:Category:Using Pymol Objects and Selections Representations Surface|Surface]]<br />
#### [[:Category:Using Pymol Objects and Selections Representations Mesh|Mesh]]<br />
#### [[:Category:Using Pymol Objects and Selections Representations Spheres|Spheres]]<br />
#### [[:Category:Using Pymol Objects and Selections Representations Dots|Dots]]<br />
### [[:Category:Using Pymol Objects and Selections Color|Color]]<br />
### [[:Category:Using Pymol Objects and Selections Displaying Biochemical Properties|Displaying biochemical properties]]<br />
## [[:Category:Using Pymol Display Settings|Display Settings]]<br />
## [[:Category:Using Pymol Stereo 3D Display|Stereo 3D Display]] -- wrong place<br />
### [[:Category:Using Pymol Hardware Options|Hardware Options]] -- wrong place?<br />
### [[Linux XFree86 Configuration]] -- wrong place<br />
## [[:Category:Using Pymol Scenes|Scenes]]<br />
## [[:Category:Using Pymol Mouse Settings|Mouse Settings]]<br />
## [[:Category:Using Pymol Wizards|Wizards]]<br />
## [[:Category:Using Pymol Ray-tracing|Ray-tracing]]<br />
## [[:Category:Using Pymol Settings Reference|Settings Reference]]<br />
## [[:Category:Using Pymol Movies and Animations|Movies and Animations]]<br />
## [[:Category:Using Pymol Structure Alignment|Structure Alignment]]<br />
## [[:Category:Using Pymol Structure Alignment Editor|Structure Alignment Editor]]<br />
# [[:Category:Commands|Command Language]]<br />
## [[:Category:Commands PyMOL Command Script|PyMOL Command Script]]<br />
## [[:Category:Commands PyMOL Python API|PyMOL Python API]]<br />
# [[:Category:Advanced Issues|Advanced Issues]]<br />
## [[:Category:Advanced Issues Modeling and Editing Structures|Modeling and editing structures]]<br />
### [[:Category:Advanced Issues Modeling and Editing Structures Editing atoms|Editing Atoms]]<br />
### [[:Category:Advanced Issues Modeling and Editing Structures Molecular Sculpting|Molecular sculpting]]<br />
### [[:Category:Advanced Issues Modeling and Editing Structures Homology Modeling|Homology modeling]]<br />
## [[:Category:Advanced Issues Image Manipulation|Image Manipulation]]<br />
### [[:Category:Advanced Issues Image Manipulation labels|labels]]<br />
### [[:Category:Advanced Issues Image Manipulation Photoshop and GIMP|Photoshop/GIMP]]<br />
### [[:Category:Advanced Issues Image Manipulation Stereo Figures|Stereo Figures]]<br />
### [[:Category:Advanced Issues Image Manipulation Publication Quatlity Images|Publication-quality images]]<br />
# [[:Category:Scripting|Scripting]]<br />
## [[:Category:Scripting Example Scripts|Example Scripts]]<br />
## [[:Category:Scripting Script Library|Script Library]]<br />
# [[:Category:Plugins|Plugins]]<br />
## [[:Category:Plugins Electrostatics and Energy Minimization| How to do electrostatics and energy minimization.]]<br />
### [[:Category:Plugins Electrostatics and Energy Minimization APBS| APBS Plugin]]<br />
## [[:Category:Plugins rtools | rtools]]<br />
## [[:Category:Plugins Tutorial|Tutorial on writing plugins]]<br />
## [[:Category:Plugins Others| Others]]<br />
# [[:Category:High-Level Applications|High-Level Applications]]<br />
## [[:Category:High-Level Applications Crystallography Applications|Crystallography Applications]]<br />
### [[:Category:High-Level Applications Symmetry|Symmetry]]<br />
### [[:Category:High-Level Applications Electron Density|Electron Density]]<br />
## [[:Category:High-Level Applications NMR Applications|NMR Applications]]<br />
### [[:Category:High-Level Applications NMR Applications Working with a Family of Structures|Working with Structure Families]]<br />
### [[:Category:High-Level Applications NMR Applications Superimposition and RMSD|Superimposition and RMSD]]<br />
### [[:Category:High-Level Applications NMR Applications NMR Restraints Analysis|NMR Restraints and Analysis]]<br />
# [[:Category:Third Party Software|Third Party Software]]<br />
## [[:Category:Third Party Software PovRay|PovRay]]<br />
## [[:Category:Third Party Software Movies|Movies]]<br />
## [[:Category:Third Party Software Codecs|Codecs]]<br />
# [[:Category:Python Integration|Python Integration]]<br />
# [[:Category:Using PyMol For Unintended Uses|Unintended Uses]] (OpenGL Object Renderer)<br />
## [[:Category:Using PyMol For Unintended Uses Arbitrary Graphics Objects| Arbitrary Graphics Objects]]<br />
# [[:Category:Uncategorized|Uncategorized]] For new pages, misplaced pages, etc.<br />
----<br />
[[User:Tree|Tree]] 02:09, 16 Feb 2005 (CST)<br />
----<br />
<br />
=== New! GeShi: Syntax Highlighting for Python & More ===<br />
'''Update''': I have added the option for numbered syntax highlighting and non-numbered.<br />
<pre><br />
<source lang="python">Non line-numbered code here</source><br />
</pre><br />
<br />
<pre><br />
<npython>line-numbered code here</npython><br />
</pre><br />
<br />
<br />
We now have a syntax highlighter installed. It now supports something like 28 programming languages! When you paste your code simply wrap it in<br />
&lt;language_name&gt; ... code here ... &lt;/language_name&gt;. <br />
<br />
Here's an example:<br />
<pre><br />
&lt;python&gt;<br />
# axes.py<br />
from pymol.cgo import *<br />
from pymol import cmd<br />
from pymol.vfont import plain<br />
<br />
# create the axes object, draw axes with cylinders coloured red, green,<br />
#blue for X, Y and Z<br />
<br />
obj = [<br />
CYLINDER, 0., 0., 0., 50., 0., 0., 0.2, 1.0, 1.0, 1.0, 1.0, 0.0, 0.,<br />
CYLINDER, 0., 0., 0., 0., 50., 0., 0.2, 1.0, 1.0, 1.0, 0., 1.0, 0.,<br />
CYLINDER, 0., 0., 0., 0., 0., 50., 0.2, 1.0, 1.0, 1.0, 0., 0.0, 1.0,<br />
]<br />
<br />
# add labels to axes object (requires pymol version 0.8 or greater, I<br />
# believe<br />
<br />
cyl_text(obj,plain,[-5.,-5.,-1],'Origin',0.20,axes=[[3,0,0],[0,3,0],[0,0,3]])<br />
cyl_text(obj,plain,[50.,0.,0.],'X',0.20,axes=[[3,0,0],[0,3,0],[0,0,3]])<br />
cyl_text(obj,plain,[0.,50.,0.],'Y',0.20,axes=[[3,0,0],[0,3,0],[0,0,3]])<br />
cyl_text(obj,plain,[0.,0.,50.],'Z',0.20,axes=[[3,0,0],[0,3,0],[0,0,3]])<br />
<br />
# then we load it into PyMOL<br />
cmd.load_cgo(obj,'axes')<br />
<br />
&lt;python&gt;<br />
</pre><br />
<br />
gives us the code<br />
<source lang="python"><br />
# axes.py<br />
from pymol.cgo import *<br />
from pymol import cmd<br />
from pymol.vfont import plain<br />
<br />
# create the axes object, draw axes with cylinders coloured red, green,<br />
#blue for X, Y and Z<br />
<br />
obj = [<br />
CYLINDER, 0., 0., 0., 50., 0., 0., 0.2, 1.0, 1.0, 1.0, 1.0, 0.0, 0.,<br />
CYLINDER, 0., 0., 0., 0., 50., 0., 0.2, 1.0, 1.0, 1.0, 0., 1.0, 0.,<br />
CYLINDER, 0., 0., 0., 0., 0., 50., 0.2, 1.0, 1.0, 1.0, 0., 0.0, 1.0,<br />
]<br />
<br />
# add labels to axes object (requires pymol version 0.8 or greater, I<br />
# believe<br />
<br />
cyl_text(obj,plain,[-5.,-5.,-1],'Origin',0.20,axes=[[3,0,0],[0,3,0],[0,0,3]])<br />
cyl_text(obj,plain,[50.,0.,0.],'X',0.20,axes=[[3,0,0],[0,3,0],[0,0,3]])<br />
cyl_text(obj,plain,[0.,50.,0.],'Y',0.20,axes=[[3,0,0],[0,3,0],[0,0,3]])<br />
cyl_text(obj,plain,[0.,0.,50.],'Z',0.20,axes=[[3,0,0],[0,3,0],[0,0,3]])<br />
<br />
# then we load it into PyMOL<br />
cmd.load_cgo(obj,'axes')<br />
</source><br />
<br />
Now with line numbers!<br />
<br />
<npython><br />
# axes.py<br />
from pymol.cgo import *<br />
from pymol import cmd<br />
from pymol.vfont import plain<br />
<br />
# create the axes object, draw axes with cylinders coloured red, green,<br />
#blue for X, Y and Z<br />
<br />
obj = [<br />
CYLINDER, 0., 0., 0., 50., 0., 0., 0.2, 1.0, 1.0, 1.0, 1.0, 0.0, 0.,<br />
CYLINDER, 0., 0., 0., 0., 50., 0., 0.2, 1.0, 1.0, 1.0, 0., 1.0, 0.,<br />
CYLINDER, 0., 0., 0., 0., 0., 50., 0.2, 1.0, 1.0, 1.0, 0., 0.0, 1.0,<br />
]<br />
<br />
# add labels to axes object (requires pymol version 0.8 or greater, I<br />
# believe<br />
<br />
cyl_text(obj,plain,[-5.,-5.,-1],'Origin',0.20,axes=[[3,0,0],[0,3,0],[0,0,3]])<br />
cyl_text(obj,plain,[50.,0.,0.],'X',0.20,axes=[[3,0,0],[0,3,0],[0,0,3]])<br />
cyl_text(obj,plain,[0.,50.,0.],'Y',0.20,axes=[[3,0,0],[0,3,0],[0,0,3]])<br />
cyl_text(obj,plain,[0.,0.,50.],'Z',0.20,axes=[[3,0,0],[0,3,0],[0,0,3]])<br />
<br />
# then we load it into PyMOL<br />
cmd.load_cgo(obj,'axes')<br />
</npython><br />
<br />
<br />
See [http://qbnz.com/highlighter/index.php The Geshi Home Page]<br />
<br />
[[User:Tree|Tree]]</div>
Tree
https://pymolwiki.org/index.php?title=Main_Page&diff=437
Main Page
2005-02-28T17:53:04Z
<p>Tree: </p>
<hr />
<div>== PyMol Wiki Home ==<br />
You have reached the (new) home of the PyMolWiki, a user-driven web-oriented CMS.<br />
<br />
We (will) strive to provide<br />
* updates on PyMol<br />
* a stable user-oriented documentation base<br />
* a thorough treatment of the PyMol program<br />
* feature rich scripts for general PyMol use<br />
<br />
== Links of Interest ==<br />
* Updated! [[PyMolWiki:Community_Portal| How to get involved!]] -- read me if you want to add something<br />
* [[:Category:Scripting Script Library| Script Library]] -- add one!<br />
* [[:Category:Commands|PyMol Commands]] (>130 documented!)<br />
* [[:Special:Allpages| All Pages]]<br />
* [[:Category:Plugins|Plugins]]<br />
* [[:Special:Categories| See All Categories]]</div>
Tree
https://pymolwiki.org/index.php?title=Main_Page&diff=434
Main Page
2005-02-28T17:51:54Z
<p>Tree: </p>
<hr />
<div>== PyMol Wiki Home ==<br />
You have reached the (new) home of the PyMolWiki, a user-driven web-oriented CMS.<br />
<br />
We (will) strive to provide<br />
* updates on PyMol<br />
* a stable user-oriented documentation base<br />
* a thorough treatment of the PyMol program<br />
* feature rich scripts for general PyMol use<br />
<br />
== Links of Interest ==<br />
* Updated! [[PyMolWiki:Community_Portal| How to get involved!]] -- read me if you want to add something<br />
* [[:Category:Scripting Script Library| Script Library]] -- add one!<br />
* [[:Category:Commands|PyMol Commands]] (>130 documented!)<br />
* [[:Special:Allpages| All Pages]]<br />
* [[:Category:Plugins|Plugins]]<br />
* [[:Special:Categories| See All Categories]]<br />
<br />
<br />
<source lang="python"><br />
#############################################################################<br />
# $Id$<br />
#############################################################################<br />
<br />
import sys;<br />
import os;<br />
import math;<br />
import re;<br />
import getopt;<br />
<br />
from Bio.PDB.PDBParser import PDBParser<br />
<br />
import imgWriter<br />
#my imageWriter using GD<br />
#import dali.imageWriter<br />
<br />
class point:<br />
"""<br />
point is a simple representation of a 3D point in space<br />
<br />
"""<br />
<br />
def __init__(self, ray = [] ):<br />
"""<br />
Constructor<br />
<br />
"""<br />
<br />
if ( len(ray) != 3 ):<br />
print "ERROR: What, so macromolecules are 2-dimensional now? I don't th<br />
ink so."<br />
sys.exit(2)<br />
<br />
# assign instance variables<br />
self.x = ray[0]<br />
self.y = ray[1]<br />
self.z = ray[2]<br />
<br />
# calculate the length from origin<br />
self.length = math.sqrt( self.x**2 + self.y**2 + self.z**2 )<br />
<br />
</source><br />
<br />
<npython><br />
#############################################################################<br />
# $Id$<br />
#############################################################################<br />
<br />
import sys;<br />
import os;<br />
import math;<br />
import re;<br />
import getopt;<br />
<br />
from Bio.PDB.PDBParser import PDBParser<br />
<br />
import imgWriter<br />
#my imageWriter using GD<br />
#import dali.imageWriter<br />
<br />
<br />
class point:<br />
"""<br />
point is a simple representation of a 3D point in space<br />
<br />
"""<br />
<br />
def __init__(self, ray = [] ):<br />
"""<br />
Constructor<br />
<br />
"""<br />
<br />
if ( len(ray) != 3 ):<br />
print "ERROR: What, so macromolecules are 2-dimensional now? I don't th<br />
ink so."<br />
sys.exit(2)<br />
<br />
# assign instance variables<br />
self.x = ray[0]<br />
self.y = ray[1]<br />
self.z = ray[2]<br />
<br />
# calculate the length from origin<br />
self.length = math.sqrt( self.x**2 + self.y**2 + self.z**2 )<br />
<br />
</npython></div>
Tree
https://pymolwiki.org/index.php?title=File:Dots_ex.png&diff=3098
File:Dots ex.png
2005-02-27T08:19:19Z
<p>Tree: Dots Representation Example</p>
<hr />
<div>Dots Representation Example</div>
Tree
https://pymolwiki.org/index.php?title=File:Spheres_ex.png&diff=3097
File:Spheres ex.png
2005-02-27T08:18:09Z
<p>Tree: Spheres Example</p>
<hr />
<div>Spheres Example</div>
Tree
https://pymolwiki.org/index.php?title=File:Mesh_ex.png&diff=3096
File:Mesh ex.png
2005-02-27T08:16:59Z
<p>Tree: Mesh Example.</p>
<hr />
<div>Mesh Example.</div>
Tree
https://pymolwiki.org/index.php?title=File:Surface_ex.png&diff=3095
File:Surface ex.png
2005-02-27T08:12:45Z
<p>Tree: Surface Representation Example.</p>
<hr />
<div>Surface Representation Example.</div>
Tree
https://pymolwiki.org/index.php?title=File:Cartoon_ex.png&diff=3094
File:Cartoon ex.png
2005-02-27T08:11:18Z
<p>Tree: Cartoon Example.</p>
<hr />
<div>Cartoon Example.</div>
Tree
https://pymolwiki.org/index.php?title=File:Lines_ex.png&diff=3092
File:Lines ex.png
2005-02-27T08:09:57Z
<p>Tree: Lines Example.</p>
<hr />
<div>Lines Example.</div>
Tree
https://pymolwiki.org/index.php?title=File:Sticks_ex.png&diff=3091
File:Sticks ex.png
2005-02-27T08:08:29Z
<p>Tree: Sticks Example.</p>
<hr />
<div>Sticks Example.</div>
Tree
https://pymolwiki.org/index.php?title=Main_Page&diff=433
Main Page
2005-02-24T15:27:03Z
<p>Tree: </p>
<hr />
<div>== PyMol Wiki Home ==<br />
You have reached the (new) home of the PyMolWiki, a user-driven web-oriented CMS.<br />
<br />
We (will) strive to provide<br />
* updates on PyMol<br />
* a stable user-oriented documentation base<br />
* a thorough treatment of the PyMol program<br />
* feature rich scripts for general PyMol use<br />
<br />
== Links of Interest ==<br />
* Updated! [[PyMolWiki:Community_Portal| How to get involved!]] -- read me if you want to add something<br />
* [[:Category:Scripting Script Library| Script Library]] -- add one!<br />
* [[:Category:Commands|PyMol Commands]] (>130 documented!)<br />
* [[:Special:Allpages| All Pages]]<br />
* [[:Category:Plugins|Plugins]]<br />
* [[:Special:Categories| See All Categories]]</div>
Tree
https://pymolwiki.org/index.php?title=Save&diff=657
Save
2005-02-24T15:25:52Z
<p>Tree: </p>
<hr />
<div>===DESCRIPTION===<br />
<br />
"save" writes selected atoms to a file. The file format is<br />
autodetected if the extesion is ".pdb", ".pse", ".mol", ".mmod", or<br />
".pkl"<br />
<br />
Note that if the file extension ends in ".pse" (PyMOL Session), the<br />
complete PyMOL state is always saved to the file (the selection and<br />
state parameters are thus ignored).<br />
<br />
===USAGE===<br />
<pre><br />
save file [,(selection) [,state [,format]] ]<br />
</pre><br />
===PYMOL API===<br />
<source lang="python"><br />
cmd.save(file, selection, state, format)<br />
</source><br />
<br />
===NOTES===<br />
<br />
When saving a session file, then "state" has no effect.<br />
When state = 0 (default), only the current state is written.<br />
When state = -1, then a multi-state output file is written (PDB only).<br />
<br />
===SEE ALSO===<br />
<br />
[[Cmd load]], [[Cmd get_model]]<br />
<br />
[[Category:Commands|save]]</div>
Tree
https://pymolwiki.org/index.php?title=Center&diff=853
Center
2005-02-24T15:24:51Z
<p>Tree: </p>
<hr />
<div>== DEPRECATED ==<br />
See [[CmdScript.center|center]]<br />
<br />
===DESCRIPTION===<br />
<br />
"center" translates the window, the clipping slab, and the<br />
origin to a point centered within the atom selection.<br />
<br />
===PYMOL API===<br />
<source lang="python"><br />
cmd.center( string selection, int state = 0, int origin = 1 )<br />
</source><br />
<br />
===NOTES===<br />
<br />
state = 0 (default) use all coordinate states<br />
state = -1 use only coordinates for the current state<br />
state > 0 use coordinates for a specific state<br />
<br />
origin = 1 (default) move the origin<br />
origin = 0 leave the origin unchanged<br />
<br />
===SEE ALSO===<br />
<br />
[[Cmd origin]], [[Cmd orient]], [[Cmd zoom]] <br />
<br />
[[Category:Commands|center]]</div>
Tree
https://pymolwiki.org/index.php?title=Ray&diff=838
Ray
2005-02-24T15:01:46Z
<p>Tree: </p>
<hr />
<div>===DESCRIPTION===<br />
<br />
"ray" creates a ray-traced image of the current frame. This<br />
can take some time (up to several minutes, depending on image<br />
complexity).<br />
<br />
===USAGE===<br />
<br />
ray [width,height [,renderer [,angle [,shift ]]]<br />
<br />
angle and shift can be used to generate matched stereo pairs<br />
<br />
===EXAMPLES===<br />
<br />
ray<br />
ray 1024,768<br />
ray renderer=0<br />
<br />
===PYMOL API===<br />
<source lang="python"> <br />
cmd.ray(int width,int height,int renderer=-1,float shift=0)<br />
</source><br />
<br />
===NOTES<br />
<br />
renderer = -1 is default (use value in ray_default_renderer)<br />
renderer = 0 uses PyMOL's internal renderer<br />
renderer = 1 uses PovRay's renderer. This is Unix-only<br />
and you must have "x-povray" in your path. It utilizes two<br />
two temporary files: "tmp_pymol.pov" and "tmp_pymol.png".<br />
<br />
===SEE ALSO===<br />
<br />
"help faster" for optimization tips with the builtin renderer.<br />
"help povray" for how to use PovRay instead of PyMOL's built-in<br />
ray-tracing engine. <br />
<br />
==USER Comments==<br />
====How do I ray trace a publication-ready (~300dpi) image using PyMol?====<br />
This answer is in the [[:Category:Advanced_Issues|Advanced Issues]] (Image Manipulation Section).<br />
<br />
[[Category:Commands|ray]]</div>
Tree
https://pymolwiki.org/index.php?title=Cmd.center&diff=3089
Cmd.center
2005-02-24T15:00:23Z
<p>Tree: Cmd.center moved to Cmd center</p>
<hr />
<div>#REDIRECT [[Cmd center]]<br />
</div>
Tree