Re: [PyMOL] PovRay

2011-03-24 Thread Tsjerk Wassenaar
Hi Ian, As this may be of broader interest, I forward it to the pymol user list too. You can clip the scene using an intersection. Let's say that you have the object you want to clip stored as a povray include file "object.inc". Then you can get the clipped object as: //### pymol_object = union

[PyMOL] Calling pymol from python - access to global variables

2011-03-29 Thread Tsjerk Wassenaar
Hi, I'm having some trouble accessing a function defined at top level with alter_state in a python script launching pymol. Maybe I shouldn't be wanting to do this, but what I'm trying, and failing to do is exemplified by this script: ### #!/usr/bin/env python import pymol if __name__ == "__mai

Re: [PyMOL] Newline character in labels

2011-03-29 Thread Tsjerk Wassenaar
Hi Andreas, In the meantime, you can set double labels by using a pseudoatom, labeling it with the second part, and placing the label at the spot desired. Cheers, Tsjerk On Wed, Mar 30, 2011 at 3:59 AM, Jason Vertrees wrote: > Hi Andreas, > > This is currently not possible.  If this is a featu

Re: [PyMOL] Center of mass

2011-03-31 Thread Tsjerk Wassenaar
Hi Kanika, You can also use pseudoatoms. If you have the positions: pseudoatom coms,pos=[x1,y1,z1] pseudoatom coms,pos=[x2,y2,z2] bond coms,coms Or, if you just have the chains: pseudoatom coms, chain a pseudoatom coms, chain b bond coms, coms Alternatively you can use CGO objects. But pseudo

Re: [PyMOL] RES: radius of gyration

2011-03-31 Thread Tsjerk Wassenaar
Hi :) The radius of gyration is not that tough. Here's a python script to do it in pymol. Do note that the hydrodynamic radius is something related, but different. from pymol import cmd import math def rgyrate(selection): # Get the atoms for the selection model=cmd.get_model(selection).atom

Re: [PyMOL] Saving the Connolly surface of a PDB

2011-04-08 Thread Tsjerk Wassenaar
Hi Francois, That information is in the view matrix you get from get_view. The first nine numbers are the rotation matrix R. The next three numbers are the camera position c, followed by the three numbers denoting origin of rotation o. Then to transform your protein coordinates, as in the PDB, to

Re: [PyMOL] center of mass

2011-04-11 Thread Tsjerk Wassenaar
Hi Kanika, Jason, cmd.get_legal_name is only called in 'com' if no object name is given. The quickest workaround thus is to provide an object name for the 'com' object as third argument. Of course, it still is wise to upgrade and benefit from all those cool new features :) Cheers, Tsjerk On Mo

[PyMOL] segmentation fault pymol 1.4 rev 3938

2011-04-11 Thread Tsjerk Wassenaar
Hi Jason, I run into a segfault with Pymol 1.4 rev 3938 on my EEE PC, running Ubuntu 9.04. The segfault occurs when loading the PDB file. It happens regardless of the contents of the PDB file, but loading something with hetatms gives some insight in how far it goes: PyMOL>load ../../../3lzt.pdb H

Re: [PyMOL] segmentation fault pymol 1.4 rev 3938

2011-04-11 Thread Tsjerk Wassenaar
ndary structure assignments. >  ObjectMolecule: Read crystal symmetry information. >  Symmetry: Found 1 symmetry operators. >  ObjectMoleculeGuessValences(1,0): Unreasonable connectivity in heteroatom, >   unsuccessful in guessing valences. >  CmdLoad: "../../3lzt.pdb" loaded a

Re: [PyMOL] segmentation fault pymol 1.4 rev 3938

2011-04-11 Thread Tsjerk Wassenaar
Molecule: Read crystal symmetry information. >>>  Symmetry: Found 1 symmetry operators. >>>  ObjectMoleculeGuessValences(1,0): Unreasonable connectivity in heteroatom, >>>   unsuccessful in guessing valences. >>>  CmdLoad: "../../3lzt.pdb" loaded as &quo

Re: [PyMOL] segmentation fault pymol 1.4 rev 3938

2011-04-13 Thread Tsjerk Wassenaar
:) Cheers, and thumbs up for Jason! Tsjerk On Mon, Apr 11, 2011 at 2:03 PM, Tsjerk Wassenaar wrote: > Hi, > > The problem did not occur on another machine (Intel Core i7, 64bit), > running Ubuntu 10.10. > On my EeePC loading a python CGO file worked fine, while loading an > empty P

Re: [PyMOL] format problem

2011-04-25 Thread Tsjerk Wassenaar
Hi Kanika, > alter_state 1, 1a8y_a, 1a8y,(x,y,z)=(-0.5*x + 0.886025*y, 0.886025*x + >  0.5*y, -z) This doesn't work like that. It should probably be alter_state 1, 1a8y_a,(x,y,z)=(-0.5*x + 0.886025*y, 0.886025*x + 0.5*y, -z) > then i saved the molecule in pymol from file-->save molecule-->1a8y_

Re: [PyMOL] format problem

