Re: [PyMOL] reproduce special vrml-output

2017-05-19 Thread Sampson, Jared
Hi Anke -

Try `as surface`, which is the equivalent of `hide everything; show surface`. 

Hope that helps.

Cheers,
Jared

Sent from my iPhone

> On May 19, 2017, at 6:43 AM, Anke Schultz  
> wrote:
> 
> Hi Thomas,
> 
> thanks for the explanation on adjusting view, it works fine. This leaves 
> me with one question: How do I get a .wrl-file containing only faces? 
> Using "show surface" and setting surface_type to 2 (triangles) gives me 
> sticks and spheres in the .wrl-file (sticks as edges, spheres at the 
> ends of every edge).
> 
> Cheers,
> 
> Anke
> 
> 
>> Am 19.05.2017 um 10:38 schrieb Thomas Holder:
>> Hi Anke,
>> 
>> The obvious difference I can see in your two samples is that the first one 
>> contains sticks and spheres representations, and the second one only has 
>> faces (could be surface or cartoon).
>> 
>> The other difference is the viewport z position (zoom distance), which is 
>> 0.0 in the second sample. This can be set as follows before exporting the 
>> file (note that the molecule might not be visible anymore, it could be 
>> behind the camera):
>> 
>> view = list(cmd.get_view())
>> view[11] = 0.0
>> cmd.set_view(view)
>> 
>> Hope that helps.
>> 
>> Cheers,
>>   Thomas
>> 
>>> On May 17, 2017, at 4:27 PM, Anke Schultz  
>>> wrote:
>>> 
>>> Hi all,
>>> 
>>> I've been experimenting with exporting surface meshes as .wrl-files. I 
>>> played with the geometry_export_mode setting and the set_view() options, 
>>> since I wanted to get the surface's coordinates corresponding to the atom's 
>>> coordinates of the sd-file I imported to pymol initially. I realized that 
>>> by exporting .wrl-format I got the camera-view instead of the "real" 
>>> coordinates as long as I left everything else on default. This resulted in 
>>> a shift between atom- and surface-coordinates.
>>> 
>>> While playing around to align camera and reality, I somehow managed to 
>>> change the way my .wrl-file looked in the end and it seems to be exactly 
>>> what I was looking for. I have tried for two days now, but unfortunately I 
>>> can't reproduce my steps leading to this special .wrl-file.
>>> 
>>> This is (part of) a .wrl-file without changing default settings:
>>> ###
>>> #VRML V2.0 utf8
>>> 
>>> Viewpoint {
>>>  position 0 0 20.39730644
>>>  orientation 1 0 0 0
>>>  description "Z view"
>>>  fieldOfView 0.465421
>>> }
>>> DirectionalLight {
>>>  direction -0.348155 -0.348155   -0.870
>>> }
>>> NavigationInfo {
>>>  headlight TRUE
>>>  type "EXAMINE"
>>> }
>>> Transform {
>>>  translation -1.820169 2.166291 -3.211221
>>>  rotation -0.199343 0.00 0.979930 2.401556
>>>  children [
>>>   Shape {
>>>geometry Cylinder {
>>> radius 0.024352
>>> height 0.139351
>>> bottom FALSE
>>> topFALSE
>>>}
>>>appearance Appearance {
>>>material Material { diffuseColor 0.9000 0.9000 0.9000
>>>specularColor 0.8 0.8 0.8
>>>shininess 0.8 }
>>>}
>>>   }
>>>   Transform {
>>>translation 0.0 0.069676 0.0
>>>children Shape {
>>> geometry Sphere { radius 0.024352 }
>>> appearance Appearance {
>>>material Material { diffuseColor 0.9000 0.9000 0.9000
>>>specularColor 0.8 0.8 0.8
>>>shininess 0.8 }
>>> }
>>>}
>>>   }
>>>   Transform {
>>>translation 0.0 -0.069676 0.0
>>>children Shape {
>>> geometry Sphere { radius 0.024352 }
>>> appearance Appearance {
>>>material Material { diffuseColor 0.9000 0.9000 0.9000
>>>specularColor 0.8 0.8 0.8
>>>shininess 0.8 }
>>> }
>>>}
>>>   }
>>>  ]
>>> }
>>> Transform {
>>>  translation -1.906664 2.148911 -3.187284
>>>  rotation 0.635566 0.00 0.772046 0.994256
>>> [...]
>>> ###
>>> 
>>> And this is (part of) the special .wrl-file I mysteriously created:
>>> 
>>> ###
>>> #VRML V2.0 utf8
>>> 
>>> Viewpoint {
>>>  position 0 0 -0.
>>>  orientation 1 0 0 0
>>>  description "Z view"
>>>  fieldOfView 0.465421
>>> }
>>> DirectionalLight {
>>>  direction -0.348155 -0.348155   -0.870
>>> }
>>> NavigationInfo {
>>>  headlight TRUE
>>>  type "EXAMINE"
>>> }
>>> Shape {
>>>  appearance Appearance {
>>>   material Material { diffuseColor 1.0 1.0 1.0 }
>>>  }
>>>  geometry IndexedFaceSet {
>>>   coord Coordinate {
>>>point [
>>> 1.121935 1.360173 -0.410155,
>>> 1.840800 1.307029 -0.904629,
>>> 1.445710 1.051540 -1.083943,
>>> 1.301289 0.550209 -1.380068,
>>> 1.445710 1.051540 -1.083943,
>>> 1.840800 1.307029 -0.904629,
>>> 2.165471 0.781700 -1.754629,
>>> 1.301289 0.550209 -1.380068,
>>> 1.840800 1.307029 -0.904629,
>>> 2.693056 1.515260 -1.343787,
>>> 2.165471 0.781700 -1.754629,
>>> 1.840800 1.307029 -0.904629,
>>> [...]

Re: [PyMOL] Pseudoatom for a cavity

2017-01-26 Thread Sampson, Jared M.
Hi Kanika -

You can get more information on the wiki: 
https://pymolwiki.org/index.php/Pseudoatom.

To answer your specific questions, to make a pseudoatom between the two 
terminal Ns of Arg 100 on chain A of myobj:

```
pseudoatom my_ps1, myobj and chain A and resi 100 and name NH1+NH2
```

and to place a pseudoatom at a specific XYZ coordinate, pass the `pos` 
parameter with a 3-tuple of floats:

```
pseudoatom my_ps2, pos=[1.0, 2.0, 3.0]
```

Hope that helps.

Cheers,
Jared


On Jan 26, 2017, at 8:58 AM, kanika sharma 
> wrote:



Dear PyMol Users,

​I asked this question but no body replied so I am trying again. ​

I am struggling here two things.
1). I want to place a pseudo
​ ​
atom in the charge centre of a non aromatic residue, like arginine.
2). Is it possible to place
​a
 pseudo
​ ​
atom in the centre of a cavity in the protein? I am thinking how can I define 
the co ordinates of the position where I wan t to place the pseudo
​ ​
atom?

​Thanks ​

--
Best,

Kanika
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! 
http://sdm.link/slashdot___
PyMOL-users mailing list 
(PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

[PyMOL] New plugin: PyMOLProbity

2017-01-16 Thread Sampson, Jared M.
Dear PyMOL Users,

I am pleased to introduce a new plugin called 
PyMOLProbity which allows a PyMOL 
user to visualize MolProbity-style structural validation data directly in a 
PyMOL session. The programs Reduce, Flipkin, and Probe from the well-known 
MolProbity software package allow 
generation of data in "kinemage" (kinetic image) format to illustrate atom-atom 
contacts (dots) and clashes (spikes), and the new plugin now makes it possible 
to utilize the same programs to produce similar results in PyMOL scenes.

I have put together a page on the PyMOL 
Wiki with a brief summary of its 
features and basic how-to information.  (Please note that the MolProbity 
executables are only available for Linux/MacOS, so PyMOLProbity isn't yet 
useful on Windows.)

My work on this plugin was supported by the Warren L. DeLano Memorial PyMOL 
Open-Source Fellowship.  I would like once again to thank Schrödinger for the 
opportunity to work on this project, and in particular would like to thank the 
PyMOL developers for their support and feedback along the way.

I hope many of you will find it useful.  If you come across any bugs or have 
any feature requests or other suggestions, please feel free to email me 
directly or create a new 
issue on Github.

Happy PyMOLing!

Cheers,
Jared
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

Re: [PyMOL] pymol in pthyon get_wizard() problems

2016-10-11 Thread Sampson, Jared M.
Hi Tim - It seems to me that cmd.get_wizard() needs some argument to be passed 
to it, because right now that function is returning `None`.  This explains the 
error, which states you're trying to call .set_dep() of a `None` object.

Hope that helps.

Cheers,
Jared

On Oct 11, 2016, at 2:48 PM, Timothy Craig 
> wrote:

Hello,
  I'm trying to adapt this script in python to do a variety of different 
mutations from a csv file using this previous message as a template.

https://sourceforge.net/p/pymol/mailman/message/11671708/

I'm a python novice so please excuse me if this is something simple. Here is a 
line that I have in my script that is giving me an error, which is now quite 
long so I don't want to post it all here now:
---

pymol.cmd.get_wizard().set_dep("dep")

error:

Error: unable to get setting type.

Traceback (most recent call last):

  File "pngCSVmutate.py", line 141, in 

pymol.cmd.get_wizard().set_dep("dep")

AttributeError: 'NoneType' object has no attribute 'set_dep'



It seems like something needs to go in the parentheses for get_wizard() since 
that's where the NoneType is coming from.  Sadly there is no pymol wiki page on 
get_wizard
 so I'm not sure where to look for the answer.  Does anyone have an idea or an 
example of the proper use of get_wizard() in python?
Thanks in advance for your help,
-Tim

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! 
http://sdm.link/slashdot___
PyMOL-users mailing list 
(PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

--
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

Re: [PyMOL] 3D printing

2016-10-03 Thread Sampson, Jared M.
Hi Bob - 

I also haven't done much of anything with 3D printing myself, but having worked 
on the COLLADA exporter as one of my POSF fellowship projects, I can share some 
info about the formats themselves and what data is being included in the output 
files.

> Q: What output file types are supported? (WRL, X3D, STL[ASCII/binary], other)

The list on the Save wiki page is fairly complete.  It reads: 

"The file format is autodetected if the extension is .pdb, .pqr, .mol, .sdf, 
.pkl, .pkla, .mmd, .out, .dat, .mmod, .pmo, .pov, .png, .pse, .psw, .aln, 
.fasta, .obj, .mtl, .wrl, .idtf, .dae, or .mol2."

The 3D formats among these (that I recognize, anyway) are .obj (Wavefront 
Object), .mtl (Wavefront Material), .wrl (VRML2), .idtf (Intermediate Data Text 
Format), and .dae (COLLADA).


> Q: Does the generation of these include algorithms for ensuring closure or 
> for stitching together objects in order to not have ragged overlap?

I'm not sure what you mean by "stitching together objects," but in general, as 
long as you have fully closed surfaces, it shouldn't be an issue.  The only 
situation I can think of that would be problematic is if you had clipping panes 
that cut through the object's representation and end up with a hollow, 
infinitesimally thin shell.  That would be pretty difficult to print.  :)

> Q: What is needed to add support struts so that the model is connected and 
> strong enough?

No, this is related to what Paul was asking about recently.  My guess is some 
3D printing software or sites might have more appropriate tools to put these 
in, although you could do it manually (and probably quite tediously) with CGO 
cylinders or distance dashes with dash_gap = 0 if you know the orientation you 
want to use.

> Q: If features are not amenable to printing (labels,  perhaps?), are they 
> automatically ignored? Need to be manually removed?

As far as I know, none of the supported 3D formats include labels in their 
exported data.  Each one has its own implementation, but in general, 
representations stored within PyMOL as triangle meshes (surfaces and cartoons, 
primarily, although you can get everything as triangles with `set use_shaders, 
0`) are supported by all of them.  The COLLADA exporter also handles spheres, 
cylinders, sausages (i.e. rounded cylinders, such as ) and cones.  VRML2 
includes spheres, cylinders and sausages.  The .obj exporter has a bug in 
sphere export that I looked at about a year ago but got busy and didn't 
actually follow through on.  The others I don't know enough about to comment, 
but hopefully this gets you on the right track.

If you want to look further into it, check out the 
RayRender{VRML2,IDTF,ObjMtl,COLLADA} functions in layer1/Ray.cpp or 
layer1/COLLADA.cpp and look for cPrimTriangle, cPrimSphere, etc. for the 
various primitive types.

Hope that helps!

Cheers,
Jared



> 
> Thanks,
> 
> Bob Hanson
> --
> Check out the vibrant tech community on one of the world's most 
> engaging tech sites, SlashDot.org! 
> http://sdm.link/slashdot___
> PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
> Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
> Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net


--
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net


Re: [PyMOL] VRML export

2016-09-27 Thread Sampson, Jared M.
Hi Paul - I'm not too familiar with 3D printing, so not sure if this will help 
you or not.  But if all you need is to have extra cylinders in your output wrl 
file, you could add them using either CGO or distance objects directly within 
PyMOL.

https://pymolwiki.org/index.php/Distance
https://pymolwiki.org/index.php/CGOCylinder

Cheers,
Jared



On Sep 23, 2016, at 4:18 PM, Paul Paukstelis 
<shocksofmig...@gmail.com<mailto:shocksofmig...@gmail.com>> wrote:

Thanks, Jared.

I did ultimately find it there. Looks like what I was shooting for isn't likely 
to be very straightforward. From what I can tell, it doesn't seem that any of 
the atom information gets passed into RayRender.

--p

On 09/23/2016 12:34 PM, Sampson, Jared M. wrote:
Hi Paul -

The relevant function used for VRML export is RayRenderVRML2() in 
layer1/Ray.cpp.

Cheers,

Jared

On Sep 22, 2016, at 11:43 AM, Paul Paukstelis 
<shocksofmig...@gmail.com<mailto:shocksofmig...@gmail.com>> wrote:

Greetings,

I've started playing with 3D printing some ball-and-stick models
(primarily nucleic acids). I've worked up some Blender scripts to enable
automatic pinning (e.g. add a small pin to cylinder of the O3'-P bond
and a correspond hole in the phosphate sphere), however, I'm trying to
further decrease the amount of user input needed in Blender to
ultimately export the model parts for printing. One thing that would be
really useful would be to define some custom child nodes in the VRML
output (atom names for example) and subsequently input that into Blender
as custom properties. Could someone point me to the most relevant pymol
files responsible for VRML output? I did some quick fgrep'ing and didn't
find too much that was of use. Blender side was pretty easy to
accomplish so far.

Thanks,

--paul

--
___
PyMOL-users mailing list 
(PyMOL-users@lists.sourceforge.net<mailto:PyMOL-users@lists.sourceforge.net>)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net


--
___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

Re: [PyMOL] VRML export

2016-09-23 Thread Sampson, Jared M.
Hi Paul - 

The relevant function used for VRML export is RayRenderVRML2() in 
layer1/Ray.cpp.

Cheers,

Jared

> On Sep 22, 2016, at 11:43 AM, Paul Paukstelis  
> wrote:
> 
> Greetings,
> 
> I've started playing with 3D printing some ball-and-stick models 
> (primarily nucleic acids). I've worked up some Blender scripts to enable 
> automatic pinning (e.g. add a small pin to cylinder of the O3'-P bond 
> and a correspond hole in the phosphate sphere), however, I'm trying to 
> further decrease the amount of user input needed in Blender to 
> ultimately export the model parts for printing. One thing that would be 
> really useful would be to define some custom child nodes in the VRML 
> output (atom names for example) and subsequently input that into Blender 
> as custom properties. Could someone point me to the most relevant pymol 
> files responsible for VRML output? I did some quick fgrep'ing and didn't 
> find too much that was of use. Blender side was pretty easy to 
> accomplish so far.
> 
> Thanks,
> 
> --paul
> 
> --
> ___
> PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
> Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
> Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net


--
___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net


Re: [PyMOL] Session scene compatibility with MacPymol?

2016-09-08 Thread Sampson, Jared M.
Hi Paul -

I'm a little late on this thread, but thought I'd add my 2¢.  Probably the 
easiest way get around this issue (as you realize) is probably to save a 
1.7.4.5-compatible PSE file.  But, for the adventurous, there is another way:

With a small effort (and the willingness to use the command line), your 
students with Macs can replace the older Educational build of MacPyMOL with a 
current version of Open Source PyMOL for free using the command line package 
manager, Homebrew.  They just need to open up Terminal.app and 
type the following 3 commands:


# Install Homebrew (run the command below, which downloads the installer, and 
follow the prompts)
/usr/bin/ruby -e "$(curl -fsSL 
https://raw.githubusercontent.com/Homebrew/install/master/install)"

# Install XQuartz
brew install Caskroom/cask/xquartz

# Install PyMOL
brew install pymol


Pretty much everything homebrew installs goes into `/usr/local/Cellar` and gets 
symlinked to `/usr/local/bin`, and shouldn't interfere with any other standard 
software.  One notable exception is that Homebrew 
Cask items like Xquartz.app typically go into 
/Applications, because Cask handles the downloading of apps and installers and 
runs installers automatically.  Of course, you can just as easily download 
XQuartz from the project website and install it 
manually if you prefer.

It may take a few minutes to build PyMOL and its few dependencies. But that's 
it!  Now to open PyMOL they can open a Terminal window, `cd` to whatever 
directory they want to work in, and launch PyMOL by typing `pymol`.  This would 
not only get them a more up-to-date PyMOL version, but as an added bonus, a 
little exposure to a Unix command line environment.

Hope that helps.

Cheers,
Jared




On Sep 2, 2016, at 4:24 PM, Paul Paukstelis 
> wrote:

Are there known session issues with MacPymol? I've saved a session for
my students to look at using my linux incentive linux build and tried
various session compatibility settings (1.6, 1.74, 1.76) but in all
cases the preset scenes I've saved in the session are not loaded when
the session is opened in MacPymol (educational version 1.7.6 I believe).

Thanks,

--paul

--
___
PyMOL-users mailing list 
(PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

--
___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

Re: [PyMOL] Pymol spheres/circles

2016-08-30 Thread Sampson, Jared M.
Hi Laura -

You can also choose single atom selection mode through the menu: click Mouse > 
Selection mode > Atoms and then click your alpha carbon atom.  However, it can 
be tricky to hit the right atom if you're only looking at a cartoon 
representation, so I usually prefer to use the PyMOL command line as Osvaldo 
mentioned with something like:

```
select mutant, myprotein and resi 2
show spheres, mutant and name CA
```

Hope that helps.

Cheers,
Jared



On Aug 30, 2016, at 8:18 AM, Smith, Laura 
> wrote:

Hi,

I’m pretty new to Pymol and not that great with all the syntax etc.

I am wanting to easily show where a mutation is located in  cartoon model. I’ve 
tried to label the residues with spheres but it generates more than one dot and 
that’s not what I want. I just want one single sphere/circle/dot localised to 
an atom on the structure for me to label myself.

Basically like figure 2A in this paper >> 
http://www.ncbi.nlm.nih.gov/pmc/articles/PMC1326319/

Thanks,
Laura


--
___
PyMOL-users mailing list 
(PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

--
___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

Re: [PyMOL] Active site in Pymol

2016-08-24 Thread Sampson, Jared M.
Hi Farzaneh -

Are you looking for something programmatic to use for many different 
structures, or just analyzing a single structure?

With just one structure (or a few) you can do most of this using the GUI by eye.

1. To find the length of each H-bond involving your ligand, (let's say the 
object or selection is called "my_ligand"), click "S (show) > Labels" for the 
'my_ligand_polar_conts' object that was created when finding the H-bonds.

2. To see which kinds of residues are involved, you can type on the PyMOL 
command line: `show sticks, byres (my_ligand within 4)` which will show sticks 
for the entire residue (byres) of any residue with any atom within 4 Å of 
my_ligand.

3. For the number of H-bonds in an individual active site, you can probably 
just count them by eye.

Alternatively, if you need a more automated approach, have a look at Thomas 
Holder's Polarpairs plugin: http://www.pymolwiki.org/index.php/Polarpairs

Hope that helps.

Cheers,
Jared



On Aug 23, 2016, at 2:39 AM, Farzaneh Namazifar 
> wrote:

Hi Dear all;
I am a PyMol user.  I read the PyMOL 
tutorial
 about the hydrogen bond. I need some informations about hydrogen bond like:
1- length of hydrogen bond between two residue
2- which kind of residues are in the hydrogen bond
3- Number of hydrogen bond in active site
As above, I need informations about  Hydrophobicity of residues in the active 
site. and else information about pi-pi interaction in DNA... I need your help 
...
Best Regards.
Thank you in advance.
--
___
PyMOL-users mailing list 
(PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

--
___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

Re: [PyMOL] What's wrong with my pymol script?

2016-08-14 Thread Sampson, Jared M.
Hi Dd H -

`cmd.set` is the wrong command to use here.  (It's for changing settings, not 
for going through states, although some settings can be applied to only a 
specific state).

Instead, you should use `cmd.frame(i)` to move to that frame (state) number.

Note that the `width` and `height` arguments to 
`cmd.png` are in pixels unless you include 
a unit suffix like '10in' or '10cm', and it also takes a `ray` keyword argument 
if you want to ray trace for a nicer image.  Also, this is in a PyMOL (.pml) 
script instead of a Python (.py) script, you need to enclose any statement that 
requires multiple lines (i.e. loops, if/else, etc.) within a `python` block.

```
python
for i in range(1, cmd.count_states()+1):
 cmd.frame(i)
 cmd.png("%d.png" % (i), width='10in', height='10in', dpi=300, ray=1)
python end
```

Hope that helps.

Cheers,
Jared


On Aug 14, 2016, at 9:48 AM, Dd H > 
wrote:

Hi everyone,
I want to render images of frames of my trajectory that loaded in pymol with 
the script below. After running this script, pymol outputs images and they are 
all the same. So what's wrong with my script?

for i in range(1, cmd.count_states()+1):
 cmd.set("state", i, "traj")
 cmd.png("%d.png" % (i), width=10, height=10, dpi=300)

--
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity
planning reports. 
http://sdm.link/zohodev2dev___
PyMOL-users mailing list 
(PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

--
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. http://sdm.link/zohodev2dev___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

Re: [PyMOL] Modeling protein-dna complex

2016-08-14 Thread Sampson, Jared M.
Hi soumi - 

A command-line version of what David said is the following:

save new_complex.pdb, protein_selection or dna_selection

where `protein_selection` and `dna_selection` include all the atoms you want to 
have in the final PDB.  They could be object names if you have each protein and 
the DNA in separate objects.

Hope that helps.

Cheers,
Jared

> On Aug 13, 2016, at 12:15 PM, David Hall  wrote:
> 
> Select the protein you want and the dna, then save the selection as a PDB.
> 
> There are many ways to make a selection; visually, the easiest might be:
> 
> You said you’ve removed the DNA from the protein-dna complex, so now you 
> should have:
> 
> (1) an object that has just your protein that you want in the complex
> (2) an object that has just your DNA that you want in the complex
> 
> In the bottom right, where it typically says “Selecting Residues”, click 
> where it says Residues until that it says “Objects”
> 
> Click on your protein
> 
> Click on your dna
> 
> Click on File->Save Molecule and save “sele” as a PDB file.
> 
>> On Aug 13, 2016, at 8:22 AM, soumi  wrote:
>> 
>> Hi,
>>I carry on my research work on protein-dna complex system.I have one dna 
>> pdb and one protein-dna complex pdb.I want to make new protein-dna complex 
>> pdb taking  dna from single pdb and protein from protein-dna complex.Protein 
>> possess similar DNA-binding specificities.I superimpose two pdb file and 
>> remove dna from protein-dna complex pdb .But I can not save new protein-dna 
>> complex.Please let me know by pymol how I would be able to model of the 
>> referred paper was done.
>> Thanks
>> soumi
>> --
>> What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
>> patterns at an interface-level. Reveals which users, apps, and protocols are 
>> consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
>> J-Flow, sFlow and other flows. Make informed decisions using capacity 
>> planning reports. 
>> http://sdm.link/zohodev2dev___
>> PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
>> Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
>> Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net
> 
> 
> --
> What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
> patterns at an interface-level. Reveals which users, apps, and protocols are 
> consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
> J-Flow, sFlow and other flows. Make informed decisions using capacity 
> planning reports. http://sdm.link/zohodev2dev
> ___
> PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
> Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
> Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

--
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. http://sdm.link/zohodev2dev
___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

Re: [PyMOL] Scripting in Pymol (+)

2016-07-13 Thread Sampson, Jared M.
Hi James -

For the first part, you should use split_states and super or cealign, as in my 
response to one of your emails last month.

https://sourceforge.net/p/pymol/mailman/message/35156097/

Then, once you have aligned all the trajectory structures (let's say they're 
called traj_01 through traj_10), you can create new objects from each of the 
snapshots and the heme using the `or` operator in the selection passed to 
`create`.

create heme_traj_01, traj_01 or resn HEM
create heme_traj_02, traj_02 or resn HEM
etc.

Hope that helps.

Cheers,
Jared

For 1, you need to get your MD simulatio
On Jul 12, 2016, at 3:05 AM, James Starlight 
> wrote:

Dear Pymol Users!

Here I desice to continue my topic regarding scripting in Pymol;

My current task:
I have 1 X-ray structure of cythochrome-C with HEME residue embedded
within the protein as a cofactor
I have 10 snapshots of cythochrome-C from MD trajectory where HEME was
not present explicitly

What I need from pymol to write some script, which will
1) align (superimpose) each MD snapshot againt reference
2) copy HEME residue from reference to each of the superimpsoed
snapshot within the same position.

Thanks so much for any suggestions regarding realization !

James

--
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports.http://sdm.link/zohodev2dev
___
PyMOL-users mailing list 
(PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

--
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports.http://sdm.link/zohodev2dev___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

[PyMOL] Resetting PyMOL via API for unit testing

2016-06-24 Thread Sampson, Jared M.
tl;dr: Is there a way to fully stop and restart PyMOL "sessions" using the API 
to avoid crossover between unit tests?

Hi everyone -

I'm working on unit testing for a plugin and have been trying to figure out how 
to test some functionality from within a PyMOL session.  I have a partially 
working solution, but the problem arises that I can't adequately reinitialize 
PyMOL between tests, and sometimes end up getting carryover between tests.

Here's a working example of this behavior using the built-in `unittest` testing 
framework:

```
import unittest

import __main__
__main__.pymol_argv = ['pymol','-qkc']
import pymol
from pymol import cmd

class TestPymolApi(unittest.TestCase):
def setUp(self):
pymol.finish_launching()
cmd.reinitialize()

def tearDown(self):
#cmd.quit()  # ***this line hangs if uncommented***
pass

def test_1(self):
'''No value for stored.foo.'''
from pymol import stored
with self.assertRaises(AttributeError):
stored.foo

def test_2(self):
'''Sets a value for stored.foo.'''
from pymol import stored
stored.foo = 'bar'

#def test_3(self):
#'''Fails due to carryover from test_2.'''
#self.test_1()

if __name__ == '__main__':
unittest.main()
```


Running `python basic_tests.py` yields the following output (each dot 
represents a successful test):

```
$ python basic_tests.py
..
--
Ran 2 tests in 0.043s

OK
```


But if I uncomment `test_3` and re-run (the tests are executed in standard 
string-sorting order by function name), it fails because the value of 
`stored.foo` is retained even after reinitialization after `test_2`.  (The 
`setUp` and `tearDown` functions are run before and after each test, 
respectively.)

```
$ python basic_tests.py
..F
==
FAIL: test_3 (__main__.TestPymolApi)
--
Traceback (most recent call last):
  File "basic_tests.py", line 32, in test_3
self.test_1()
  File "basic_tests.py", line 24, in test_1
stored.foo
AssertionError: AttributeError not raised

--
Ran 3 tests in 0.110s

FAILED (failures=1)
```

Maybe this is a bug in `cmd.reinitialize()`?  If not, it is unexpected behavior 
(at least in my opinion), and could be improved.

Anyway, this is why I'm trying to figure out another way to reset PyMOL using 
the API.  So if I then uncomment the `cmd.quit()` line to try to get complete 
shut down and restart of PyMOL, unittest hangs on the tearDown of the first 
test and I have to interrupt the process with .

I found an old 
thread where Jason 
mentioned using (admittedly experimental) `pymol2.PyMOL().start/stop()` to, 
well, start and stop PyMOL sessions.  However, in Open Source PyMOL 1.8.2.1, it 
appears to be broken:

```
$ python
>>> import pymol2
>>> p = pymol2.PyMOL()
>>> p.start()
Segmentation fault: 11
```

So, again, my question is: Is there any way to reliably start and stop multiple 
PyMOL sessions or completely reset it using the API?

Looking forward any suggestions or further discussion.

Cheers,
Jared








--
Attend Shape: An AT Tech Expo July 15-16. Meet us at AT Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

Re: [PyMOL] Analysis of docking poses from 2 nmr-ensembles

2016-06-13 Thread Sampson, Jared M.
Hi James -

First, it will be useful to split the 
states.

split_states ensemble1
split_states ensemble2
delete ensemble1
delete ensemble2

Then, superimpose all structures onto a 
reference structure for easier visualization.  This won't affect your distance 
measurements, but will make it easier to see the changes from one object to the 
next.

python
ref = 'ensemble1_0001'   # your reference object
for obj in cmd.get_names():
if obj != ref:
cmd.super(obj, ref)
python end

For your residue pair analysis, you have to decide what kind of distance you 
want to measure (e.g. CA-CA; average position of all atoms in the residue; 
closest atoms, which would require looping through all atom pairs in each 
residue pair and keeping only the shortest distance).  Then create selection 
strings based on those criteria, use them in 
distance measurement, and print 
them or add them to a variable to be output.  If you want to create and 
visualize distance objects, use `distance` instead of `get_distance` and pass a 
distance object name as the first parameter before the selections.

python
sel1 = "resi 100 and name CA"
sel2 = "resi 200 and name CA"
sel3 = "resi 300 and name CA"
for obj in cmd.get_names():
d12 = cmd.get_distance("{} and {}".format(obj, sel1), "{} and 
{}".format(obj, sel2))
d23 = cmd.get_distance("{} and {}".format(obj, sel2), "{} and 
{}".format(obj, sel3))
print "{}: '{}' to '{}' distance = {}".format(obj, sel1, sel2, d12)
print "{}: '{}' to '{}' distance = {}".format(obj, sel2, sel3, d23)
python end

This is just a very quick example; really there are many different ways to do 
this, and you'll have to find what kind of analysis your particular structure 
needs.  Also, if you want to look at H-bonds, it will be more complicated, 
because the angle is important as well.  In this case you may want to look at 
Thomas' Polarpairs script.

Hope that helps.

Cheers,
Jared



On Jun 13, 2016, at 9:41 AM, James Starlight 
> wrote:

Dear Pymol users!

I am studying protein-protein assosiation using 2 different proteins
as test case by means of variety of computational methods.
For my particular caseI need to compare binding poses emerged as the
result of protein-protein docking (ensemble 1: which  consists of 20
snapshots according to docking ranking) as well as MD simulation
(ensemble 2: which consists of 10 snapshots each of which represents
binding pose which has been established during long MD run).
Loading those two ensembles in pymol as 2 different models (in
NMR-like model format)  I need to performs some analysis  to find some
shared trends in each of them e.g RMSD of the distances between common
residues-pairs found in contact map analysis
or something else. What are most trivial suggestions might be in that
particular case?


Thanks for the suggestions!


James

--
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
___
PyMOL-users mailing list 
(PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

--
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

Re: [PyMOL] Dynamic reloading of plugin

2016-04-27 Thread Sampson, Jared M.
Hi Martin - 

I've also experienced this kind of tedium.  Depending on the type of extension 
it is, you could also consider writing tests for your function that can be run 
by either:

a) importing PyMOL commands into a python (.py) script and running e.g. 
`nosetests` or other unit testing software

```extension_tests.pml
import pymol
from pymol import cmd
pymol.finish_launching()
...do stuff here...
```

or,

b) run PyMOL (.pml) scripts in command line only mode.

For example, I've used approach (b) before with a setup something like this:

```test1.pml
from pymol import cmd
frag ala
python
if 'ala' in cmd.get_names(): 
   print 'OK'
else: 
   print 'Not OK'
python end
```

Then run each test from the shell:

```
pymol -cq test1.pml
```

For running many tests automatically, I've also used a "run_tests.sh" that 
looks something like this:

```run_tests.sh
#!/bin/bash
function run_test() {
 PML="test${1}.pml"
 if [ -f "$PML" ]; then
   echo ""
   echo 
""
   echo "Running Test ${1}: $PML"
   echo ""
   pymol -ckq $PML
   echo ""
 fi
}

# call `./run_tests.sh` with no args to run all the tests (up to 100)
if [ $# -lt 1 ]; then
 for i in {1..100}  # increase if you have more than 100 tests
 do
   run_test $i
 done

# call with args, e.g. `./run_tests.sh 1 2 4 7` to run specific test(s)
else
 for i in $@
 do
   run_test $i
 done
fi 
```

Hope this is helpful.  Good luck!

Cheers,
Jared




> On Apr 25, 2016, at 11:06 AM, Thomas Holder  
> wrote:
> 
> Hi Martin,
> 
> how about:
> 
> set_key F1, run script.py; function_from_script()
> 
> Reduces step 3) and 4) to hitting "F1" on the keyboard.
> 
> Cheers,
> Thomas
> 
> On 24 Apr 2016, at 06:36, Martin Hediger  wrote:
> 
>> Hi all
>> 
>> When working on a PyMOL extension script, my workflow is currently something 
>> like this:
>> 
>> 1) Start PyMOL
>> 2) Work on script
>> 3) PyMOL> run script.py
>> 4) PyMOL> function_from_script()
>> 5) See if function works, go back to 2)
>> 
>> Is it possible to have PyMOL automatically re-run the script everytime i 
>> save it?
>> 
>> Thanks and best regards
>> Martin
>> 
>> -- 
>> Martin R. Hediger, PhD
>> Mittlere Strasse 65
>> 4056 Basel
> 
> -- 
> Thomas Holder
> PyMOL Principal Developer
> Schrödinger, Inc.
> 
> 
> --
> Find and fix application performance issues faster with Applications Manager
> Applications Manager provides deep performance insights into multiple tiers of
> your business applications. It resolves application problems quickly and
> reduces your MTTR. Get your free trial!
> https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
> ___
> PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
> Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
> Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

