[PyMOL] multi distance object to single distance objects

2005-08-09 Thread Daniel Hasenpusch
Hi,

I used the distance command:

 cmd.dist(" (/mol1///1/C)","(/mol1///2/C*)").

In pymol it creates a new distance object with all distances from C in Residue 
1 to every C in Residue 2.
How can I split this object to single distance objects? 
Or there are better possibilities because I want to write the distances into an 
extra file, but I only get the last distance as result.

Thanks in advance,

Daniel


[PyMOL] nuccyl's URL has changed!

2005-08-09 Thread Luca Jovine

Dear PyMOL users,

Recently I moved, and so has nuccyl's home page. Please update your  
bookmarks to:


http://www.biosci.ki.se/groups/ljo/software/nuccyl.html

With best regards,

Luca

-
Luca Jovine, Ph.D.
Karolinska Institutet
Department of Biosciences at Novum
Center for Structural Biochemistry (CSB)
Hälsovägen 7-9, S-141 57 Huddinge, Sweden
Voice: +46.(0)8.6083-301  FAX: +46.(0)8.6089-290
E-mail: luca.jov...@biosci.ki.se - lucajov...@mac.com
W3: http://www.biosci.ki.se/groups/ljo/
-



[PyMOL] multi distance object to single distance objects

2005-08-09 Thread Daniel Hasenpusch
Hi,

I used the distance command:

 cmd.dist(" (/mol1///1/C)","(/mol1///2/C*)").

In pymol it creates a new distance object with all distances from C in Residue 
1 to every C in Residue 2.
How can I split this object to single distance objects? 
Or there are better possibilities because I want to write the distances into an 
extra file, but I only get the last distance as result.

Thanks in advance,

Daniel


[PyMOL] Rendering large surfaces

2005-08-09 Thread Frank Murphy
I have been trying to coax Pymol to raytrace or output to pov 
(make_pov.py) some very large surfaces and I am unable to. It works for 
~33,000 atoms, but chokes on ~61,000. I would like to get up to >100,000.


Anybody have some good tips? I have tried adjusting hash_max, but I 
think this my be a more basic problem.


Thanks in advance

--
Frank Murphy

MRC LMB
Structural Studies Division
Hills Road
Cambridge CB2 2QH

LAB  +44 1223 402295
MOB +44 7779 224206
FAX   +44 1223 213556




RE: [PyMOL] Before the release of PyMol 0.99: Nucleotides and CGO

2005-08-09 Thread Grégori Gerebtzoff
Same script, but with hydrogen bonds between nucleotides.

Load the pdb file 127D, run the script and type ‘DrawNT’ in PyMol command
line…

 

 

I have a question, maybe Warren you can answer:

I wanted to use the set_color command to define a new color for the Hydrogen
bonds (MyRGBColor = [x,y,z] and then cmd.set_color(“MyColor”, MyRGBColor))

And finally apply the created color to the Hydrogen bonds
(cmd.distance('MyDistance', Selection1, Selection2) and then
cmd.color("MyColor", "MyDistance"))

The question is: how can I then delete the created MyColor object? I tried
the cmd.delete command, it does not generate an error but apparently the
color is still defined… Any idea?!

 

 

 

Cheers,


Greg

 

 

 

 

from pymol import cmd

from pymol.cgo import *

from Numeric import *

import sys,re

 

# COLOR SETTINGS:

AColor=[0.2,1,0.2]

TColor=[1,0.2,0.2]

CColor=[0.3,0.3,1]

GColor=[1,0.55,0.15]

HColor=”magenta”

 

def DrawNT(select="all"):

CurrentView = cmd.get_view(1)

CurrentResi = 0

FirstRun = 1

NTPlate = [BEGIN,TRIANGLE_FAN]

 

# THYMINE

BaseT = cmd.get_model("resn T")

for atoms in BaseT.atom:

if (CurrentResi != atoms.resi):

CurrentResi = atoms.resi

if FirstRun == 0:

NTPlate.append(END)

NTPlate.extend([BEGIN,TRIANGLE_FAN])

NTPlate.extend([COLOR]+TColor)

else:

NTPlate.extend([COLOR]+TColor)