2011-04-25 Thread Tsjerk Wassenaar
Hi Kanika, No, the spacing, or in this case the lack of it, is correct. The coordinate section of the pdb file is %8.3f%8.3f%8.3f, i.e. each coordinate eight characters wide with three decimal precision. Cheers, Tsjerk On Mon, Apr 25, 2011 at 12:28 PM, kanika sharma wrote: > i have attached a

Re: [PyMOL] ContactsNCONT script error

2011-05-25 Thread Tsjerk Wassenaar
Hi, The first line is okay, but the rest seems to have an extra space, indeed. You can remove it from the script using: sed -i 's/^ //' script.py Hope it helps, Tsjerk On Thu, May 26, 2011 at 4:33 AM, Michael Lerner wrote: > Hi Ivan, > There's definitely a bug in that script. It looks like mo

Re: [PyMOL] Superimposing 2 or more Selections PyMOL GUI

2011-07-12 Thread Tsjerk Wassenaar
Hi Spyros, In cases like these, I think it's usually best to use colours for the selections and for the overlap: color cyan, selection1 color yellow, selection2 color hotpink, selection1 and selection2 Hope it helps, Tsjerk On Tue, Jul 12, 2011 at 1:14 AM, Spyros Charonis wrote: > Hello PyMOL

Re: [PyMOL] load multiple pdb files in pdb

2011-07-15 Thread Tsjerk Wassenaar
Hey Ram, It's scriptable, but not very doable on this Android :p The best solution would involve a generator funtion that takes a file pattern and a number, using glob to expand the file list, and using yield at each cycle. For a pythonista that should make sense ;) I may take it up when I'm typin

Re: [PyMOL] load multiple pdb files in pdb

2011-07-15 Thread Tsjerk Wassenaar
at 9:56 PM, Marius Retegan wrote: > You could try something like this in a terminal > > for i in $(seq 1 1 100); do pymol $i.pdb; done > > if your file name are 1.pdb, 2.pdb ... 100.pdb > > Marius > > On Fri, Jul 15, 2011 at 9:00 PM, Tsjerk Wassenaar wrote: >> Hey

Re: [PyMOL] Help

2011-08-01 Thread Tsjerk Wassenaar
Hi Babban, For modeling the polymers you probably want to try a docking program. Maybe HADDOCK suits your needs... Hope it helps, Tsjerk On Sun, Jul 31, 2011 at 1:42 AM, Babban Mia wrote: > Dear users, > > Is there some program to calculate the zeta potential or streaming > potential > of prot

Re: [PyMOL] How to draw a cartoon representation on secondary structures containing beta-amino acids?

2011-08-16 Thread Tsjerk Wassenaar
Hey, I noticed with coarse grained structures that cartoon_trace_atoms really traces all atoms; you may need to restrict the selection: set cartoon_trace_atoms show cartoon, n. ca+cb Hope it helps, Tsjerk On Wed, Aug 17, 2011 at 1:24 AM, Jason Vertrees wrote: > Hi Baptiste, > >> My pymol vers

Re: [PyMOL] loading gro files

2011-08-18 Thread Tsjerk Wassenaar
Hey :) Here is an all Python solution to load a .gro file, including the box vectors. It simply converts to PDB format and calls cmd.read_pdbstr... It supports multimodel files. I'll probably add a mechanism to identify chains from breaks, as the .gro format does not use chain identifiers, and may

Re: [PyMOL] loading gro files

2011-08-18 Thread Tsjerk Wassenaar
solvated system > 100.000 atoms I have problems with water > molecules. Is it possible to handle gro files with more than 100.000 atoms > and residues? > Best > > On Thu, Aug 18, 2011 at 9:39 AM, Tsjerk Wassenaar wrote: >> >> Hey :) >> >> Here is an all

Re: [PyMOL] loading gro files

2011-08-18 Thread Tsjerk Wassenaar
2011 at 9:07 PM, Michael Lerner wrote: > > > On Thu, Aug 18, 2011 at 3:39 AM, Tsjerk Wassenaar wrote: >> >> Hey :) >> >> Here is an all Python solution to load a .gro file, including the box >> vectors. It simply converts to PDB format and calls cmd.rea

Re: [PyMOL] Coordinates of the mesh-points

2011-08-22 Thread Tsjerk Wassenaar
Hey Björn, The mesh will be in Pymol camera coordinates, not in PDB coordinates. You'll have to take the object_matrix (cmd.get_object_matrix) and apply it to the protein to convert it to the same space if you are to use it outside of Pymol. Hope it helps, Tsjerk On Mon, Aug 22, 2011 at 8:12 PM

Re: [PyMOL] pymolrc file on Windows7

2011-08-22 Thread Tsjerk Wassenaar
Hi Tanya, Does it say more than "syntax error"? Can you send the whole output? (copy crom the grey screen). In addition, can you send the pymolrc file as attachment? There might be something to do with line endings; so don't paste it in the mail, but attach the actual file that fails. Cheers, Ts

Re: [PyMOL] Coordinates of a mesh

2011-08-25 Thread Tsjerk Wassenaar
Hi Bjoern, Please do also give a more explicit account of what you want to achieve in the end and what you've tried to get there, including the commands used. Cheers, Tsjerk 2011/8/25 Troels Emtekær Linnet : > Check this, and tell if it works. > > http://pymolwiki.org/index.php/Matrix_Copy > >