--
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

Re: [PyMOL] on the alignment command

2016-04-15 Thread Sampson, Jared M.
Hi Smith -

`Align` takes selections as arguments, so something like the following should 
work.

align protA and chain A+B+C, protB and chain E+F+G

You could also use `super` or `cealign` instead of align, although with 
cealign, you should reverse the order of the arguments to achieve the same 
result.

Cheers,
Jared


On Apr 12, 2016, at 5:11 AM, Smith Liu 
> wrote:

Dear All,

Suppose my protein A PDB contains chian A, B, C, D, and my protein B PDB 
contains chain E, F, G, H, I want to align all protein A without chain D, with 
all protein B without chain H, will you please tell me the align command?

Smith



--
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

--
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

Re: [PyMOL] pymolrc location

2016-04-08 Thread Sampson, Jared M.
It should be a plain text file with no filename extension (i.e. no ".txt") in 
your home directory, with the full path:

/Users/yourusername/.pymolrc

You can do this with any text editor (including TextEdit--press Cmd-Shift-T to 
make it plain text), or, alternatively, the shell command:

echo "set auto_show_classified" >> ~/.pymolrc

which appends the quoted text to a new line in .pymolrc, creating the file if 
it doesn't exist.

Cheers,
Jared

On Apr 8, 2016, at 11:42 AM, harold steinberg 
> wrote:

Sorry to be inept… I've never had the opportunity to learn beyond the basics of 
Unix.

create a txt file or create a pml file?
Place it on the hard drive next to the library and system folder?
Or place it in the User folder next to the library folder?


On Apr 8, 2016, at 9:47 AM, David Hall 
> wrote:

Make a file at ~/.pymolrc

-David

On Apr 8, 2016, at 10:35 AM, harold steinberg 
> wrote:

where in OS X is pymolrc located?

On Apr 7, 2016, at 2:39 PM, Thomas Holder 
> wrote:

pymolrc

H. Adam Steinberg
7904 Bowman Rd
Lodi, WI 53555
608/592-2366