FirstRun = 0

if (atoms.name == "N1") or (atoms.name == "C2") or (atoms.name ==
"N3") or (atoms.name == "C4") or (atoms.name == "C5") or (atoms.name ==
"C6"):

NTPlate.extend([VERTEX] + atoms.coord)

if atoms.name == "N3":

Sel1 =
'%s/%s/%s/%s'%(atoms.segi,atoms.chain,atoms.resi,atoms.name)

cmd.select('Sel2','%s around 3.1 and name N1 and not chain
%s'%(Sel1,atoms.chain))

cmd.distance('Dst', Sel1, "Sel2")

elif atoms.name == "O4":

Sel1 =
'%s/%s/%s/%s'%(atoms.segi,atoms.chain,atoms.resi,atoms.name)

cmd.select('Sel2','%s around 3.1 and name N6 and not chain
%s'%(Sel1,atoms.chain))

cmd.distance('Dst', Sel1, "Sel2")

# ADENINE

BaseA = cmd.get_model("resn A")

for atoms in BaseA.atom:

if (CurrentResi != atoms.resi):

CurrentResi = atoms.resi

if FirstRun == 0:

NTPlate.append(END)

NTPlate.extend([BEGIN,TRIANGLE_FAN])

NTPlate.extend([COLOR]+AColor)

else:

NTPlate.extend([COLOR]+AColor)

FirstRun = 0

if (atoms.name == "N1") or (atoms.name == "C2") or (atoms.name ==
"N3") or (atoms.name == "C4") or (atoms.name == "C5") or (atoms.name ==
"C6"):

NTPlate.extend([VERTEX] + atoms.coord)

if (atoms.name == "C4"):

TmpC4 = atoms.coord

elif (atoms.name == "C5"):

TmpC5 = atoms.coord

elif (atoms.name == "N7"):

NTPlate.append(END)

NTPlate.extend([BEGIN,TRIANGLE_FAN])

NTPlate.extend([COLOR]+AColor)

NTPlate.extend([VERTEX] + TmpC4)

NTPlate.extend([VERTEX] + TmpC5)

NTPlate.extend([VERTEX] + atoms.coord)

elif (atoms.name == "C8") or (atoms.name == "N9"):

NTPlate.extend([VERTEX] + atoms.coord)

 

# CYTOSINE

BaseC = cmd.get_model("resn C")

for atoms in BaseC.atom:

if (CurrentResi != atoms.resi):

CurrentResi = atoms.resi

if FirstRun == 0:

NTPlate.append(END)

NTPlate.extend([BEGIN,TRIANGLE_FAN])

NTPlate.extend([COLOR]+CColor)

else:

NTPlate.extend([COLOR]+CColor)

FirstRun = 0

if (atoms.name == "N1") or (atoms.name == "C2") or (atoms.name ==
"N3") or (atoms.name == "C4") or (atoms.name == "C5") or (atoms.name ==
"C6"):

NTPlate.extend([VERTEX] + atoms.coord)

if atoms.name == "O2":

Sel1 =
'%s/%s/%s/%s'%(atoms.segi,atoms.chain,atoms.resi,atoms.name)

cmd.select('Sel2','%s around 3.1 and name N2 and not chain
%s'%(Sel1,atoms.chain))

cmd.distance('Dst', Sel1, "Sel2")

elif atoms.name == "N3":

Sel1 =
'%s/%s/%s/%s'%(atoms.segi,atoms.chain,atoms.resi,atoms.name)

cmd.select('Sel2','%s around 3.1 and name N1 and not chain
%s'%(Sel1,atoms.chain))

cmd.distance('Dst', Sel1, "Sel2")

elif atoms.name == "N4":

Sel1 =
'%s/%s/%s/%s'%(atoms.segi,atoms.chain,atoms.resi,atoms.name)

cmd.select('Sel2','%s around 3.1 and name O6 and not chain
%s'%(Sel1,atoms.chain))

cmd.distance('Dst', Sel1, "Sel2")

 

# GUANINE

BaseG = cmd.get_model("resn G")

for atoms in BaseG.atom:

if (CurrentResi != atoms.resi):

CurrentRes