Re: [PyMOL] bbPlane script "SyntaxError: invalid syntax"

2011-08-25 Thread Tsjerk Wassenaar
Hi Adam, Here's an alternative script... The command is pplanes (peptide-planes): run triangles.py pplanes selection[, color[, alpha[, state[, name Hope it helps, Tsjerk On Thu, Aug 25, 2011 at 5:34 PM, H. Adam Steinberg wrote: > Hi all, > Can anyone help me with a problem that I am havi

Re: [PyMOL] Multiple Structure Superposition

2011-08-28 Thread Tsjerk Wassenaar
Hi Suda, Do you mean different structures of the same molecule or different molecules? For a multistate object, there is intra_fit. for selections comprising multiple objects it's not currently possible. But it's being worked on. Cheers, Tsjerk On Mon, Aug 29, 2011 at 8:43 AM, Suda Ravindran w

Re: [PyMOL] custom textures

2011-08-30 Thread Tsjerk Wassenaar
Hi Arne, Unfortunately that is not possible. You could export the scene to POV-Ray format and make the modifications there. Cheers, Tsjerk On Tue, Aug 30, 2011 at 11:37 PM, Arne Dieckmann wrote: > Hi all, > > I would be interested in creating custom textures for spheres in pymol. More > expli

Re: [PyMOL] how do I quick know the default value setting

2011-09-14 Thread Tsjerk Wassenaar
Hi Lina, In most cases, you can set it back to default by setting it to -1. To know what the default value is, you can use 'get setting_name', before you start fiddling with the setting. Hope it helps, Tsjerk On Sep 15, 2011 4:12 AM, "lina" wrote: Hi, when I tried to set something, let's s

Re: [PyMOL] NUmber

2011-09-21 Thread Tsjerk Wassenaar
Hi Suda, Do you mean the number of residues in helix c.q. sheet or the number of helices and the number of sheets? The former is pretty easy. You can do select ss s select ss h to get the numbers for sheet and helices, respectively. To use the numbers in a script, use cmd.select('ss s') and cmd.

Re: [PyMOL] Automating pymol through PERL

2011-09-29 Thread Tsjerk Wassenaar
Hi Anasuya, This sound like one of those very good reasons to have a go at Python, and leave Perl behind... Together with all the plain reasons to leave Perl behind :) First of all, check http://xkcd.com/353/ Assuming the file is called list.txt and you have all pdb files at hand (which is not st

Re: [PyMOL] Fwd: Rendering 3D Surveys with Pymol

2011-10-06 Thread Tsjerk Wassenaar
I just can't help myself... > (for instance, a rainbow colour scheme based on survey trip?) Can he do a colour scheme based on LSD trip too? But it's cool :) Cheers, Tsjerk -- Tsjerk A. Wassenaar, Ph.D. post-doctoral researcher Molecular Dynamics Group * Groningen Institute for Biomolecula

Re: [PyMOL] Setting-Error: type read mismatch (float) -1

2011-10-09 Thread Tsjerk Wassenaar
Hi Lina, Can you tell more? What version are you using, what system are you on, do you use a .pymolrc, and what exactly do you do? Cheers, Tsjerk On Oct 9, 2011 5:05 PM, "lina" wrote: On Sun, Oct 9, 2011 at 10:50 PM, lina wrote: > > Hi, > > I met the followi... Still something abnormal. W

Re: [PyMOL] Setting-Error: type read mismatch (float) -1

2011-10-09 Thread Tsjerk Wassenaar
2011, at 1:04, Tsjerk Wassenaar wrote: > > Hi Lina, > > Can you tell more? What version are you using, what system are you on, do > you use a .pymolrc, and what exactly do you do? > > Version 1.4. > Debian amd64 > I did use .pymolrc. > Please kindly notice the problem jus

Re: [PyMOL] how can quickly make a fractional atoms into one

2011-10-11 Thread Tsjerk Wassenaar
Hi Lina, Not really a Pymol question, is it? On linux you can use sed: sed '/^\(ATOM\|HETA\)/s/^\(.\{72\}\)/\1/' filein.pdb > fileout.pdb That means: /^\(ATOM\|HETA\)/ :: Match lines starting with ATOM or with HETA, and on those lines execute: s/^\(.\{72\}\)/\1/ :: Subsitute the

Re: [PyMOL] how can quickly make a fractional atoms into one

2011-10-11 Thread Tsjerk Wassenaar
t; On Tue, Oct 11, 2011 at 4:24 PM, Thomas Holder > wrote: >> >> On 10/11/2011 10:16 AM, Tsjerk Wassenaar wrote: >>> >>> Not really a Pymol question, is it? >> >> well, it's the segment identifier column, so you can do with PyMOL: >> >> set p

Re: [PyMOL] PQR Display in PyMOL

2011-10-12 Thread Tsjerk Wassenaar
Hi Martin, You can use b and q as selection keywords (help selections): color red, b < 0 color blue, b > 0 Or you can use 'spectrum' (help spectrum): spectrum b, red_white_blue Hope it helps, Tsjerk On Oct 13, 2011 12:58 AM, "Martin Hediger" wrote: Dear List I have the below model of three

Re: [PyMOL] PQR Display in PyMOL