--
___
PyMOL-users mailing list 
(PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

H. Adam Steinberg
7904 Bowman Rd
Lodi, WI 53555
608/592-2366


--
___
PyMOL-users mailing list 
(PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

--
___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

Re: [PyMOL] The Wiki appears outdated or in error

2016-03-25 Thread Sampson, Jared M.
Hi Jim -

Here's a patch for Open Source PyMOL (rev4153) that adds the 
"collada_background_box" setting (default=0).  If you're using Open Source 
PyMOL and are up to applying it and rebuilding, feel free to use it.  
Otherwise, I already sent it to Thomas, so hopefully it will be incorporated 
into SVN and Incentive PyMOL soon.

Cheers,
Jared

--
Jared Sampson
Columbia University

On Mar 24, 2016, at 2:26 PM, Sampson, Jared M. 
<jms2...@cumc.columbia.edu<mailto:jms2...@cumc.columbia.edu>> wrote:

Hi Jim -

When I

set geometry_export_mode, 1

in PyMOL, then save myfile.dae, then import into MeshLab, MeshLab hangs.

I can confirm that this happens for me, too.  I guess maybe Meshlab requires 
the camera?

As a workaround, you can go back to the previous version with 
collada_geometry_mode=1 and simply delete the box.  You can do this within 
Meshlab by using the "Select Connected Components in a region" tool to select a 
corner the box, then clicking the "Delete the current set of selected faces and 
all the vertices surrounded by that faces" button (see attached screenshot).  
Then, if you zoom in (the box is 100x larger than the largest dimension of the 
scene), your scene will be there.

I'm working on a patch right now to exclude the bounding background box from 
default COLLADA output and make it optional via a new `collada_background_box` 
setting.

Sorry for the confusion, hope this clears it up.

Cheers,
Jared

--
Jared Sampson
Columbia University




collada_background_box.patch
Description: collada_background_box.patch
--
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785351=/4140___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

Re: [PyMOL] The Wiki appears outdated or in error

2016-03-24 Thread Sampson, Jared M.
Hi Jim -

When I

set geometry_export_mode, 1

in PyMOL, then save myfile.dae, then import into MeshLab, MeshLab hangs.

I can confirm that this happens for me, too.  I guess maybe Meshlab requires 
the camera?

As a workaround, you can go back to the previous version with 
collada_geometry_mode=1 and simply delete the box.  You can do this within 
Meshlab by using the "Select Connected Components in a region" tool to select a 
corner the box, then clicking the "Delete the current set of selected faces and 
all the vertices surrounded by that faces" button (see attached screenshot).  
Then, if you zoom in (the box is 100x larger than the largest dimension of the 
scene), your scene will be there.

I'm working on a patch right now to exclude the bounding background box from 
default COLLADA output and make it optional via a new `collada_background_box` 
setting.

Sorry for the confusion, hope this clears it up.

Cheers,
Jared

--
Jared Sampson
Columbia University

On Mar 24, 2016, at 1:05 PM, James Kress 
<jimkress...@kressworks.org<mailto:jimkress...@kressworks.org>> wrote:

Hi Jared,

When I

set geometry_export_mode, 1

in PyMOL, then save myfile.dae, then import into MeshLab, MeshLab hangs.  Is 
there an alternative to MeshLab I can use to generate the u3d file?

Thanks.

Jim

James Kress Ph.D., President
The KressWorks® Foundation
An IRS Approved 501 (c)(3) Charitable, Nonprofit Organization
“Engineering The Cure” ©
(248) 605-8770

Learn More and Donate At:
Website: http://www.kressworks.org<http://www.kressworks.org/>
Facebook: https://www.facebook.com/KressWorks.Foundation/
Twitter: @KressWorksFnd

Confidentiality Notice | This e-mail message, including any attachments, is for 
the sole use of the intended recipient(s) and may contain confidential or 
proprietary information. Any unauthorized review, use, disclosure or 
distribution is prohibited. If you are not the intended recipient, immediately 
contact the sender by reply e-mail and destroy all copies of the original 
message.

From: Sampson, Jared M. [mailto:jms2...@cumc.columbia.edu]
Sent: Wednesday, March 23, 2016 10:53 PM
To: jimkress...@kressworks.org<mailto:jimkress...@kressworks.org>
Cc: pymol-users <pymol-users@lists.sourceforge.net>
Subject: Re: [PyMOL] The Wiki appears outdated or in error

Hi Jim -

This is something we've been talking about changing.  The entire scene as 
viewed within PyMOL is inside that block, including the camera position.   (The 
interior surface of the block itself provides the background color of the 
scene.)  Some viewers, e.g. Mac Preview.app, default to displaying from the 
camera position, but others, including MeshLab, don't, which is understandably 
confusing.

To export only the geometry without any of the scene information, you can `set 
geometry_export_mode, 1` in PyMOL before saving the .dae.

Hope that helps!

Cheers,
Jared

P.S. if you are able to work out a protocol/workflow for generating 3D PDFs 
that is better than what's on the wiki, I hope you will consider updating the 
wiki to help others who might try it in the future.

Jared Sampson
Columbia University

On Mar 23, 2016, at 8:26 PM, James Kress 
<jimkress...@kressworks.org<mailto:jimkress...@kressworks.org>> wrote:

I installed v 1.8.0.6

When I save ‘myfile.dae’ and then import into MeshLab, all I get is a solid 
gray block.

What do I need to do in PyMOL to export my DNA structure?

Thanks.

Jim

James Kress Ph.D., President
The KressWorks® Foundation
An IRS Approved 501 (c)(3) Charitable, Nonprofit Organization
“Engineering The Cure” ©
(248) 605-8770

Learn More and Donate At:
Website: http://www.kressworks.org<http://www.kressworks.org/>
Facebook: https://www.facebook.com/KressWorks.Foundation/
Twitter: @KressWorksFnd

Confidentiality Notice | This e-mail message, including any attachments, is for 
the sole use of the intended recipient(s) and may contain confidential or 
proprietary information. Any unauthorized review, use, disclosure or 
distribution is prohibited. If you are not the intended recipient, immediately 
contact the sender by reply e-mail and destroy all copies of the original 
message.

From: Sampson, Jared M. [mailto:jms2...@cumc.columbia.edu]
Sent: Tuesday, March 22, 2016 1:40 PM
To: jimkress...@kressworks.org<mailto:jimkress...@kressworks.org>
Cc: pymol-users 
<pymol-users@lists.sourceforge.net<mailto:pymol-users@lists.sourceforge.net>>
Subject: Re: [PyMOL] The Wiki appears outdated or in error

Hi Jim -

The COLLADA exporting code was incorporated into Open Source PyMOL starting 
with 1.7.3.2 (SVN 4097), but I'm not sure when it made it into Incentive PyMOL, 
so if that's what you're using, 1.7.4 might be just barely too early to have 
that capability.  You could try saving as VRML2, (`save myfile.wrl`) and use 
MeshLab to convert that instead of the COLLADA file--I think VRML output is 
more complete than IDTF.

Alternat

Re: [PyMOL] The Wiki appears outdated or in error

2016-03-23 Thread Sampson, Jared M.
Hi Jim -

This is something we've been talking about changing.  The entire scene as 
viewed within PyMOL is inside that block, including the camera position.   (The 
interior surface of the block itself provides the background color of the 
scene.)  Some viewers, e.g. Mac Preview.app, default to displaying from the 
camera position, but others, including MeshLab, don't, which is understandably 
confusing.

To export only the geometry without any of the scene information, you can `set 
geometry_export_mode, 1` in PyMOL before saving the .dae.

Hope that helps!

Cheers,
Jared

P.S. if you are able to work out a protocol/workflow for generating 3D PDFs 
that is better than what's on the wiki, I hope you will consider updating the 
wiki to help others who might try it in the future.

Jared Sampson
Columbia University

On Mar 23, 2016, at 8:26 PM, James Kress 
<jimkress...@kressworks.org<mailto:jimkress...@kressworks.org>> wrote:

I installed v 1.8.0.6

When I save ‘myfile.dae’ and then import into MeshLab, all I get is a solid 
gray block.

What do I need to do in PyMOL to export my DNA structure?

Thanks.

Jim

James Kress Ph.D., President
The KressWorks® Foundation
An IRS Approved 501 (c)(3) Charitable, Nonprofit Organization
“Engineering The Cure” ©
(248) 605-8770

Learn More and Donate At:
Website: http://www.kressworks.org<http://www.kressworks.org/>
Facebook: https://www.facebook.com/KressWorks.Foundation/
Twitter: @KressWorksFnd

Confidentiality Notice | This e-mail message, including any attachments, is for 
the sole use of the intended recipient(s) and may contain confidential or 
proprietary information. Any unauthorized review, use, disclosure or 
distribution is prohibited. If you are not the intended recipient, immediately 
contact the sender by reply e-mail and destroy all copies of the original 
message.

From: Sampson, Jared M. [mailto:jms2...@cumc.columbia.edu]
Sent: Tuesday, March 22, 2016 1:40 PM
To: jimkress...@kressworks.org<mailto:jimkress...@kressworks.org>
Cc: pymol-users <pymol-users@lists.sourceforge.net>
Subject: Re: [PyMOL] The Wiki appears outdated or in error

Hi Jim -

The COLLADA exporting code was incorporated into Open Source PyMOL starting 
with 1.7.3.2 (SVN 4097), but I'm not sure when it made it into Incentive PyMOL, 
so if that's what you're using, 1.7.4 might be just barely too early to have 
that capability.  You could try saving as VRML2, (`save myfile.wrl`) and use 
MeshLab to convert that instead of the COLLADA file--I think VRML output is 
more complete than IDTF.

Alternatively, you could install a more recent open source PyMOL using 
instructions available on the wiki: 
http://www.pymolwiki.org/index.php/Category:Installation.

Cheers,
Jared

--
Jared Sampson
Columbia University

On Mar 21, 2016, at 5:46 PM, James Kress 
<jimkress...@kressworks.org<mailto:jimkress...@kressworks.org>> wrote:

Hi Jared,

The version of PyMOL I am using (1.7.4.0) does not recognize the dae file type.

Here is the message PyMOL generates:

PyMOL>save output_no_H2O.dae
Save-Warning: Unrecognized file type -- defaulting to PDB format.
Save: wrote "output_no_H2O.dae".

I get the same error message if I use the command ‘save output_no_H2O.dae’

Jim


James Kress Ph.D., President
The KressWorks® Foundation
An IRS Approved 501 (c)(3) Charitable, Nonprofit Organization
“Engineering The Cure” ©
(248) 605-8770

Learn More and Donate At:
Website: http://www.kressworks.org<http://www.kressworks.org/>
Facebook: https://www.facebook.com/KressWorks.Foundation/
Twitter: @KressWorksFnd

Confidentiality Notice | This e-mail message, including any attachments, is for 
the sole use of the intended recipient(s) and may contain confidential or 
proprietary information. Any unauthorized review, use, disclosure or 
distribution is prohibited. If you are not the intended recipient, immediately 
contact the sender by reply e-mail and destroy all copies of the original 
message.

From: Sampson, Jared M. [mailto:jms2...@cumc.columbia.edu]
Sent: Wednesday, March 16, 2016 2:28 PM
To: jimkress...@kressworks.org<mailto:jimkress...@kressworks.org>
Cc: pymol-users@lists.sourceforge.net<mailto:pymol-users@lists.sourceforge.net>
Subject: Re: [PyMOL] The Wiki appears outdated or in error

Hi James -

If I remember correctly, PyMOL's IDTF output currently only supports triangles 
meshes (not cylinders or spheres, e.g.), so unfortunately you're basically 
limited to surface representations for output directly into that format.

As a workaround, you could try saving your scene in COLLADA format (`save 
myfile.dae`), and use an external program (e.g. Blender, Meshlab) to convert to 
IDTF or U3D.  When doing so, please note that you'll probably need to `set 
collada_geometry_mode=1` to specifically use the subset of COLLADA elements 
supported by those two programs (they only allow  elements to 
describe the triangles, which are a more g

Re: [PyMOL] color an isosurface with a rainbow

2016-03-23 Thread Sampson, Jared M.
Hi H. Adam -

Try the http://pymolwiki.org/index.php/Distancetoatom script by Andreas 
Warnecke and use it to set b (or your own custom property in recent Incentive 
PyMOL versions) based on the distance from a point.

Hope that helps.

Cheers,
Jared

--
Jared Sampson
Columbia University

On Mar 23, 2016, at 5:20 PM, harold steinberg 
> wrote:

I have a pdb ‘xyz1’ and create a mapA, then create a surfA.

set surface_quality, 1
alter all, b=50
alter all, q=1
set gaussian_resolution,5
map_new mapA, gaussian, 1, sele or pdb, 6
isosurface surfA, mapA

I can then color that surfA with any solid color.

How can one color the surfA with a rainbow affect that radiates out from the 
center, or similar.

This is easy to do with a protein (pdb) but I cannot get a ramp to work with a 
surf.


H. Adam Steinberg
7904 Bowman Rd
Lodi, WI 53555
608/592-2366

--
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785351=/4140___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

--
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785351=/4140___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

Re: [PyMOL] The Wiki appears outdated or in error

2016-03-22 Thread Sampson, Jared M.
Hi Jim -

The COLLADA exporting code was incorporated into Open Source PyMOL starting 
with 1.7.3.2 (SVN 4097), but I'm not sure when it made it into Incentive PyMOL, 
so if that's what you're using, 1.7.4 might be just barely too early to have 
that capability.  You could try saving as VRML2, (`save myfile.wrl`) and use 
MeshLab to convert that instead of the COLLADA file--I think VRML output is 
more complete than IDTF.

Alternatively, you could install a more recent open source PyMOL using 
instructions available on the wiki: 
http://www.pymolwiki.org/index.php/Category:Installation.

Cheers,
Jared

--
Jared Sampson
Columbia University

On Mar 21, 2016, at 5:46 PM, James Kress 
<jimkress...@kressworks.org<mailto:jimkress...@kressworks.org>> wrote:

Hi Jared,

The version of PyMOL I am using (1.7.4.0) does not recognize the dae file type.

Here is the message PyMOL generates:

PyMOL>save output_no_H2O.dae
Save-Warning: Unrecognized file type -- defaulting to PDB format.
Save: wrote "output_no_H2O.dae".

I get the same error message if I use the command ‘save output_no_H2O.dae’

Jim


James Kress Ph.D., President
The KressWorks® Foundation
An IRS Approved 501 (c)(3) Charitable, Nonprofit Organization
“Engineering The Cure” ©
(248) 605-8770

Learn More and Donate At:
Website: http://www.kressworks.org<http://www.kressworks.org/>
Facebook: https://www.facebook.com/KressWorks.Foundation/
Twitter: @KressWorksFnd

Confidentiality Notice | This e-mail message, including any attachments, is for 
the sole use of the intended recipient(s) and may contain confidential or 
proprietary information. Any unauthorized review, use, disclosure or 
distribution is prohibited. If you are not the intended recipient, immediately 
contact the sender by reply e-mail and destroy all copies of the original 
message.

From: Sampson, Jared M. [mailto:jms2...@cumc.columbia.edu]
Sent: Wednesday, March 16, 2016 2:28 PM
To: jimkress...@kressworks.org<mailto:jimkress...@kressworks.org>
Cc: pymol-users@lists.sourceforge.net
Subject: Re: [PyMOL] The Wiki appears outdated or in error

Hi James -

If I remember correctly, PyMOL's IDTF output currently only supports triangles 
meshes (not cylinders or spheres, e.g.), so unfortunately you're basically 
limited to surface representations for output directly into that format.

As a workaround, you could try saving your scene in COLLADA format (`save 
myfile.dae`), and use an external program (e.g. Blender, Meshlab) to convert to 
IDTF or U3D.  When doing so, please note that you'll probably need to `set 
collada_geometry_mode=1` to specifically use the subset of COLLADA elements 
supported by those two programs (they only allow  elements to 
describe the triangles, which are a more general, verbose description than the 
more concise  and  output generated with the default 
setting).

Hope that helps.

Cheers,
Jared

--
Jared Sampson
Columbia University

On Mar 12, 2016, at 11:24 PM, James Kress 
<jimkress...@kressworks.org<mailto:jimkress...@kressworks.org>> wrote:

Among the export functions, a particular interest of mine is the as a
idtf file as "precursor" for a 3d pdf mentioned at

http://www.pymolwiki.org/index.php/3d_pdf

where I experience difficulties I want to address here.

   While the export via the CLI works fine for creating a *.png picture
or a VRML *.wrl-geometry, the similar export as *.idtf creates only a
header to describe the scenery, but not the (expected) spheres and tubes
to represent atoms and molecular bonds.  The file generated is the same,
regardless if I request the data export via

save /home/user directory/target directory/test.idtf

or the recommended

save /home/user directory/target directory/test.idtf,*

Marking/highlighting the molecule in question does not alter the situation.

   The relative orientation of the model in regard to the observer is
provided, however, in the programs command line, like

3Daac=20.0, 3Droll=0, 3Dc2c=0 0 1, 3Droo=50.00, 3Dcoo=0 0 -50.00

  In addition, there is no *.tex file written -- well in contrast to the
pymol-wiki page -- that I would expect to be created in the very same
directory, too.  (This is contrast to jmol offering export as *.idtf
while simultaneously writing a *.tex file, too.)  Should I look up in a
different directory instead?  May be a mistake during the installation
be a reason why I do not obtain (yet) a functional *.idtf?  Do I need to
load another / an additional plugin to enlarge the export functions?

Thanks.

Jim

James Kress Ph.D., President
The KressWorks® Foundation
An IRS Approved 501 (c)(3) Charitable, Nonprofit Organization
“Engineering The Cure” ©
(248) 605-8770

Learn More and Donate At:
Website: http://www.kressworks.org<http://www.kressworks.org/>
Facebook: https://www.facebook.com/KressWorks.Foundation/
Twitter: @KressWorksFnd

Confidentiality Notice | This e-mail message, including any attachments, is for 
the sole use of the i

Re: [PyMOL] The Wiki appears outdated or in error

2016-03-19 Thread Sampson, Jared M.
Hi James -

If I remember correctly, PyMOL's IDTF output currently only supports triangles 
meshes (not cylinders or spheres, e.g.), so unfortunately you're basically 
limited to surface representations for output directly into that format.

As a workaround, you could try saving your scene in COLLADA format (`save 
myfile.dae`), and use an external program (e.g. Blender, Meshlab) to convert to 
IDTF or U3D.  When doing so, please note that you'll probably need to `set 
collada_geometry_mode=1` to specifically use the subset of COLLADA elements 
supported by those two programs (they only allow  elements to 
describe the triangles, which are a more general, verbose description than the 
more concise  and  output generated with the default 
setting).

Hope that helps.

Cheers,
Jared

--
Jared Sampson
Columbia University

On Mar 12, 2016, at 11:24 PM, James Kress 
> wrote:

Among the export functions, a particular interest of mine is the as a
idtf file as "precursor" for a 3d pdf mentioned at

http://www.pymolwiki.org/index.php/3d_pdf

where I experience difficulties I want to address here.

   While the export via the CLI works fine for creating a *.png picture
or a VRML *.wrl-geometry, the similar export as *.idtf creates only a
header to describe the scenery, but not the (expected) spheres and tubes
to represent atoms and molecular bonds.  The file generated is the same,
regardless if I request the data export via

save /home/user directory/target directory/test.idtf

or the recommended

save /home/user directory/target directory/test.idtf,*

Marking/highlighting the molecule in question does not alter the situation.

   The relative orientation of the model in regard to the observer is
provided, however, in the programs command line, like

3Daac=20.0, 3Droll=0, 3Dc2c=0 0 1, 3Droo=50.00, 3Dcoo=0 0 -50.00

  In addition, there is no *.tex file written -- well in contrast to the
pymol-wiki page -- that I would expect to be created in the very same
directory, too.  (This is contrast to jmol offering export as *.idtf
while simultaneously writing a *.tex file, too.)  Should I look up in a
different directory instead?  May be a mistake during the installation
be a reason why I do not obtain (yet) a functional *.idtf?  Do I need to
load another / an additional plugin to enlarge the export functions?

Thanks.

Jim

James Kress Ph.D., President
The KressWorks® Foundation
An IRS Approved 501 (c)(3) Charitable, Nonprofit Organization
“Engineering The Cure” ©
(248) 605-8770

Learn More and Donate At:
Website: http://www.kressworks.org
Facebook: https://www.facebook.com/KressWorks.Foundation/
Twitter: @KressWorksFnd

Confidentiality Notice | This e-mail message, including any attachments, is for 
the sole use of the intended recipient(s) and may contain confidential or 
proprietary information. Any unauthorized review, use, disclosure or 
distribution is prohibited. If you are not the intended recipient, immediately 
contact the sender by reply e-mail and destroy all copies of the original 
message.

--
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785111=/4140___
PyMOL-users mailing list 
(PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

--
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785231=/4140___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

Re: [PyMOL] How to tell from within a script if a plugin is loaded?

2016-02-19 Thread Sampson, Jared M.
Hi Thomas -

Thanks for the clarification on cmd.extend() and the difference between how 
commands and functions are made available. I hadn't thought to just add the 
function to cmd directly.  This will come in handy!

Cheers,
Jared

--
Jared Sampson
Columbia University

On Feb 18, 2016, at 1:14 PM, Thomas Holder 
<thomas.hol...@schrodinger.com<mailto:thomas.hol...@schrodinger.com>> wrote:

Hi Jared,

The plugin system isn't really tuned for API extension. As Tsjerk pointed out, 
cmd.extend only registers a command, not a cmd. function. Also, scripts 
which are installed as plugins get loaded asynchronously from the external GUI. 
I suggest you do the following:

1) Inside your plugin (Python module), do:

from pymol import cmd
def my_func(): ...
cmd.my_func = my_func
cmd.extend('my_func', my_func)

2) The plugin's __init_plugin__ (or __init__) function should only be 
responsible for adding Plugin menu entries, not for anything else.

3) Inside your test file, do:

from pymol import cmd
import pmg_tk.startup.my_plugin
# (now cmd.my_func should be available immediately)

Hope that helps.

Cheers,
 Thomas

On 17 Feb 2016, at 11:32, Sampson, Jared M. 
<jms2...@cumc.columbia.edu<mailto:jms2...@cumc.columbia.edu>> wrote:

Hi Tsjerk -

Thanks for the suggestion.  I tried this with:

import time
from pymol import cmd
while not hasattr(cmd, 'my_func'):
time.sleep(0.5)

Unfortunately that also causes everything to hang.  I think I might need to do 
this in a separate thread.  I'll have to look into how to do that.

Cheers,
Jared

--
Jared Sampson
Columbia University

On Feb 16, 2016, at 2:47 PM, Tsjerk Wassenaar 
<tsje...@gmail.com<mailto:tsje...@gmail.com>> wrote:

Hi Jared,

The extend function must set an attribute "my_func" on cmd. You can test for 
that with hasattr:

while not hasattr(cmd, "my_func"):
   # wait some more

Hope it helps,

Tsjerk

On Feb 16, 2016 20:07, "Sampson, Jared M." 
<jms2...@cumc.columbia.edu<mailto:jms2...@cumc.columbia.edu>> wrote:
To my previous message I should add that it works fine if I do:

```
import pmg_tk.startup.my_plugin as mp
mp.my_func()
```

but I'd like to use the `cmd.my_func()` version, so that `my_func` will work in 
a .pml script.

>From `help(cmd)` I found `cmd.kw_list`, but this apparently doesn't include 
>"extended" functions, even after the function is loaded.

```
PyMOL>print 'ray' in cmd.kw_list
True
PyMOL>print 'my_func' in cmd.kw_list
False
```

Looking forward to any suggestions.  Thanks!

Cheers,
Jared

--
Jared Sampson
Columbia University

On Feb 16, 2016, at 1:50 PM, Sampson, Jared M. 
<jms2...@cumc.columbia.edu<mailto:jms2...@cumc.columbia.edu>> wrote:

Hi PyMOLers -

Maybe some more experienced users/developers can help me out here.  I'm trying 
to write some automated test scripts for the plugin I'm writing, but the test 
functions end up running before the plugin is loaded.  Is there a way to tell 
if a plugin has been loaded from within a .pml or .py script?  For example, if 
the plugin makes commands available via `cmd.extend('my_func', my_func)`, how 
can I run `cmd.myfunc()` from a script and not have it execute before the 
plugin finishes loading?

I've tried something like this:

```
import time
from pymol import cmd
loaded = 0
while not loaded:
   try:
   cmd.my_func()  # if it's loaded no exception will be raised
   loaded = 1
   except:
   time.sleep(0.5)
```

But this just hangs, as apparently `time.sleep()` halts the execution of all 
threads, so the plugin won't ever be loaded.

Thanks,
Jared

--
Jared Sampson
Columbia University

--
Thomas Holder
PyMOL Principal Developer
Schrödinger, Inc.

--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151=/4140___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

Re: [PyMOL] How to tell from within a script if a plugin is loaded?

2016-02-17 Thread Sampson, Jared M.
Hi Tsjerk -

Thanks for the suggestion.  I tried this with:

import time
from pymol import cmd
while not hasattr(cmd, 'my_func'):
time.sleep(0.5)

Unfortunately that also causes everything to hang.  I think I might need to do 
this in a separate thread.  I'll have to look into how to do that.

Cheers,
Jared

--
Jared Sampson
Columbia University

On Feb 16, 2016, at 2:47 PM, Tsjerk Wassenaar 
<tsje...@gmail.com<mailto:tsje...@gmail.com>> wrote:


Hi Jared,

The extend function must set an attribute "my_func" on cmd. You can test for 
that with hasattr:

while not hasattr(cmd, "my_func"):
# wait some more

Hope it helps,

Tsjerk

On Feb 16, 2016 20:07, "Sampson, Jared M." 
<jms2...@cumc.columbia.edu<mailto:jms2...@cumc.columbia.edu>> wrote:
To my previous message I should add that it works fine if I do:

```
import pmg_tk.startup.my_plugin as mp
mp.my_func()
```

but I'd like to use the `cmd.my_func()` version, so that `my_func` will work in 
a .pml script.

>From `help(cmd)` I found `cmd.kw_list`, but this apparently doesn't include 
>"extended" functions, even after the function is loaded.

```
PyMOL>print 'ray' in cmd.kw_list
True
PyMOL>print 'my_func' in cmd.kw_list
False
```

Looking forward to any suggestions.  Thanks!

Cheers,
Jared

--
Jared Sampson
Columbia University

On Feb 16, 2016, at 1:50 PM, Sampson, Jared M. 
<jms2...@cumc.columbia.edu<mailto:jms2...@cumc.columbia.edu>> wrote:

Hi PyMOLers -

Maybe some more experienced users/developers can help me out here.  I'm trying 
to write some automated test scripts for the plugin I'm writing, but the test 
functions end up running before the plugin is loaded.  Is there a way to tell 
if a plugin has been loaded from within a .pml or .py script?  For example, if 
the plugin makes commands available via `cmd.extend('my_func', my_func)`, how 
can I run `cmd.myfunc()` from a script and not have it execute before the 
plugin finishes loading?

I've tried something like this:

```
import time
from pymol import cmd
loaded = 0
while not loaded:
try:
cmd.my_func()  # if it's loaded no exception will be raised
loaded = 1
except:
time.sleep(0.5)
```

But this just hangs, as apparently `time.sleep()` halts the execution of all 
threads, so the plugin won't ever be loaded.

Thanks,
Jared

--
Jared Sampson
Columbia University

--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151=/4140___
PyMOL-users mailing list 
(PyMOL-users@lists.sourceforge.net<mailto:PyMOL-users@lists.sourceforge.net>)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net


--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151=/4140
___
PyMOL-users mailing list 
(PyMOL-users@lists.sourceforge.net<mailto:PyMOL-users@lists.sourceforge.net>)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151=/4140___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

Re: [PyMOL] How to tell from within a script if a plugin is loaded?

2016-02-16 Thread Sampson, Jared M.
To my previous message I should add that it works fine if I do:

```
import pmg_tk.startup.my_plugin as mp
mp.my_func()
```

but I'd like to use the `cmd.my_func()` version, so that `my_func` will work in 
a .pml script.

>From `help(cmd)` I found `cmd.kw_list`, but this apparently doesn't include 
>"extended" functions, even after the function is loaded.

```
PyMOL>print 'ray' in cmd.kw_list
True
PyMOL>print 'my_func' in cmd.kw_list
False
```

Looking forward to any suggestions.  Thanks!

Cheers,
Jared

--
Jared Sampson
Columbia University

On Feb 16, 2016, at 1:50 PM, Sampson, Jared M. 
<jms2...@cumc.columbia.edu<mailto:jms2...@cumc.columbia.edu>> wrote:

Hi PyMOLers -

Maybe some more experienced users/developers can help me out here.  I'm trying 
to write some automated test scripts for the plugin I'm writing, but the test 
functions end up running before the plugin is loaded.  Is there a way to tell 
if a plugin has been loaded from within a .pml or .py script?  For example, if 
the plugin makes commands available via `cmd.extend('my_func', my_func)`, how 
can I run `cmd.myfunc()` from a script and not have it execute before the 
plugin finishes loading?

I've tried something like this:

```
import time
from pymol import cmd
loaded = 0
while not loaded:
try:
cmd.my_func()  # if it's loaded no exception will be raised
loaded = 1
except:
time.sleep(0.5)
```

But this just hangs, as apparently `time.sleep()` halts the execution of all 
threads, so the plugin won't ever be loaded.

Thanks,
Jared

--
Jared Sampson
Columbia University

--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151=/4140___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151=/4140___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

[PyMOL] How to tell from within a script if a plugin is loaded?

2016-02-16 Thread Sampson, Jared M.
Hi PyMOLers -

Maybe some more experienced users/developers can help me out here.  I'm trying 
to write some automated test scripts for the plugin I'm writing, but the test 
functions end up running before the plugin is loaded.  Is there a way to tell 
if a plugin has been loaded from within a .pml or .py script?  For example, if 
the plugin makes commands available via `cmd.extend('my_func', my_func)`, how 
can I run `cmd.myfunc()` from a script and not have it execute before the 
plugin finishes loading?

I've tried something like this:

```
import time
from pymol import cmd
loaded = 0
while not loaded:
try:
cmd.my_func()  # if it's loaded no exception will be raised
loaded = 1
except:
time.sleep(0.5)
```

But this just hangs, as apparently `time.sleep()` halts the execution of all 
threads, so the plugin won't ever be loaded.

Thanks,
Jared

--
Jared Sampson
Columbia University

--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151=/4140___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

Re: [PyMOL] PyMOL-users Digest, Vol 116, Issue 15

2016-02-02 Thread Sampson, Jared M.
Hi Annemarie -

Fun problem.  It looks like cmd.transform_selection() only works with 
"molecule" type objects, not with CGOs. You could try doing something like 
what's in the 3rd example in http://www.pymolwiki.org/index.php/Axes, 
calculating the new object matrix itself by transforming the current one, then 
applying it to the object using cmd.set_object_ttt().

Alternatively, if you can reproducibly identify any vector that should be 
perpendicular to the membrane, you could use those points as the start and end 
points for your initial load_cgo command.  For example, if your receptor 
happens to have a symmetric channel, something like this might work.

```
# create pseudoatoms at the average positions of residues at the top and bottom 
of the chain
pseudoatom top,  and n. CA and chain A+B+C+D
pseudoatom bot,  and n. CA and chain A+B+C+D

# Orient to the pseudoatoms and fine tune the positions along the viewport Y 
axis.
# (Make sure you don't move the view until you're done positioning the 
pseudoatoms.)
orient (top or bot)
turn z, 90  # assuming `orient` put them along X and you want them along Y
translate [0, 2, 0], top
translate [0, -1.5, 0], bot

# Get the coordinates of the two end points
from pymol import stored
stored.start = []
stored.end = []
iterate_state 1, top, stored.start = (x,y,z)
iterate_state 1, bot, stored.end = (x,y,z)

# Create the CGO cylinder (I made it semitransparent)
from pymol.cgo import ALPHA, CYLINDER
x1,y1,z1 = stored.start
x2,y2,z2 = stored.end
r1,g1,b1 = 1, 1, 0
r2,g2,b2 = 1, 1, 0
radius = 100
cmd.load_cgo([ ALPHA, 0.5, CYLINDER, x1, y1, z1, x2, y2, z2, radius, r1, g1, 
b1, r2, g2, b2 ], "membrane")

```

Not sure if that will be applicable to your use case, but hopefully it will at 
least give you an idea of one approach that could work.

Hope that helps.

Cheers,
Jared

--
Jared Sampson
Columbia University


On Jan 29, 2016, at 4:33 PM, Honegger Annemarie 
> wrote:

I am trying to show some cell surface receptors and to indicate their position 
relative to the membrane.

I thought to indicate the plane of the membrane by a flat disk, a ago cylinder.

x1,y1,z1 = 0, -1, 0 # start point
r1,g1,b1 = 1, 1, 0 # color (yellow)
x2,y2,z2 = 0, -2, 0 # end point
r2,g2,b2 = 1, 1, 0 # color (yellow)
radius = 100
cmd.load_cgo( [ 9.0, x1, y1, z1, x2, y2, z2, radius, r1, g1, b1, r2, g2, b2 ], 
"membrane" )

When I try to move this cylinder into the correct position with 
cmd.transform_selection,
using the transformation parameters extracted from get_view (reordering them as 
needed)
I get the error message "Selector-Error: Invalid selection name “membrane” “

The same transform command works fine if I apply it to a pseudo atom originally 
generated with coordinates 0,0,0.

Any suggestion how else I could indicate the membrane, or how I could place my 
ego object parallel
to the screen yz plane? I have to be able to do this in a reproducible fashion, 
as I have to  do this
for a large number of constructs that bend my receptors relative to the 
membrane in various ways.

Thanks for your help
Annemarie
___

Dr. Annemarie Honegger PhD
Department
of Biochemistry
Zürich University
Winterthurerstrasse 190
CH-8057 Zürich
Switzerland

--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311=/4140___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311=/4140___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

Re: [PyMOL] using "bymol" in combination with "within"

2015-12-03 Thread Sampson, Jared M.
Hi Andrew -

If you're just looking to expand the selection from atoms in water molecules to 
entire water molecules, I would actually use `byres` instead of `bymol`.  The 
`bymolecule` selector is apparently dependent on how PyMOL sees the bonds (e.g. 
try `fetch 3ghe, async=0; select test, bymol chain H and resi 30` -- you only 
select up to the gap at resi 127).  `Byres` should get the entire HOH residue 
as defined by the residue name and number, as long as they are unique for each 
of your water molecules.

So, in short, this should work:

select closewats, byres (wats within 3 of solute)

Or as Spencer mentioned, using the built-in keywords:

select closewats, byres (solvent within 3 of organic)

Or, if you have multiple organic components and only one of them is your 
ligand, which has the residue name DRG:

select closewats, byres (solvent within 3 of resn DRG)

Hope that helps.

Cheers,
Jared

—
Jared Sampson
Graduate Student
Department of Biochemistry and Molecular Biophysics
Columbia University

On Dec 2, 2015, at 2:57 PM, Andrew Kalenkiewicz 
> wrote:

Hi Spencer,

Thanks for your response! I was also originally under the impression that my 
selection #2 should be a superset of selection #1, but that is definitely not 
the case. There are atoms in selection #1 that are not included in selection #2.

What I want to do is select all the water molecules that have at least one of 
their atoms within 3 angstroms of my protein-ligand complex (the solute). Based 
on the above discrepancy, I know that selection #2 does not give me this. This 
is corroborated by an independent calculation I did in a different program (the 
Bio3D pacakge in R).

All best,
Andrew

On Wed, Dec 2, 2015 at 10:53 AM, Spencer Bliven 
> wrote:
Andrew,

The 'byres' selector expands the inner selection to include all covalently 
bonded atoms. Thus, your selection #2 should be a superset of selection #1. Are 
you sure that's not the case?

What do your 'wats' and 'solute' selections refer to? Are you trying to find 
the water molecules to some selected organic solvent molecule? If so, you might 
mean

select wats within 3 of (bymolecule solute)

This would first expand selection 'solute' to encompass any covalently 
connected atoms, then would return any atoms from selection 'wats' which are 
within 3Å of the resulting molecule.

A more complete explanation of what you're trying to select (and which PDB 
entry, if applicable) would be helpful.

-Spencer

P.S. You might also be interested in the predefined keywords 'solvent' (all 
waters) and 'organic' (ligands, buffers).

On Wed, Dec 2, 2015 at 3:32 PM Andrew Kalenkiewicz 
> wrote:
Dear PyMOL users,

I'm wondering if anyone knows how exactly a selection is defined if you utilize 
both the "bymol" and "within" commands together. For instance, consider the 
following two selections:

1. "select closewats, wats within 3 of solute"
2. "select closewats, bymol (wats within 3 of solute)"

In the latter case, it seems to me that the distance cutoff imposed by within 
is not by "closest atom" for each respective molecule (which is what I actually 
want). Visually, I can see that the first selection includes more total water 
molecules than the second selection. So what does the distance cutoff refer to? 
The geometrical center? Center of mass? I couldn't find anything on the PyMOL 
wiki that explains this.

Thanks,
Andrew

--
Andrew Kalenkiewicz
Biomedical Engineering M.S.E. '15
Cellular & Molecular Biology B.S. '13
University of Michigan, Ann Arbor
734-709-0355
aj...@umich.edu
--
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741911=/4140___
PyMOL-users mailing list 
(PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net



--
Andrew Kalenkiewicz
Biomedical Engineering M.S.E. '15
Cellular & Molecular Biology B.S. '13
University of Michigan, Ann Arbor
734-709-0355
aj...@umich.edu
--
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.

Re: [PyMOL] on axis of the subunit

2015-11-30 Thread Sampson, Jared M.
Hi Smith -

I’m not quite sure what you mean by "axis of a subunit."  If you mean the 
principal axis of that selection of atoms, `orient my_selection` will get it 
aligned along one of the axes.  Then you can create pseudoatoms on that axis 
and create a dash between them with the distance command.

# Get it lined up with the viewport axes.
select domain, chain A and resi 1-100
orient domain

# Here I’m assuming this put the long axis of the domain along the
# x axis.  We move the view along the x axis, and place pseudoatoms
# at the viewport center in two places.  You can change the length of the
# displayed axis based on how far you move.
move x, -10
pseudoatom ps1
move x, 20
pseudoatom ps2
move x, -10
distance axis, ps1, ps2

This is a bit clumsy and not a rigorous approach, but it will work for any 
other kind of vector you want to show, as long as you can get it aligned with 
one of the view axes.

Cheers,
Jared

—
Jared Sampson
Graduate Student
Department of Biochemistry and Molecular Biophysics
Columbia University

On Nov 29, 2015, at 7:42 AM, Smith Liu 
> wrote:

Dear All,

Will you please show me how to display an axis of a subunit or a domain by 
pymol?

Smith



--
___
PyMOL-users mailing list 
(PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

--
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741911=/4140___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

Re: [PyMOL] on axis of the subunit

2015-11-30 Thread Sampson, Jared M.
Hi Smith -

Check out how I did it in the http://pymolwiki.org/index.php/Elbow_angle 
script.  As long as you have the vectors, the angle is easy.  In particular, 
have a look at this line:

elbow = int(numpy.degrees(numpy.arccos(numpy.dot(direction_v, 
direction_c


i.e. the angle (in radians) will be given by the arccos of the dot product of 
the two vectors.  For the elbow angle script, I converted to degrees and 
reported an integer value.

Cheers,
Jared

—
Jared Sampson
Graduate Student
Department of Biochemistry and Molecular Biophysics
Columbia University

On Nov 30, 2015, at 8:33 PM, Smith Liu 
<smith_liu...@163.com<mailto:smith_liu...@163.com>> wrote:


Thanks Jared, it works.

In addition, if by your way I created 2 vectors for 2 different chains, will 
you please show me how to determine the angle formed by the 2 vectors created?

Smith






At 2015-12-01 00:51:46, "Sampson, Jared M." 
<jms2...@cumc.columbia.edu<mailto:jms2...@cumc.columbia.edu>> wrote:
Hi Smith -

I’m not quite sure what you mean by "axis of a subunit."  If you mean the 
principal axis of that selection of atoms, `orient my_selection` will get it 
aligned along one of the axes.  Then you can create pseudoatoms on that axis 
and create a dash between them with the distance command.

# Get it lined up with the viewport axes.
select domain, chain A and resi 1-100
orient domain

# Here I’m assuming this put the long axis of the domain along the
# x axis.  We move the view along the x axis, and place pseudoatoms
# at the viewport center in two places.  You can change the length of the
# displayed axis based on how far you move.
move x, -10
pseudoatom ps1
move x, 20
pseudoatom ps2
move x, -10
distance axis, ps1, ps2

This is a bit clumsy and not a rigorous approach, but it will work for any 
other kind of vector you want to show, as long as you can get it aligned with 
one of the view axes.

Cheers,
Jared

—
Jared Sampson
Graduate Student
Department of Biochemistry and Molecular Biophysics
Columbia University

On Nov 29, 2015, at 7:42 AM, Smith Liu 
<smith_liu...@163.com<mailto:smith_liu...@163.com>> wrote:

Dear All,

Will you please show me how to display an axis of a subunit or a domain by 
pymol?

Smith



--
___
PyMOL-users mailing list 
(PyMOL-users@lists.sourceforge.net<mailto:PyMOL-users@lists.sourceforge.net>)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net





--
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741911=/4140___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

Re: [PyMOL] on async

2015-11-22 Thread Sampson, Jared M.
Hi Smith -

I assume you’re referring to something like `fetch 1xyz, async=0`.  This means 
that the PyMOL interpreter should wait until the PDB file is downloaded and 
loaded before continuing with the next step.

Normally, the commands will be issued one immediately after the other and the 
next one may start before the current one finishes.  So multiple commands may 
be running at the same time, or asynchronously.

For example, if you were to run a script containing the following:

fetch 1xyz
as cartoon
color blue, chain A

Depending on the speed of the download, the protein would likely end up looking 
just like if you only called `fetch 1xyz`, as the other two commands will have 
started (and finished) before the `fetch` is complete.

Cheers,
Jared


On Nov 21, 2015, at 6:11 AM, Smith Liu 
> wrote:

Dear All,

Will you please tell me the meaning of "async"in pymol script?

Smith



--
___
PyMOL-users mailing list 
(PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

--
___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

Re: [PyMOL] .pdb files and rendering software

2015-08-17 Thread Sampson, Jared
Hi again, Joe -

Try saving in COLLADAhttp://www.pymolwiki.org/index.php/COLLADA format with 
`save myfile.dae` (in PyMOL v1.7.3.2 or later).

If you're using Blender, you'll need to `set collada_geometry_mode, 1`, because 
Blender only supports polylists for COLLADA import, and not the more efficient 
structures like triangles, tristrips, trifans, etc.  I've never used Maya, so 
I'm not sure if it has any peculiarities in its COLLADA support.

There is also VRML2, which you can get with `save myfile.wrl`, but I'm partial 
to the COLLADA exporter, since I wrote it.  ;)

Cheers,
Jared

--
Jared Sampson
Xiangpeng Kong Lab
NYU Langone Medical Center
http://kong.med.nyu.edu/






On Aug 15, 2015, at 1:42 PM, Joseph Georgeson 
joseph.george...@weizmann.ac.ilmailto:joseph.george...@weizmann.ac.il wrote:

Hi all,

I was wondering the best options for importing .pdb files into rendering 
programs like Maya or Blender. Right now I'm trying mMaya with Maya2014 but 
seem to have many issues. Any suggestions?

Thanks,
JoeG
--
___
PyMOL-users mailing list 
(PyMOL-users@lists.sourceforge.netmailto:PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net



This email message, including any attachments, is for the sole use of the 
intended recipient(s) and may contain information that is proprietary, 
confidential, and exempt from disclosure under applicable law. Any unauthorized 
review, use, disclosure, or distribution is prohibited. If you have received 
this email in error please notify the sender by return email and delete the 
original message. Please note, the recipient should check this email and any 
attachments for the presence of viruses. The organization accepts no liability 
for any damage caused by any virus transmitted by this email.
=
--
___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

Re: [PyMOL] How does PyMOL create .obj file?

2015-08-17 Thread Sampson, Jared
Hi Joe -

The coordinate system in the .obj file is in camera space, where (0,0,0) is the 
center of the viewport, positive x to the right, positive y up, and positive z 
out of the screen toward the viewer.  If you want to correlate them, you would 
need to transform the model coordinates using the view matrix or, probably more 
easily, set the view to coincide with model space, as specified under Space 
and File saving 
herehttp://www.pymolwiki.org/index.php/Model_Space_and_Camera_Space.

FYI, there is a bughttps://sourceforge.net/p/pymol/bugs/170/ in .obj output 
of spheres, which are output as a single triangle face with identical 
coordinates for all three points.  Needless to say, you can't see them, unless 
you zoom in really close.  Also, cylinders and cones are not yet implemented in 
.obj output, so, basically the only representation fully supported is surfaces, 
which are made entirely of triangle meshes.

Hope that helps.

Cheers,
Jared

--
Jared Sampson
Xiangpeng Kong Lab
NYU Langone Medical Center
http://kong.med.nyu.edu/




On Aug 15, 2015, at 1:34 PM, Joseph Georgeson 
joseph.george...@weizmann.ac.ilmailto:joseph.george...@weizmann.ac.il wrote:

Hi all,

I'm trying to correlate an .obj file created in PyMOL to the actual molecular 
coordinates of a protein from the .pdb file. Is this possible? Does anyone know 
how PyMOL creates the .obj file?

Thanks,
JoeG
--
___
PyMOL-users mailing list 
(PyMOL-users@lists.sourceforge.netmailto:PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net



This email message, including any attachments, is for the sole use of the 
intended recipient(s) and may contain information that is proprietary, 
confidential, and exempt from disclosure under applicable law. Any unauthorized 
review, use, disclosure, or distribution is prohibited. If you have received 
this email in error please notify the sender by return email and delete the 
original message. Please note, the recipient should check this email and any 
attachments for the presence of viruses. The organization accepts no liability 
for any damage caused by any virus transmitted by this email.
=
--
___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

Re: [PyMOL] How to get TTT matrix in PyMOL 1.7.6?

2015-08-13 Thread Sampson, Jared
Hi Paweł -

Honestly, if you prefer to use matrices, I'd say just go ahead and use 
get_object_matrix; I doubt it's going away any time soon.  You may want to use 
this in combination with 
transform_selectionhttp://www.pymolwiki.org/index.php/Transform_selection.

Also maybe check out Christoph Gohlke's transformations.py 
scripthttp://www.pymolwiki.org/index.php/Transformations.  It offers several 
tools for manipulating quaternions, matrices, and angle/axis operations.  I 
think there's also a newer version on his website, which is linked from the 
wiki page.

Cheers,
Jared

--
Jared Sampson
Xiangpeng Kong Lab
NYU Langone Medical Center
http://kong.med.nyu.edu/






On Aug 6, 2015, at 4:04 AM, Paweł Tomaszewski 
croov...@gmail.commailto:croov...@gmail.com wrote:

Hello,
I've created a CGO in pymol script (a cone) and I need to make some 
transformations on it. I've found that it is easier for me to modify a TTT 
matrix rather than using translate/rotate functions.

Documentation says [http://www.pymolwiki.org/index.php/Get_object_matrix] 
get_object_matrix is unsupported operation. So how to get/set TTT?

The problem is, that I get (from external source) position in quaternions and 
now I need to make my CGO position equal to those quaternion. How can I make it 
work?

Thanks
Paweł Tomaszewski
--
___
PyMOL-users mailing list 
(PyMOL-users@lists.sourceforge.netmailto:PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net



This email message, including any attachments, is for the sole use of the 
intended recipient(s) and may contain information that is proprietary, 
confidential, and exempt from disclosure under applicable law. Any unauthorized 
review, use, disclosure, or distribution is prohibited. If you have received 
this email in error please notify the sender by return email and delete the 
original message. Please note, the recipient should check this email and any 
attachments for the presence of viruses. The organization accepts no liability 
for any damage caused by any virus transmitted by this email.
=
--
___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

Re: [PyMOL] secondary structure disappears

2015-07-23 Thread Sampson, Jared
I'm posting the following solution on behalf of Thomas Holder (whose 
sourceforge.nethttp://sourceforge.net email address is currently down due to 
SF server issues), to ensure it is added to this thread in the archive:

This is due to chain identifier conflict. He's merging 6 models with identical 
identifiers. A simple fix would be:

fetch 3ow9, type=pdb1, async=0
split_states 3ow9
alter 3ow9_000*, segi=model[-1]
create combined, 3ow9_000*

Changing the chain IDs as Rob suggested would also work.

Cheers,

Jared

--
Jared Sampson
Xiangpeng Kong Lab
NYU Langone Medical Center
http://kong.med.nyu.edu/






On Jul 23, 2015, at 2:42 PM, Robert Campbell 
robert.campb...@queensu.camailto:robert.campb...@queensu.ca wrote:

Hi Adam,

I think you also want to make sure that each strand as a distinct chain
ID if you want the cartoon representation to work correctly.

Unfortunately that means you have to use alter but to change the
chain IDs on the objects created by the split_states command before
merging them all into one object.

It worked for me when I tried that with 3ow9.

Cheers,
Rob

On Thu, 2015-07-23 09:23 EDT, H. Adam Steinberg
h.adam.steinb...@gmail.commailto:h.adam.steinb...@gmail.com wrote:

Hi All,

If you fetch 3ow9 in PyMOL,
split_states to get all six of the strands,
select all, then copy to object,
You only get the two strands, not all six, I need all six to be
duplicated into one object so I can make a long amyloid fibril.

If I open the pdb file for 3ow9 in text edit and remove all the text
for the individual models (and the waters), then open that file in
PyMOL I get all six strands, but all the cartoon secondary structure
is missing except for the two original strands. I tired running the
alter command in PyMOL, it changes the secondary structure in the
other objects I have open but not in this pdb.

I see the Sheet entry in the pdb file but I don’t know how to
duplicate and change the sheet entry so it applies to the other four
strands in the file.

Could someone point me to a place on the web that explains how to
change the sheet entry (I’d like to learn how to do it)? or tell me
how to fix this pdb file?

Thanks!



H. Adam Steinberg
7904 Bowman Rd
Lodi, WI 53555
608/592-2366





--
Robert L. Campbell, Ph.D.
Senior Research Associate/Adjunct Assistant Professor
Dept. of Biomedical  Molecular Sciences, Botterell Hall Rm 644
Queen's University,
Kingston, ON K7L 3N6  Canada
Tel: 613-533-6821
robert.campb...@queensu.camailto:robert.campb...@queensu.ca  
http://pldserver1.biochem.queensu.ca/~rlc

--
___
PyMOL-users mailing list 
(PyMOL-users@lists.sourceforge.netmailto:PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net



This email message, including any attachments, is for the sole use of the 
intended recipient(s) and may contain information that is proprietary, 
confidential, and exempt from disclosure under applicable law. Any unauthorized 
review, use, disclosure, or distribution is prohibited. If you have received 
this email in error please notify the sender by return email and delete the 
original message. Please note, the recipient should check this email and any 
attachments for the presence of viruses. The organization accepts no liability 
for any damage caused by any virus transmitted by this email.
=
--
___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

Re: [PyMOL] how to measure the distance of 2 hydrophobic residues

2015-07-09 Thread Sampson, Jared
Hi Smith -

This won't tell you anything about the hydrophobic interaction itself, but if 
you want to get the distance between the average positions (like center of 
mass, but without mass) of two groups of atoms to use as an approximate 
distance between the two residues/sidechains/etc., you can try something like 
this:

pseudoatom ps1, resi 1 and sidechain
pseudoatom ps2, resi 2 and sidechain
show nb_spheres, ps*
distance d1, ps1, ps2

This will create a pseudoatomhttp://www.pymolwiki.org/index.php/Pseudoatom at 
the geometric center of each side chain and use that for the distance 
measurement.

This is particularly useful with things like pi-cation stacking, where you want 
to measure the distance between approximately parallel planar groups like 
arginine guanidinium groups and aromatic rings.

Hope that helps.

Cheers,
Jared

Jared Sampson
Xiangpeng Kong Lab
NYU Langone Medical Center
http://kong.med.nyu.edu/






On Jul 8, 2015, at 9:20 PM, Osvaldo Martin 
aloctavo...@gmail.commailto:aloctavo...@gmail.com wrote:


Hi Smith,

Distances are generally defined for two points (although it is possible to 
generalize the idea to higher dimensions). Since residues are 3D objects, there 
is not such a thing as THE distance between 2 residues. Being said that, as we 
generally model residues as a collection of spheres (atoms) you can define 
several distances, for example:

  *   The distance between the centroids of each residue
  *   The minimum distance between any two atoms of each residue
  *   The average distance over all atoms of each residue
  *   The distance between Ca
  *   etc…

Depending on your problem one of those distance could be a reasonable proxy for 
“hydrophobic interaction”, but maybe you will need to use a more complex model 
to solve your problem may be some energy scoring function (AKA forcefield).

I hope this helps.

Cheers,
Osvaldo.

On Wed, Jul 8, 2015 at 9:48 PM, Smith Liu 
smith_liu...@163.commailto:smith_liu...@163.com wrote:



Dear Osvaldo,

I want to know whether hydrophobic interactions between 2 residues exist, thus 
I want know the distance between the 2 residues, rather than the distance 
between the atom of each of the 2 residues.

Is any sense and method we measure the distance between 2 residues?

Best regards.

Smith





At 2015-07-09 00:52:32, Osvaldo Martin 
aloctavo...@gmail.commailto:aloctavo...@gmail.com wrote:
Hi Smith,


If you want to measure the distance between two residues (hydrophobic or not) 
you could choose and atom from each residue and measure the distance between 
those two atoms. Is this what you want to do, or something more complex?  Could 
you provide more details about your problem?

Cheers,
Osvaldo.

On Wed, Jul 8, 2015 at 12:33 PM, Smith Liu 
smith_liu...@163.commailto:smith_liu...@163.com wrote:
Dear All,

Pymol has the function to measure the distance betweeen 2 atoms. In addition, 
if 2 hydrophobic residues are close enough, there will be hydrophobic 
interactions betweem them. But will you please tell me how to measure the 
distance between 2 hydrophobic residues by pymol?

Best regards.

Smith



--
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
___
PyMOL-users mailing list 
(PyMOL-users@lists.sourceforge.netmailto:PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net





​
--
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net



This email message, including any attachments, is for the sole use of the 
intended recipient(s) and may contain information that is proprietary, 
confidential, and exempt from disclosure under applicable law. Any unauthorized 
review, use, disclosure, or distribution is prohibited. If you have received 
this email in error please notify the sender by return email and delete the 
original message. Please note, the recipient should check this email and any 
attachments for the presence of viruses. The organization accepts no liability 
for any damage 

Re: [PyMOL] how to measure the angle between two protein complexes

2015-07-09 Thread Sampson, Jared
Hi Yeping -

To calculate such an angle, you will need two vectors, which you can create 
with some pseudoatomshttp://www.pymolwiki.org/index.php/Pseudoatom and the 
orienthttp://www.pymolwiki.org/index.php/Orient command.  Before you start, 
you should create named selections for the ring and filament.

Step 1: Generate a vector perpendicular to the ring.  This method assumes it is 
fairly symmetrical.

orient ring_selection# should end up with the view centered on the ring
pseudoatom ring1# create a pseudoatom at the center of the viewport
translate [0, 0, 10], ring1# move that pseudoatom 10Å along the viewport 
z-axis
pseudoatom ring2# also at the center of the viewport
distance ring_vector, ring1, ring2# for display only--make sure it looks 
right!

Step 2: Generate a vector parallel to the filament.  Assuming the filament is 
fairly linear, you can use the same approach.  `Orient` should place it along 
the viewport X axis.  Then place a pair of pseudoatoms and move them left and 
right.

orient filament_selection# this should end up being horizontal on the screen
pseudoatom fil1
translate [-10, 0, 0], fil1
pseudoatom fil2
translate [10, 0, 0], fil2
distance filament_vector, fil1, fil2

You could also create pseudoatoms at average positions of a selection at each 
end of the filament instead of using `orient`.

Step 3: From the 4 pseudoatoms, you can get 2 vectors by subtracting the 
coordinates.  Check out Iterate_state for using coordinates in a script.

Step 4: Calculate the angle.  I'll also leave it up to you to calculate the 
angle once you have the two vectors, but have a look at 
http://www.pymolwiki.org/index.php/AngleBetweenHelices or 
http://www.pymolwiki.org/index.php/Elbow_angle for some clues.

With all that said, if you don't want to do all of that, you could always just 
hold a protractor up to your computer monitor!  :)

Cheers,

Jared
--
Jared Sampson
Xiangpeng Kong Lab
NYU Langone Medical Center
http://kong.med.nyu.edu/






On Jul 8, 2015, at 10:40 PM, sunyeping 
sunyep...@aliyun.commailto:sunyep...@aliyun.com wrote:

Dear all,

 I have a protein complex which has a ring-like shape; and another protein 
complex which forms a long filament. Is there a way in Pymol to measure the 
angle between the ring plane and the filament?

Best regards.


Yeping Sun


Institute of Microbiology, Chinese Academy of Sciences

--
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net



This email message, including any attachments, is for the sole use of the 
intended recipient(s) and may contain information that is proprietary, 
confidential, and exempt from disclosure under applicable law. Any unauthorized 
review, use, disclosure, or distribution is prohibited. If you have received 
this email in error please notify the sender by return email and delete the 
original message. Please note, the recipient should check this email and any 
attachments for the presence of viruses. The organization accepts no liability 
for any damage caused by any virus transmitted by this email.
=
--
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

Re: [PyMOL] efficiency assigning b-factors

2015-06-16 Thread Sampson, Jared
Hi Jordan -

I think you're doing it exactly the way I would, given an existing dict 
containing the values.  Note, however, that if you have multiple loaded, or 
multiple chains with the same residue numbers, you may wish to be more specific 
with your selection string; your current script will alter every residue with 
the given resi # in all chains of all loaded objects.

If you're having to do this multiple times with the same structure and it's 
slow each time (e.g. while creating a figure from a script), maybe consider 
saving a new PDB file with the modified B-factors using PyMOL's `save` command, 
so you can just load it directly.

# After your `alter` script
save myfile_mod_b.pdb, myfile

# Then next time load the new version with the same name
# as before to avoid breaking the rest of the script. Now you can
# remove the `alter` for-loop from the script.
load myfile_mod_b.pdb, myfile

Hope that helps.

Cheers,
Jared

--
Jared Sampson
Xiangpeng Kong Lab
NYU Langone Medical Center
http://kong.med.nyu.edu/






On Jun 16, 2015, at 2:15 AM, Jordan Willis 
jwillis0...@gmail.commailto:jwillis0...@gmail.com wrote:

Hi,

I have a dictionary that has a bunch of values I want to assign to b-factors in 
order to color by. In my script:

for residue in data:
   cmd.alter(“resi 
{}”.format(residue[‘resnum’]),”b={}”.format(residue[‘value’]))

This executes the alter command for each residue. For some reason, its taking 
forever in my script. Is there something inherently inefficient about alter? 
And is there anyway to fix it? Perhaps, assign a bunch of b-factors at once.

Jordan
--
___
PyMOL-users mailing list 
(PyMOL-users@lists.sourceforge.netmailto:PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

--
___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

Re: [PyMOL] MacPyMOL in command line mode

2015-05-29 Thread Sampson, Jared
Hi CY -

If you're using the -c flag, you shouldn't need a windowing system at all.  The 
following works for me between a MacBook Air and an iMac, both running 10.9.5, 
with MacPyMOL 1.7.6.0 installed on the iMac.

### begin shell ###
(macbook-air)~ › ssh jared@imac
Password:
Last login: Fri May 29 10:37:12 2015 from macbook-air
(imac)~ › /Applications/MacPyMOL.app/Contents/MacOS/MacPyMOL -cqkd fetch 3opl, 
async=0; save tmp.png
PyMOLfetch 3opl, async=0; save tmp.png
HEADERHYDROLASE   01-SEP-10   3OPL
TITLE ESBL R164H MUTANT SHV-1 BETA-LACTAMASE
COMPNDMOL_ID: 1;
COMPND   2 MOLECULE: BETA-LACTAMASE SHV-1;
COMPND   3 CHAIN: A;
COMPND   4 SYNONYM: PIT-2;
COMPND   5 EC: 3.5.2.6;
COMPND   6 ENGINEERED: YES;
COMPND   7 MUTATION: YES
 ObjectMolecule: Read secondary structure assignments.
 ObjectMolecule: Read crystal symmetry information.
 Symmetry: Found 4 symmetry operators.
 CmdLoad: ./3opl.pdb loaded as 3opl.
 Ray: render time: 0.99 sec. = 3622.2 frames/hour (0.99 sec. accum.).
 ScenePNG: wrote 640x480 pixel image to file tmp.png.
(imac)~ › exit
logout
Connection to imac closed.
(macbook-air)~ ›
### end shell ###

The file ~/tmp.png is created on the iMac.  I also used -k to prevent PyMOL 
from reading my ~/.pymolrc; and -d to pass the string of PyMOL commands.  If 
you're running a .pml script, you don't need to include -d, just the path to 
the script (which must be on the remote machine).  As you noted, when it runs I 
see the MacPyMOL application icon pop into the Dock on the iMac and then 
disappear as soon as the script finishes.

Hope that helps.

Cheers,
Jared

--
Jared Sampson
Xiangpeng Kong Lab
NYU Langone Medical Center
http://kong.med.nyu.edu/






On May 28, 2015, at 11:28 AM, Yu Chen che...@umbc.edumailto:che...@umbc.edu 
wrote:

Hello,

I am trying to run MacPyMOL in command line mode with -c -q option. While 
directly logged in to the computer, it works. But if I ssh into the computer 
(even with X11 forwarding enabled), it fails with some errors about connecting 
to WindowServer  And I can tell it actually tried to launch the GUI very 
briefly, then returned to the command line to process the scripts. Is this 
right? Can I run it remotely on another computer just from pure command line.

Thanks.

CY
--
___
PyMOL-users mailing list 
(PyMOL-users@lists.sourceforge.netmailto:PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

--
___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

Re: [PyMOL] Add fragment

2015-05-20 Thread Sampson, Jared
Hi Ben -

Try this:

editor.attach_fragment(pk1, methane, 1, 0)

Here's how I tracked this down, not having known about this function before 
your email.  cmd._alt() and likewise cmd._ctrl() are functions (you can see for 
yourself in the source code in pymol/modules/pymol/cmd.py), and they are 
basically wrappers (via internal.py and back through cmd.py again) for 
functions in keyboard.py called keyboard.get_alt() and keyboard.get_ctrl(), 
which each return a dictionary list of commands to run for each shortcut key.  
For example:

def get_alt(self_cmd=cmd):
return {
'1' : [ editor.attach_fragment  , (pk1,formamide,5,0), {}],
'2' : [ editor.attach_fragment  , (pk1,formamide,4,0), {}],
'3' : [ editor.attach_fragment  , (pk1,sulfone,3,1), {}],
'4' : [ editor.attach_fragment  , (pk1,cyclobutane,4,0), {}],
'5' : [ editor.attach_fragment  , (pk1,cyclopentane,5,0), {}],
'6' : [ editor.attach_fragment  , (pk1,cyclohexane,7,0), {}],
'7' : [ editor.attach_fragment  , (pk1,cycloheptane,8,0), {}],
'8' : [ editor.attach_fragment  , (pk1,cyclopentadiene,5,0), {}],
'9' : [ editor.attach_fragment  , (pk1,benzene,6,0), {}],
'0' : [ editor.attach_fragment  , (pk1,formaldehyde,2,0), {}],
'a' : [ editor.attach_amino_acid, (pk1,ala), {}],
'b' : [ editor.attach_amino_acid, (pk1,ace), {}],
'c' : [ editor.attach_amino_acid, (pk1,cys), {}],
'd' : [ editor.attach_amino_acid, (pk1,asp), {}],
'e' : [ editor.attach_amino_acid, (pk1,glu), {}],
'f' : [ editor.attach_amino_acid, (pk1,phe), {}],
...etc
}

So to add a methyl group, just model it after the cyclobutane example, and just 
run the editor.attach_fragment command (which you can explore in 
pymol/modules/pymol/editor.py) for methane.  A little more info from the 
editor.attach_fragment() docstring:

def attach_fragment(selection,fragment,hydrogen,anchor,_self=cmd):
'''
ARGUMENTS

selection = str: must be pk1

fragment = str: fragment name to load from fragment library

hydrogen = int: hydrogen atom ID in fragment to fuse

anchor = int: none-hydrogen atom ID in fragment to fuse
'''

You can also define custom 
fragmentshttp://www.pymolwiki.org/index.php?title=Modeling_and_Editing_Structures#Adding_and_using_your_own_fragments.

Also, in case you didn't know about it, an easier way to create your peptide 
might be the `fab` function (so long as you don't need to continue editing it 
afterward):

fab GTHYRD, my_peptide

Hope that helps!

Cheers,
Jared

--
Jared Sampson
Xiangpeng Kong Lab
NYU Langone Medical Center
http://kong.med.nyu.edu/


On May 20, 2015, at 8:43 AM, Benjamin Bobay 
bgbo...@ncsu.edumailto:bgbo...@ncsu.edu wrote:

H
​i All,

I was wondering if someone could point me to the correct notation for something.

When making a peptide from the command line one could type:

for aa in GTHYRD:cmd._alt(string.lower(aa))

Let's say that I want to add a methane. The key code is CTRL+SHIFT+M

I was wondering how to alter the cmd.​
_
​alt to be CTRL-SHIFT.

I've tried ​
​cmd._ctrl+_shift
cmd._ctrl and _shift
cmd.(_ctrl and _shift)​
cmd._ctrl._shift

Nothing has worked. I searched the list serve but came up empty on how to 
combine two keys to the cmd'.

Any help would be greatly appreciated!

Thanks
Ben

--

Research Assistant Professor
North Carolina State University
Department of Molecular and Structural Biochemistry
128 Polk Hall
Campus Box 7622
Raleigh, NC 27695
Phone: (919)-513-0698
Fax: (919)-515-2047
http://biochem.ncsu.edu/
http://biochem.ncsu.edu/faculty/bobay/bobaypage.php
http://biochem.ncsu.edu/faculty/bobay/index.php
http://biochem.ncsu.edu/NMR

--
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

--
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: 

[PyMOL] Bug report: cmd.fab() with existing object name produces unexpected results and downstream segfault

2015-05-20 Thread Sampson, Jared
In the process of investigating Ben Bobay's 
questionhttps://sourceforge.net/p/pymol/mailman/message/34128680/ about 
keyboard shortcuts for adding a methyl group, I may have found a bug, or at 
least unexpected behavior, in cmd.fab().

When first creating a peptide, it works fine:

fab , pep

However, if I call it again with a different (or the same) sequence,

fab , pep

The new residues are overlaid right on top of the initial ones, and 
interspersed in the sequence order (overlapping sticks, 
Screenshot1https://www.dropbox.com/s/e6hmr0vb8jlfq6q/Screenshot%202015-05-20%2013.00.36.png?dl=0).
  This breaks cartoon representation, as Ala1 and Ala2 are no longer contiguous 
in the sequence (`as cartoon` leaves nothing drawn, 
Screenshot2https://www.dropbox.com/s/p85bsftrgi54pq3/Screenshot%202015-05-20%2013.00.49.png?dl=0).

Also, something happens when switching representations (e.g. from cartoon to 
sticks) that segfaults with certain sequences.  I can semi-reproducibly produce 
a segfault (perhaps 2/3 of the time) with the following commands in Open Source 
PyMOL (1.7.4.0), PyMOLX11Hybrid (1.7.6.0), and MacPyMOL (1.7.6.0).

reinitialize
fab , pep
fab ADAA, pep
as cartoon
as sticks
# sometimes it takes an extra line or two
#fab AADA, pep
#as sticks

I believe this happens specifically when some residues are the same and some 
are different: I haven't been able to produce a segfault using  as the 
second sequence, but adding the third sequence (second to last line) 
reintroduces the segfault.

I would expect calling `fab` with an existing object name to perform one of the 
following actions (from most to least preferable):

1. Append the residues to the C-terminus of the existing object with sensible 
geometry, similar to `editor.attach_fragment()`.
2. Add a new state to the object with the new sequence, as with 
`cmd.load(state=0)`.
3. Overwrite the existing object (probably not a good idea).

It may also be helpful to have additional arguments to fab, such as append=1 or 
state=0, depending on which of the above options might be implemented.

I'm adding this as a bug report on SourceForge as well.

Cheers,
Jared
--
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

Re: [PyMOL] Load very similar molecules into distinct objects?

2015-05-05 Thread Sampson, Jared
Hi Jorge -

As long as the filenames are different, the molecules should end up in separate 
objects. If the filenames are in fact the same (e.g. same filename but in 
different folders), try explicitly naming the objects using the PyMOL command 
line:

load path/to/the/first/mol1.pdb, first_mol
load path/to/another/mol1.pdb, second_mol

http://www.pymolwiki.org/index.php/Load

Hope that helps.

Cheers,
Jared

--
Jared Sampson
Xiangpeng Kong Lab
NYU Langone Medical Center
http://kong.med.nyu.edu/






On May 5, 2015, at 2:16 PM, Jorge Fernandez de Cossio Diaz 
cos...@cim.sld.cumailto:cos...@cim.sld.cu wrote:

When I load two molecules into pymol which are very similar, they automatically 
get clumped into the same object as different states.
How can I circumvent this behavior? I want to load two molecules which are very 
similar into different objects. I know about the split_states command, but I 
am looking at a bunch of pairs of molecules and running split_states every 
time I load a pair is a pain.

Is there a command I can use instead of load or a way to call pymol mol1.pdb 
mol2.pdb so that PyMol knows that mol1.pdb and mol2.pdb should go to two 
different objects?
---

[http://5.cim.co.cu/cim.gif]

--
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

--
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

Re: [PyMOL] moving objects

2015-04-29 Thread Sampson, Jared
Hi Marcelo -

Is Object 2 actually a pseudoatom?  Or, if not, can it be placed separately 
from Object 1?  If either of those are the case, it would be much easier to 
place the pseudoatom at a point equidistant from the two ends of Object 1 than 
mess with rotation matrices, etc.  Here’s what I worked out.


# get a long protein, e.g. collagen
fetch 1bkv, async=0
as cartoon

# place a couple helper pseudoatoms at the ends of the collagen 
(approximately)
pseudoatom nterm, resi 2+31+61, vdw=2
pseudoatom cterm, resi 30+60+90, vdw=2
select ends, nterm or cterm
show spheres, ends

# orient the helper pseudoatoms along one of the display axes (usually ends up 
being x)
orient ends

# place another helper pseudoatom at the midpoint of the object
pseudoatom obj_b, ends, vdw=4
show spheres, obj_b

# move it (e.g.) 50Å away
translate [0,0,-50], obj_b

# make sure it looks right
orient ends or obj_b


You could then load your “real” Object 2 (if necessary) and move it to the 
obj_2 pseudoatom using a combination of `origin` and the COM script 
(http://www.pymolwiki.org/index.php/Com), for example.  Haven’t tested that, 
but it should be possible.

Hope that helps!

Cheers,
Jared

--
Jared Sampson
Xiangpeng Kong Lab
NYU Langone Medical Center
http://kong.med.nyu.edu/

On Apr 28, 2015, at 1:57 PM, Marcelo Marcet 
mmar...@nait.camailto:mmar...@nait.ca wrote:

Hi Pymol Users,

I have 2 objects (objects 1 and 2) and I would like to re-orient object 1 so 
that the distance from either end of object 1 becomes the same to object 2 (see 
image). Is there a way to achieve this in PyMol?

I have tried using the mouse in edit mode and I have tried using the 
rotate/translate commands. Neither method can move object 1 without altering 
the position of the lower end of object 1.

Regards,
Marcelo

image.jpeg
--
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

--
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

Re: [PyMOL] MacPyMol working dir

2015-04-16 Thread Sampson, Jared
Hi Luigi -

To get the right working directory, you can use the full path to the binary 
followed by the `-d` flag to run a command (`cd $PWD`) once PyMOL opens.  
Personally, I'd alias it in ~/.profile like this:

alias macpymol='/Applications/MacPyMOL.app/Contents/MacOS/MacPyMOL -d cd $PWD'

Alternatively, you could install the open source version, e.g. using 
Homebrewhttp://www.pymolwiki.org/index.php/MAC_Install#Installing_PyMOL_with_Homebrew,
 which opens properly in the working directory as well.

Cheers,
Jared

--
Jared Sampson
Xiangpeng Kong Lab
NYU Langone Medical Center
http://kong.med.nyu.edu/






On Apr 15, 2015, at 4:20 PM, Luigi Cavallo 
lcava...@unisa.itmailto:lcava...@unisa.it wrote:

Hi,

I just started to use MacPyMol from standard unix like Pymol, and I would like 
to start MacPyMol from a specific working directory, to have pdb and pse files 
I am working on right at hand.  However, I can’t understand how to get this 
done.  I can start by command line

open -a MacPyMol   or
/Applications/MacPyMOL.app/Contents/MacOS/MacPyMOL

and it works, but as I try the “open” option, it starts from my home directory, 
so I have to go down the folders tree. Annoying.  I’ve seen that I can start as

/Applications/MacPyMOL.app/Contents/MacOS/MacPyMOL -m

I have a less fancy graphics, but if I try to “open” a file, it starts looking 
in the directory I started from. Cool. However, according to the manual I loose 
plugin control.
Just wondering if there is a way to have the “open” file starting from the 
working directory with the fancy interface of MacPyMol, rather than the basic 
Unix interface.

Thanks,
gg-kawa


--
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15utm_medium=emailutm_campaign=VA_SF
___
PyMOL-users mailing list 
(PyMOL-users@lists.sourceforge.netmailto:PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

--
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15utm_medium=emailutm_campaign=VA_SF___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

Re: [PyMOL] cartoon putty present in pymol

2015-04-13 Thread Sampson, Jared
Hi Wenfu -

Cartoon putty representation varies the diameter of the putty tube based on the 
B-factor column in the loaded PDB file.  In your example file, all the 
B-factors are 0.00.  Perhaps you could use `cartoon tube` instead, which is 
similar to putty, but uses a single cartoon_tube_radius setting to specify the 
size of the tube.

Cheers,
Jared

--
Jared Sampson
Xiangpeng Kong Lab
NYU Langone Medical Center
http://kong.med.nyu.edu/






On Apr 13, 2015, at 11:39 AM, m...@mskcc.orgmailto:m...@mskcc.org wrote:

Hi pymol users,

I have a pdb file, which is from the result of a molecular dynamics simulation. 
I want to present the structure with cartoon putty in pymol.
But I can only make it cartoon putty in Macpymol 0.99 version. When I use 
pymol1.7 or 1.3 version, the error is like this: Extrude-Warning: invalid putty 
settings (division by zero)
I attach part of the pdb file and hope to get your suggestions.

Thanks,
Wenfu
=

Please note that this e-mail and any files transmitted from
Memorial Sloan-Kettering Cancer Center may be privileged, confidential,
and protected from disclosure under applicable law. If the reader of
this message is not the intended recipient, or an employee or agent
responsible for delivering this message to the intended recipient,
you are hereby notified that any reading, dissemination, distribution,
copying, or other use of this communication or any of its attachments
is strictly prohibited. If you have received this communication in
error, please notify the sender immediately by replying to this message
and deleting this message, any attachments, and all copies and backups
from your computer.
putty.pdb--
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15utm_medium=emailutm_campaign=VA_SF___
PyMOL-users mailing list 
(PyMOL-users@lists.sourceforge.netmailto:PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

--
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15utm_medium=emailutm_campaign=VA_SF___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

Re: [PyMOL] Pymol molecular visualisation

2015-04-13 Thread Sampson, Jared
Hi James -

Here is how I would label your objects in grid_mode:

# For each object, create a pseudoatom at its center of geometry to position 
the label
pseudoatom myobj_label, myobj

# Set the label text for the pseudoatom
label myobj_label, My Object

# To show the label and the object in the same grid, combine them in a group
# (Alternatively, you can use the 
grid_slothttp://www.pymolwiki.org/index.php/Grid_slot setting for more 
fine-grained control.)
group myobj_grp, myobj*

# Adjust the size and position of the label.  Label position can also be 
adjusted per-object.
set label_size, 10
set label_position, [10, 10, 0]
set label_position, [-10,-10,0], myobj_label

Hope that helps.

Cheers,
Jared

--
Jared Sampson
Xiangpeng Kong Lab
NYU Langone Medical Center
http://kong.med.nyu.edu/






On Apr 12, 2015, at 9:44 AM, James Starlight 
jmsstarli...@gmail.commailto:jmsstarli...@gmail.com wrote:

Thanks !
still have not found solution for grid-mode display:
1- I need to show names of each opened object near its cartoon

2- I need to increase spacing of grid border (m.b like just empty
space)- to better discriminate between opened objects in case of its
high zooming

J

2015-04-11 14:51 GMT+02:00 João M. Damas 
jmda...@itqb.unl.ptmailto:jmda...@itqb.unl.pt:
1- See http://www.pymolwiki.org/index.php/Ray_Trace_Gain. However, from my
experience, I don't think the setting works too well, so what I usually do
is to increase the resolution of the raytrace, which makes the black outline
thinner.

On Fri, Apr 10, 2015 at 4:48 PM, James Starlight 
jmsstarli...@gmail.commailto:jmsstarli...@gmail.com
wrote:

Dear Pymol users!

Here I will ask some question regarding visualization issues in pymol.

1- Using ray_trace_mode, 1 I need to decrease at least twisty width of
black countour line (especially in the loop segments).

2- Being in the split mode (visualization of the several objects on
one screen) I need to show title of each of the objects somewhere near
of its cartoon area (e,g in right upper corner)- just to know on the
produced picture names of the corresponded cartoon.

3- Also please have a look on my another topic regarding visualization
of B-factor gradients: actually I need to revert its existing color
pattern and select residues according to it's actual B-factor values
(E.g with B-factor=0, with negative and/or positive) for its
subsequent selective visualization.

Thanks a lot for the advises!


--
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live
exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual-
event?utm_
source=Sourceforge_BPM_Camp_5_6_15utm_medium=emailutm_campaign=VA_SF
___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net




--
João M. Damas
PhD Student
Protein Modelling Group
ITQB-UNL, Oeiras, Portugal
Tel:+351-214469613

--
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15utm_medium=emailutm_campaign=VA_SF
___
PyMOL-users mailing list 
(PyMOL-users@lists.sourceforge.netmailto:PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

--
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15utm_medium=emailutm_campaign=VA_SF___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

Re: [PyMOL] Colouring nucleic acids, without changing the colouring of amino acids

2015-03-26 Thread Sampson, Jared
Hi Brenton -

To avoid coloring e.g. Glycine when you only want to color e.g. guanine, prefix 
the residue name with “D” (as the residues are shown in the Sequence viewer) 
for DNA.  I believe RNA works the same way with “R” as well.

set cartoon_color, green, resn DG

To color the DNA backbone, you could try:

color pink, resn DA+DC+DG+DT and bb.

or, if you know the chain IDs,

color pink, 2XCT and chain A+B+C+D+E and bb.

Hope that helps.

Cheers,
Jared

--
Jared Sampson
Xiangpeng Kong Lab
NYU Langone Medical Center
http://kong.med.nyu.edu/

On Mar 24, 2015, at 11:47 PM, Brenton Horne 
brentonho...@ymail.commailto:brentonho...@ymail.com wrote:

Hi,

I've seen this (Example 1 on 3DNAhttp://www.pymolwiki.org/index.php/3DNA) and 
I noticed to colour each nucleic acid differently they used something like:

set cartoon_color, green, resn G

for each of the four different nucleic acids. When I ran this for 2XCT bio 
assembly 1 it coloured amino acids with the same single letter codes as the 
four nucleic acids (e.g., G for guanine [nucleic acid] and glycine [amino]) and 
I wanted to know how to run it just for nucleic acids. I thought that something 
like this for each chain containing nucleic acids:

set cartoon_color, green, /2XCT//E and resn G

would do the trick but that would take forever seeing how 8 separate chains 
contain nucleic acids. While we're on this topic I'd also like to know how to 
colour the backbone and sugars via a more efficient method than doing something 
like this:

color pink, /2XCT//E and bb.


for each chain containing nucleic acids.

Thanks for your time,
Brenton
--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. 
http://goparallel.sourceforge.net/___
PyMOL-users mailing list 
(PyMOL-users@lists.sourceforge.netmailto:PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

Re: [PyMOL] Chain Selection doesn't work (MacPymolEdu)

2015-02-17 Thread Sampson, Jared
Hi Simon -

It looks like your default Python is now 3.x rather than 2.x.  The built-in 
function reduce() was moved to functools.reduce() as of version 3.0.  You can 
confirm whether this is the case via “python --version” on the command line.

One solution might be to make 2.7 the default again, perhaps via symlink to 
/usr/bin/python2.7 or adjusting your $PATH, although honestly I'm not sure 
about which Python is actually used by the precompiled Edu binaries.  Maybe 
others can chime in on that.

Hope that helps.

Cheers,
Jared

--
Jared Sampson
Xiangpeng Kong Lab
NYU Langone Medical Center
http://kong.med.nyu.edu/






On Feb 16, 2015, at 8:24 AM, Simon Fortier 
simon.fortie...@umontreal.camailto:simon.fortie...@umontreal.ca wrote:

Hi,
I'm trying to select specific chains with the following command, which used to 
work.

select , /3J3A//D

However, under Yosemite 10.10.2 (latest update), I keep receiving the following 
error msg and can't select chains anymore...very annoying...any ideas?

Traceback (most recent call last):
  File /Users/Simon/Downloads/MacPyMOLEdu.app/pymol/modules/pymol/parser.py, 
line 254, in parse
self.result=apply(layer.kwhttp://layer.kw/[0],layer.args,layer.kw_args)
  File 
/Users/Simon/Downloads/MacPyMOLEdu.app/pymol/modules/pymol/selecting.py, line 
103, in select
selection = selector.process(selection)
  File 
/Users/Simon/Downloads/MacPyMOLEdu.app/pymol/modules/pymol/selector.py, line 
113, in process
st = reduce(lambda x,y:x++y,lst)
AttributeError: 'module' object has no attribute 'reduce'

Thanks

--
Simon Fortier
Ph.D Candidate
Institute of Research in Immunology and Cancer
Université de Montréal

--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=190641631iu=/4140/ostg.clktrk___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=190641631iu=/4140/ostg.clktrk___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

Re: [PyMOL] unable to export obj

2015-01-26 Thread Sampson, Jared
Hi Albert -

Surface mode 2 outlines the mesh edges with thin cylinders, but if I remember 
correctly, I think PyMOL’s OBJ export doesn’t do cylinders (or spheres or 
cones), only triangle meshes.  You could try exporting to VRML2 (.wrl) or 
COLLADA (.dae) format and using something like, e.g. Blender to convert to OBJ 
if that’s what you really need.

Hope that helps,
Jared

P.S. Albert - sorry for the duplicate email, I forgot to CC the list last time…

--
Jared Sampson
Xiangpeng Kong Lab
NYU Langone Medical Center
http://kong.med.nyu.edu/






On Jan 21, 2015, at 5:50 AM, Albert Solernou 
a.soler...@leeds.ac.ukmailto:a.soler...@leeds.ac.uk wrote:

Hi,
I am trying to get a .obj file, but fail when setting up surface_type to
2. More explicitly:
load 1ppe.pdb, 1ppe
set surface_type, 2
hide everything
show surface
shows a nice triangulated surface. However,
save myscene.obj
saves an empty file.

I've tried pymol versions 1.7.4 and 1.6.0. Saving into an obj file works
well when surface_type is set to 0, or 1. Any help?

Best,
Albert


--
-
  Dr Albert Solernou
  EPSRC Research Fellow,
  Department of Physics and Astronomy,
  University of Leeds

--
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

--
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

Re: [PyMOL] raytracing a transparant surface, with reflections only on the cofactors inside

2015-01-14 Thread Sampson, Jared
Thanks for the correction, Thomas.  I saw the following in the terminal window 
and thought it meant the setting was applied as I intended:

PyMOLset spec_reflect, 0, all and not org
 Setting: spec_reflect set for 2105 atoms in object 1shv.
PyMOLset spec_reflect, 1, org
 Setting: spec_reflect set for 35 atoms in object “1shv”.

(You’d think I’d know better after having worked with lighting in my COLLADA 
export project...)

Perhaps it would be helpful for cmd.set() to output some kind of warning if a 
selection argument is given, but the setting can only be applied globally?

Cheers,
Jared

--
Jared Sampson
Xiangpeng Kong Lab
NYU Langone Medical Center
http://kong.med.nyu.edu/






On Jan 14, 2015, at 1:18 PM, Tsjerk Wassenaar 
tsje...@gmail.commailto:tsje...@gmail.com wrote:

Hi Thomas,

Thanks for chiming in. I guess this would be a step towards textures/finishes. 
I would really like to see more extended support for those in Pymol. Of course 
that would mostly serve artistic purposes, but I'd gladly raise the suggestion 
that it can do wonders for highlighting :)

Floris, I can join you in the lab tomorrow afternoon (~15pm?), and we can have 
a look what we can do. Maybe a POV-Ray session, like in the old days :) Maybe I 
can even find my finish settings somewhere :)

Cheers,

Tsjerk

On Wed, Jan 14, 2015 at 7:03 PM, Thomas Holder 
thomas.hol...@schrodinger.commailto:thomas.hol...@schrodinger.com wrote:
Hi Floris, Tsjerk, Jared,

all lighting settings in PyMOL are only global, so setting them on objects or 
selections will have no effect. This is not a bug, bug of course can be 
considered a missing feature. We will check how difficult this would be to 
implement on the object or atom level.

Cheers,
  Thomas

On 14 Jan 2015, at 12:07, Floris van Eerden 
f.j.van.eer...@rug.nlmailto:f.j.van.eer...@rug.nl wrote:

 Hello Jared and Tsjerk,

 I tried your suggestion, but unfortunately it does not work on my computer.
 When I type the command
 set spec_reflect, 0, all
 Pymol gives the following output:
 --Setting: spec_reflect set to 0.0 in 8 objects.

 So it seems okay. But however when I raytrace, I still get all reflections.
 When I subsequently type
 set spec_reflect, 0
 and then raytrace, the reflections are really turned off.

 Could this be a bug, or do I forget something?

 Thanks

 Floris

 On 09-01-15 16:55, Sampson, Jared wrote:
 set spec_reflect, 0, all and not organic

--
Thomas Holder
PyMOL Principal Developer
Schrödinger, Inc.


--
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
___
PyMOL-users mailing list 
(PyMOL-users@lists.sourceforge.netmailto:PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net



--
Tsjerk A. Wassenaar, Ph.D.

--
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

--
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

Re: [PyMOL] raytracing a transparant surface, with reflections only on the cofactors inside

2015-01-09 Thread Sampson, Jared
Hi Floris -

Tsjerk is correct.  You can set spec_reflect for a selection. Something like:

set spec_reflect, 0, all and not organic

This would turn of specular reflection on anything that’s not a “ligand” atom.

Cheers,
Jared

--
Jared Sampson
Xiangpeng Kong Lab
NYU Langone Medical Center
http://kong.med.nyu.edu/



On Jan 9, 2015, at 10:42 AM, Tsjerk Wassenaar 
tsje...@gmail.commailto:tsje...@gmail.com wrote:


Hi Floris,

I'm not entirely sure whether these are object/selection or global properties. 
But have you tried specifying the selection?

set spec_reflect, 0, protein

Haven't tried it myself, though.

Cheers,

Tsjerk

On Jan 9, 2015 4:07 PM, Floris van Eerden 
f.j.van.eer...@rug.nlmailto:f.j.van.eer...@rug.nl wrote:
Dear all,

My question is if I can set for different molecules in my system, how much they 
reflect light during ray-tracing

My current system is a protein which contains some cofactors.
The cofactors are coloured according to their B value and the protein is shown 
as a transparant grey surface.
When I start Ray-tracing, I get a quite nice picture. The problem is however 
that the transparant surface is reflecting the light, and becomes therefore at 
some places not transparant, which makes it kinda difficult to see the 
cofactors in the protein (which are the most important). I played around with 
all the spec_reflect, spec_direct settings. When I set spec_reflect to 0, there 
are no reflections anymore, but the image becomes rather dull.
I was wondering if it is possible to select somehow to make only the cofactors 
inside the protein reflect the light, but not the protein surface. In VMD you 
can do this for example by making molecules from different ‘materials’, e.g. 
you can make your cofactors from a reflective material, and your protein 
surface from a non reflective, transparant material. Is something similar 
possible in Pymol???

Thanks for your suggestions,

Floris
--
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. 
http://goparallel.sourceforge.nethttp://goparallel.sourceforge.net/
___
PyMOL-users mailing list 
(PyMOL-users@lists.sourceforge.netmailto:PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net
--
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. 
http://goparallel.sourceforge.net___
PyMOL-users mailing list 
(PyMOL-users@lists.sourceforge.netmailto:PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

--
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

Re: [PyMOL] Dot representation

2015-01-05 Thread Sampson, Jared
Hi Yarrow -

1. Yes, according to the wikihttp://www.pymolwiki.org/index.php/Dots, the 
dots are located on the vdW surface unless the `dot_solvent` setting is turned 
on (in which case they’re on the solvent accessible surface).

2. Based on the settings listed with “dot” in their names, it doesn’t look like 
dot_transparency is currently available.

Hope that helps.

Cheers,
Jared

--
Jared Sampson
Xiangpeng Kong Lab
NYU Langone Medical Center
http://kong.med.nyu.edu/






On Dec 30, 2014, at 6:48 PM, Yarrow Madrona 
acacia.madr...@ucsf.edumailto:acacia.madr...@ucsf.edu wrote:

Hell Pymolers,

1. Does anyone know what the dot representation for a residue represents? Is it 
the van der waals radii?

2. Is there a way to draw transparency for the dots?

-Yarrow


--
Yarrow Madrona, Ph.D.
Postdoctoral Scholar
University of California, San Francisco
Department of Pharmaceutical Chemistry
Rm N551, 600 16th street
San Francisco CA, 94143
--
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. 
http://goparallel.sourceforge.net___
PyMOL-users mailing list 
(PyMOL-users@lists.sourceforge.netmailto:PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

--
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

Re: [PyMOL] selection of a set of amino acids

2014-12-15 Thread Sampson, Jared
Hi Alireza -

For renumbering a chain, the program PDBSET in the CCP4 suite is my tool of 
choice.  If your protein is chain A, the command would look something like this:

pdbset xyzin my_protein.pdb xyzout my_protein_renumbered.pdb EOF
renum 1 chain A
EOF

To remove the extraneous stuff within PyMOL, you could also use applicable 
selectors (http://www.pymolwiki.org/index.php/Single-word_Selectors) to remove, 
e.g. heteroatoms, solvent, organic (ligand) molecules, etc. using one or more 
of these commands, depending on what it is you’re trying to remove.

remove het
remove solvent
remove all and not polymer
remove organic
remove metals

As an alternative (pun intended), instead of removing those items, you could 
change their chain IDs using the `alter` command:

alter (chain A and not polymer), chain=“Z”

Hope that helps.

Cheers,
Jared

--
Jared Sampson
Xiangpeng Kong Lab
NYU Langone Medical Center
http://kong.med.nyu.edu/






On Dec 13, 2014, at 1:54 PM, Alireza Kashani 
alireza.kashanip...@gmail.commailto:alireza.kashanip...@gmail.com wrote:

Thanks for your prompt answer,
numbers resets in every chain - and there is a lot of nucleobases in the 
beginning (A,C,U,G) and MG at the end and these atoms mess up the residues 
number additionally !

can I remove them via pymol ? Thank you
http://en.wikipedia.org/wiki/Nucleobase

On Sat, Dec 13, 2014 at 5:45 PM, Andreas Warnecke 
4ndreas.warne...@gmail.commailto:4ndreas.warne...@gmail.com wrote:

Hi,

There is a script available on the pymol wiki called zero_residues. This will 
allow you to easily renumber any AA sequence.
As far as other heteroatoms are concerned you could consider removing them 
(remove hetatm), or extract them into a second object.
Another alternative is to simply adjust the coloring command according to the 
pdb.

Hope that helps,

Andreas

On Dec 13, 2014 4:41 PM, Alireza Kashani 
alireza.kashanip...@gmail.commailto:alireza.kashanip...@gmail.com wrote:
Dear All,

I would like to colour different regions of a protein in different colour; say 
region one, amino acid number 1 to 100 and region two amino acid 101 to 150; 
However, when I look into a pdb file using pymol; by displaying the residuals, 
I see the residue number 1, does not correspond to the first amino acid; I 
assume, because of other atoms (metals, ions and etc).

I was wondering if I should filter the pdb file, beforehand to be free from 
these metals, or is there any command that I can put them away and make a 
selection based on set of amino acids ?

I appreciate your help,

--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk
___
PyMOL-users mailing list 
(PyMOL-users@lists.sourceforge.netmailto:PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net
--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

Re: [PyMOL] homebrew pymol

2014-12-11 Thread Sampson, Jared
Hi Ryan -

Have a look at this posthttps://mathiasbynens.be/notes/shell-script-mac-apps, 
which may also help you in creating an app out of your Homebrewed PyMOL.  I’d 
recommend using a symlink within the app bundle to /usr/local/bin/pymol, so 
when you update with homebrew, you don’t have to change anything in the app.

Cheers,
Jared

--
Jared Sampson
Xiangpeng Kong Lab
NYU Langone Medical Center
http://kong.med.nyu.edu/






On Dec 10, 2014, at 1:13 PM, Walker, Ryan (walker3) 
walk...@mail.uc.edumailto:walk...@mail.uc.edu wrote:

Hi All,

Sorry if this has been asked before. Is there a way to set up it so that you 
can click the pdb file to launch pymol that was installed using home-brew? As 
of right now, when you click the ‘open with’ tab, there is no way to select the 
pymol app that was installed using home-brew of course.  Is there a work around 
for this? Using Mac OS 10.10.

Thanks!

Ryan
--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk
___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

Re: [PyMOL] Super, algorithm

2014-11-26 Thread Sampson, Jared
Hi Spencer -

If you need a superposition algorithm with a published reference, try 
CEAlignhttp://www.pymolwiki.org/index.php/Cealign.  Some references are 
listed on the page for the former CEAlign 
Pluginhttp://www.pymolwiki.org/index.php/Cealign_plugin#References  from 
before it was incorporated into PyMOL (in version 1.3).

Just be careful to note that the order of the first two arguments (target, 
mobile) is switched compared to the `super` and `align` commands (mobile, 
target).

Cheers,
Jared

--
Jared Sampson
Xiangpeng Kong Lab
NYU Langone Medical Center
http://kong.med.nyu.edu/






On Nov 26, 2014, at 7:13 AM, Spencer Bliven 
sbli...@ucsd.edumailto:sbli...@ucsd.edu wrote:

I would also be interested if there is any documentation about the super 
algorithm and the differences to align.

-Spencer

On Fri, Nov 14, 2014 at 10:25 PM, Osvaldo Martin 
aloctavo...@gmail.commailto:aloctavo...@gmail.com wrote:
Hi,

Exactly which algorithm is behind the super command? How the outliers pairs are 
defined?  The is some scientific paper related to super or it is really an 
experimental idea?

Thanks.

--
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://pubads.g.doubleclick.net/gampad/clk?id=154624111iu=/4140/ostg.clktrk
___
PyMOL-users mailing list 
(PyMOL-users@lists.sourceforge.netmailto:PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751iu=/4140/ostg.clktrk___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751iu=/4140/ostg.clktrk___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

Re: [PyMOL] View Matrix operation

2014-11-19 Thread Sampson, Jared
Hi Louris -

If your view is centered on the atom from which you would like to draw the 
line, and oriented the way you want it, you can achieve something similar to 
what it sounds like you want with the following commands.

center myAtom
move x, -4   # `move` works in camera space
pseudoatom myMarker  # creates a pseudoatom called “marker” at the center of 
the screen
move x, 4# move it back
distance myLine, myAtom, myMarker

To customize the line, have a look at the dash_* settings.  You can show the 
pseudoatom as a sphere as well.  If you want to draw something else (triangle, 
square, etc.) rather than a sphere, you’ll have to do it as a CGO, and the 
“axes.py script Takanori suggested will be helpful.  You can get the 
coordinates of the pseudoatom using 
iterate_statehttp://www.pymolwiki.org/index.php/Iterate_state.

Hope that helps.

Cheers,
Jared

--
Jared Sampson
Xiangpeng Kong Lab
NYU Langone Medical Center
http://kong.med.nyu.edu/






On Nov 19, 2014, at 7:14 AM, Feitsma, L.J. 
l.j.feit...@uu.nlmailto:l.j.feit...@uu.nl wrote:

Hi all,

I have a small question about transformations with the view matrix in pymol, 
since I’m not very familiar with the architecture of the matrix.

E.g. I take some coordinates [x1,y1,z1], and using cgo objects, I want to draw 
a line/triangle/square to a point distance 4 to the right on the screen (so not 
4 in object x-coördinates!).
How can I use the information in [0:8] of the view matrix to calculate object 
coordinates [x2, y2, z2] needed to draw the line between [x1, y1, z1] and [x2, 
y2, z2]?

Does anyone has an example script, or link about which matrix operation I need 
for this?

Kind regards,

Louris Feitsma

Crystal and Structural Chemistry

Utrecht University

Padualaan 8
3584 CH Utrecht
The Netherlands
P: +31-30-2539182

--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751iu=/4140/ostg.clktrk___
PyMOL-users mailing list 
(PyMOL-users@lists.sourceforge.netmailto:PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751iu=/4140/ostg.clktrk___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

Re: [PyMOL] ligand binding site visualisation

2014-11-10 Thread Sampson, Jared
Hi James -

You could put in a feature 
requesthttp://sourceforge.net/p/pymol/feature-requests/ to ask that 
non-canonical residues be included in the preset.

In the meantime, the Property 
Selectorshttp://www.pymolwiki.org/index.php/Property_Selectors, Single-Word 
Selectorshttp://www.pymolwiki.org/index.php/Single-word_Selectors, and 
Selection Algebrahttp://www.pymolwiki.org/index.php/Selection_algebra 
operators and are going to be your friends here.  For dashes, use the 
distancehttp://www.pymolwiki.org/index.php/Distance command.

For example, the following lines will show your ligand(s) as sticks and 
residues with any atom near the ligand as lines, and draw dashes for the polar 
contacts between them:

###

select ligand, organic
as sticks, ligand

select binding_site, br. all within 4 of ligand
show lines, binding_site
as nb_spheres, binding_site and solvent

distance ligand_polar_conts, binding_site, ligand, cutoff=3.5, mode=2

###

Using combinations of these selectors, you can come very close to re-creating 
whichever preset you wanted to use.  Hope that helps.

Cheers,
Jared

--
Jared Sampson
Xiangpeng Kong Lab
NYU Langone Medical Center
http://kong.med.nyu.edu/






On Nov 6, 2014, at 3:50 AM, James Starlight 
jmsstarli...@gmail.commailto:jmsstarli...@gmail.com wrote:

Dear Pymol users!

Typically when I'm looking at the ligand binding sites (present-show of the 
receptor-ligand.pdb complexes all receptors non-canonical residues or the 
different titrable forms of the standard ones (e.g HIP-protonated HIS or ASH- 
protonated ASN) are recognized as the ligands as well and pymol try to find 
hydrogen bonds or vdv contacts of these residues with its surroundings. How I 
could prevent it to see only on the ligand surrounding within such pdbs? What 
another pymol options will be useful for the ligand sites visualization?


Thanks for help,

James
--
___
PyMOL-users mailing list 
(PyMOL-users@lists.sourceforge.netmailto:PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

--
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://pubads.g.doubleclick.net/gampad/clk?id=154624111iu=/4140/ostg.clktrk___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

Re: [PyMOL] How to calculate Hinge angle

2014-11-04 Thread Sampson, Jared
Hi Shoeib -

It’s hard to say exactly what you need, because it will vary depending on your 
specific case.

If you’re looking for the change in a hinge angle between two structures of 
multi-domain proteins A and B, you can first superimpose domain 1 of B to 
domain 1 of A, get the matrix of B, superimpose domain 2 of B to domain 2 of A, 
get the second matrix, then use 
transformation.pyhttp://www.pymolwiki.org/index.php/Transformations to 
calculate the axis and angle of that transformation.  Also see this thread 
http://sourceforge.net/p/pymol/mailman/message/25398209/ for more info.

If it has a standard hinge definition, perhaps something like the elbow 
anglehttp://www.pymolwiki.org/index.php/Elbow_angle of antibody Fab 
fragments, you may be able to calculate it directly from one structure, but, 
again, the details of that calculation will depend on your specific protein.

Hope that helps.

Cheers,
Jared

--
Jared Sampson
Xiangpeng Kong Lab
NYU Langone Medical Center
http://kong.med.nyu.edu/






On Nov 2, 2014, at 10:02 PM, Shoeib Moradi 
shoeib.mor...@monash.edumailto:shoeib.mor...@monash.edu wrote:

Dear All

I am wondering if you know how to calculate Hinge Angle between 2 domains of 
a protein?

I am not quite sure how to calculate Center of mass of protein and then 
calculating the hinge angle.

Any help is appreciated.

Regards

Shoeib


--
___
PyMOL-users mailing list 
(PyMOL-users@lists.sourceforge.netmailto:PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

--
___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

Re: [PyMOL] PyMOLWiki Update

2014-10-20 Thread Sampson, Jared
Hi Justin -

I see this same “weirdness using the https protocol.  If you remove the ’s’ 
from ‘https’ in your URL, however, it will load properly.  It must be on a 
shared server that has something goofy happening with the handling of https 
traffic.  I think Jason is still the admin for the wiki, so maybe he can 
comment.

Cheers,
Jared

--
Jared Sampson
Xiangpeng Kong Lab
NYU Langone Medical Center
http://kong.med.nyu.edu/






On Oct 20, 2014, at 3:28 AM, Justin Lecher 
j.lec...@fz-juelich.demailto:j.lec...@fz-juelich.de wrote:

On 20/06/14 17:45, Jason Vertrees wrote:
Hi Suzanne,

Everything should look and act exactly like it has in the past, including the
address.

Cheers,

-- Jason


Hi,

I just saw some weirdness when I try to access

https://www.pymolwiki.org/

That doesn't look like pymol stuff.

Cheers,
Justin

--
Justin Lecher
Institute of Complex Systems
ICS-6 Structural Biochemistry
Research Centre Juelich
52425 Juelich, Germany
phone: +49 2461 61 2117


--
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

--
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

Re: [PyMOL] Show all residues forming H-bonds

2014-10-16 Thread Sampson, Jared
Hi Markus -

First, you need to run the python script from the wiki page (save it as, e.g. 
polarpairs.py).  Then, to run pure Python code within a pml file, you’ll need 
to enclose those lines in a python block 
(http://www.pymolwiki.org/index.php/Python) using ‘python’ and ‘python end’.  
For example, to list all the H bonds between chains A and B:

###

run path/to/polarpairs.py

python

# the example from http://www.pymolwiki.org/index.php/Polarpairs
pairs = polarpairs('chain A', 'chain B')
for p in pairs:
dist = cmd.get_distance('(%s`%s)' % p[0], '(%s`%s)' % p[1])
print p, 'Distance: %.2f' % (dist)

python end

###

Hope that helps.

Cheers,
Jared

--
Jared Sampson
Xiangpeng Kong Lab
NYU Langone Medical Center
http://kong.med.nyu.edu/






On Oct 15, 2014, at 6:17 PM, Markus Heller 
mhel...@cdrd.camailto:mhel...@cdrd.ca wrote:

Jared,

I'm a newbie to pythom/PyMOL; how do I get this to work in a pml script?  A 
pointer to an example script would be enough .

Thanks
Markus

From: Sampson, Jared [mailto:jared.samp...@nyumc.org]
Sent: Friday, October 10, 2014 4:17 PM
To: Markus Heller
Cc: pymol-users@lists.sourceforge.netmailto:pymol-users@lists.sourceforge.net
Subject: Re: [PyMOL] Show all residues forming H-bonds

Actually, an even better option is Thomas' polarpairs.py script: 
http://www.pymolwiki.org/index.php/Polarpairs, which considers the H-bond angle 
as well as distance.

Apologies for the multiple emails, but I hope that is closer to what you're 
looking for.

Cheers,
Jared


On Oct 10, 2014, at 7:10 PM, Sampson, Jared 
jared.samp...@nyumc.orgmailto:jared.samp...@nyumc.org wrote:


Hi Markus -

Ah, sorry, I misunderstood your request at first.

What about the acceptors and donors selectors?  
http://www.pymolwiki.org/index.php/Single-word_Selectors

e.g.
select hbond_residues, byres ((acceptors within 3.5 of donors) or (donors 
within 3.5 of acceptors))

Cheers,
Jared

--
Jared Sampson
Xiangpeng Kong Lab
NYU Langone Medical Center
http://kong.med.nyu.edu/





On Oct 10, 2014, at 6:41 PM, Markus Heller mhel...@cdrd.ca wrote:


Hi Jared,

Thanks for the reply.

This is NOT what I'm looking for.  As you stated, distance mode 2 yields the 
*distances* as dashes, but not the actual residues.  I don't want the dashes, 
but I want the residues (i.e. the donors and acceptors) in selectable objects.

I hope it's clearer now what I'm after .

Cheers
M

From: Sampson, Jared [mailto:jared.samp...@nyumc.org]
Sent: Friday, October 10, 2014 3:33 PM
To: Markus Heller
Subject: Re: [PyMOL] Show all residues forming H-bonds

Hi Markus -

Under the GUI action menu A  find  polar contacts, you'll find several 
options which will create a new object with all the specified distances as 
dashes.

This is also available with `distance` command.  
http://www.pymolwiki.org/index.php/Distance

Hope that helps.

Cheers,
Jared

--
Jared Sampson
Xiangpeng Kong Lab
NYU Langone Medical Center
http://kong.med.nyu.edu/






On Oct 10, 2014, at 2:45 AM, Markus Heller mhel...@cdrd.ca wrote:



Hello list,

subject says it all.  The 2 options I came across search the www are:

http://sourceforge.net/p/pymol/mailman/message/7562444/http://sourceforge.net/p/pymol/mailman/message/7562444/

and DistancesRH 
(http://www.pymolwiki.org/index.php/DistancesRH)http://www.pymolwiki.org/index.php/DistancesRH

Is this current state-of-the-art, true-and-tried, or is there something more 
powerful hiding out there?

Thanks
Markus
--
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311iu=/4140/ostg.clktrk___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

--
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://p.sf.net/sfu/Zoho___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net


--
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push

Re: [PyMOL] Show all residues forming H-bonds

2014-10-10 Thread Sampson, Jared
Hi Markus -

Ah, sorry, I misunderstood your request at first.

What about the “acceptors” and “donors” selectors?  
http://www.pymolwiki.org/index.php/Single-word_Selectors

e.g.
select hbond_residues, byres ((acceptors within 3.5 of donors) or (donors 
within 3.5 of acceptors))

Cheers,
Jared

--
Jared Sampson
Xiangpeng Kong Lab
NYU Langone Medical Center
http://kong.med.nyu.edu/






On Oct 10, 2014, at 6:41 PM, Markus Heller 
mhel...@cdrd.camailto:mhel...@cdrd.ca wrote:

Hi Jared,

Thanks for the reply.

This is NOT what I’m looking for.  As you stated, distance mode 2 yields the 
*distances* as dashes, but not the actual residues.  I don’t want the dashes, 
but I want the residues (i.e. the donors and acceptors) in selectable objects.

I hope it’s clearer now what I’m after …

Cheers
M

From: Sampson, Jared [mailto:jared.samp...@nyumc.org]
Sent: Friday, October 10, 2014 3:33 PM
To: Markus Heller
Subject: Re: [PyMOL] Show all residues forming H-bonds

Hi Markus -

Under the GUI “action” menu A  find  polar contacts, you’ll find several 
options which will create a new object with all the specified distances as 
dashes.

This is also available with `distance` command.  
http://www.pymolwiki.org/index.php/Distance

Hope that helps.

Cheers,
Jared

--
Jared Sampson
Xiangpeng Kong Lab
NYU Langone Medical Center
http://kong.med.nyu.edu/





On Oct 10, 2014, at 2:45 AM, Markus Heller 
mhel...@cdrd.camailto:mhel...@cdrd.ca wrote:


Hello list,

subject says it all.  The 2 options I came across search the www are:

http://sourceforge.net/p/pymol/mailman/message/7562444/http://sourceforge.net/p/pymol/mailman/message/7562444/

and DistancesRH 
(http://www.pymolwiki.org/index.php/DistancesRH)http://www.pymolwiki.org/index.php/DistancesRH

Is this current state-of-the-art, true-and-tried, or is there something more 
powerful hiding out there?

Thanks
Markus
--
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311iu=/4140/ostg.clktrk___
PyMOL-users mailing list 
(PyMOL-users@lists.sourceforge.netmailto:PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

--
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://p.sf.net/sfu/Zoho___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

Re: [PyMOL] Show all residues forming H-bonds

2014-10-10 Thread Sampson, Jared
Actually, an even better option is Thomas’ polarpairs.py script: 
http://www.pymolwiki.org/index.php/Polarpairs, which considers the H-bond angle 
as well as distance.

Apologies for the multiple emails, but I hope that is closer to what you’re 
looking for.

Cheers,
Jared


On Oct 10, 2014, at 7:10 PM, Sampson, Jared 
jared.samp...@nyumc.orgmailto:jared.samp...@nyumc.org wrote:

Hi Markus -

Ah, sorry, I misunderstood your request at first.

What about the “acceptors” and “donors” selectors?  
http://www.pymolwiki.org/index.php/Single-word_Selectors

e.g.
select hbond_residues, byres ((acceptors within 3.5 of donors) or (donors 
within 3.5 of acceptors))

Cheers,
Jared

--
Jared Sampson
Xiangpeng Kong Lab
NYU Langone Medical Center
http://kong.med.nyu.edu/






On Oct 10, 2014, at 6:41 PM, Markus Heller 
mhel...@cdrd.camailto:mhel...@cdrd.ca wrote:

Hi Jared,

Thanks for the reply.

This is NOT what I’m looking for.  As you stated, distance mode 2 yields the 
*distances* as dashes, but not the actual residues.  I don’t want the dashes, 
but I want the residues (i.e. the donors and acceptors) in selectable objects.

I hope it’s clearer now what I’m after …

Cheers
M

From: Sampson, Jared [mailto:jared.samp...@nyumc.org]
Sent: Friday, October 10, 2014 3:33 PM
To: Markus Heller
Subject: Re: [PyMOL] Show all residues forming H-bonds

Hi Markus -

Under the GUI “action” menu A  find  polar contacts, you’ll find several 
options which will create a new object with all the specified distances as 
dashes.

This is also available with `distance` command.  
http://www.pymolwiki.org/index.php/Distance

Hope that helps.

Cheers,
Jared

--
Jared Sampson
Xiangpeng Kong Lab
NYU Langone Medical Center
http://kong.med.nyu.edu/





On Oct 10, 2014, at 2:45 AM, Markus Heller 
mhel...@cdrd.camailto:mhel...@cdrd.ca wrote:


Hello list,

subject says it all.  The 2 options I came across search the www are:

http://sourceforge.net/p/pymol/mailman/message/7562444/http://sourceforge.net/p/pymol/mailman/message/7562444/

and DistancesRH 
(http://www.pymolwiki.org/index.php/DistancesRH)http://www.pymolwiki.org/index.php/DistancesRH

Is this current state-of-the-art, true-and-tried, or is there something more 
powerful hiding out there?

Thanks
Markus
--
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311iu=/4140/ostg.clktrk___
PyMOL-users mailing list 
(PyMOL-users@lists.sourceforge.netmailto:PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

--
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://p.sf.net/sfu/Zoho___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

--
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://p.sf.net/sfu/Zoho___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

Re: [PyMOL] measure angles in programming

2014-09-24 Thread Sampson, Jared
Hi Lei -

The `get_angle` command needs an atom selection for your “tunnel atoms, which, 
like the B-factor as Matt mentioned, you can also get using `iterate`:

###

# create a list
stored.centers = []

# get the macro selection string for each atom in tunnel
cmd.iterate(tunnel, 'stored.centers.append(/%s/%s/%s/%s`%s/%s % (model, 
segi, chain, resn, resi, name))')

# loop through the list of centers and print each angle
for s in stored.centers:
angle = cmd.get_angle('start_point', 'end_point', s)
print %s: %3.2f % (s, angle)

###

Hope that helps.

Cheers,
Jared

--
Jared Sampson
Xiangpeng Kong Lab
NYU Langone Medical Center
http://kong.med.nyu.edu/






On Sep 24, 2014, at 6:52 PM, Matthew Baumgartner 
mp...@pitt.edumailto:mp...@pitt.edu wrote:

Hi,
you can just use the 'angle' command.

cmd.angle('angle1', 'start_point', 'end_point', a)

To print the b-factor you can use the iterate command
(http://www.pymolwiki.org/index.php/Iterate)
cmd.iterate('(a)', 'print b')

HTH,
Matt Baumgartner

On 09/24/2014 06:35 PM, rainfieldcn wrote:
Hi all,
I generate two pseudoatoms start_point and end_point by
center_of_mass.py. I load an object tunnel which has a sets of atoms
in one chain.
I want to measure the angle from each atoms in tunnel to end_point
to start_point. at the same time, I want to print the B-factor of
atoms in tunnel.
To measure the angle, I programmed like this,but it doesn't work.
I guess it's because get_angle function needs some particular variable
format.
By the way, how can I print the b factor of atom?
Thanks,
Lei

from pymol import cmd, stored
def vertical_distance( start_point, end_point, tunnel ):
centers = cmd.get_model(tunnel,1)
for a in centers.atom:
angle= cmd.get_angle(start_point, end_point,a)
print angle
return (start_point, end_point, tunnel)
cmd.extend( vertical_distance, vertical_distance );






--
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311iu=/4140/ostg.clktrk
___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net


--
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311iu=/4140/ostg.clktrk
___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

--
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311iu=/4140/ostg.clktrk___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

Re: [PyMOL] Access to pymol commands from the terminal

2014-09-22 Thread Sampson, Jared
Hi James -

On Sep 22, 2014, at 4:30 AM, James Starlight 
jmsstarli...@gmail.commailto:jmsstarli...@gmail.com wrote:

Hi Jared,


many thanks for the suggestion!
your method works perfect (i only slightly modified dir for input file)

# dock each model to the ligand
for pdb in $receptors/*.pdb; do
  filename=$(basename $pdb)
  M=${filename/.pdb/}
  echo Processing of ${M} is initiated...
  #remove water and ions; change EMD to TER
  grep -v ATOM.*\(WAT\|NA+\|Cl-\) $pdb | sed -e 's/^END/TER/g'  
${dirr}/temp/${M}_clean.pdb
  #superimsoposition using pymol against reference
  pymol $ref ${dirr}/temp/${M}_clean.pdb -c -q -d super $M, $R and resi 2-280; 
save ./superimposed/${M}_aligned.pdb, $M  ./superimposed/pymol_${M}.log
  cp $ref ./superimposed
done


Glad it worked for you.

two additional questions:

1) will it possible to use more flexibility in case of the selection of region 
for alignment in reference structure?
super $M, $R and resi 2-280
For instance I'd like to select all residues which are part of the alpha 
helixes of the reference. how it should be done?

Try `$R and resi 2-280 and ss h`.  See 
http://www.pymolwiki.org/index.php/Property_Selectors for more info.  (That 
page comes up as the very first result for me on Google with “pymol select 
secondary structure” as the search term.)

2) what advantages could give me tmalign method for the superimposition in 
comparison to super and ce programs? does the coordinates of the reference will 
not changed after alignment of each mobile on it (like fitting in case of 
super) ?

From the description here (http://www.pymolwiki.org/index.php/TMalign) that 
TMalign, like CEalign, can be useful for structures in the “twilight zone,” 
where sequence alignment by `align` or structural alignment by `super` may not 
provide a good fit.  For any of the programs, though, only the mobile 
structures should move; the target/reference coordinates should always remain 
unchanged.

Cheers,
Jared



James

2014-09-22 10:21 GMT+02:00 James Starlight 
jmsstarli...@gmail.commailto:jmsstarli...@gmail.com:
Hi Jared,


many thanks for the suggestion!
your method works perfect (i only slightly modified dir for input file)


2014-09-19 20:19 GMT+02:00 Sampson, Jared 
jared.samp...@nyumc.orgmailto:jared.samp...@nyumc.org:

Hi James -

I don’t have any experience with Profit.  However, instead of using something 
like” PyMOL’s `super` command as you asked, you could actually use `super` in 
your shell session by launching PyMOL in command line 
modehttp://www.pymolwiki.org/index.php/Command_Line_Options.  Of course, you 
would need to modify it according to your file naming scheme, but here’s a 
working example.

###
#!/bin/bash

REF=reference.pdb

# grab some related pdb files to use and make one of them the reference
# (obviously you won’t have to do this)
i=0
for pdb in 1bbd 7fab 1dba 1plg 1nl0; do
pymol -c -d fetch ${pdb}, mobile${i}, async=0; save mobile${i}.pdb
i=$((i+1))
done
mv mobile0.pdb $REF

# align all the mobile files to a selection in the reference file
i=1
for MOB in mobile*.pdb; do
# strip the extensions
R=$(echo $REF | sed 's/\.pdb$//')
M=$(echo $MOB | sed 's/\.pdb$//')

# superimpose and save aligned mobile coordinates
pymol $REF $MOB -c -q -d super $M, $R and resi 1-110; save 
${M}_aligned.pdb
done

pymol mobile*_aligned.pdb
###

You could also use CEalign if you need something citable, just switch the order 
of the arguments to it: `cealign $R and resi 1-110, $M`.

Hope that helps.

Cheers,
Jared

--
Jared Sampson
Xiangpeng Kong Lab
NYU Langone Medical Center
http://kong.med.nyu.edu/






On Sep 19, 2014, at 6:03 AM, James Starlight 
jmsstarli...@gmail.commailto:jmsstarli...@gmail.com wrote:

Dear all,

I still need some help regarding some algorithm for structural superimposition 
of my mobile structures regarding one specified reference using some fitting 
method (to avoid changing in the position of the reference.pdb which is very 
important for me!)=something like super command in pymol. Using ProFit I have 
faced with some errors during superimposition regarding the chosing reference 
(in case where there were some differences in the positions of ref and mob 
structures its alignment was not perfect (the mob had not been fully aligned on 
the ref) obtaining very big RMSD (20 A!) as the result although its actual 
value should be in range of 2-5 A. I'll be thankful for possible sollutions of 
this problem using Profit is there are users experienced with this software (mb 
it should to define fitting zones or atom subsets more accurately but I have no 
ideas here ) or any other alternatives which could be used as parts of the 
shell script.

James





--
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download

Re: [PyMOL] Access to pymol commands from the terminal

2014-09-19 Thread Sampson, Jared
Hi James -

I don’t have any experience with Profit.  However, instead of using something 
like” PyMOL’s `super` command as you asked, you could actually use `super` in 
your shell session by launching PyMOL in command line 
modehttp://www.pymolwiki.org/index.php/Command_Line_Options.  Of course, you 
would need to modify it according to your file naming scheme, but here’s a 
working example.

###
#!/bin/bash

REF=reference.pdb

# grab some related pdb files to use and make one of them the reference
# (obviously you won’t have to do this)
i=0
for pdb in 1bbd 7fab 1dba 1plg 1nl0; do
pymol -c -d fetch ${pdb}, mobile${i}, async=0; save mobile${i}.pdb
i=$((i+1))
done
mv mobile0.pdb $REF

# align all the mobile files to a selection in the reference file
i=1
for MOB in mobile*.pdb; do
# strip the extensions
R=$(echo $REF | sed 's/\.pdb$//')
M=$(echo $MOB | sed 's/\.pdb$//')

# superimpose and save aligned mobile coordinates
pymol $REF $MOB -c -q -d super $M, $R and resi 1-110; save 
${M}_aligned.pdb
done

pymol mobile*_aligned.pdb
###

You could also use CEalign if you need something citable, just switch the order 
of the arguments to it: `cealign $R and resi 1-110, $M`.

Hope that helps.

Cheers,
Jared

--
Jared Sampson
Xiangpeng Kong Lab
NYU Langone Medical Center
http://kong.med.nyu.edu/






On Sep 19, 2014, at 6:03 AM, James Starlight 
jmsstarli...@gmail.commailto:jmsstarli...@gmail.com wrote:

Dear all,

I still need some help regarding some algorithm for structural superimposition 
of my mobile structures regarding one specified reference using some fitting 
method (to avoid changing in the position of the reference.pdb which is very 
important for me!)=something like super command in pymol. Using ProFit I have 
faced with some errors during superimposition regarding the chosing reference 
(in case where there were some differences in the positions of ref and mob 
structures its alignment was not perfect (the mob had not been fully aligned on 
the ref) obtaining very big RMSD (20 A!) as the result although its actual 
value should be in range of 2-5 A. I'll be thankful for possible sollutions of 
this problem using Profit is there are users experienced with this software (mb 
it should to define fitting zones or atom subsets more accurately but I have no 
ideas here ) or any other alternatives which could be used as parts of the 
shell script.

James


--
Slashdot TV.  Video for Nerds.  Stuff that Matters.
http://pubads.g.doubleclick.net/gampad/clk?id=160591471iu=/4140/ostg.clktrk___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

Re: [PyMOL] Access to pymol commands from the terminal

2014-09-11 Thread Sampson, Jared
Hi James -

What version of PyMOL are you using?  For me, using Open Source PyMOL 1.7.2.0, 
a typical PDB file I tested ends up with more information in that column, not 
less, after saving from PyMOL:

Before:
ATOM   1312  NH1 ARG A 198   0.544  14.093  19.655  1.00 34.61   N

After:
ATOM   1312  NH1 ARG A 198   0.544  14.093  19.655  1.00 34.61   N1+

Are you sure the column is there in your input file, and hasn’t been removed 
before loading into PyMOL?

Cheers,
Jared

--
Jared Sampson
Xiangpeng Kong Lab
NYU Langone Medical Center
http://kong.med.nyu.edu/






On Sep 11, 2014, at 5:36 AM, James Starlight 
jmsstarli...@gmail.commailto:jmsstarli...@gmail.com wrote:

I guess I've passed superimpoition- it works great - with the one exception- 
after fitting to ref.pdb the last colum (consisted of the atom names like C, N, 
O etc) from the each fitted mobile.pdb has been removed. I need to keep this 
column on the resulted pdb because I'll use this pdb as the initial structure 
for the autodock docking (actually I do superimposition because I have had all 
input docking parameters including XYZ of the cavity for the ref structure). If 
the last column is missed I have promblems with the pdb2pdbqt conversion of the 
mobile_fit.pdb using babel. I'll thankful to everyone who have faced with the 
same problem and could provide me with some suggestions.


Thank for help,

James

2014-09-09 12:35 GMT+04:00 James Starlight 
jmsstarli...@gmail.commailto:jmsstarli...@gmail.com:
Thanks Markus, I'll try to examine it!

Jed,

the main problem with the profit is that I need to superimpose structures in 
loop which are not always has the same sequence length. Is it possible to 
superimpose each structure based on some common criterium found for each mobile 
and reference automatically?

Kind regards,

James

2014-09-08 20:32 GMT+04:00 Markus Heller 
mhel...@cdrd.camailto:mhel...@cdrd.ca:
Shot in the dark, based on reading “ensemble of the structures” and “ProFit”:

http://www.ncbi.nlm.nih.gov/pmc/articles/PMC2828896/

CARON – Average RMSD of NMR structure ensemble

Hope that helps!

Markus

From: James Starlight 
[mailto:jmsstarli...@gmail.commailto:jmsstarli...@gmail.com]
Sent: Monday, September 08, 2014 6:52 AM
To: pymol-users
Subject: Re: [PyMOL] Access to pymol commands from the terminal

Ok, ProFit has been passed :D
Now I'm looking for some software which could do the same least-square fitting 
for the ensemble of the structures taken it as the separate pdbs from the work 
dir (I'm not sure if the mustang software could be useful for this task)= 
because looping using ProFit might be not good for me because each time I need 
to provide new atom selection for the superimposition  for each model in the 
ProFit's script file.
James

2014-09-07 11:11 GMT+02:00 Maciek Dziubiński 
pona...@gmail.commailto:pona...@gmail.com:

Boo
7 wrz 2014 09:26 Jamesno Starligois ht 
jmsstarli...@gmail.commailto:jmsstarli...@gmail.comnapisał napisał(a):


 Thomas,thanks for help- I'll try to test your script!

 Jed, many thanks too!

 if I understood correctly align.profit should contain thefollowing lines:

 # using ProFIT to align the model to 2hi4
 open $PROFIT,  align.profit or die Cannot open file align.profit\n;
 print $PROFIT ATOMS CA\n;
 print $PROFIT ZONE 34-513:1-480\n;
 print $PROFIT FIT\n;
 print $PROFIT WRITE $folder/$dir/$pdbnew\n;
 close $PROFIT;

 shouldn't it?

 that that file is provided to 1 command line
 `profit -f align.profit -h /home/jedgold/modelling/NAMD/2hi4.pdb 
 $folder/$dir/$pdbnew`;
 where 2hi4.pdb is my ref
 $pdbnew variable assosiated with the target pdb

 one question about align.profit: will the output aligned mobile.pdb consist 
 of all atoms? I've found that only CA atoms are used for the superimposition
 print $PROFIT ATOMS CA\n;


 James


 --
 Slashdot TV.
 Video for Nerds.  Stuff that matters.
 http://tv.slashdot.org/
 ___
 PyMOL-users mailing list 
 (PyMOL-users@lists.sourceforge.netmailto:PyMOL-users@lists.sourceforge.net)
 Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
 Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net
7 wrz 2014 09:26 James Starlight 
jmsstarli...@gmail.commailto:jmsstarli...@gmail.com napisał(a):
Thomas,thanks for help- I'll try to test your script!

Jed, many thanks too!

if I understood correctly align.profit should contain thefollowing lines:

# using ProFIT to align the model to 2hi4
open $PROFIT,  align.profit or die Cannot open file align.profit\n;
print $PROFIT ATOMS CA\n;
print $PROFIT ZONE 34-513:1-480\n;
print $PROFIT FIT\n;
print $PROFIT WRITE $folder/$dir/$pdbnew\n;
close $PROFIT;

shouldn't it?

that that file is provided to 1 command line
`profit -f align.profit -h /home/jedgold/modelling/NAMD/2hi4.pdb 
$folder/$dir/$pdbnew`;

Re: [PyMOL] cartoon and line representation

2014-09-02 Thread Sampson, Jared
Hi Yeping -

I’m unable to reproduce the behavior you’re seeing—using your commands in Open 
Source PyMOL 1.7.2.0, I get the whole capsid displayed properly as a cartoon.  
What version of PyMOL are you using?

You could also try using the `all_states` setting instead:

fetch 3j2v, type=pdb1, async=0
set all_states, 1
orient
as cartoon

Cheers,
Jared

--
Jared Sampson
Xiangpeng Kong Lab
NYU Langone Medical Center
http://kong.med.nyu.edu/






On Sep 2, 2014, at 6:20 AM, sunyeping 
sunyep...@aliyun.commailto:sunyep...@aliyun.com wrote:

Dear all

I want to display structures which contains numerous chains such as viruses in 
pymol. I find these sturctures can be displayed normally as line 
representation. However, when I show them as cartoon, usually only one chain 
can be displayed, and usually it is cartoon loop rather than the normal 
cartoon. It there any way to display the whole structute as cartoon?

For example, I display the HBV capsid in pymol by the follow commands:

fetch 3j2v, type=pdb1, async=0

split_states 3j2v

delete 3j2v

orient

The whole virus capsid appeared as line representation. Then I type:

Hide everything
show cartoon

Only one chain shown as cartoon loop in pymol


Thanks in advance.



Yeping Sun

Institute of Microbiology, Chinese Academy of Sciences

--
Slashdot TV.
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

--
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

Re: [PyMOL] Other coloring strategies based on user-provided properties

2014-08-29 Thread Sampson, Jared
Hi Chen -

As you guessed, this is commonly done by modifying the B-factor column 
directly.  You can do this with data available to you in PyMOL (e.g. distances, 
charges, and so forth) using alterhttp://pymolwiki.org/index.php/Alter and 
iteratehttp://pymolwiki.org/index.php/Iterate  and a few other related 
commands.  There are examples on the wiki to help as well.

For other types of information, you can modify the B-factor column values 
directly in a text editor or other program.

In either case, your last step will likely include the 
spectrumhttp://pymolwiki.org/index.php/Spectrum command.

Good luck!

Cheers,
Jared

--
Jared Sampson
Xiangpeng Kong Lab
NYU Langone Medical Center
http://kong.med.nyu.edu/






On Aug 29, 2014, at 12:25 PM, Chen Zhao 
chenzhaoh...@gmail.commailto:chenzhaoh...@gmail.com wrote:

Dear all,

I am thinking whether it is possible to color a molecule by a specific property 
residue-wise or atom-wise like generally be done on B-factor? This property 
could be provided as numbers in a column. An obvious way might just be to 
change the B-factor column to the user-provided column and color by B-factor. 
But I am wondering whether there are some direct ways of doing this.

Best,
Chen
--
Slashdot TV.
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

--
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

Re: [PyMOL] Show cation-pi/pi-pi interactions

2014-08-13 Thread Sampson, Jared
Hi Markus -

It’s already possible to highlight polar interactions using the `distance` 
command with mode=2.  http://www.pymolwiki.org/index.php/Distance

For pi-cation stacking, it might be useful to create pseudo atoms at the 
average position of the atoms in each charged group or ring in question (e.g. 
`pseudoatom ring_Y102, resi 102 and name CG+CD1+CD2+CE1+CE2+CZ`) and use them 
to create sensibly positioned distance dashes between them.

Cheers,
Jared

--
Jared Sampson
Xiangpeng Kong Lab
NYU Langone Medical Center
http://kong.med.nyu.edu/


On Aug 13, 2014, at 4:59 PM, Markus Heller 
mhel...@cdrd.camailto:mhel...@cdrd.ca wrote:

Hello,

There's a thread in the PyMol Wiki (http://www.pymolwiki.org/index.php/Ideas) 
that mentions the possible implementation of functionality to highlight 
H-bonds, salt bridges, Pi-stacking, Pi-cations.  Has such a thing been 
implemented yet, and if not, what's the current status?

Thanks and Cheers
Markus

--
Markus Heller, Ph.D.
NMR Scientist
CDRD - The Centre for Drug Research and Development
2405 Wesbrook Mall, Fourth Floor | Vancouver, BC  V6T 1Z3 | Main: (604) 827-1147
Direct: (604) 827-1122 | F: (604) 827-1299 | E: 
mhel...@cdrd.camailto:mhel...@cdrd.ca | www.cdrd.cahttp://www.cdrd.ca






Follow us:

This email and any files transmitted with it are confidential and intended 
solely for the addressee.  If you are not the named addressee you should not 
disseminate, distribute, copy, or alter this email.



--
___
PyMOL-users mailing list 
(PyMOL-users@lists.sourceforge.netmailto:PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net


This email message, including any attachments, is for the sole use of the 
intended recipient(s) and may contain information that is proprietary, 
confidential, and exempt from disclosure under applicable law. Any unauthorized 
review, use, disclosure, or distribution is prohibited. If you have received 
this email in error please notify the sender by return email and delete the 
original message. Please note, the recipient should check this email and any 
attachments for the presence of viruses. The organization accepts no liability 
for any damage caused by any virus transmitted by this email.
=
--
___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

Re: [PyMOL] RMSD for selected residues

2014-08-12 Thread Sampson, Jared
Hi Nidhi -

The “Align” feature in the GUI uses PyMOL's `align` command, which performs a 
sequence alignment to use as the basis for structural alignment.  It only uses 
those residues which match exactly, which can throw off the RMSD.  Try using 
`super` or `cealign` instead, which are structural alignments.  For example, 
assuming you have named selections for your active site residues:

super active_site_1, active_site_2

With `super`, the first selection is mobile, and is superimposed onto the 
second selection.  For `cealign`, switch the order of the arguments.

http://www.pymolwiki.org/index.php/Super
http://www.pymolwiki.org/index.php/Cealign

Cheers,
Jared

(Also, sorry for the duplicate message—I forgot to Reply All the first time.)
--
Jared Sampson
Xiangpeng Kong Lab
NYU Langone Medical Center
http://kong.med.nyu.edu/






On Aug 9, 2014, at 6:12 AM, Nidhi Jatana 
nidhijat...@bic-svc.ac.inmailto:nidhijat...@bic-svc.ac.in wrote:

Dear Sir/Madam

I have generated five models for a protein and I wanted to check the RMSD of 
only the binding site residues. I have the list of binding site residues. I 
tried using this through graphics by selecting the residues and then aligning 
by selection but somehow its giving me a higher RMSD than the entire structure 
but this should not happen. What is the other way to align specific residues?


Thanking you

Regards

[https://ssl.gstatic.com/ui/v1/icons/mail/images/cleardot.gif]--
Nidhi Jatana
Senior Research Fellow
Bioinformatics Center
Sri Venkateswara College
(University of Delhi)
Dhaula Kuan
New Delhi-110021.
--
___
PyMOL-users mailing list 
(PyMOL-users@lists.sourceforge.netmailto:PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

--
___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

Re: [PyMOL] Problems with superposing small molecules and transformation

2014-08-05 Thread Sampson, Jared
Hi German -

I’m not sure I follow exactly what you’re asking, but `align` does its 
superimposition based on sequence alignment, which isn’t really meaningful for 
small molecule ligands.  I would suggest using `fit`, `super`, or `cealign` 
instead, which all use just the coordinates, although it’s possible these also 
won’t work.

For a more sophisticated approach, maybe check out LigAlign, which comes with a 
tutorial: http://www.pymolwiki.org/index.php/LigAlign.

Cheers,
Jared

--
Jared Sampson
Xiangpeng Kong Lab
NYU Langone Medical Center
http://kong.med.nyu.edu/






On Aug 5, 2014, at 10:04 AM, German Erlenkamp 
erlenk...@uni-duesseldorf.demailto:erlenk...@uni-duesseldorf.de wrote:

Hi all,

I have two sets of ligands, the first are the crystal structures, the second
one are the same compounds, but aligned by a flexible ligand alignment, where
I used one of the crystal structures as a template. Unfortunately the
coordinates of the templates changed during the alignment.
Now I want to calculate the RMSD-values between these structures, and for this
I want to superpose the group of aligned ligands to the template ligand.
I started with 'align Aligned_1, Start_1' but after this command, all atoms of
'Aligned_1' vanished and I can only represent this as a sphere. This will be
Ok for me, because the RMSD between 'Aligned_1' and 'Start_1' is 0.
But after this I want to move 'Aligned_2' the same way as I moved 'Aligned_1'.
I thought 'matrix_copy Alinged_1, Start_1' should do the job, but after this
all atoms of 'Aligned_2' are gone. I still have this object, but nothing more.

My questions are: Am I using the correct commands for this task, or not? And, if
I am using the right commands, what is going wrong? And - for the case my way
is not correct - what would be the proper way to solve my problem?

Thanks in advance,

German
--
German Erlenkamp

Computational Pharmaceutical Chemistry
and Molecular Bioinformatics

Heinrich-Heine-Universität Düsseldorf
Institut für Pharmazeutische und Medizinische Chemie
Universitätsstr. 1
40225 Düsseldorf
Germany

Tel:+49-211-81-13829
E-Mail: erlenk...@uni-duesseldorf.demailto:erlenk...@uni-duesseldorf.de
URL:http://cpclab.uni-duesseldorf.de


--
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls.
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071iu=/4140/ostg.clktrk
___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

--
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls. 
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071iu=/4140/ostg.clktrk___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

Re: [PyMOL] How to show the surface border of a specific residue?

2014-07-24 Thread Sampson, Jared
Hi Ooker -

As I understand it, you want to overlay a line to show which part of the 
surface belongs to which residue.  There is currently no way to do this 
directly within PyMOL.  However, is possible to achieve something similar using 
multiple layers in a composite image.  See this previous thread: 
https://www.mail-archive.com/pymol-users@lists.sourceforge.net/msg12281.html

I’ve also just created a page on the PyMOL Wiki with an example:  
http://www.pymolwiki.org/index.php/Outline

Hope that helps.

Cheers,
Jared

--
Jared Sampson
Xiangpeng Kong Lab
NYU Langone Medical Center
http://kong.med.nyu.edu/






On Jul 24, 2014, at 10:15 AM, Ooker 
ganuongp...@gmail.commailto:ganuongp...@gmail.com wrote:

I have a potential map of a protein and I would like to have a border
between a specific residue while the map keeps unchanged.

I have thought about making a new object of the residue and tried to
find a command similar to:

set label_outline_color, black

but I can't find one.

Do you have any ideas? Thank you so much.

--
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net


This email message, including any attachments, is for the sole use of the 
intended recipient(s) and may contain information that is proprietary, 
confidential, and exempt from disclosure under applicable law. Any unauthorized 
review, use, disclosure, or distribution is prohibited. If you have received 
this email in error please notify the sender by return email and delete the 
original message. Please note, the recipient should check this email and any 
attachments for the presence of viruses. The organization accepts no liability 
for any damage caused by any virus transmitted by this email.
=
--
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

Re: [PyMOL] FW: RE: what is the pymol representation in this figure?

2014-07-11 Thread Sampson, Jared
Hi Yeping -

I followed  Jared's instruction and then show surface, but the surface is still 
an incomplete plane, unlike what I wish as in the sample.

You will probably have to create new objects for those individual residues to 
show their surfaces in whole.  Otherwise, you only get the portion of the whole 
object’s surface belonging to each residue.  Use the 
`create`http://www.pymolwiki.org/index.php/Create command to duplicate a 
selection as a new object.

create peptide_surface_residues, chain P and resi 3+5
create protein_surface_residues, chain A and resi 97+114+116+156
show surface, *_surface_residues

There is also `extract`http://www.pymolwiki.org/index.php/Extract, which does 
the same thing, but removes the selection from the original object.  That’s 
good for separating out ligands.

And I have another question:

I show a residue in a helix of cartoon representation as sticks, and give it a 
color different from the cartoons of the helix, but the new color extented to 
the helix. How chould I prevent this happening? cartoon_discrete_colors seems 
doesn't work.


You picked the wrong cartoon color setting.  :)

`cartoon_discrete_colors`http://www.pymolwiki.org/index.php/Cartoon_discrete_colors
 controls where and how the color changes if two residues are colored 
differently in a cartoon.  When set to 1 (or `on`), the color changes abruptly 
between two residues.  When 0 (or `off`), there is a smooth gradient between 
the two colors.


To change the color of the cartoon for a selection, use the 
`cartoon_color`http://www.pymolwiki.org/index.php/Cartoon_color setting:

set cartoon_color, blue, resi 1-100

Hope that helps.

Cheers,
Jared


Dear Yeping,
you should check Jared's reponse to your message.
I think he gave you all the hints you need.
:)
Gian


Guess I missed one.  :)

On 7/11/14 8:27 AM, sunyeping wrote:

 发送时间:2014年7月10日(星期四) 21:20
 收件人:pymol-users 
 pymol-users@lists.sourceforge.netmailto:pymol-users@lists.sourceforge.net
 主 题:Re: [PyMOL] what is the pymol representation in this figure?

 It should be a solid surface with transparency on,
 if I'm not getting it wrong.

 Dear Gianluca,

 Thank you for the response, but how to set the side chain of the
 selected residues as solid surface? I used the command

 show surface, sele

 but the surface appears not like the sample figure in which there seems
 to be a 3D volume around the sticks representations of the side chains,
 instead, the surface shown is just a plane aside the sticks
 representation. So what is the proper way to obtain the effects in the
 sample figure?

 Best Regards.

 Yeping

 On 7/10/14 12:40 PM, sunyeping wrote:
  Dear all,
 
  Could anyone tell me how the figure attached to the following web site
  or the attach file is drawn? In What pymol repersentation of the
  residues is shown?
 
  http://cashero.lingw.net/
 
  Yeping Sun
 
 
 
 
 
 
 --
  Open source business process management suite built on Java and Eclipse
  Turn processes into business applications with Bonita BPM Community
 Edition
  Quickly connect people, data, and systems into organized workflows
  Winner of BOSSIE, CODIE, OW2 and Gartner awards
  http://p.sf.net/sfu/Bonitasoft
 
 
 
  ___
  PyMOL-users mailing list 
  (PyMOL-users@lists.sourceforge.netmailto:PyMOL-users@lists.sourceforge.net)
  Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
  Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net
 


 --
 Gianluca Santoni,
 Dynamop Group
 Institut de Biologie Structurale
 6 rue Jules Horowitz
 38027 Grenoble Cedex 1
 France
 _
 Please avoid sending me Word or PowerPoint attachments.
 See http://www.gnu.org/philosophy/no-word-attachments.html

 --
 Open source business process management suite built on Java and Eclipse
 Turn processes into business applications with Bonita BPM Community Edition
 Quickly connect people, data, and systems into organized workflows
 Winner of BOSSIE, CODIE, OW2 and Gartner awards
 http://p.sf.net/sfu/Bonitasoft
 ___
 PyMOL-users mailing list 
 (PyMOL-users@lists.sourceforge.netmailto:PyMOL-users@lists.sourceforge.net)
 Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
 Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net


--
Gianluca Santoni,
Dynamop Group
Institut de Biologie Structurale
6 rue Jules Horowitz
38027 Grenoble Cedex 1
France
_
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html

--
Open source business process management suite built on Java and 

Re: [PyMOL] command question RE printing out distances to text file

2014-06-17 Thread Sampson, Jared
Hi Suzanne - The reason you have been getting only one distance in your output 
file is that your script is opening the file in “write” mode:

f=open('distnew.txt','w')

This will overwrite the contents of distnew.txt each time the script is run.  
If you want to keep all the distances without changing the rest of your script, 
you could open the file in “append” mode.

f=open('distnew.txt',’a’)

This way, each line will just get added to the bottom of the script.  Keep in 
mind that if you want to start over with a new list of distances, you’ll need 
either to change the filename that gets opened (as you’ve done with 
“distnew.txt”) or delete the existing file.  For this reason, I would go with 
one of the other approaches mentioned by Andreas, or look into using a list to 
define the atoms to which you’d like to measure the distance from the first 
atom, and loop through that list.  Perhaps something like this (untested) bit 
of script would be useful, especially if you have many different atoms to check:


first_atom = 'B///297/cb'
second_atoms_list = ['A///17/cb', 'A///18/cb', 'A///19/cb']

with open(dist.txt, 'w') as f:
for second_atom in second_atoms_list:
f.write(%8.3f\n % cmd.distance(tmp, first_atom, second_atom))


Good luck!

Cheers,
Jared

On Jun 17, 2014, at 2:21 PM, Lapolla, Suzanne M (HSC) 
suzanne-lapo...@ouhsc.edumailto:suzanne-lapo...@ouhsc.edu wrote:

Another follow up question to this. I decided to use the measure distance 
python script on the pymol wiki to do this, and I was able to do it 
successfully with a range of residues, but my question is about the output txt 
file. When I run the script I get the correct distances (all 3 of them) to show 
on the GUI but the text file that is generated (distnew.txt) only lists one 
distance--so perhaps the script needs to be modified for this as well for the 
residues measured?

The original script is at the link 
http://www.pymolwiki.org/index.php/Measure_Distance
and my modified version is below. Suggestions appreciated! Thank you.

# This script writes the distance from
# atom mol1///25/ha to atom mol1///26/ha
# out to the file dist.txt
# Simply change your selections to see different distances.

# import PyMOL's command namespace
from pymol import cmd

# open dist.txt for writing
f=open('distnew.txt','w')

# calculate the distance and store it in dst
dst=cmd.distance('tmp','B///297/cb','A///17-19/cb')

# write the formatted value of the distance (dst)
# to the output file
f.write(%8.3f\n%dst)

# close the output file.
f.close()

From: Robert Campbell 
[robert.campb...@queensu.camailto:robert.campb...@queensu.ca]
Sent: Monday, June 09, 2014 10:04 AM
To: pymol-users@lists.sourceforge.netmailto:pymol-users@lists.sourceforge.net
Subject: Re: [PyMOL] command question RE printing out distances to text file

Hi Suzanne,

You can also get the distance printed in the external GUI or terminal window
by using the cmd.distance version of the command.  So either you can
assign the distance to a variable and print it or you can print the result
directly.

Assuming you have two selections, sele1 and sele2 specifying the atoms of
interest you can do:

 d = cmd.distance(sele1,sele2)
 print sele1,sele2,d


Cheers,
Rob

On Mon, 2014-06-09
13:13 EDT, Thomas Holder 
thomas.hol...@schrodinger.commailto:thomas.hol...@schrodinger.com wrote:

Hi Suzanne,

you can use the get_distance command. It doesn't generate a distance
object but prints the distance to the external window.

https://urldefense.proofpoint.com/v1/url?u=http://pymolwiki.org/index.php/Get_Distancek=7DHVT22D9IhC0F3WohFMBA%3D%3D%0Ar=1ciN0EuZ9XNq3lPnYtgkI5sKPXgKVaywidBN0C981SQ%3D%0Am=fr2bAoLQoVgp9h2t2fgBvfGVVX7oQ1g14g1AODFz%2FRg%3D%0As=921f4dfed39cd38f4ae7a70dfb937844d4e3faf1bc967c2f4d1f2944fa2ea31b

Cheers,
 Thomas

On 06 Jun 2014, at 23:03, Lapolla, Suzanne M (HSC)
suzanne-lapo...@ouhsc.edumailto:suzanne-lapo...@ouhsc.edu wrote:

Fellow Pymol Users:
I may have asked this question before...but if so have forgotten. I am
measuring distances between 2 atoms in 2 different objects using the
distance command, and it is working perfectly, but I wonder if there is
a command I can use/add so that those distances can be printed in the
external gui as well as being shown in the viewer. I will be doing lots
of these at the same time and the screen will get crowded. Thank you in
advance.





--
Robert L. Campbell, Ph.D.
Senior Research Associate/Adjunct Assistant Professor
Dept. of Biomedical  Molecular Sciences
Botterell Hall Rm 644
Queen's University,
Kingston, ON K7L 3N6  Canada
Tel: 613-533-6821
robert.campb...@queensu.camailto:robert.campb...@queensu.ca
https://urldefense.proofpoint.com/v1/url?u=http://pldserver1.biochem.queensu.ca/~rlck=7DHVT22D9IhC0F3WohFMBA%3D%3D%0Ar=1ciN0EuZ9XNq3lPnYtgkI5sKPXgKVaywidBN0C981SQ%3D%0Am=fr2bAoLQoVgp9h2t2fgBvfGVVX7oQ1g14g1AODFz%2FRg%3D%0As=aaad7877cf1640401ae708b7b5f5a2fbe03abec4d2f0ef509e7360c0017ee225


Re: [PyMOL] filled rings

2014-06-16 Thread Sampson, Jared
Hi H. Adam -

Try the cartoon_ring_color setting.  You can do this per-selection as well.

set cartoon_ring_color, blue, my_selection

Hope that helps!

Cheers,
Jared

--
Jared Sampson
Xiangpeng Kong Lab
NYU Langone Medical Center
http://kong.med.nyu.edu/






On Jun 16, 2014, at 4:57 PM, H. Adam Steinberg 
h.adam.steinb...@gmail.commailto:h.adam.steinb...@gmail.com wrote:

Hi All,

Somehow I have turned on or adjusted a setting and cannot figure out what it is 
or how to turn it off.

All of the rings in my nucleic acid structures are filled (and that is okay) 
but they are all filled with green! They are not filled with the same color as 
the rest of the base.

Can anyone help?

Sample image attached…

green ring.jpg

H. Adam Steinberg
7904 Bowman Rd
Lodi, WI 53555
608/592-2366

--
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing  Easy Data Exploration
http://p.sf.net/sfu/hpccsystems___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net


This email message, including any attachments, is for the sole use of the 
intended recipient(s) and may contain information that is proprietary, 
confidential, and exempt from disclosure under applicable law. Any unauthorized 
review, use, disclosure, or distribution is prohibited. If you have received 
this email in error please notify the sender by return email and delete the 
original message. Please note, the recipient should check this email and any 
attachments for the presence of viruses. The organization accepts no liability 
for any damage caused by any virus transmitted by this email.
=
--
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing  Easy Data Exploration
http://p.sf.net/sfu/hpccsystems___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

Re: [PyMOL] Visualize Sheets from C-alpha Only Structure

2014-06-04 Thread Sampson, Jared
Hi Sean -

I can confirm this behavior, but I’m not sure it’s unintentional on PyMOL’s 
part.  Rather, I think it may have something to do with two facts: 1) unlike 
loops, sheets represented in automatic mode are not radially symmetric; and 2) 
unlike helices, the orientation of the sheet at a particular CA atom cannot be 
determined by its immediate neighbors.  I haven’t had a chance to look at the 
relevant source, so I can’t confirm this at the moment, but it seems likely to 
me that PyMOL uses the other (non-CA) backbone atoms to define the “flat” plane 
of a sheet, and without this information, instead of guessing at its 
orientation, it omits the sheet entirely.  (This also appears to be the case 
for other non-radially symmetric modes, including dumbbell, rectangle, and 
oval.)

Could you get by using different colors to indicate your SS assignments in 
another cartoon mode?

Cheers,
Jared

Jared Sampson
Xiangpeng Kong Lab
NYU Langone Medical Center
http://kong.med.nyu.edu/






On Jun 4, 2014, at 1:50 PM, Sean Law 
magic...@hotmail.commailto:magic...@hotmail.com wrote:

Hi PyMOLers,

I have a c-alpha only model and I would like to visualize both helices and 
sheets based on my own custom SS assignments (via alter). Altering a 
residue's SS assignment to helix or loop (ss=H or ss=L) is fine and can be 
visualized. However, altering a residue's SS assignment to sheet (ss=S) 
causes that residue to disappear. Again, this is c-alpha only and I am 
visualizing in cartoon automatic mode.

Any suggestions for visualizing the sheets in this case would be greatly 
appreciated.

Best,

Sean
--
Learn Graph Databases - Download FREE O'Reilly Book
Graph Databases is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech___
PyMOL-users mailing list 
(PyMOL-users@lists.sourceforge.netmailto:PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net


This email message, including any attachments, is for the sole use of the 
intended recipient(s) and may contain information that is proprietary, 
confidential, and exempt from disclosure under applicable law. Any unauthorized 
review, use, disclosure, or distribution is prohibited. If you have received 
this email in error please notify the sender by return email and delete the 
original message. Please note, the recipient should check this email and any 
attachments for the presence of viruses. The organization accepts no liability 
for any damage caused by any virus transmitted by this email.
=
--
Learn Graph Databases - Download FREE O'Reilly Book
Graph Databases is the definitive new guide to graph databases and their 
applications. Written by three acclaimed leaders in the field, 
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

Re: [PyMOL] Visualize Sheets from C-alpha Only Structure

2014-06-04 Thread Sampson, Jared
Hi Sean -

By “radially symmetric” I mean that a particular representation (e.g. anything 
in cartoon tube or putty modes, or loops in automatic mode) is drawn as a 
series of truncated cylinders or cones, so for PyMOL to draw them, basically 
all it needs for each short section are two end points and a radius (or start 
and end radii, in the case of the cones).  If you zoom in really close, you can 
actually see the boundaries between individual sections.

This differs from sheets in automatic, oval, rectangle, and dumbbell modes, 
because those require extra information to define the orientation of the 
“width” and “height” dimensions of the section with respect to the “length” 
axis (the one along the trace of the cartoon).

Hope that helps.

Cheers,
Jared

--
Jared Sampson
Xiangpeng Kong Lab
NYU Langone Medical Center
http://kong.med.nyu.edu/






On Jun 4, 2014, at 4:17 PM, Sean Law 
magic...@hotmail.commailto:magic...@hotmail.com wrote:

Jared,

For now, we are using different colors to indicate the SS assignments but it's 
not pretty. We would prefer to show the SS for both sheets and helices.

Can you elaborate on what you mean by radially symmetric. Are there other 
cartoon modes where I would be able to get both helices and sheets after 
altering the residue's SS assignment by hand? I see what you mean by not being 
able to define the flat plane though.

Best,

Sean


From: jared.samp...@nyumc.orgmailto:jared.samp...@nyumc.org
To: magic...@hotmail.commailto:magic...@hotmail.com
CC: pymol-users@lists.sourceforge.netmailto:pymol-users@lists.sourceforge.net
Subject: Re: [PyMOL] Visualize Sheets from C-alpha Only Structure
Date: Wed, 4 Jun 2014 20:03:54 +

Hi Sean -

I can confirm this behavior, but I’m not sure it’s unintentional on PyMOL’s 
part.  Rather, I think it may have something to do with two facts: 1) unlike 
loops, sheets represented in automatic mode are not radially symmetric; and 2) 
unlike helices, the orientation of the sheet at a particular CA atom cannot be 
determined by its immediate neighbors.  I haven’t had a chance to look at the 
relevant source, so I can’t confirm this at the moment, but it seems likely to 
me that PyMOL uses the other (non-CA) backbone atoms to define the “flat” plane 
of a sheet, and without this information, instead of guessing at its 
orientation, it omits the sheet entirely.  (This also appears to be the case 
for other non-radially symmetric modes, including dumbbell, rectangle, and 
oval.)

Could you get by using different colors to indicate your SS assignments in 
another cartoon mode?

Cheers,
Jared

Jared Sampson
Xiangpeng Kong Lab
NYU Langone Medical Center
http://kong.med.nyu.edu/






On Jun 4, 2014, at 1:50 PM, Sean Law 
magic...@hotmail.commailto:magic...@hotmail.com wrote:

Hi PyMOLers,

I have a c-alpha only model and I would like to visualize both helices and 
sheets based on my own custom SS assignments (via alter). Altering a 
residue's SS assignment to helix or loop (ss=H or ss=L) is fine and can be 
visualized. However, altering a residue's SS assignment to sheet (ss=S) 
causes that residue to disappear. Again, this is c-alpha only and I am 
visualizing in cartoon automatic mode.

Any suggestions for visualizing the sheets in this case would be greatly 
appreciated.

Best,

Sean
--
Learn Graph Databases - Download FREE O'Reilly Book
Graph Databases is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech___
PyMOL-users mailing list 
(PyMOL-users@lists.sourceforge.netmailto:PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: 
http://www.mail-archive.com/pymol-users@lists.sourceforge.nethttp://www.mail-archive.com/pymol-users%40lists.sourceforge.net


This email message, including any attachments, is for the sole use of the 
intended recipient(s) and may contain information that is proprietary, 
confidential, and exempt from disclosure under applicable law. Any unauthorized 
review, use, disclosure, or distribution is prohibited. If you have received 
this email in error please notify the sender by return email and delete the 
original message. Please note, the recipient should check this email and any 
attachments for the presence of viruses. The organization accepts no liability 
for any damage caused by any virus transmitted by this email.
=


This email message, including any attachments, is for the sole use of the 
intended recipient(s) and may contain information that is proprietary, 
confidential, and exempt 

Re: [PyMOL] how to count all the Polar contacts

2014-05-27 Thread Sampson, Jared
Hi Merlin -

Try limiting the distances shown to those between atoms in specific selections 
using the `distance` command.  For example, to show H-bonds to solvent, disable 
the “my_obj_pol_conts” object created by the technical preset and use the 
command:

distance my_dist, my_obj and not solvent, my_obj and solvent, cutoff=3.5

Make sure to specify a cutoff or you’ll get every pair of polar atoms between 
your selections.

Hope that helps.

Cheers,
Jared
--
Jared Sampson
Xiangpeng Kong Lab
NYU Langone Medical Center
http://kong.med.nyu.edu/






On May 27, 2014, at 3:33 AM, 天元 422294...@qq.commailto:422294...@qq.com 
wrote:


Dear PyMol users!


I'm analysing polar contacts by preset:technical. I got so many yellow bar 
measurements that I can't count the number.

IS there any else way to count the number of all polar contacts ?

Thanks for help,


Merlin

--
The best possible search technologies are now affordable for all companies.
Download your FREE open source Enterprise Search Engine today!
Our experts will assist you in its installation for $59/mo, no commitment.
Test it for FREE on our Cloud platform anytime!
http://pubads.g.doubleclick.net/gampad/clk?id=145328191iu=/4140/ostg.clktrk___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net


This email message, including any attachments, is for the sole use of the 
intended recipient(s) and may contain information that is proprietary, 
confidential, and exempt from disclosure under applicable law. Any unauthorized 
review, use, disclosure, or distribution is prohibited. If you have received 
this email in error please notify the sender by return email and delete the 
original message. Please note, the recipient should check this email and any 
attachments for the presence of viruses. The organization accepts no liability 
for any damage caused by any virus transmitted by this email.
=
--
The best possible search technologies are now affordable for all companies.
Download your FREE open source Enterprise Search Engine today!
Our experts will assist you in its installation for $59/mo, no commitment.
Test it for FREE on our Cloud platform anytime!
http://pubads.g.doubleclick.net/gampad/clk?id=145328191iu=/4140/ostg.clktrk___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

Re: [PyMOL] align or pair_fit display problem

2014-05-27 Thread Sampson, Jared
Hi I-Ji -

You say the superimposed atoms are still there; that seems like normal behavior 
to me.  If you disable one of the objects, can you see the other one, and vice 
versa?

If the two structures are nearly identical, you may not be able to 
differentiate them visually after alignment.  If that is the case, you may wish 
to use different representations and/or colors for the two objects.

Cheers,
Jared

--
Jared Sampson
Xiangpeng Kong Lab
NYU Langone Medical Center
http://kong.med.nyu.edu/






On May 26, 2014, at 6:58 PM, I-Ji Jung 
u5205...@anu.edu.aumailto:u5205...@anu.edu.au wrote:

Hi,

I'm trying to superimpose a small structure to a residue of a protein.
When I use align or pair_fit to do this, the superposition works, but for some 
weird reason I can't see my small structure anymore. Like it's whole structure 
disappears. The superimposed atoms are there - but then those are overlapped by 
the same atoms of the residue, so you can't see them anyway. I've tried 
pair_fit some while ago and I recall using it without a problem. Why am I 
suddenly having this problem?
Can somebody help me?

Thanks,

I-Ji
--
The best possible search technologies are now affordable for all companies.
Download your FREE open source Enterprise Search Engine today!
Our experts will assist you in its installation for $59/mo, no commitment.
Test it for FREE on our Cloud platform anytime!
http://pubads.g.doubleclick.net/gampad/clk?id=145328191iu=/4140/ostg.clktrk___
PyMOL-users mailing list 
(PyMOL-users@lists.sourceforge.netmailto:PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net


This email message, including any attachments, is for the sole use of the 
intended recipient(s) and may contain information that is proprietary, 
confidential, and exempt from disclosure under applicable law. Any unauthorized 
review, use, disclosure, or distribution is prohibited. If you have received 
this email in error please notify the sender by return email and delete the 
original message. Please note, the recipient should check this email and any 
attachments for the presence of viruses. The organization accepts no liability 
for any damage caused by any virus transmitted by this email.
=
--
The best possible search technologies are now affordable for all companies.
Download your FREE open source Enterprise Search Engine today!
Our experts will assist you in its installation for $59/mo, no commitment.
Test it for FREE on our Cloud platform anytime!
http://pubads.g.doubleclick.net/gampad/clk?id=145328191iu=/4140/ostg.clktrk___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

Re: [PyMOL] Ray trace mode 1 outline thickness

2014-05-14 Thread Sampson, Jared
Hi Martin -

Try increasing the `ray_trace_gain` setting.  Default value is 0.12, so maybe 
try 1 or 2.  If you go much higher, you’ll start to see additional lines or 
spots.

Cheers,
Jared

--
Jared Sampson
Xiangpeng Kong Lab
NYU Langone Medical Center
http://kong.med.nyu.edu/






On May 14, 2014, at 9:36 AM, Martin Hediger 
ma@bluewin.chmailto:ma@bluewin.ch wrote:

Hi guys

I wonder if you could help, I'm rendering this image:

http://qmviews.blogspot.ch/2014/05/illustrating-protein-structures.html

and I wonder if and how I could increase the thickness of the black
outlines?

Thanks for help
Martin

--
Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free.
http://p.sf.net/sfu/SauceLabs
___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net


This email message, including any attachments, is for the sole use of the 
intended recipient(s) and may contain information that is proprietary, 
confidential, and exempt from disclosure under applicable law. Any unauthorized 
review, use, disclosure, or distribution is prohibited. If you have received 
this email in error please notify the sender by return email and delete the 
original message. Please note, the recipient should check this email and any 
attachments for the presence of viruses. The organization accepts no liability 
for any damage caused by any virus transmitted by this email.
=
--
Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free.
http://p.sf.net/sfu/SauceLabs___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

Re: [PyMOL] using a pseudoatom for distance measurement

2014-05-06 Thread Sampson, Jared
Hi Mary -

If you already know which state has the conformation you want to use for your 
measurement, or if you want to create a pseudoatom for each state, you can do 
so by passing the `state` keyword to pseudoatom:

set state, 1   # or 2, 3, etc.
pseudoatom test, pdbfile_0001 and chain A and resi 100 and n. 
cg+cd1+ce1+cz+ce2+cd2, color=tv_blue, state=1  # or 2, 3, etc.

You also may be interested in the iterate_state function.

Cheers,
Jared

--
Jared Sampson
Xiangpeng Kong Lab
NYU Langone Medical Center
http://kong.med.nyu.edu/






On May 6, 2014, at 9:32 AM, M. Faridounnia 
faridoun...@gmail.commailto:faridoun...@gmail.com wrote:

Thanks a lot for the tip and explaining the whole thing, Jared. I learned a lot 
from that. It worked but here is why I had a problem at the beginning (and 
tried the command I emailed), still same problem persists.

I had tried similar command on one of the models after splitting the pdb file 
(split_states pdbfile, ) and it was not working.
split_states pdbfile,
pseudoatom test, pdbfile_0001 and chain A and resi 100 and n. 
cg+cd1+ce1+cz+ce2+cd2, color=tv_blue


Now, I tried exactly what you mentioned. After splitting the states it doesn't 
work, but when I don't do split_states, the same command works and creates a 
pseudoatom. The problem is that the NMR structure I have been doing 
split_states on is an average structure of 20 models. So, I need to create the 
pseudoatom on one of the 20 structure models ( the closest to the average or 
the lowest energy). It is not a big deal for now because for these two residues 
all the 20 structure are very similar but I still wonder why isn't it possible!

I mean it would make more sense that the command doesn't work on the average 
structure, because it doesn't refer to a real coordinate in the file and it can 
take any of the twenty models, but when it knows which model to take, it is 
more probable to work because it refers to the right coordinates. Any comments 
on that?

Cheers
Mary


On Mon, May 5, 2014 at 4:17 PM, Sampson, Jared 
jared.samp...@nyumc.orgmailto:jared.samp...@nyumc.org wrote:
Hi Mary -

There are a couple problems here.  First, you’re giving the pseudoatom command 
a positional argument out-of-order (and after keyword parameters).  Keyword 
parameters can appear in any order, but only if you use the keyword.  
Otherwise, you must list them in the order specified by the function.  So, you 
either need to use the keyword and enclose the selection in quotes 
(selection=“n. …”) or simply move it to its proper position, like this:

pseudoatom test, n. cg+cd1+ce1+cz+ce2+cd2, resi=100, color=tv_blue

For the full order of arguments, see 
http://www.pymolwiki.org/index.php/Pseudoatom or type `help pseudoatom` on the 
PyMOL command line.

Second, your current selection is going to use any atom named cg+cd1…etc. in 
the entire session, not just in your single Phe residue.  This is because the 
resi=100 and color=tv_blue are used to determine the properties of the new 
pseudoatom, and not to determine or refine the selection.  If you want to use 
the ring of Phe 100 only, the selection argument needs to include that 
information.  If you have more than one object or chain that includes resi 100, 
you will also need to specify that.

So I’m guessing what you probably want is something along the lines of 
(replacing “myobject” and “A” with appropriate values):

pseudoatom test, myobject and chain A and resi 100 and n. 
cg+cd1+ce1+cz+ce2+cd2, color=tv_blue

which will create a tv_blue-colored pseudoatom in the center of the ring of 
residue 100.

Hope that helps.

Cheers,
Jared

--
Jared Sampson
Xiangpeng Kong Lab
NYU Langone Medical Center
http://kong.med.nyu.edu/



On May 4, 2014, at 2:12 PM, M. Faridounnia 
faridoun...@gmail.commailto:faridoun...@gmail.com wrote:

Hi there,

I want to measure the distance and angle between an aromatic ring (phenylalanin 
and a residue backbone) like this: 
http://www.pymolwiki.org/index.php/File:Pseu1.png

I learned from here that I need to make a pseudoatom but I cannot make it work.

I tried
pseudoatom test, resi=100, color=tv_blue, n. cg+cd1+ce1+cz+ce2+cd2

and some other ways! I don't know how should I choose the write atoms and make 
the pseudoatom. After this probably distance and angle measurement would be 
straightforward.

Best regards
Mary
--
Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.  Get
unparalleled scalability from the best Selenium testing platform available.
Simple to use. Nothing to install. Get started now for free.
http://p.sf.net/sfu/SauceLabs___
PyMOL-users mailing list 
(PyMOL-users@lists.sourceforge.netmailto:PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com

Re: [PyMOL] using a pseudoatom for distance measurement

2014-05-05 Thread Sampson, Jared
Hi Mary -

There are a couple problems here.  First, you’re giving the pseudoatom command 
a positional argument out-of-order (and after keyword parameters).  Keyword 
parameters can appear in any order, but only if you use the keyword.  
Otherwise, you must list them in the order specified by the function.  So, you 
either need to use the keyword and enclose the selection in quotes 
(selection=“n. …”) or simply move it to its proper position, like this:

pseudoatom test, n. cg+cd1+ce1+cz+ce2+cd2, resi=100, color=tv_blue

For the full order of arguments, see 
http://www.pymolwiki.org/index.php/Pseudoatom or type `help pseudoatom` on the 
PyMOL command line.

Second, your current selection is going to use any atom named cg+cd1…etc. in 
the entire session, not just in your single Phe residue.  This is because the 
resi=100 and color=tv_blue are used to determine the properties of the new 
pseudoatom, and not to determine or refine the selection.  If you want to use 
the ring of Phe 100 only, the selection argument needs to include that 
information.  If you have more than one object or chain that includes resi 100, 
you will also need to specify that.

So I’m guessing what you probably want is something along the lines of 
(replacing “myobject” and “A” with appropriate values):

pseudoatom test, myobject and chain A and resi 100 and n. 
cg+cd1+ce1+cz+ce2+cd2, color=tv_blue

which will create a tv_blue-colored pseudoatom in the center of the ring of 
residue 100.

Hope that helps.

Cheers,
Jared

--
Jared Sampson
Xiangpeng Kong Lab
NYU Langone Medical Center
http://kong.med.nyu.edu/


On May 4, 2014, at 2:12 PM, M. Faridounnia faridoun...@gmail.com wrote:

Hi there,

I want to measure the distance and angle between an aromatic ring (phenylalanin 
and a residue backbone) like this: 
http://www.pymolwiki.org/index.php/File:Pseu1.png

I learned from here that I need to make a pseudoatom but I cannot make it work.

I tried
pseudoatom test, resi=100, color=tv_blue, n. cg+cd1+ce1+cz+ce2+cd2

and some other ways! I don't know how should I choose the write atoms and make 
the pseudoatom. After this probably distance and angle measurement would be 
straightforward.

Best regards
Mary
--
Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.  Get
unparalleled scalability from the best Selenium testing platform available.
Simple to use. Nothing to install. Get started now for free.
http://p.sf.net/sfu/SauceLabs___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net


This email message, including any attachments, is for the sole use of the 
intended recipient(s) and may contain information that is proprietary, 
confidential, and exempt from disclosure under applicable law. Any unauthorized 
review, use, disclosure, or distribution is prohibited. If you have received 
this email in error please notify the sender by return email and delete the 
original message. Please note, the recipient should check this email and any 
attachments for the presence of viruses. The organization accepts no liability 
for any damage caused by any virus transmitted by this email.
=
--
Is your legacy SCM system holding you back? Join Perforce May 7 to find out:
#149; 3 signs your SCM is hindering your productivity
#149; Requirements for releasing software faster
#149; Expert tips and advice for migrating your SCM now
http://p.sf.net/sfu/perforce___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

Re: [PyMOL] Pymol wrl output

2014-05-03 Thread Sampson, Jared
Hi Bob -

The reason you're getting these errors is because having negative values in a 
color tuple is not meaningful (you can't have a negative amount of color), and 
results in undefined behavior.  RGB colors use a number in the range 0.0-1.0 
(inclusive) for each value in the tuple.  What color are you using for your 
model before exporting VRML?  Try setting everything to white (`color white` on 
the command line) and see what that does.

Cheers,
Jared

--
Jared Sampson
Xiangpeng Kong Lab
NYU School of Medicine
kong.med.nyu.edu

From: Grateful Frog [gratefulf...@gmail.com]
Sent: Friday, May 02, 2014 7:07 PM
To: Marcelo Marcet
Cc: pymol-users@lists.sourceforge.net
Subject: Re: [PyMOL] Pymol wrl output

these are the errors that Shapeways sent back:

Unfortunately, the model you recently uploaded TMD11Ultra.wrl did not pass our 
initial printability checks, so it's not yet ready for 3D printing. 
Printability Error:

  *   Model failed during repair. This is likely due to problems merging shells.

Please visit your 3D model page to update your 
file:http://www.shapeways.com/model/upload-and-buy/1932482http://www.shapeways.com/model/upload-and-buy/1932482?etId=14290783utm_source=automated-contactutm_medium=emailutm_campaign=model-processing-failed

Our tutorials and 
FAQhttp://www.shapeways.com/support?etId=14290783utm_source=automated-contactutm_medium=emailutm_campaign=model-processing-failed
 can be super helpful for more detailed information, or you can always ask the 
community a specific question on our 
forumhttp://www.shapeways.com/forum?etId=14290783utm_source=automated-contactutm_medium=emailutm_campaign=model-processing-failed

If you're stuck or have any questions, don't hesitate to reach out at 
serv...@shapeways.commailto:serv...@shapeways.com. Please include the file as 
an attachment to the email, as well as any notes on your design, so we can help 
you solve your problem as quickly as possible.

Additional non-critical errors:

  *   Invalid field, unparsable value, name: Material.diffuseColor , value: 
[-1.0, -1.0, 1.0]. Value ignored.
  *   Invalid field, unparsable value, name: Material.diffuseColor , value: 
[-1.0, -1.0, 1.0]. Value ignored.
  *   Invalid field, unparsable value, name: Material.diffuseColor , value: 
[-1.0, -1.0, 1.0]. Value ignored.

- this goes on for tons of lines...



On Sat, May 3, 2014 at 12:39 AM, Grateful Frog 
gratefulf...@gmail.commailto:gratefulf...@gmail.com wrote:
Hi Marcelo,

Thanks for your help and suggestion!

I did that and the surface is much nicer.

However, the Pymol rendering in VRML still won't load to Shapeways without 
error.

I have to re-render in VRML in MeshLab.

My goal is to do it all in Pymol.

Any more ideas would be great!

Ciao,
Bob


On Sat, May 3, 2014 at 12:17 AM, Marcelo Marcet 
mmar...@nait.camailto:mmar...@nait.ca wrote:
Hi Bob,

Before you save your file from pymol try increasing the quality to max, then 
save as VRML. This increases the number of polygons in the file and after 
exporting from meshlab the final molecule will look a lot smoother.

Cheers,
Marcelo

On May 2, 2014, at 2:15 PM, Grateful Frog 
gratefulf...@gmail.commailto:gratefulf...@gmail.com wrote:

 Hi all,

 I'm new to this list and to this tool.  I have encountered a problem with 
 exporting as wrl in pylolk 1.7 that I compiled on my Ubuntu 12.04 platform.

 I load a PDB file and it displays fine.

 I then type the command show surface and this works fine, too.

 I then save image as VRML 2, and write the file to disk.

 This file can be visualized fine in MeshLab.

 However, it cannot be 3D printed at Shapeways. The error message does not say 
 what is wrong.

 The work-around that I have found is to open the wrl file, generated by 
 Pymol, in Meshlab and re-save another copy as wrl, but generated by Meshlab. 
 This new file can be 3D printed at Shapeways.

 However, the look of the surface is not as nice when it comes out of Meshlab, 
 as it is in Pymol...

 Any thoughts would be great!

 Thanks,
 Bob
 --
 Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
 Instantly run your Selenium tests across 300+ browser/OS combos.  Get
 unparalleled scalability from the best Selenium testing platform available.
 Simple to use. Nothing to install. Get started now for free.
 http://p.sf.net/sfu/SauceLabs___
 PyMOL-users mailing list 
 (PyMOL-users@lists.sourceforge.netmailto:PyMOL-users@lists.sourceforge.net)
 Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
 Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net




This email message, including any attachments, is for the sole use of the 
intended recipient(s) and may contain information that is proprietary, 
confidential, and exempt from 

Re: [PyMOL] Pymol wrl output

2014-05-03 Thread Sampson, Jared
Hi Bob - I've tried exporting several different types of models to .wrl in both 
RGB and CMYK color spaces, and haven't seen any colors output with negative 
values.  For example, this works fine for me:

fab AAA, polyala
python
for rep in [lines, spheres, sticks, surface, cartoon]:
cmd.show_as(rep)
cmd.save(rgb_%s.wrl % rep)
cmd.space(cmyk)
cmd.save(cmyk_%s.wrl % rep)
python end

and it results in no instances of diffuseColor on the same line as a negative 
number in any of the output wrl files (as determined by: `grep -e 
diffuseColor.*- *.wrl` ).

Could you be more specific with how you're generating the colors in your PyMOL 
session (perhaps with a minimal script that reproduces the problem), and/or 
post a bit of the output .wrl file, showing in particular anywhere you see a 
negative color value?

Thanks,
Jared

--
Jared Sampson
Xiangpeng Kong Lab
NYU School of Medicine
kong.med.nyu.edu

From: Grateful Frog [gratefulf...@gmail.com]
Sent: Saturday, May 03, 2014 1:53 PM
To: Sampson, Jared
Cc: Marcelo Marcet; pymol-users@lists.sourceforge.net
Subject: Re: [PyMOL] Pymol wrl output

Hi,

I tried it in white WRL as you suggested and that loaded into Shapeways ok.  
Green would also load...

The same file, then set to CMYK colors (menu DISPLAY / COLOR SPACE / CMYK )  
would not load...

Any help would be great!

Thanks for all this!

Ciao,
Bob


On Sat, May 3, 2014 at 6:44 PM, Sampson, Jared 
jared.samp...@nyumc.orgmailto:jared.samp...@nyumc.org wrote:
Hi Bob -

The reason you're getting these errors is because having negative values in a 
color tuple is not meaningful (you can't have a negative amount of color), and 
results in undefined behavior.  RGB colors use a number in the range 0.0-1.0 
(inclusive) for each value in the tuple.  What color are you using for your 
model before exporting VRML?  Try setting everything to white (`color white` on 
the command line) and see what that does.

Cheers,
Jared

--
Jared Sampson
Xiangpeng Kong Lab
NYU School of Medicine
kong.med.nyu.eduhttp://kong.med.nyu.edu

From: Grateful Frog [gratefulf...@gmail.commailto:gratefulf...@gmail.com]
Sent: Friday, May 02, 2014 7:07 PM
To: Marcelo Marcet
Cc: pymol-users@lists.sourceforge.netmailto:pymol-users@lists.sourceforge.net
Subject: Re: [PyMOL] Pymol wrl output

these are the errors that Shapeways sent back:

Unfortunately, the model you recently uploaded TMD11Ultra.wrl did not pass our 
initial printability checks, so it's not yet ready for 3D printing. 
Printability Error:

  *   Model failed during repair. This is likely due to problems merging shells.

Please visit your 3D model page to update your 
file:http://www.shapeways.com/model/upload-and-buy/1932482http://www.shapeways.com/model/upload-and-buy/1932482?etId=14290783utm_source=automated-contactutm_medium=emailutm_campaign=model-processing-failed

Our tutorials and 
FAQhttp://www.shapeways.com/support?etId=14290783utm_source=automated-contactutm_medium=emailutm_campaign=model-processing-failed
 can be super helpful for more detailed information, or you can always ask the 
community a specific question on our 
forumhttp://www.shapeways.com/forum?etId=14290783utm_source=automated-contactutm_medium=emailutm_campaign=model-processing-failed

If you're stuck or have any questions, don't hesitate to reach out at 
serv...@shapeways.commailto:serv...@shapeways.com. Please include the file as 
an attachment to the email, as well as any notes on your design, so we can help 
you solve your problem as quickly as possible.

Additional non-critical errors:

  *   Invalid field, unparsable value, name: Material.diffuseColor , value: 
[-1.0, -1.0, 1.0]. Value ignored.
  *   Invalid field, unparsable value, name: Material.diffuseColor , value: 
[-1.0, -1.0, 1.0]. Value ignored.
  *   Invalid field, unparsable value, name: Material.diffuseColor , value: 
[-1.0, -1.0, 1.0]. Value ignored.

- this goes on for tons of lines...



On Sat, May 3, 2014 at 12:39 AM, Grateful Frog 
gratefulf...@gmail.commailto:gratefulf...@gmail.com wrote:
Hi Marcelo,

Thanks for your help and suggestion!

I did that and the surface is much nicer.

However, the Pymol rendering in VRML still won't load to Shapeways without 
error.

I have to re-render in VRML in MeshLab.

My goal is to do it all in Pymol.

Any more ideas would be great!

Ciao,
Bob


On Sat, May 3, 2014 at 12:17 AM, Marcelo Marcet 
mmar...@nait.camailto:mmar...@nait.ca wrote:
Hi Bob,

Before you save your file from pymol try increasing the quality to max, then 
save as VRML. This increases the number of polygons in the file and after 
exporting from meshlab the final molecule will look a lot smoother.

Cheers,
Marcelo

On May 2, 2014, at 2:15 PM, Grateful Frog 
gratefulf...@gmail.commailto:gratefulf...@gmail.com wrote:

 Hi all,

 I'm new to this list and to this tool.  I have encountered a problem with 
 exporting as wrl in pylolk 1.7 that I compiled on my

Re: [PyMOL] RE: gradually changed colors with b-factor colum

2014-04-29 Thread Sampson, Jared
Hi Yeping -

It doesn’t look like Spectrumbar supports additional labeling, but you could 
add labels at each end by using pseudoatoms at the positions where you want the 
labels to appear (see the second example at 
http://pymolwiki.org/index.php/Pseudoatom).

For the 2D gradient box, you can create whatever intermediate labels you like, 
just keep the same scale.  For example, if your bar covers data values from 
-0.3 to +2.3 and you make it 260 pixels wide, then each 10px accounts for 0.1 
unit.  So “0.0” will be 30px from the left side, “+0.5” will be at 80px, and so 
forth.  After you create it at that scale, you can resize it as you wish and 
the relative positions will remain the same.

Hope that helps.

Cheers,
Jared

--
Jared Sampson
Xiangpeng Kong Lab
NYU Langone Medical Center
http://kong.med.nyu.edu/






On Apr 28, 2014, at 10:20 PM, sunyeping 
sunyep...@aliyun.commailto:sunyep...@aliyun.com wrote:

Dear Jared,

Thank you for the reply. But I still have a couple of questions:

 As for the spectrumbarhttp://pymolwiki.org/index.php/Spectrumbar script, 
how could I assign a particular data value to a particular color?  By using the 
command:

spectrumbar blue, white, red

I can get a spectrumbar. If the range of my data is -0.3~2.3, maybe I can label 
two end of the bar with -0.3 and 2.3 manually, respectively. But if I want to 
label more data to the bar? How shold I do?

  As you suggest, I can simplely get a 2D box with a linear gradient fill. 
But the question is the same with above: how could I correctly label the bar 
according my data set?

Best regards,


Yeping

--
发件人:Sampson, Jared jared.samp...@nyumc.orgmailto:jared.samp...@nyumc.org
发送时间:2014年4月29日(星期二) 04:36
收件人:孙业平 sunyep...@aliyun.commailto:sunyep...@aliyun.com
抄 送:pymol-users 
pymol-users@lists.sourceforge.netmailto:pymol-users@lists.sourceforge.net
主 题:Re: [PyMOL] gradually changed colors with b-factor colum

Hi Yeping -

I was about to suggest Sean Law’s new 
spectrumbarhttp://pymolwiki.org/index.php/Spectrumbar script, but I see he 
beat me to it.  You’ll have to adjust the positioning of the bar with some 
trial and error.  Also, in case you get a “NameError: global name 're' is not 
defined” error, simply change the 4th line from:

from re import *

to

import re

I’ve just submitted a pull 
requesthttps://github.com/Pymol-Scripts/Pymol-script-repo/pull/55 with this 
fix, but if you download the script before it’s accepted, you'll have to make 
the change yourself.

Alternatively, you could fairly easily create a simple 2D box with a gradient 
fill in e.g. Inkscape or Illustrator with the appropriate colors and add the 
labels manually.  So long as you specify a linear gradient, it should be fairly 
consistent with the PyMOL values.

Hope that helps.

Cheers,
Jared

--
Jared Sampson
Xiangpeng Kong Lab
NYU Langone Medical Center
http://kong.med.nyu.edu/


On Apr 27, 2014, at 8:50 AM, sunyeping 
sunyep...@aliyun.commailto:sunyep...@aliyun.com wrote:

Dear proessor Holder and pymol users,

I previously tried to color a protein structure accord to a set of customer 
data. I replaced the b factor of individual Ca atoms and colored the structure 
with the command:

spectrum b, blue_white_red, byres=1

But I think I need a color scale bar to show the range of the data set. 
According to PymolWiki 
(http://www.pymolwiki.org/index.php/Advanced_Coloring#Creating_a_Color_bar), 
this can be done with the following steps:

  1.  Create a pdb-file which contains CA positions only, whereas the numbers 
correspond to your wanted increments of colors. Make CA's to be separated by 5 
Angstroem.
  2.  Load this new pseudobar-pdb file into PyMOL, make bonds between increment 
1 and increment 2 [increment 2 and increment 3 and so on...], define/assign a 
smooth color for each increment (copy colors definition from automatically 
created colors made by b-factor script) and show the b-factor bar as lines (or 
sticks).

Could you tell me how to assign blue_white_red color for these increment? And 
if the range of my data set is -0.8 to 2.3, how to make the color gradient 
reflect this range? Thank you very much.




Yeping Sun

Institute of Microbiology, Chinese Academy of Sciences

--
发件人:Thomas Holder 
spel...@users.sourceforge.netmailto:spel...@users.sourceforge.net
发送时间:2013年12月11日(星期三) 12:49
收件人:孙业平 sunyep...@aliyun.commailto:sunyep...@aliyun.com
抄 送:pymol-users 
pymol-users@lists.sourceforge.netmailto:pymol-users@lists.sourceforge.net
主 题:Re: [PyMOL] 答复: gradually changed colors with flexibility

Hi Yeping,

the spectrum command has a byres argument to operate on the residue level:

PyMOLspectrum b, blue_white_red, byres=1

There is no white_blue color ramp, but there is a script which provides this:
http://pymolwiki.org/index.php/Spectrumany
It doesn't have the byres argument. If you only show

Re: [PyMOL] gradually changed colors with b-factor colum

2014-04-28 Thread Sampson, Jared
Hi Yeping -

I was about to suggest Sean Law’s new 
spectrumbarhttp://pymolwiki.org/index.php/Spectrumbar script, but I see he 
beat me to it.  You’ll have to adjust the positioning of the bar with some 
trial and error.  Also, in case you get a “NameError: global name 're' is not 
defined” error, simply change the 4th line from:

from re import *

to

import re

I’ve just submitted a pull 
requesthttps://github.com/Pymol-Scripts/Pymol-script-repo/pull/55 with this 
fix, but if you download the script before it’s accepted, you'll have to make 
the change yourself.

Alternatively, you could fairly easily create a simple 2D box with a gradient 
fill in e.g. Inkscape or Illustrator with the appropriate colors and add the 
labels manually.  So long as you specify a linear gradient, it should be fairly 
consistent with the PyMOL values.

Hope that helps.

Cheers,
Jared

--
Jared Sampson
Xiangpeng Kong Lab
NYU Langone Medical Center
http://kong.med.nyu.edu/


On Apr 27, 2014, at 8:50 AM, sunyeping 
sunyep...@aliyun.commailto:sunyep...@aliyun.com wrote:

Dear proessor Holder and pymol users,

I previously tried to color a protein structure accord to a set of customer 
data. I replaced the b factor of individual Ca atoms and colored the structure 
with the command:

spectrum b, blue_white_red, byres=1

But I think I need a color scale bar to show the range of the data set. 
According to PymolWiki 
(http://www.pymolwiki.org/index.php/Advanced_Coloring#Creating_a_Color_bar), 
this can be done with the following steps:

  1.  Create a pdb-file which contains CA positions only, whereas the numbers 
correspond to your wanted increments of colors. Make CA's to be separated by 5 
Angstroem.
  2.  Load this new pseudobar-pdb file into PyMOL, make bonds between increment 
1 and increment 2 [increment 2 and increment 3 and so on...], define/assign a 
smooth color for each increment (copy colors definition from automatically 
created colors made by b-factor script) and show the b-factor bar as lines (or 
sticks).

Could you tell me how to assign blue_white_red color for these increment? And 
if the range of my data set is -0.8 to 2.3, how to make the color gradient 
reflect this range? Thank you very much.




Yeping Sun

Institute of Microbiology, Chinese Academy of Sciences

--
发件人:Thomas Holder 
spel...@users.sourceforge.netmailto:spel...@users.sourceforge.net
发送时间:2013年12月11日(星期三) 12:49
收件人:孙业平 sunyep...@aliyun.commailto:sunyep...@aliyun.com
抄 送:pymol-users 
pymol-users@lists.sourceforge.netmailto:pymol-users@lists.sourceforge.net
主 题:Re: [PyMOL] 答复: gradually changed colors with flexibility

Hi Yeping,

the spectrum command has a byres argument to operate on the residue level:

PyMOLspectrum b, blue_white_red, byres=1

There is no white_blue color ramp, but there is a script which provides this:
http://pymolwiki.org/index.php/Spectrumany
It doesn't have the byres argument. If you only show cartoon, just limit the 
selection to CA atoms:

PyMOLrun path/to/spectrumany.py
PyMOLspectrumany b, white blue, name CA

If you want to show all atoms, you can map the CA atom b-factor to all residue 
atoms with this script:
http://pymolwiki.org/index.php/AlphaToAll

Hope that helps.

Cheers,
Thomas

On 10 Dec 2013, at 01:04, sunyeping sunyep...@aliyun.com wrote:

 Hi, professor Holder,

 Thank you for the reply, but how can I do this on the level of individual 
 amino acids in stead of atom? I have two homolog stuctures and I want to map 
 the difference between the b factors of the corresonding residues of these 
 two stuctures rather than individual atoms. And I want to use gradually 
 deepened color from white to blue. Could you explain more in detail? Thanks.

 Yeping Sun

 Institute of Microbiology, Chinese Academy of Sciences


 --
 发件人:Thomas Holder spel...@users.sourceforge.net
 发送时间:2013年12月10日(星期二) 04:50
 收件人:孙业平 sunyep...@aliyun.com
 抄 送:pymol-users pymol-users@lists.sourceforge.net
 主 题:Re: [PyMOL] gradually changed colors with flexibility

 Hi Yeping,

 use the spectrum command:

 PyMOL spectrum b, blue_white_red

 http://pymolwiki.org/index.php/Spectrum

 Cheers,
 Thomas

 On 09 Dec 2013, at 11:30, sunyeping sunyep...@aliyun.com wrote:

  Dear all,
 
  I want to show amino acids in a structure according to their flexibility (B 
  factor) by gradually changed colors. Can pymol do this? Thanks.
 
  Yeping Sun
 
  Institute of Microbiology, Chinese Academy of Sciences

--
Rapidly troubleshoot problems before they affect your business. Most IT
organizations don't have a clear picture of how application performance
affects their revenue. With AppDynamics, you get 100% visibility into your
Java,.NET,  PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!

Re: [PyMOL] animation showing conformational change

2014-04-09 Thread Sampson, Jared
Hi Yeping -

With incentive PyMOL version 1.6 or later, you can use `morph`.  From what I 
read at http://pymolwiki.org/index.php/Morph, you’ll need to put both 
conformations of the protein into one object, as different states.  See 
http://pymolwiki.org/index.php/Load for more info on that.

Cheers,
Jared

--
Jared Sampson
Xiangpeng Kong Lab
NYU Langone Medical Center
550 First Avenue
New York, NY 10016
212-263-7898
http://kong.med.nyu.edu/






On Apr 9, 2014, at 11:58 AM, sunyeping 
sunyep...@aliyun.commailto:sunyep...@aliyun.com wrote:

Dear all,
http://cn.bing.com/dict/clientsearch?mkt=zh-CNsetLang=zhform=BDVEHCq=%E5%8A%A8%E7%94%BB#
If I have the structures representing two conformations of one protein, then 
could I make a animation movie that shows how the protein transforms from one 
conformation to the other conformation using pymol? Thanks.



Yeping Sun

Institute of Microbiology, Chinese Academy of Sciences

--
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test  Deployment
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net


This email message, including any attachments, is for the sole use of the 
intended recipient(s) and may contain information that is proprietary, 
confidential, and exempt from disclosure under applicable law. Any unauthorized 
review, use, disclosure, or distribution is prohibited. If you have received 
this email in error please notify the sender by return email and delete the 
original message. Please note, the recipient should check this email and any 
attachments for the presence of viruses. The organization accepts no liability 
for any damage caused by any virus transmitted by this email.
=
--
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test  Deployment 
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

Re: [PyMOL] boundaries/outlines of overlapping regions on surface

2014-04-08 Thread Sampson, Jared
Hi Sid -

I don’t think there is a way to accomplish this directly in PyMOL, but you can 
get partway there using the `ray_trace_mode` setting and named selections for 
the various regions you wish to depict.  
http://pymolwiki.org/index.php/Ray#Modes

Ultimately, you’ll need to create a composite image.  So, first generate your 
figure the way you want it to look without the outlines, then ray trace and 
save the png.

Then (without changing the camera position) do something like:

hide everything
show surface, sel1
set ray_opaque_background, 0  # transparent background for ray-traced images
set ray_trace_mode, 2  # draws a black outline only
set ray_trace_color, red  # change the outline color as you like
png, sel1_outline.png, ray=1

Repeat this for as many selections as you like.  You can then layer the 
outlines on top of the original in an image editor, e.g. GIMP/Photoshop, and 
also clean up any unwanted “texture” lines.

You may also want to play with surface_quality, probe_radius, and 
surface_solvent settings to adjust the outline. You could also check out these 
ways to generate a “blob” surface if you want smoother outlines. 
http://pymolwiki.org/index.php/Surface#Smooth_surface_quick_.28blob.29

Hope that helps.

Cheers,
Jared

--
Jared Sampson
Xiangpeng Kong Lab
NYU Langone Medical Center
http://kong.med.nyu.edu/






On Apr 8, 2014, at 9:47 AM, Sridharan, Sudharsan 
sridhar...@medimmune.commailto:sridhar...@medimmune.com wrote:

Hi all,

I’d like to colour different regions on the same protein surface but also draw 
the outlines/boundaries of these regions as well to show where they overlap (I 
guess I could colour the common residues in a different colour but I don’t want 
to do that!). Can someone please let me know how to do this in Pymol (v 1.7)?

Many thanks.

Kind regards,
Sid.


image002.png

Sudharsan (Sid) Sridharan, Ph.D.
Scientist I, Protein Sciences, Department of Antibody Discovery and Protein 
Engineering

Aaron Klug Building, Granta Park,
Cambridge, CB21 6GH, UK.
P: +44(0)1223 898195F: +44(0)1223 471472


sridhar...@medimmune.commailto:sridhar...@medimmune.com
www.medimmune.comhttp://www.medimmune.com/


MedImmune Limited is a company incorporated in England and Wales with 
registered number: 02451177 and a registered office at Milstein Building, 
Granta Park, Cambridge, CB21 6GH.

To the extent this electronic communication or any of its attachments contain 
information that is not in the public domain, such information is considered by 
MedImmune to be confidential and proprietary. This communication is expected to 
be read and/or used only by the individual(s) for whom it is intended. If you 
have received this electronic communication in error, please reply to the 
sender advising of the error in transmission and delete the original message 
and any accompanying documents from your system immediately, without copying, 
reviewing or otherwise using them for any purpose. Thank you for your 
cooperation.
MedImmune Limited is a company incorporated in England and Wales with 
registered number: 02451177 and a registered office at Milstein Building, 
Granta Park, Cambridge, CB21 6GH.

To the extent this electronic communication or any of its attachments contain 
information that is not in the public domain, such information is considered by 
MedImmune to be confidential and proprietary. This communication is expected to 
be read and/or used only by the individual(s) for whom it is intended. If you 
have received this electronic communication in error, please reply to the 
sender advising of the error in transmission and delete the original message 
and any accompanying documents from your system immediately, without copying, 
reviewing or otherwise using them for any purpose. Thank you for your 
cooperation. 
--
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test  Deployment
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees___
PyMOL-users mailing list 
(PyMOL-users@lists.sourceforge.netmailto:PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net


This email message, including any attachments, is for the sole use of the 
intended recipient(s) and may contain information that is proprietary, 
confidential, and exempt from disclosure under applicable law. Any unauthorized 
review, use, disclosure, or distribution is prohibited. If you have received 
this email in error please notify the sender by return email and delete the 
original message. Please note, the recipient should check this email and any 
attachments for the presence of viruses. The organization accepts no 

Re: [PyMOL] Ligand surface: color issue after ray

2014-03-31 Thread Sampson, Jared
Hi Tobias -

It seems to me that you may not have hidden the lines/sticks from the object 
where you’ve shown the surface. For overlapping objects, the normal 
non-ray-traced view appears to give precedence to the object that was present 
in the viewer first.  Try disabling and re-enabling your two objects in 
different orders to see what I mean.  Ray, on the other hand, tries to show 
both at the same time.

There is actually another way to accomplish what you describe in (b).  First, 
you can use the `surface_mode` setting 
(http://pymolwiki.org/index.php/Surface_mode) to avoid having to modify the 
flags.  Also, instead of creating two objects, the easiest way to have 
different colors for the surface and the sticks is to use the `surface_color` 
setting (http://pymolwiki.org/index.php/Surface_color) for your ligand object.

set surface_mode, 1
set transparency, 0.5
as sticks, ligand
show surface, ligand
set surface_color, black, ligand

Hope that helps.

Cheers,
Jared

--
Jared Sampson
Xiangpeng Kong Lab
NYU Langone Medical Center
550 First Avenue
New York, NY 10016
212-263-7898
http://kong.med.nyu.edu/



On Mar 31, 2014, at 8:42 AM, Tobias Beck 
tobiasb...@gmail.commailto:tobiasb...@gmail.com wrote:

Dear all,

I would like to show a transparent surface of a ligand, with the ligand 
'inside' as sticks.

I created a new object of the ligand, then tried to show the surface, which 
fails.

With this information here: 
http://sourceforge.net/p/pymol/mailman/message/27299068/

# do not ignore surfacing of ligands

flag ignore, not rep surface

# force PyMOL to rebuild the surface

rebuild

I was then able to show the surface of the ligand. All colors are fine. 
Transparency is set to 0.5

Now I would like to create an image with ray. However, after ray, there are 
problems with the color of the ligand sticks inside:

a) if the ligand is green and the surface is black, the ligand sticks inside 
are black as well

b) if the surface is black and the ligand carbon atoms are shown in green and 
other atoms colored by 'color by element', then the non-carbon atoms have their 
native color with pixels of black (surface color) covering them

I would like to get b) to work. Any suggestions? Do the commands above (flag 
ignore) change something for ray?

For other surfaces (protein), the above works fine, without any pixels of 
surface color on the non-carbon atoms.

Thank you and best wishes, Tobias.

--
___

Dr. Tobias Beck
ETH Zurich
Laboratory of Organic Chemistry
Vladimir-Prelog-Weg 3, HCI F 322
8093 Zurich, Switzerland
phone:  +41 44 632 68 65
fax:+41 44 632 14 86
web:  http://www.protein.ethz.ch/people/tobias
___

--
___
PyMOL-users mailing list 
(PyMOL-users@lists.sourceforge.netmailto:PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net


This email message, including any attachments, is for the sole use of the 
intended recipient(s) and may contain information that is proprietary, 
confidential, and exempt from disclosure under applicable law. Any unauthorized 
review, use, disclosure, or distribution is prohibited. If you have received 
this email in error please notify the sender by return email and delete the 
original message. Please note, the recipient should check this email and any 
attachments for the presence of viruses. The organization accepts no liability 
for any damage caused by any virus transmitted by this email.
=
--
___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

Re: [PyMOL] Pymol insertion code

2014-03-20 Thread Sampson, Jared
Hi Nick -

This PDB employs non-standard usage of the PDB insertion code column.  
Typically, it is used to insert one or more residues between adjacent numbers 
in a canonically numbered structure, e.g. residue 42A (along with 42B, 42C, … , 
42P, etc.) is between residues 42 and 43.

As for whether it affects the structure: Yes, in this case, this non-standard 
usage also has the unwanted side effect in PyMOL of preventing the prodomain 
from being shown in cartoon representation, because its residues are too far 
from “adjacent” residues (i.e. the mature peptide residues with numbers on 
either side of the “inserted” residue).

To view the sequences as intended while keeping the mature peptide numbering 
the same, try this:

fetch 3psg, async=0
select prodomain, resi *P
alter prodomain, resi=str(int(resi[:-1])-44)  # decrement integer portion of 
prodomain residues by 44
sort

With this method (as opposed to extracting the prodomain to a new chain or 
object), you get a continuous cartoon based on atom connectivity.  The drawback 
is, if you need to refer to specific residues of the prodomain, you have to do 
a little math.

If you don’t need the cartoon representation to be continuous (e.g. if you’re 
zooming in on a different section of the protein you can replace the 3rd line 
with:

alter prodomain, chain=“P”

to split off the prodomain into a separate chain.  In this case, the sequence 
will be numbered as in the PDB, only without the insertion code.

Hope that helps.

Cheers,
Jared

--
Jared Sampson
Xiangpeng Kong Lab
NYU Langone Medical Center
550 First Avenue
New York, NY 10016
212-263-7898
http://kong.med.nyu.edu/


On Mar 20, 2014, at 8:59 AM, Wimock 
wim...@hotmail.commailto:wim...@hotmail.com wrote:

Hi,

I'm new to Pymol and am looking at the structure of pepsinogen (PDB: 3psg). 
This protein contains a 44 residue prodomain, which the pdb file says is 
assigned an insertion code 'P' and labelled 1 - 44. This prodomain is cleaved 
to yield pepsin (5pep), whose sequence is labelled 1 - 326. I gather Pymol 
should be able to see these as separate parts of the sequence, but it instead 
seems to interleave the sequences - I don't know if this affects the structure 
or not? Other programs (Chimera) show the sequence as it should be 
(P1-44...1-326).

Is there a way to have the sequence parts recognised in the sequence viewer? 
This would make it much easier for me to manipulate these sections. Please let 
me know if I haven't been clear.

Thanks,
Nick.
--
Learn Graph Databases - Download FREE O'Reilly Book
Graph Databases is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech___
PyMOL-users mailing list 
(PyMOL-users@lists.sourceforge.netmailto:PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net


This email message, including any attachments, is for the sole use of the 
intended recipient(s) and may contain information that is proprietary, 
confidential, and exempt from disclosure under applicable law. Any unauthorized 
review, use, disclosure, or distribution is prohibited. If you have received 
this email in error please notify the sender by return email and delete the 
original message. Please note, the recipient should check this email and any 
attachments for the presence of viruses. The organization accepts no liability 
for any damage caused by any virus transmitted by this email.
=
--
Learn Graph Databases - Download FREE O'Reilly Book
Graph Databases is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

Re: [PyMOL] Pymol insertion code

2014-03-20 Thread Sampson, Jared
Sorry - one quick correction to my previous email:

On Mar 20, 2014, at 10:50 AM, Sampson, Jared jared.samp...@nyumc.org wrote:

 If you don’t need the cartoon representation to be continuous (e.g. if you’re 
 zooming in on a different section of the protein you can replace the 3rd line 
 with:
 
 alter prodomain, chain=“P”
 
 to split off the prodomain into a separate chain.  In this case, the sequence 
 will be numbered as in the PDB, only without the insertion code.

The numbering will be exactly as in the PDB, only the chain ID will differ.

Cheers,
Jared



This email message, including any attachments, is for the sole use of the 
intended recipient(s) and may contain information that is proprietary, 
confidential, and exempt from disclosure under applicable law. Any unauthorized 
review, use, disclosure, or distribution is prohibited. If you have received 
this email in error please notify the sender by return email and delete the 
original message. Please note, the recipient should check this email and any 
attachments for the presence of viruses. The organization accepts no liability 
for any damage caused by any virus transmitted by this email.
=


--
Learn Graph Databases - Download FREE O'Reilly Book
Graph Databases is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net


Re: [PyMOL] color each polymer chain differently

2014-03-18 Thread Sampson, Jared
Hi Chandan - Back in the lab today.  I took a look at the code I sent and 
realized that one can’t simply pass a tuple to cmd.color(), as it only accepts 
named colors, so you have to use cmd.set_color().

So here (below) is a modified, fleshed-out version of what I sent yesterday, 
with the protein components of the T. thermophilus ribosome asymmetric unit 
(110 chains) as an example.  For a larger number of colors, you would simply 
have to increase the ranges for i, j, and k in the loop that creates the RGB 
tuples.

Some of the colors turn out to be fairly similar (e.g. those differing by only 
one RGB component), so also maybe check out, e.g., this SO question and its 
answers for alternative approaches: 
http://stackoverflow.com/questions/470690/how-to-automatically-generate-n-distinct-colors.

Cheers,
Jared

###

from pymol import cmd
from random import shuffle

cmd.fetch(2wdk, async=0)
cmd.fetch(2wdl, async=0)
cmd.fetch(2wdm, async=0)
cmd.fetch(2wdn, async=0)

# remove non-polymer components so we can just view the cartoon
cmd.remove(all and not polymer)

# remove RNA chains to get a better view of individual protein chains
cmd.remove(chain A)

my_chains = []

for obj in cmd.get_names():
for ch in cmd.get_chains(obj):
my_chains.append((obj, ch))

print There are currently %s chains to be colored. % len(my_chains)

my_colors = []

# 5^3  100
for i in range (0, 5):
r = 0.25 * i
for j in range (0, 5):
g = 0.25 * j
for k in range (0, 5):
b = 0.25 * k
my_colors.append([r, g, b])

# randomize list (optional)
shuffle(my_colors)
print shuffled the colors

# name the colors
for i, tup in enumerate(my_colors):
cmd.set_color(mycolor_%s % i, %s % tup)
print set color mycolor_%s to %s % (i, tup)

# color your chains
for i, ch in enumerate(my_chains):
sel = %s and chain %s % (ch[0], ch[1])
color = mycolor_%s % i
color_tuple = my_colors[i]
print %s will be colored %s (%s) % (sel, color, color_tuple)
cmd.color(%s % color, sel)

###

--
Jared Sampson
Xiangpeng Kong Lab
NYU Langone Medical Center
550 First Avenue
New York, NY 10016
212-263-7898
http://kong.med.nyu.edu/






On Mar 17, 2014, at 2:07 PM, Sampson, Jared 
jared.samp...@nyumc.orgmailto:jared.samp...@nyumc.org wrote:

Hi Chandan -

It seems like you're being limited by the 26 numbered colors in the util.cbc 
function. You could create your own randomized list of evenly-spaced colors, 
something like the following (untested, but should be approximately 
usable--sorry, I'm away from my computer today):

from pymol import cmd
from random import shuffle

my_colors = []

# 5^3  100
for i in range (0, 5):
   r = 0.25 * i
   for j in range (0, 5):
   g = 0.25 * j
   for k in range (0, 5):
   b = 0.25 * k
   my_colors.append([r, g, b])

# randomize list
shuffle(my_colors)

# color your chains
for x, c in enumerate(my_chain_list):
   cmd.color(my_colors[x], c)

Hope that helps.

Cheers,
Jared

--
Jared Sampson
Kong Lab
NYU Medical Center
kong.med.nyu.eduhttp://kong.med.nyu.edu
212-263-7898

Sent from my iPhone

On Mar 17, 2014, at 8:37 AM, Thomas Holder thomas.hol...@schrodinger.com 
wrote:

Hi Chandan,

in Incentive PyMOL 1.6 you can use the spectrum command to color by chain (will 
be enumerated) or by residue number. http://pymolwiki.org/index.php/Spectrum

In open-source PyMOL, you could use the spectrumany script to color by residue 
number: http://pymolwiki.org/index.php/Spectrumany

Cheers,
Thomas

On 13 Mar 2014, at 03:19, Chandan Choudhury iitd...@gmail.com wrote:
On Thu, Mar 13, 2014 at 10:21 AM, Jordan Willis jwillis0...@gmail.com wrote:
I think...

What is happening is that the color command should take in a name like “color 
yellow, i. 1 or a CMYK color vector. When you are saying “color 1” it is just 
starting at the first index of CMYK which is black.

There is a command for your problem though. Just say util.color_chains() and it 
will color all individual chains a different color.

Thanks Jordon for the reply.

I tried using util.color_chains(). It colors differently upto chain no. 26. 
After 26 all the chains are of same color, as I donot have chain no after that.
Some utility which can color by residue number would be very useful.

Chandan

On Mar 12, 2014, at 11:15 PM, Chandan Choudhury iitd...@gmail.com wrote:

Dear PyMOL users,

I build 100 chains of polymer in a box. Residue number is different for every 
chain. Chain 1 hasresidue no. 1, chain 2 has residue no. 2 and so on. I want to 
color each chain differently.
So, I wrote a script which generates a pml file, and opening this pml file with 
PyMOL should color each chain differently.

##color.pml
load 128md_c.pdb
select 1, i. 1
color  1, i. 1
select 2, i. 2
color  2, i. 2
select 3, i. 3
color  3, i. 3
select 4, i. 4
color  4, i. 4
select 5, i. 5
color  5, i. 5
select 6, i. 6
color  6, i. 6
select 7, i. 7
...
...
color  125, i. 125
select 126, i. 126
color  126, i. 126
select

Re: [PyMOL] color each polymer chain differently

2014-03-17 Thread Sampson, Jared
Hi Chandan -

It seems like you're being limited by the 26 numbered colors in the util.cbc 
function. You could create your own randomized list of evenly-spaced colors, 
something like the following (untested, but should be approximately 
usable--sorry, I'm away from my computer today):

from pymol import cmd
from random import shuffle

my_colors = []

# 5^3  100
for i in range (0, 5):
r = 0.25 * i
for j in range (0, 5):
g = 0.25 * j
for k in range (0, 5):
b = 0.25 * k
my_colors.append([r, g, b])

# randomize list
shuffle(my_colors)

# color your chains
for x, c in enumerate(my_chain_list):
cmd.color(my_colors[x], c)

Hope that helps. 

Cheers,
Jared

--
Jared Sampson
Kong Lab
NYU Medical Center
kong.med.nyu.edu
212-263-7898

Sent from my iPhone

 On Mar 17, 2014, at 8:37 AM, Thomas Holder thomas.hol...@schrodinger.com 
 wrote:
 
 Hi Chandan,
 
 in Incentive PyMOL 1.6 you can use the spectrum command to color by chain 
 (will be enumerated) or by residue number. 
 http://pymolwiki.org/index.php/Spectrum
 
 In open-source PyMOL, you could use the spectrumany script to color by 
 residue number: http://pymolwiki.org/index.php/Spectrumany
 
 Cheers,
  Thomas
 
 On 13 Mar 2014, at 03:19, Chandan Choudhury iitd...@gmail.com wrote:
 On Thu, Mar 13, 2014 at 10:21 AM, Jordan Willis jwillis0...@gmail.com 
 wrote:
 I think...
 
 What is happening is that the color command should take in a name like 
 “color yellow, i. 1 or a CMYK color vector. When you are saying “color 1” 
 it is just starting at the first index of CMYK which is black.
 
 There is a command for your problem though. Just say util.color_chains() and 
 it will color all individual chains a different color.
 
 Thanks Jordon for the reply. 
 
 I tried using util.color_chains(). It colors differently upto chain no. 26. 
 After 26 all the chains are of same color, as I donot have chain no after 
 that.
 Some utility which can color by residue number would be very useful.
 
 Chandan
 
 On Mar 12, 2014, at 11:15 PM, Chandan Choudhury iitd...@gmail.com wrote:
 
 Dear PyMOL users,
 
 I build 100 chains of polymer in a box. Residue number is different for 
 every chain. Chain 1 hasresidue no. 1, chain 2 has residue no. 2 and so on. 
 I want to color each chain differently.
 So, I wrote a script which generates a pml file, and opening this pml file 
 with PyMOL should color each chain differently.
 
 ##color.pml
 load 128md_c.pdb
 select 1, i. 1
 color  1, i. 1
 select 2, i. 2
 color  2, i. 2
 select 3, i. 3
 color  3, i. 3
 select 4, i. 4
 color  4, i. 4
 select 5, i. 5
 color  5, i. 5
 select 6, i. 6
 color  6, i. 6
 select 7, i. 7
 ...
 ...
 color  125, i. 125
 select 126, i. 126
 color  126, i. 126
 select 127, i. 127
 color  127, i. 127
 select 128, i. 128
 color  128, i. 128
 
 I have 128 chains.
 
 What I find that mostly green or black dominates the coloring.
 While displaying color by the numeric code, what is the maximum no, after 
 which the color repeats?
 
 Chandan
 
 --
 Chandan Kumar Choudhury
 National Chemical Laboratory, Pune
 India
 
 -- 
 Thomas Holder
 PyMOL Developer
 Schrödinger, Inc.
 
 
 --
 Learn Graph Databases - Download FREE O'Reilly Book
 Graph Databases is the definitive new guide to graph databases and their
 applications. Written by three acclaimed leaders in the field,
 this first edition is now available. Download your free book today!
 http://p.sf.net/sfu/13534_NeoTech
 ___
 PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
 Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
 Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net


This email message, including any attachments, is for the sole use of the 
intended recipient(s) and may contain information that is proprietary, 
confidential, and exempt from disclosure under applicable law. Any unauthorized 
review, use, disclosure, or distribution is prohibited. If you have received 
this email in error please notify the sender by return email and delete the 
original message. Please note, the recipient should check this email and any 
attachments for the presence of viruses. The organization accepts no liability 
for any damage caused by any virus transmitted by this email.
=


--
Learn Graph Databases - Download FREE O'Reilly Book
Graph Databases is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: 

Re: [PyMOL] Yaw, Pitch and Roll of CGO

2014-02-18 Thread Sampson, Jared
Hi Pawel -

If you can determine the primary axis of the cone from the tip and the center 
of the circle at the base, you can give `rotate` an arbitrary [x,y,z] float 
vector as its first argument instead of x, y or z.  For example, if you 
generate your cone using something like the following Python script:

### cone_cgo.py ###

from pymol.cgo import *
from pymol import cmd

# set up the cone
base_xyz = [1.0, 2.0, 3.0]
tip_xyz = [4.0, 5.0, 6.0]
base_radius = 1.0
tip_radius = 0.0
base_color = [0.9, 0.0, 0.0]
tip_color = [0.0, 0.0, 0.9]

# calculate the cone axis
cone_axis = [ tip_xyz[0]-base_xyz[0],
  tip_xyz[1]-base_xyz[1],
  tip_xyz[2]-base_xyz[2] ]

# print the axis to use later
print cone_axis

# generate the cone CGO text
obj = [CONE, base_xyz[0], base_xyz[1], base_xyz[2], tip_xyz[0], tip_xyz[1], 
tip_xyz[2], base_radius, tip_radius, base_color[0], base_color[1], 
base_color[2], tip_color[0], tip_color[1], tip_color[2], 1, 1]

# load it
cmd.load_cgo(obj, 'cone')

# generate a pseudoatom for reference
cmd.pseudoatom('point', pos=[2,5,4])
cmd.show_as('nb_spheres', 'point')

### end cone_cgo.py ###

and load it via `run cone_cgo.py`, then you can rotate the cone on its axis 
using, e.g.:

rotate [3,3,3], 10, object=cone, camera=0

Even with a radially symmetric cone surface, if you look closely, you can see 
the individual polygons changing at the cone base.  You can also rotate the 
scene around the cone axis with, e.g.:

rotate [3,3,3], 10

Hope that helps.

Cheers,
Jared

--
Jared Sampson
Xiangpeng Kong Lab
NYU Langone Medical Center
550 First Avenue
New York, NY 10016
212-263-7898
http://kong.med.nyu.edu/






On Feb 17, 2014, at 2:40 PM, Paweł Tomaszewski 
croov...@gmail.commailto:croov...@gmail.com wrote:

Thank you Thomas
Using camera=0 caused my cone not to do rotations related to the camera 
position.
Cone still rotates not about itself, but about axis of global coordinate system.
Do you have any other ideas?

Cheers,
   Paweł


2014-02-06 17:00 GMT+01:00 Thomas Holder 
thomas.hol...@schrodinger.commailto:thomas.hol...@schrodinger.com:
Hi Pawel,

have you tried using the camera=0 argument?

cmd.rotate(axis, angle, object='yourcone', camera=0)

Cheers,
  Thomas

On 05 Feb 2014, at 15:46, Павел Томашевский 
croov...@gmail.commailto:croov...@gmail.com wrote:

 Hello
 I've made a cone CGO (something like a pointer) and now I need to make a 
 rotation of the cone. I have got yaw, pitch and roll angle values, but when I 
 do 'rotate' command it rotates about axis of the global coordinate system.

 My question is, how to make a rotation of the CGO about axis that is NOT of 
 the global pymol coordinate system but goes through the CGO itself?

 I hope it's clear what I mean ;)

 Thank you
 Pawel


--
Thomas Holder
PyMOL Developer
Schrödinger, Inc.


--
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121054471iu=/4140/ostg.clktrk___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net


This email message, including any attachments, is for the sole use of the 
intended recipient(s) and may contain information that is proprietary, 
confidential, and exempt from disclosure under applicable law. Any unauthorized 
review, use, disclosure, or distribution is prohibited. If you have received 
this email in error please notify the sender by return email and delete the 
original message. Please note, the recipient should check this email and any 
attachments for the presence of viruses. The organization accepts no liability 
for any damage caused by any virus transmitted by this email.
=
--
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121054471iu=/4140/ostg.clktrk___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

Re: [PyMOL] Yaw, Pitch and Roll of CGO

2014-02-18 Thread Sampson, Jared
Hi Pawel -

Glad you were able to make it work.  Also, that haptic device (I guess the new 
version is the Geomagic Touch?) looks pretty neat.

I'm now realizing that when you asked how to make a rotation of the CGO about 
axis that is NOT of the global pymol coordinate system but goes through the CGO 
itself you probably didn't necessarily mean a rotation about the cone's 
primary axis, because that doesn't really do a whole lot unless your object 
isn't radially symmetric!

For correctness' sake, however, I need to amend my previous response.  It turns 
out I chose unfortunate values for the cone base and tip positions in my 
example, which resulted in the cone axis going through the global coordinate 
origin.  My previous attempt fails for cones that don't point at or away from 
the origin.  Whoops!

Thomas'  suggestion about the origin argument fixes it, though.  So for my 
example, I'd also need either the tip or the base position:

# print the values to use later
print tip_xyz = %s % tip_xyz   # need this, too!
print axis = %s % cone_axis

and then rotate the cone with, e.g.:

rotate [3,3,3], 10, object=cone, camera=0, origin=[4,5,6]

or everything with, e.g.:

rotate [3,3,3], 10, origin=[4,5,6]

Cheers,
Jared

--
Jared Sampson
Xiangpeng Kong Lab
NYU Langone Medical Center
550 First Avenue
New York, NY 10016
212-263-7898
http://kong.med.nyu.edu/






On Feb 18, 2014, at 2:04 PM, Paweł Tomaszewski 
croov...@gmail.commailto:croov...@gmail.com
 wrote:

Jared, Thomas thank you guys!

Now everything works great :)
The solution was pretty simple and I don't know why it took me so long...
I have a X,Y and Z coordinates from my SensAble Pantom haptic device and 
quaternions to do rotations of cone.

The problem was, that in 'translate' function I didn't use 'camera=0' option, 
what in did in 'rotate'. Moreover I should set 'origin=[X,Y,Z]' option as well 
as 'camera=0' in rotate option.

Now it work smoothly and pretty nice ;)

Thank you
Paweł



2014-02-18 19:40 GMT+01:00 Sampson, Jared 
jared.samp...@nyumc.orgmailto:jared.samp...@nyumc.org:
Hi Pawel -

If you can determine the primary axis of the cone from the tip and the center 
of the circle at the base, you can give `rotate` an arbitrary [x,y,z] float 
vector as its first argument instead of x, y or z.  For example, if you 
generate your cone using something like the following Python script:

### cone_cgo.py ###

from pymol.cgo import *
from pymol import cmd

# set up the cone
base_xyz = [1.0, 2.0, 3.0]
tip_xyz = [4.0, 5.0, 6.0]
base_radius = 1.0
tip_radius = 0.0
base_color = [0.9, 0.0, 0.0]
tip_color = [0.0, 0.0, 0.9]

# calculate the cone axis
cone_axis = [ tip_xyz[0]-base_xyz[0],
  tip_xyz[1]-base_xyz[1],
  tip_xyz[2]-base_xyz[2] ]

# print the axis to use later
print cone_axis

# generate the cone CGO text
obj = [CONE, base_xyz[0], base_xyz[1], base_xyz[2], tip_xyz[0], tip_xyz[1], 
tip_xyz[2], base_radius, tip_radius, base_color[0], base_color[1], 
base_color[2], tip_color[0], tip_color[1], tip_color[2], 1, 1]

# load it
cmd.load_cgo(obj, 'cone')

# generate a pseudoatom for reference
cmd.pseudoatom('point', pos=[2,5,4])
cmd.show_as('nb_spheres', 'point')

### end cone_cgo.py ###

and load it via `run cone_cgo.py`, then you can rotate the cone on its axis 
using, e.g.:

rotate [3,3,3], 10, object=cone, camera=0

Even with a radially symmetric cone surface, if you look closely, you can see 
the individual polygons changing at the cone base.  You can also rotate the 
scene around the cone axis with, e.g.:

rotate [3,3,3], 10

Hope that helps.

Cheers,
Jared

--
Jared Sampson
Xiangpeng Kong Lab
NYU Langone Medical Center
550 First Avenue
New York, NY 10016
212-263-7898
http://kong.med.nyu.edu/






On Feb 17, 2014, at 2:40 PM, Paweł Tomaszewski 
croov...@gmail.commailto:croov...@gmail.com wrote:

Thank you Thomas
Using camera=0 caused my cone not to do rotations related to the camera 
position.
Cone still rotates not about itself, but about axis of global coordinate system.
Do you have any other ideas?

Cheers,
   Paweł


2014-02-06 17:00 GMT+01:00 Thomas Holder 
thomas.hol...@schrodinger.commailto:thomas.hol...@schrodinger.com:
Hi Pawel,

have you tried using the camera=0 argument?

cmd.rotate(axis, angle, object='yourcone', camera=0)

Cheers,
  Thomas

On 05 Feb 2014, at 15:46, Павел Томашевский 
croov...@gmail.commailto:croov...@gmail.com wrote:

 Hello
 I've made a cone CGO (something like a pointer) and now I need to make a 
 rotation of the cone. I have got yaw, pitch and roll angle values, but when I 
 do 'rotate' command it rotates about axis of the global coordinate system.

 My question is, how to make a rotation of the CGO about axis that is NOT of 
 the global pymol coordinate system but goes through the CGO itself?

 I hope it's clear what I mean ;)

 Thank you
 Pawel


--
Thomas Holder
PyMOL Developer
Schrödinger, Inc.


--
Managing

Re: [PyMOL] selecting atoms ..

2014-02-18 Thread Sampson, Jared
Hi Sampsa -

The long list of ids crashes for me as well.  Instead of listing each id 
separately, you can use ranges to define your selections.

select paska, id 36-58
select isopaska, id 36-350

If you need to use non-continuous ids, you can use Boolean logic to join the 
ranges:

select isopaska_without_id_59, id 36-58 or id 60-350 

Cheers, 
Jared

--
Jared Sampson
Xiangpeng Kong Lab
NYU Langone Medical Center
550 First Avenue
New York, NY 10016
212-263-7898
http://kong.med.nyu.edu/






On Feb 18, 2014, at 1:50 PM, Sampsa Riikonen sampsa.riiko...@iki.fi
 wrote:

 Hi,
 
 I am trying to select a large number of atoms, using a pymol script.  
 The first script file looks like this:
 ---
 select paska, id 
 36+37+38+39+40+41+42+43+44+45+46+47+48+49+50+51+52+53+54+55+56+57+58
 
 The second one like this:
 
 select isopaska, id 
 36+37+38+39+40+41+42+43+44+45+46+47+48+49+50+51+52+53+54+55+56+57+58+59+60+61+62+63+64+65+66+67+68+69+70+71+72+73+74+75+76+77+78+79+80+81+82+83+84+85+86+87+88+89+90+91+92+93+94+95+96+97+98+99+100+101+102+103+104+105+106+107+108+109+110+111+112+113+114+115+116+117+118+119+120+121+122+123+124+125+126+127+128+129+130+131+132+133+134+135+136+137+138+139+140+141+142+143+144+145+146+147+148+149+150+151+152+153+154+155+156+157+158+159+160+161+162+163+164+165+166+167+168+169+170+171+172+173+174+175+176+177+178+179+180+181+182+183+184+185+186+187+188+189+190+191+192+193+194+195+196+197+198+199+200+201+202+203+204+205+206+207+208+209+210+211+212+213+214+215+216+217+218+219+220+221+222+223+224+225+226+227+228+229+230+231+232+233+234+235+236+237+238+239+240+241+242+243+244+245+246+247+248+249+250+251+252+253+254+255+256+257+258+259+260+261+262+263+264+265+266+267+268+269+270+271+272+273+274+275+276+277+278+279+280+281+282+283+284+285+286+287+288+289+290+291+292+293+294+295+296+297+298+299+300+
 
301+302+303+304+305+306+307+308+309+310+311+312+313+314+315+316+317+318+319+320+321+322+323+324+325+326+327+328+329+330+331+332+333+334+335+336+337+338+339+340+341+342+343+344+345+346+347+348+349+350
 -
 
 When running the first script, it works ok, however, if I run the second 
 one, pymol crashes:
 ---
 
 *** buffer overflow detected ***: python2.7 terminated
 === Backtrace: =
 /lib/x86_64-linux-gnu/libc.so.6(__fortify_fail+0x5c)[0x7f171c6ce08c]
 /lib/x86_64-linux-gnu/libc.so.6(+0x111020)[0x7f171c6cd020]
 ...
 ---
 
 How can I select a laarge number of atoms based on their numbers?
 
 Regards,
 
 Sampsa
 
 
 
 
 --
 Managing the Performance of Cloud-Based Applications
 Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
 Read the Whitepaper.
 http://pubads.g.doubleclick.net/gampad/clk?id=121054471iu=/4140/ostg.clktrk
 ___
 PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
 Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
 Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net



This email message, including any attachments, is for the sole use of the 
intended recipient(s) and may contain information that is proprietary, 
confidential, and exempt from disclosure under applicable law. Any unauthorized 
review, use, disclosure, or distribution is prohibited. If you have received 
this email in error please notify the sender by return email and delete the 
original message. Please note, the recipient should check this email and any 
attachments for the presence of viruses. The organization accepts no liability 
for any damage caused by any virus transmitted by this email.
=


--
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121054471iu=/4140/ostg.clktrk
___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net


Re: [PyMOL] generate solvent exclusive surface with scaled VDW radii

2014-02-14 Thread Sampson, Jared
Hi Ye -

The solvent excluded surface is the default surface representation in PyMOL.  
(Solvent accessible surface can also be generated using `set surface_solvent, 
on`.)  View the surface with:

show surface, myobj

You can modify van der Waals radii like this:

alter myobj, vdw=vdw*1.2
rebuild

You can also a selection or `all` instead of your object name.

http://pymolwiki.org/index.php/Surface
http://pymolwiki.org/index.php/Surface_solvent
http://pymolwiki.org/index.php/Alter

Cheers,
Jared

--
Jared Sampson
Xiangpeng Kong Lab
NYU Langone Medical Center
550 First Avenue
New York, NY 10016
212-263-7898
http://kong.med.nyu.edu/






On Feb 13, 2014, at 11:15 PM, ymei 
y...@itcs.ecnu.edu.cnmailto:y...@itcs.ecnu.edu.cn wrote:

Hi all,

Can anyone tell me how to generate the solvent exclusive surface with
scaled (e.g. 1.2, 1.4, 1.6, etc) VDW radii for protein?
I want to visualize the electrostatic potential on these surfaces, in
order to get an idea how the potential changes from the protein to its
vicinity.

Thank you in advance.

Ye


--
Android apps run on BlackBerry 10
Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
Now with support for Jelly Bean, Bluetooth, Mapview and more.
Get your Android app in front of a whole new audience.  Start now.
http://pubads.g.doubleclick.net/gampad/clk?id=124407151iu=/4140/ostg.clktrk
___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net


This email message, including any attachments, is for the sole use of the 
intended recipient(s) and may contain information that is proprietary, 
confidential, and exempt from disclosure under applicable law. Any unauthorized 
review, use, disclosure, or distribution is prohibited. If you have received 
this email in error please notify the sender by return email and delete the 
original message. Please note, the recipient should check this email and any 
attachments for the presence of viruses. The organization accepts no liability 
for any damage caused by any virus transmitted by this email.
=
--
Android apps run on BlackBerry 10
Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
Now with support for Jelly Bean, Bluetooth, Mapview and more.
Get your Android app in front of a whole new audience.  Start now.
http://pubads.g.doubleclick.net/gampad/clk?id=124407151iu=/4140/ostg.clktrk___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

Re: [PyMOL] Corrupted IDTF file from small molecule (sticks representation)

2014-02-10 Thread Sampson, Jared
Hi Riccardo -

Looking at the source (pymol/layer1/Ray.c, in RayRenderIDTF(), starting around 
line 2254) I can confirm that Sphere, Cone, Cylinder and Sausage 
representations are not implemented in the IDTF exporter.  Currently only 
triangle mesh representations (cartoon, surface) are supported.

Hope that answers your question,

Jared

--
Jared Sampson
Xiangpeng Kong Lab
NYU Langone Medical Center
550 First Avenue
New York, NY 10016
212-263-7898
http://kong.med.nyu.edu/






On Feb 9, 2014, at 12:26 PM, Riccardo 
mitm...@gmail.commailto:mitm...@gmail.com wrote:

Hello to the PyMOL mailing list,
this is my first post.

I need to ask if there is some reason for which PyMOL fails to export a good 
idtf file from a small molecule visualized as sticks. In this case, neither 
IDTFConverter nor MeshLab (under Linux and Windows) can convert the file in an 
u3d file, because these two programs reject the PyMOL idtf output, reporting an 
error.

Different if I export the idtf from Jmol: in this case, the file is dozens of 
times bigger in size than PyMOL's output, and the u3d is generated without 
errors with sticks representation.

I noticed that, only when the style is set to cartoon (for proteins, not small 
molecules), the idtf file is good, but always without any other graphic 
representation different from the cartoon. Is this a limit for PyMOL idtf 
exporter, for which an implementation is required?

Thanks a lot,

Riccardo Volpe



[http://lh3.googleusercontent.com/-l_W2_-XQUNc/AAI/AAA/aYl9hZ3l-PU/s30-c/photo.jpg]
 ChemBioScripting | X3D PyMOL Molecule Viewerhttp://chembioscripting.hol.es/ 
| Gioacchino Riccardo Volpe
--
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231iu=/4140/ostg.clktrk___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net


This email message, including any attachments, is for the sole use of the 
intended recipient(s) and may contain information that is proprietary, 
confidential, and exempt from disclosure under applicable law. Any unauthorized 
review, use, disclosure, or distribution is prohibited. If you have received 
this email in error please notify the sender by return email and delete the 
original message. Please note, the recipient should check this email and any 
attachments for the presence of viruses. The organization accepts no liability 
for any damage caused by any virus transmitted by this email.
=
--
Android apps run on BlackBerry 10
Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
Now with support for Jelly Bean, Bluetooth, Mapview and more.
Get your Android app in front of a whole new audience.  Start now.
http://pubads.g.doubleclick.net/gampad/clk?id=124407151iu=/4140/ostg.clktrk___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

  1   2   >