2011-10-13 Thread Tsjerk Wassenaar
triction on how the PQR file is to be formatted? I was reading > PQR is not as strict as PDB format, so I believe the file I posted should be > a valid PQR format. > > Martin > > > > > > > > Am 13.10.11 06:17, schrieb Tsjerk Wassenaar: > > Hi Martin, >

Re: [PyMOL] Chempy model

2011-10-14 Thread Tsjerk Wassenaar
Hi Андрей, That is not possible. You set a new property on a chempy model instance. load_model converts that model into an internal representation, simply neglecting the new property. get_model creates a fresh chempy model instance, which has no .name property. If you really, really want to do i

Re: [PyMOL] Atom selection

2011-10-14 Thread Tsjerk Wassenaar
Hi George, You might want to use cmd.get_model() to make your life easier. It turns a selection into a chempy model, which has an attribute .atom, containing all the corresponding atoms with names, identifiers, coordinates, etc. Check scripts on the pymolwiki that do comparable things. Hope it h

Re: [PyMOL] missing residues

2011-10-14 Thread Tsjerk Wassenaar
Selam Ahmet, I cordially suggest to have a look at http://catb.org/~esr/faqs/smart-questions.html to phrase your question more effectively, such that we can provide more tailored help. It would have been nice to have an example that we could try ourselves. I find that as preparation for MD simula

Re: [PyMOL] Ray Trace Mode 1 and Labels

2011-10-14 Thread Tsjerk Wassenaar
Hi Jack, Unfortunately, that is not possible. The ray-trace mode affects the behaviour/display of edges during raytracing, It's basically doing edge detection, similar to what can be done in image processing afterwards. So, it's similar to having an image and wanting to enhance edges on some, but

Re: [PyMOL] Putting a protein molecule into a grid and traversing through the grid

2011-10-27 Thread Tsjerk Wassenaar
Hey :) Does the script pasted below do what you want? It does not move the molecule(s), but it returns a list of occupied bins with the ids, names and chains of residues in it. Hope it helps, Tsjerk ### from pymol import cmd def _bin(x,d): d = float(d) a,b,n = min(x),(1-1e-16)/(max(x)

Re: [PyMOL] Putting a protein molecule into a grid and traversing through the grid

2011-10-27 Thread Tsjerk Wassenaar
Right, forgot to mention that the bin is given as the coordinates of the lower corner, relative to the minimal coordinates. Cheers, Tsjerk On Thu, Oct 27, 2011 at 6:02 PM, Tsjerk Wassenaar wrote: > Hey :) > > Does the script pasted below do what you want? It does not move the >

Re: [PyMOL] Create a dummy atom

2011-11-15 Thread Tsjerk Wassenaar
Hi Troels, > I think to get the return values of a script, you need to put them > inside python boxes I'd assume it'd be a Python script :) But also for a PyMOL script, it's not exactly true. However, then there should be no space before the equality sign. This should work: theCenter=COM(...) ps

Re: [PyMOL] disable automatic zoom upon create

2011-11-16 Thread Tsjerk Wassenaar
Hi Daniel, set auto_zoom,0 Cheers, Tsjerk On Wed, Nov 16, 2011 at 11:02 AM, Daniel Larsson wrote: > Hi, > > Is it possible to disable the automatic zoom of the view to fit the newly > created object when one issues the create command? > > Daniel > -

Re: [PyMOL] Question Iterate

2011-11-28 Thread Tsjerk Wassenaar
Hi Martin, The temporary namespace for an atom means that variables like 'resn' can be used to refer to the attribute with that name on the atom instance. You are right that iterate is here used to iterate over a single atom. That does seem a bit odd :p But it seems to be a more straightforward w

Re: [PyMOL] RMSD between two structures

2011-11-29 Thread Tsjerk Wassenaar
Hi Martin, It should be RMSD indeed. Mind that the final RMSD from align is obtained after optimizing the fit by leaving out outliers. Cheers, Tsjerk On Nov 29, 2011 10:07 AM, "Martin Hediger" wrote: Is the RMS the same as RMSD? PyMOL writes "RMS" when using align. Martin Am 11.11.11 14:

Re: [PyMOL] Get number of residues in model

2011-11-29 Thread Tsjerk Wassenaar
Hi Martin, Here's a fourth option (and the technique worth noting :p ): print len( set( [(i.chain,i.resi,i.resn) for i in cmd.get_model(selection).atom] ) ) Cheers, Tsjerk On Tue, Nov 29, 2011 at 4:26 PM, Jason Vertrees wrote: > Hi Martin, > > You get three options: > > (1) You can count alph

Re: [PyMOL] RMSD between two structures

2011-11-30 Thread Tsjerk Wassenaar
Hi Martin, It does an alignment, finding matching pairs of atoms, removing outliers and calculating the RMSD over the remaining matches. Cheers, Tsjerk On Wed, Nov 30, 2011 at 11:05 AM, Martin Hediger wrote: > How does PyMOL calculate the RMSD between two structures where the > number of atoms

Re: [PyMOL] Reading Protein Structure File (PSF)

2011-12-07 Thread Tsjerk Wassenaar
Hi Sean, The .psf file format is for a topological desription (bonds, angles, etc), not for coordinates afaik. Cheers, Tsjerk On Dec 7, 2011 6:25 PM, "Sean Law" wrote: Hi PyMOLers, Can anybody tell me if there's a way to read in a protein structure file (PSF). This is a common file format

Re: [PyMOL] jump to some states

2011-12-15 Thread Tsjerk Wassenaar
Hi Lina, In addition, you can split out a specific state using: create StateX, selection, state=X Check out 'help create' Cheers, Tsjerk On Thu, Dec 15, 2011 at 6:26 AM, Jason Vertrees wrote: > Lina, > > To jump to any given state, X, just type, > > set state, X > > If you want a specific ob

Re: [PyMOL] Color states as rainbow

2011-12-18 Thread Tsjerk Wassenaar
Hey :) You could copy the state to the b-factor field: fetch 1nmr, async=1 split_states 1nmr for i in range(1,cmd.count_states()+1): cmd.alter("1nmr_%04d"%i,"b=%d"%i) delete 1nmr spectrum b Cheers, Tsjerk On Mon, Dec 19, 2011 at 7:38 AM, Jason Vertrees wrote: > Hi Jacob, > > You cannot use th

Re: [PyMOL] what's wrong in this code.. please help!

2012-03-02 Thread Tsjerk Wassenaar
Hey Anasuya, On Fri, Mar 2, 2012 at 5:13 PM, Anasuya Dighe wrote: > What's going wrong with this code? > ___CODE___ > from pymol import cmd > > def process_line(x): >  pdbid,res,chain,num = x.split() >  cmd.load(pdbid) >  cmd.select("target","(resn %s and chain %s and resi %s)"%(res,chain

Re: [PyMOL] How to install g_mdmat from Gromacs package into PyMOL

2012-03-07 Thread Tsjerk Wassenaar
Hi Suheila, That is really not straightforward under Windows. To run any Gromacs tools under Windows, the preferred way to install is using Cygwin. But that will pose a problem coupling to Pymol. I'd say you're out of luck, sorry. Cheers, Tsjerk On Wed, Mar 7, 2012 at 4:15 PM, Suhaila Haji Moh

Re: [PyMOL] FW: Installed Gromacs but generate contact map using g_mdmat (Gromacs) still failed

2012-03-12 Thread Tsjerk Wassenaar
Hi Suheila, Are you running both pymol and gromacs on the virtual machine? Are tge gromacs binaries installed in /usr/bin or /usr/local/bin or otherwise globally available? Cheers, Tsjerk On Mar 11, 2012 10:00 PM, "Suhaila Haji Mohd Hussin" < bell_beaut...@hotmail.com> wrote: The problem I'm

Re: [PyMOL] Query on Contact Map Visualizer

2012-03-12 Thread Tsjerk Wassenaar
Hi Suhaila, >From what I understand from the wiki, you have to have a match between the PDB and the contact map. If your contact map was made on a structure with multiple chains, all chains will be in there. If you want to select a single chain, you have to extract that chain from thhe PDB file, t

Re: [PyMOL] Error running Contact Map Visualizer Plugin

2012-03-13 Thread Tsjerk Wassenaar
Hi Suhaila, It looks like it's trying to load the XPM file, in stead of the jpg/png. How did you invoke Pymol and what commands did you give? Cheers, Tsjerk On Tue, Mar 13, 2012 at 1:49 PM, Suhaila Haji Mohd Hussin wrote: > Hello everyone especially to people who have used Contact Map Visualiz

Re: [PyMOL] Error running Contact Map Visualizer Plugin

2012-03-13 Thread Tsjerk Wassenaar
Hi Suhaila, mogrify modifies in-place, causing a mismatch between the extension and the format. I guess that the script decides based on the extension, and thus fails. Better is to use convert: convert contactmap.xpm contactmap.png Do make sure that the conversion goes well. I'm not exactly sure

Re: [PyMOL] Query on 'Select group for analysis' for Contact Map Visualizer Plugin

2012-03-19 Thread Tsjerk Wassenaar
Hi Suheila, The CMV requires the contact map and the structure to match. So to get what you want, it's easiest to load the structure in pymol, and save only the part you want to analyze: save helix.pdb, ss h save sheet.pdb, ss s Then you can run g_mdmat on each of those, and load the result back

Re: [PyMOL] Editing of the pdb structure

2012-03-20 Thread Tsjerk Wassenaar
Hi James, In addition to Thomas' answer... What is _wrong_ about the TER statement? Your chain is broken, indicated by the nonconsecutive numbers. That means you have two distinct molecules, and they are separated by a TER statement. Doesn't seem wrong. Yeah, they might be the same chain, but havi

Re: [PyMOL] Editing of the pdb structure

2012-03-20 Thread Tsjerk Wassenaar
s, Tsjerk On Tue, Mar 20, 2012 at 1:14 PM, Thomas Holder wrote: > On 03/20/2012 11:35 AM, Tsjerk Wassenaar wrote: >> >> In addition to Thomas' answer... What is _wrong_ about the TER >> statement? Your chain is broken, indicated by the nonconsecutive >> numbers.

Re: [PyMOL] Editing of the pdb structure

2012-03-20 Thread Tsjerk Wassenaar
Next time... :p Tsjerk On Tue, Mar 20, 2012 at 2:48 PM, David Hall wrote: > On Tue, Mar 20, 2012 at 8:44 AM, Tsjerk Wassenaar wrote: >> Hi Thomas, >> >> 'Wrong', certainly in the context it was given in, is a statement of >> judgment. It suggest that the

Re: [PyMOL] Error running Contact Map Visualizer Plugin

2012-03-20 Thread Tsjerk Wassenaar
Hi Suheila, What were the exact commands you used, and what error did it come up with? Just saying you tried mogrify and convert and the error was still there isn't very informative to us. Cheers, Tsjerk On Mar 18, 2012 2:39 PM, "Suhaila Haji Mohd Hussin" < bell_beaut...@hotmail.com> wrote: I

Re: [PyMOL] problem in changing object names

2012-03-20 Thread Tsjerk Wassenaar
Hi, Why can't you use set_name tun1, ..., etc? The attempt trying to change names is quite odd, and won't do what you want anyway. You could use basename="your_tag" cmd.set_name(cmd.get_object_list()[0], basename+"_subtag") ... and so on. Cheers, Tsjerk On Mar 21, 2012 6:56 AM, "Sajeewa Pemasi

Re: [PyMOL] Editing of the pdb structure

2012-03-21 Thread Tsjerk Wassenaar
g residues  ( e.g in loops > of GPCRs or other flexible regions) ? > > James > > 21 марта 2012 г. 10:38 пользователь Tsjerk Wassenaar > написал: > >> Hi James, >> >> Broken refers to non-continuity of a chain, i.e. missing residues. Broken >> does not

Re: [PyMOL] Viewport and ray

2012-03-29 Thread Tsjerk Wassenaar
Hi Gudrun, If you raytrace an image it is written to disk and loaded into the viewport. If the imge is larger than the viewport it is displayed smaller with the real resolution mentioned underneath. If you save the image, using 'png', it is saved in the large format, without the black padding. Ch

Re: [PyMOL] Periodic boundary conditions?

2012-05-14 Thread Tsjerk Wassenaar
Hi Boris, PBC have not yet found their way to the main pymol code. What kind of stuff do you need? lattice.py is quite convenient for shifting. For (a)symmetry mates, you can use the scripts suggested by Thomas. If you need something else, pbc operations are not very hard to script. Cheers, Tsje

Re: [PyMOL] Periodic boundary conditions?

2012-05-15 Thread Tsjerk Wassenaar
Error: > unable to initialize plugin 'SuperSymPlugin12'. > > lattice.py: that shift the structure. I want to display some more cells of it. > > With great respect, > Boris. > > P.S. I have a cell - I'd like to see if its homogeneous. For that I > need to put several

Re: [PyMOL] syntax for lone pair removal

2012-05-30 Thread Tsjerk Wassenaar
Hey, Of course you can also escape the asterisk (just for the record): remove resn \*\*\*\* Cheers, Tsjerk On Wed, May 30, 2012 at 8:28 AM, Thomas Holder wrote: > Hi Martin, > >> when visualising data out of a GOLD docking run, where the software >> has added lone pairs to active site residue

[PyMOL] Map custom function to mouse

2012-06-08 Thread Tsjerk Wassenaar
Beautiful people, I was trying to make an image with a surface, with part of the surface opened to show the inside. I tried to clip the surface by hiding everything within a distance from a pseudoatom, but I ended up editing by hand selecting atoms with the mouse, left click, hide, surface. I was

Re: [PyMOL] Map custom function to mouse

2012-06-09 Thread Tsjerk Wassenaar
e/... breaks down to a click + key press operation. cmd.set_key('F1', cmd.show, ('surface', 'sele')) cmd.set_key('F2', cmd.hide, ('surface', 'sele')) If you really want to map the mouse click operation you need to write a wizard,

Re: [PyMOL] Map custom function to mouse

2012-06-09 Thread Tsjerk Wassenaar
... so a wizard seems the way to go. Thnx, T. On Jun 9, 2012 10:56 AM, "Tsjerk Wassenaar" wrote: Hi Thomas, The problem is a bit more complicated than that. I just want to be able to turn on/off some representation by just clicking the atom. I don't want to select, pres

Re: [PyMOL] writing out the surface

2012-06-11 Thread Tsjerk Wassenaar
Hi Michael, The answer used to be "you can write out the surface as mesh in vrml or povray format, from which you can extract the vertices". I think it's still the proper answer. Cheers, Tsjerk On Jun 11, 2012 5:26 PM, "Michael Lerner" wrote: Hi all, If I have a surface representation, is th

Re: [PyMOL] Usage Specification

2012-06-14 Thread Tsjerk Wassenaar
Hi Sean, The pymol syntax for getting help on a command is "help command". I think it is a wrapper around the python help function, for which the syntax is "help(command)". In your case, it would only show something like: test(*args,**kwargs) You can write a docstring, e.g. similar to the ones i

Re: [PyMOL] 60-mer virus capsid (need computing power!)

2012-06-14 Thread Tsjerk Wassenaar
Hi Shane, I've been playing with a virus 60mer on an intel core i7 workstation with 6Gb memory with good response. Just make sure you use the latest incentive or open source version and have a good graphics card. Cheers, Tsjerk On Jun 14, 2012 11:49 PM, "Shane Neeley" wrote: Hi, Does anyone

Re: [PyMOL] 3D printing question

2012-06-19 Thread Tsjerk Wassenaar
Hi Darrell, > When using the plugin, I find it useful to use smooth loops and smooth > strands. Unfortunately, the script puts the supporting struts at the > C-alpha positions, not the splined positions that you get with smoothing. > The trick is to "show" a "line" representation of just the C-alp

Re: [PyMOL] Very strange problem

2012-07-20 Thread Tsjerk Wassenaar
Hi Malai, Check whether all residues have unique identifiers (residue id + chain id). I often see this happen for multiple chains with no or identical identifiers, in which different residues share the same number. Cheers, Tsjerk On Jul 21, 2012 12:46 AM, "Jason Vertrees" wrote: Hi Malai, Wh

Re: [PyMOL] Save png with ray not working

2012-09-13 Thread Tsjerk Wassenaar
Hi Andrei, You only specified the width. The next argument should then be the height, for which you filled in 'ray'. So pymol tries to make a number of that, which fails. Cheers, Tsjerk On Sep 13, 2012 7:45 PM, "Andrei Tudor" wrote: Hello, I installed pymol a few days ago from source. Everyt

Re: [PyMOL] Use arrows to switch between models

2012-09-20 Thread Tsjerk Wassenaar
Hi :) You can also add cmd.disable('all') cmd.enable(cur_obj) To have all other objects turned off. This is one I'm definitely going to use :) Cheers, Tsjerk On Thu, Sep 20, 2012 at 6:32 PM, Jason Vertrees wrote: > Hi Martin, > >> Is it possible to somehow assign "page up" or "page down" key

Re: [PyMOL] Obtain the number of molecule in the first hydration shell of a peptide.

2012-09-28 Thread Tsjerk Wassenaar
Hi Stephane, print cmd.count_atoms("byres resn URE within 3.5 of peptide")/8 Cheers, Tsjerk On Fri, Sep 28, 2012 at 2:59 PM, ABEL Stephane 175950 wrote: > Dear pymol users, > > I would like to obtain with Pymol (v1.3) the number of urea molecules in the > first shell of a peptide. To do this

Re: [PyMOL] Obtain the number of molecule in the first hydration shell of a peptide.

2012-09-28 Thread Tsjerk Wassenaar
t; Cheers, > > -- Jason > > On Fri, Sep 28, 2012 at 10:03 AM, ABEL Stephane 175950 > wrote: >> for the pymol-users mailing list archive and to close my message >> >> Tsjerk Wassenaar gave the command : >> >>

Re: [PyMOL] question about biological units, states, etc.

2012-10-03 Thread Tsjerk Wassenaar
Hi Dave, You can set the chain identifier for each object alter object, chain="A" And then you can create a new object create alltogether, chain A+B+C+D That object you can then use for fitting. Hope it helps, Tsjerk On Wed, Oct 3, 2012 at 7:22 PM, Bourgaize David wrote: > Hello, all. > >

Re: [PyMOL] Delete empty objects

2012-12-11 Thread Tsjerk Wassenaar
Hi Vitaly, Try for i in cmd.get_object_list(): cmd.get_model(i).get_coord_list() or cmd.delete(i) Ciao! Tsjerk On Tue, Dec 11, 2012 at 9:31 AM, V.V. wrote: > Hello, > Is there a quick way to delete the objects that do not contain any atoms? > > Thank you in advance, > Vitaly > > >

Re: [PyMOL] drawing a bond between the same Calpha atom in different states

2012-12-14 Thread Tsjerk Wassenaar
Hey :) Can't resist the challenge... For any given ensemble, you can draw a trace through the C-alphas using the following lines, illustrated here for the NMR ensemble '1NMR': # Get the structure fetch 1nmr # Get the number of states n = cmd.count_states('1nmr') # Collect the C-alpha coordinate

Re: [PyMOL] drawing a bond between the same Calpha atom in different states

2012-12-14 Thread Tsjerk Wassenaar
versity Research Lecturer > Division of Structural Biology > Wellcome Trust Centre for Human Genetics > University of Oxford > Roosevelt Drive, > Oxford OX3 7BN, UK > > Email: jonat...@strubi.ox.ac.uk, Web: www.strubi.ox.ac.uk > Tel: (+44) - 1865 - 287561, FAX: (+44) - 1

Re: [PyMOL] About ray trace and spheres

2012-12-31 Thread Tsjerk Wassenaar
Hi Anasuya, Happy New Year! sphere_mode only controls the appearance. You probably want to try sphere_scale. Enjoy, Tsjerk On Mon, Dec 31, 2012 at 12:14 PM, Anasuya Dighe wrote: > Hi, > > I am representing C-alpha atoms of binding site as spheres. > I am using the set sphere_mode command to

Re: [PyMOL] Write vector graphics of session

2013-01-15 Thread Tsjerk Wassenaar
Hi, I would be in favor of SVG format, because it is human readable/editable/scriptable. The other formats are harder to deal with, without using some external program, and SVG can be converted into either of them anyway. In addition, SVG is suitable for use on webpages. Cheers, Tsjerk On Tue,

Re: [PyMOL] stereo image

2013-02-21 Thread Tsjerk Wassenaar
Hi Yamei, There's nothing wrong with your approach. If you like the results, and they illustrate the point your trying to make, it's good. Cheers, Tsjerk On Thu, Feb 21, 2013 at 9:22 AM, Yamei Yu wrote: > Hi All, > > I want to generate a stereo image for a structure. I use > pymol-diaplay-Ster

Re: [PyMOL] About draw_links.py by Dr. Robert Campbell

2013-02-21 Thread Tsjerk Wassenaar
Hi, If you want to draw all bonds for all pairs between two selections, you can just use bond: bond sele and n. ca, sele and n. ca Hope it helps, Tsjerk On Thu, Feb 21, 2013 at 9:19 PM, Robert Campbell wrote: > Hi Anasuya, > > On Thu, 21 Feb 2013 17:10:40 +0530 > Anasuya Dighe wrote: > >> >

Re: [PyMOL] Pymol Scripts for Coarse grained for non-protein molecules

2013-03-01 Thread Tsjerk Wassenaar
Hi Stephane, You can convert a Gromacs run input file (.tpr) to a pdb file with CONECT records using the Gromacs tool 'editconf' with the '-conect' flag. The CONECT records will be set according to the bonds in the topology. Pymol will read the CONECT records and set the bonds. If you have a traje

Re: [PyMOL] Showing secondary structure of coarse grained protein

2013-03-04 Thread Tsjerk Wassenaar
Hi Stephane, You don't have phi/psi angles, so determining secondary structure is a bit problematic. What you can do is draw a trace through the backbone beads and set the secondary structure representation explicitly. You'll have to make sure to exclude connections between chains. set cartoon_tr

Re: [PyMOL] How to ray trace clipped image without clipping spheres.

2013-03-11 Thread Tsjerk Wassenaar
# Hey :) # Here is a work around... # First import the numpy module import numpy # Then store the viewing matrix as 6 by 3 numpy array. M=numpy.array(cmd.get_view()).reshape(6,3) # Now place a pseudoatom at the position of the camera # Turn off autozoom to keep the view set auto_zoom, 0 scale=1

Re: [PyMOL] Splitting a PDB file into its constituent chains, and making multiple (smaller) PDB files

2013-04-04 Thread Tsjerk Wassenaar
Hi Anasuya, You can make the selections in PyMOL and save each chain separately. But if you have to do batch processing, you're probably better off using sed: sed -n "/^.\{21\}P/p" 1a55.pdb > 1a55_P.pdb sed -n "/^.\{21\}Q/p" 1a55.pdb > 1a55_Q.pdb sed -n "/^.\{21\}R/p" 1a55.pdb > 1a55_R.pdb To au

Re: [PyMOL] Reset Default Carbon Color

2013-04-10 Thread Tsjerk Wassenaar
Hi Wilson, I don't know how to reset the color scheme, but maybe something along the following lines can help out: # set the colors (change to your liking): colors = ("green","cyan","magenta","yellow") # create a color iterator: python def colit(): i = 0 while True: yield colors

Re: [PyMOL] CGO fixed in space

2013-04-15 Thread Tsjerk Wassenaar
Hi Tim, No, that is not possible. And a workaround isn't simple. You can wrap the CGO object and place it each time you need it, using the information stored in the viewing matrix. Cheers, Tsjerk On Tue, Apr 16, 2013 at 1:43 AM, Someone Else wrote: > Hi, > > is it possible to define a CGO ob

Re: [PyMOL] storing 3d vectors in python

2013-05-07 Thread Tsjerk Wassenaar
Hi Bharat, Not exactly a Pymol question, is it? But in case you're using a list of simple vectors as tuples or lists you can easily add them the Python way, provided that the list is not too long (or it'll be slow): vecs = [(a,b,c),(d,e,f),...] v = [sum(i) for i in zip(vecs)] Alternatively, you

Re: [PyMOL] new to list -- simple questions

2013-05-26 Thread Tsjerk Wassenaar
Hi Bob, I notice that this question has not yet been answered, unless you have received private answers. To start with the second question, this list is followed by those who are most involved in the code, and, AFAIK, there is no specific developers list (I do care to know if there is :P). Also fo

Re: [PyMOL] arranging atom records in pdb file by resid

2013-05-30 Thread Tsjerk Wassenaar
Hi Thomas, Probably something like this should do something close to what you need: sed -n '/^\(ATOM\|HETATM\)/s/^.\{16\}\(.\{10\}\)/\1 \0/p' file.pdb | sort -n -k 3 | cut -b 11- Hope it helps, Tsjerk On Thu, May 30, 2013 at 10:21 AM, Thomas Evangelidis wrote: > Dear PyMOL users/developers,

Re: [PyMOL] colouring states of a md trajectory

2013-06-02 Thread Tsjerk Wassenaar
Hi Sid, Have a look at this: http://pymolwiki.org/index.php/Spectrum_states Hope it helps, Tsjerk On Sun, Jun 2, 2013 at 8:06 PM, Sridharan, Sudharsan < sridhar...@medimmune.com> wrote: > Hi all, > > > > Sorry this may be a naive question and probably has a simple answer but I > haven’t bee

  1   2   3   4   5   6   >