Re: [PyMOL] Selecting ASP and GLU
For me, color red, resn asp+glu works. Maia Martin Hediger wrote: Dear all What is the selection syntax to select all GLU and ASP residues within an object? I'm trying it the way its written on the wiki: remove resn hoh# remove water h_add # add hydrogens as surface color grey90 color slate, resn lys # lysines in light blue color paleyellow, resn cys # cysteines in light yellow *color tv_red, (resn asp or(resn glu)) # aspartic and glutamic acid in light red* but, the selection kind of does not work for me (I'm assuming the operator for the logical AND is 'and'). What is it that I need to do differently? Kind regards Martin -- Free Software Download: Index, Search Analyze Logs and other IT data in Real-Time with Splunk. Collect, index and harness all the fast moving IT data generated by your applications, servers and devices whether physical, virtual or in the cloud. Deliver compliance at lower cost and gain new business insights. http://p.sf.net/sfu/splunk-dev2dev ___ 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 -- Free Software Download: Index, Search Analyze Logs and other IT data in Real-Time with Splunk. Collect, index and harness all the fast moving IT data generated by your applications, servers and devices whether physical, virtual or in the cloud. Deliver compliance at lower cost and gain new business insights. http://p.sf.net/sfu/splunk-dev2dev ___ 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] Selecting ASP and GLU
Hi, Seems to work fine for me. I'm using version 1.3, although I doubt that this could be a version compatibility problem. Could you give more specifics on how it doesn't work for you (ASPs not colored red or GLUs not colored red, etc.) ? Note that the parenthesis around 'resn glu' aren't needed. Tim On Tue, Mar 1, 2011 at 7:44 AM, Martin Hediger ma@bluewin.ch wrote: Dear all What is the selection syntax to select all GLU and ASP residues within an object? I'm trying it the way its written on the wiki: remove resn hoh# remove water h_add # add hydrogens as surface color grey90 color slate, resn lys # lysines in light blue color paleyellow, resn cys # cysteines in light yellow*color tv_red, (resn asp or(resn glu)) # aspartic and glutamic acid in light red* but, the selection kind of does not work for me (I'm assuming the operator for the logical AND is 'and'). What is it that I need to do differently? Kind regards Martin -- Free Software Download: Index, Search Analyze Logs and other IT data in Real-Time with Splunk. Collect, index and harness all the fast moving IT data generated by your applications, servers and devices whether physical, virtual or in the cloud. Deliver compliance at lower cost and gain new business insights. http://p.sf.net/sfu/splunk-dev2dev ___ 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 -- Free Software Download: Index, Search Analyze Logs and other IT data in Real-Time with Splunk. Collect, index and harness all the fast moving IT data generated by your applications, servers and devices whether physical, virtual or in the cloud. Deliver compliance at lower cost and gain new business insights. http://p.sf.net/sfu/splunk-dev2dev ___ 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] Selecting ASP and GLU
I believe the confusion is caused by the simplified selection expression in PyMOL (and some other visualization tools as well). I remember that one of my colleagues once questioned strongly the reason of using OR instead of AND in such situation. The expression: select resn GLU or resn ASP actually means select (resn == GLU) or (resn == ASP) The reason of using Boolean operator *or* is very clean when the two operands are stated completely. But when the operands are simplified, our first reaction is to use *and* because it is very natural to say I want GLU *and* ASP if you want both GLU and ASP. And it is even more confusing in Jmol : select 110 or 112 (select resno==110 or resn==112) if want you really want is 110 *and* 112 :) hongbo On 03/01/2011 05:43 PM, Jason Vertrees wrote: Hi Martin, To select all ASPs and GLUs just type, select resn GLU+ASP or select resn GLU or resn ASP or, if you need parentheses, select ((resn GLU) or (resn ASP)) Maybe this will help: # fetch a test protein fetch 1rsy, async=0 # color all ASPs and GLUs red color tv_red, (resn ASP or resn GLU) While the boolean 'and' works, the following will fail to select and color any atoms: color tv_red, (resn ASP and resn GLU) because there will be no _single atom_ in both an ASP and a GLU. The boolean 'and' in (resn ASP and resn GLU) requests an atom that is in any ASP _and_ in any GLU--which is impossible. Cheers, -- Jason On Tue, Mar 1, 2011 at 7:44 AM, Martin Hedigerma@bluewin.ch wrote: Dear all What is the selection syntax to select all GLU and ASP residues within an object? I'm trying it the way its written on the wiki: remove resn hoh# remove water h_add # add hydrogens as surface color grey90 color slate, resn lys # lysines in light blue color paleyellow, resn cys # cysteines in light yellow color tv_red, (resn asp or(resn glu)) # aspartic and glutamic acid in light red but, the selection kind of does not work for me (I'm assuming the operator for the logical AND is 'and'). What is it that I need to do differently? Kind regards Martin -- Free Software Download: Index, Search Analyze Logs and other IT data in Real-Time with Splunk. Collect, index and harness all the fast moving IT data generated by your applications, servers and devices whether physical, virtual or in the cloud. Deliver compliance at lower cost and gain new business insights. http://p.sf.net/sfu/splunk-dev2dev ___ 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 -- Hongbo ZHU Postdoctoral Researcher Structural Bioinformatics Technische Universität Dresden Biotechnology Center Tatzberg 47/49 01307 Dresden, Germany Tel: +49 (0) 351 463-40083 Fax: +49 (0) 351 463-40087 E-Mail: hongbo.zhu at biotec Webpage: www.biotec.tu-dresden.de -- Free Software Download: Index, Search Analyze Logs and other IT data in Real-Time with Splunk. Collect, index and harness all the fast moving IT data generated by your applications, servers and devices whether physical, virtual or in the cloud. Deliver compliance at lower cost and gain new business insights. http://p.sf.net/sfu/splunk-dev2dev ___ 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] Selecting ASP and GLU
Hey :) It's good to note that programs are written by programmers, using programmer's logic.The confusion is not so much caused by the simplified expression, but by users with little background in mathematics/logic assessing 'and' and 'or' from a linguistic background. In computer science and mathematics OR := union, AND := intersection. It's covered quite well in http://www.pymolwiki.org/index.php/Selection_Algebra Cheers, Tsjerk On Wed, Mar 2, 2011 at 11:06 AM, Hongbo Zhu hongbo@biotec.tu-dresden.de wrote: I believe the confusion is caused by the simplified selection expression in PyMOL (and some other visualization tools as well). I remember that one of my colleagues once questioned strongly the reason of using OR instead of AND in such situation. The expression: select resn GLU or resn ASP actually means select (resn == GLU) or (resn == ASP) The reason of using Boolean operator *or* is very clean when the two operands are stated completely. But when the operands are simplified, our first reaction is to use *and* because it is very natural to say I want GLU *and* ASP if you want both GLU and ASP. And it is even more confusing in Jmol : select 110 or 112 (select resno==110 or resn==112) if want you really want is 110 *and* 112 :) hongbo On 03/01/2011 05:43 PM, Jason Vertrees wrote: Hi Martin, To select all ASPs and GLUs just type, select resn GLU+ASP or select resn GLU or resn ASP or, if you need parentheses, select ((resn GLU) or (resn ASP)) Maybe this will help: # fetch a test protein fetch 1rsy, async=0 # color all ASPs and GLUs red color tv_red, (resn ASP or resn GLU) While the boolean 'and' works, the following will fail to select and color any atoms: color tv_red, (resn ASP and resn GLU) because there will be no _single atom_ in both an ASP and a GLU. The boolean 'and' in (resn ASP and resn GLU) requests an atom that is in any ASP _and_ in any GLU--which is impossible. Cheers, -- Jason On Tue, Mar 1, 2011 at 7:44 AM, Martin Hedigerma@bluewin.ch wrote: Dear all What is the selection syntax to select all GLU and ASP residues within an object? I'm trying it the way its written on the wiki: remove resn hoh # remove water h_add # add hydrogens as surface color grey90 color slate, resn lys # lysines in light blue color paleyellow, resn cys # cysteines in light yellow color tv_red, (resn asp or(resn glu)) # aspartic and glutamic acid in light red but, the selection kind of does not work for me (I'm assuming the operator for the logical AND is 'and'). What is it that I need to do differently? Kind regards Martin -- Free Software Download: Index, Search Analyze Logs and other IT data in Real-Time with Splunk. Collect, index and harness all the fast moving IT data generated by your applications, servers and devices whether physical, virtual or in the cloud. Deliver compliance at lower cost and gain new business insights. http://p.sf.net/sfu/splunk-dev2dev ___ 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 -- Hongbo ZHU Postdoctoral Researcher Structural Bioinformatics Technische Universität Dresden Biotechnology Center Tatzberg 47/49 01307 Dresden, Germany Tel: +49 (0) 351 463-40083 Fax: +49 (0) 351 463-40087 E-Mail: hongbo.zhu at biotec Webpage: www.biotec.tu-dresden.de -- Free Software Download: Index, Search Analyze Logs and other IT data in Real-Time with Splunk. Collect, index and harness all the fast moving IT data generated by your applications, servers and devices whether physical, virtual or in the cloud. Deliver compliance at lower cost and gain new business insights. http://p.sf.net/sfu/splunk-dev2dev ___ 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 -- Tsjerk A. Wassenaar, Ph.D. post-doctoral researcher Molecular Dynamics Group * Groningen Institute for Biomolecular Research and Biotechnology * Zernike Institute for Advanced Materials University of Groningen The Netherlands -- Free Software Download: Index, Search Analyze Logs and other IT data in Real-Time with Splunk. Collect, index and harness all the fast moving IT data generated by your applications, servers and devices whether physical, virtual or in the cloud. Deliver compliance at lower cost and gain new business insights.
Re: [PyMOL] Selecting ASP and GLU
On 03/02/2011 10:07 PM, Tsjerk Wassenaar wrote: Hey :) It's good to note that programs are written by programmers, using programmer's logic. First of all, I was not complaining about the logic of the PyMOL programmers. I tried to help find out the reason that might cause Martin's script to break based on the similar complains I had received. It is true that programs are written by programmers. But I guess many users actually hate that fact so much because they see again and again that some programmers just presume that all users will think the same way as they think. (Of course after these users become programmers they start to do the same ;) The confusion is not so much caused by the simplified expression, but by users with little background in mathematics/logic assessing 'and' and 'or' from a linguistic background.In computer science and mathematics OR := union, AND := intersection. It's covered quite well in http://www.pymolwiki.org/index.php/Selection_Algebra I disagree. I think it is caused by the simplified expression to the users who think intuitively instead of immediately mathematically when they try to write down the first line of selection script, no matter how much mathematics/logic they have (the colleague I mentioned is a computer scientist). After staring at the unexpected outcome for a while, they will try to think mathematically or google-ly ;). I can not think of a good way to address this small issue for new users. Maybe a more informative hint to the users is helpful rather than just print 0 atoms selected. For example, PyMOL can print the selection result of each operand, or print the complete selection expression translated from the the simplified selection expression. Cheers, Tsjerk On Wed, Mar 2, 2011 at 11:06 AM, Hongbo Zhu hongbo@biotec.tu-dresden.de wrote: I believe the confusion is caused by the simplified selection expression in PyMOL (and some other visualization tools as well). I remember that one of my colleagues once questioned strongly the reason of using OR instead of AND in such situation. The expression: select resn GLU or resn ASP actually means select (resn == GLU) or (resn == ASP) The reason of using Boolean operator *or* is very clean when the two operands are stated completely. But when the operands are simplified, our first reaction is to use *and* because it is very natural to say I want GLU *and* ASP if you want both GLU and ASP. And it is even more confusing in Jmol : select 110 or 112 (select resno==110 or resn==112) if want you really want is 110 *and* 112 :) hongbo On 03/01/2011 05:43 PM, Jason Vertrees wrote: Hi Martin, To select all ASPs and GLUs just type, select resn GLU+ASP or select resn GLU or resn ASP or, if you need parentheses, select ((resn GLU) or (resn ASP)) Maybe this will help: # fetch a test protein fetch 1rsy, async=0 # color all ASPs and GLUs red color tv_red, (resn ASP or resn GLU) While the boolean 'and' works, the following will fail to select and color any atoms: color tv_red, (resn ASP and resn GLU) because there will be no _single atom_ in both an ASP and a GLU. The boolean 'and' in (resn ASP and resn GLU) requests an atom that is in any ASP _and_ in any GLU--which is impossible. Cheers, -- Jason On Tue, Mar 1, 2011 at 7:44 AM, Martin Hedigerma@bluewin.chwrote: Dear all What is the selection syntax to select all GLU and ASP residues within an object? I'm trying it the way its written on the wiki: remove resn hoh# remove water h_add # add hydrogens as surface color grey90 color slate, resn lys # lysines in light blue color paleyellow, resn cys # cysteines in light yellow color tv_red, (resn asp or(resn glu)) # aspartic and glutamic acid in light red but, the selection kind of does not work for me (I'm assuming the operator for the logical AND is 'and'). What is it that I need to do differently? Kind regards Martin -- Free Software Download: Index, SearchAnalyze Logs and other IT data in Real-Time with Splunk. Collect, index and harness all the fast moving IT data generated by your applications, servers and devices whether physical, virtual or in the cloud. Deliver compliance at lower cost and gain new business insights. http://p.sf.net/sfu/splunk-dev2dev ___ 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 -- Hongbo ZHU Postdoctoral Researcher Structural Bioinformatics Technische Universität Dresden Biotechnology Center Tatzberg 47/49 01307 Dresden, Germany Tel: +49 (0) 351 463-40083 Fax: +49 (0) 351 463-40087 E-Mail: hongbo.zhu at biotec Webpage:
Re: [PyMOL] Selecting ASP and GLU
yeah, its true. We should work out a tutorial for this kind of things. Something where there is only one line of instruction and one line of command, like: 1) Download a file fetch pdb1.pdb 2) Select all ASP or GLU residues: select acids, resn ASP+GLU 3) Suggestions? Am 02.03.11 22:36, schrieb Hongbo Zhu: On 03/02/2011 10:07 PM, Tsjerk Wassenaar wrote: Hey :) It's good to note that programs are written by programmers, using programmer's logic. First of all, I was not complaining about the logic of the PyMOL programmers. I tried to help find out the reason that might cause Martin's script to break based on the similar complains I had received. It is true that programs are written by programmers. But I guess many users actually hate that fact so much because they see again and again that some programmers just presume that all users will think the same way as they think. (Of course after these users become programmers they start to do the same ;) The confusion is not so much caused by the simplified expression, but by users with little background in mathematics/logic assessing 'and' and 'or' from a linguistic background.In computer science and mathematics OR := union, AND := intersection. It's covered quite well in http://www.pymolwiki.org/index.php/Selection_Algebra I disagree. I think it is caused by the simplified expression to the users who think intuitively instead of immediately mathematically when they try to write down the first line of selection script, no matter how much mathematics/logic they have (the colleague I mentioned is a computer scientist). After staring at the unexpected outcome for a while, they will try to think mathematically or google-ly ;). I can not think of a good way to address this small issue for new users. Maybe a more informative hint to the users is helpful rather than just print 0 atoms selected. For example, PyMOL can print the selection result of each operand, or print the complete selection expression translated from the the simplified selection expression. Cheers, Tsjerk On Wed, Mar 2, 2011 at 11:06 AM, Hongbo Zhu hongbo@biotec.tu-dresden.de wrote: I believe the confusion is caused by the simplified selection expression in PyMOL (and some other visualization tools as well). I remember that one of my colleagues once questioned strongly the reason of using OR instead of AND in such situation. The expression: select resn GLU or resn ASP actually means select (resn == GLU) or (resn == ASP) The reason of using Boolean operator *or* is very clean when the two operands are stated completely. But when the operands are simplified, our first reaction is to use *and* because it is very natural to say I want GLU *and* ASP if you want both GLU and ASP. And it is even more confusing in Jmol : select 110 or 112 (select resno==110 or resn==112) if want you really want is 110 *and* 112 :) hongbo On 03/01/2011 05:43 PM, Jason Vertrees wrote: Hi Martin, To select all ASPs and GLUs just type, select resn GLU+ASP or select resn GLU or resn ASP or, if you need parentheses, select ((resn GLU) or (resn ASP)) Maybe this will help: # fetch a test protein fetch 1rsy, async=0 # color all ASPs and GLUs red color tv_red, (resn ASP or resn GLU) While the boolean 'and' works, the following will fail to select and color any atoms: color tv_red, (resn ASP and resn GLU) because there will be no _single atom_ in both an ASP and a GLU. The boolean 'and' in (resn ASP and resn GLU) requests an atom that is in any ASP _and_ in any GLU--which is impossible. Cheers, -- Jason On Tue, Mar 1, 2011 at 7:44 AM, Martin Hedigerma@bluewin.ch wrote: Dear all What is the selection syntax to select all GLU and ASP residues within an object? I'm trying it the way its written on the wiki: remove resn hoh# remove water h_add # add hydrogens as surface color grey90 color slate, resn lys # lysines in light blue color paleyellow, resn cys # cysteines in light yellow color tv_red, (resn asp or(resn glu)) # aspartic and glutamic acid in light red but, the selection kind of does not work for me (I'm assuming the operator for the logical AND is 'and'). What is it that I need to do differently? Kind regards Martin -- Free Software Download: Index, Search Analyze Logs and other IT data in Real-Time with Splunk. Collect, index and harness all the fast moving IT data generated by your applications, servers and devices whether physical, virtual or in the cloud. Deliver compliance at lower cost and gain new business insights. http://p.sf.net/sfu/splunk-dev2dev ___ PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net) Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users Archives:
Re: [PyMOL] Selecting ASP and GLU
Hi Martin, The wiki way should work. The only thing I can think of is that you're not doing what you think you're doing :S Did you copy paste the commands from the wiki? Did you get an error? What version are you using? but, the selection kind of does not work for me (I'm assuming the operator for the logical AND is 'and'). That's correct, 'and' gives the intersection. What is it that I need to do differently? Can you provide an example that works using fetch and such? Just a simple script we can try. Cheers, Tsjerk -- Tsjerk A. Wassenaar, Ph.D. post-doctoral researcher Molecular Dynamics Group * Groningen Institute for Biomolecular Research and Biotechnology * Zernike Institute for Advanced Materials University of Groningen The Netherlands -- Free Software Download: Index, Search Analyze Logs and other IT data in Real-Time with Splunk. Collect, index and harness all the fast moving IT data generated by your applications, servers and devices whether physical, virtual or in the cloud. Deliver compliance at lower cost and gain new business insights. http://p.sf.net/sfu/splunk-dev2dev ___ 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] Selecting ASP and GLU
Hi Martin, Try the following: color tv_red, resn asp+glu or color tv_red, resn asp or resn glu Cheers, 2011/3/1 Martin Hediger ma@bluewin.ch Dear all What is the selection syntax to select all GLU and ASP residues within an object? I'm trying it the way its written on the wiki: remove resn hoh# remove water h_add # add hydrogens as surface color grey90 color slate, resn lys # lysines in light blue color paleyellow, resn cys # cysteines in light yellow*color tv_red, (resn asp or(resn glu)) # aspartic and glutamic acid in light red* but, the selection kind of does not work for me (I'm assuming the operator for the logical AND is 'and'). What is it that I need to do differently? Kind regards Martin -- Free Software Download: Index, Search Analyze Logs and other IT data in Real-Time with Splunk. Collect, index and harness all the fast moving IT data generated by your applications, servers and devices whether physical, virtual or in the cloud. Deliver compliance at lower cost and gain new business insights. http://p.sf.net/sfu/splunk-dev2dev ___ 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 -- David Rodríguez Díaz, PhD Student Fundación Pública Galega de Medicina Xenómica (SERGAS) Santiago de Compostela (Spain) http://webspersoais.usc.es/persoais/david.rodriguez.diaz http://webspersoais.usc.es/persoais/david.rodriguez.diaz -- Free Software Download: Index, Search Analyze Logs and other IT data in Real-Time with Splunk. Collect, index and harness all the fast moving IT data generated by your applications, servers and devices whether physical, virtual or in the cloud. Deliver compliance at lower cost and gain new business insights. http://p.sf.net/sfu/splunk-dev2dev ___ 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] Selecting ASP and GLU
Hi Martin - ** Short answer: Use `resn asp+glu` (although your original command actually works for me). ** Not-so-short answer, with a bonus question about comment syntax: The Asp/Glu line of your script can be condensed slightly using a plus sign, but the original syntax of that line actually works fine for me (PyMOL v.1.3, Fink/X11 build on Mac OS 10.6.6). However, for me, the lines to remove waters and add hydrogens fail. To elaborate, I've found that, with certain commands (but oddly not all of them -- for example, the `color` statements in your original script handle this just fine), adding a comment on the same line returns a Malformed selection error. I don't know if this is by design or an unintended feature. I would expect these comments to be handled the same way as in Python code, but for whatever reason, they are not. (Query for the developers: Is there a specific reason some PyMOL functions attempt to include the hash mark and comment in the selection, rather than ignoring everything after the #? Perhaps it has something to do with the number of arguments--both the commands below that fail with an inline comment take only a single selection argument.) If you really want to keep the comment on the same line, add a semicolon between the command and the comment. The other option, of course, is to place the comment on the previous line. Also, you can use `remove solvent` to cover all the different ways of describing water (HOH, WAT, H2O). Try this: # remove water remove solvent; # or put the comment on the same line after a semicolon # add hydrogens h_add; # this one also requires a semicolon # basic view as surface color grey90 # color lys blue, cys yellow, asp/glu red color slate, resn lys# comments here seem to work without the semicolon color paleyellow, resn cys color tv_red, resn asp+glu Hope that helps, -- Jared Sampson Xiangpeng Kong Lab NYU Langone Medical Center New York, NY 10016 212-263-7898 On Mar 1, 2011, at 7:44 AM, Martin Hediger wrote: Dear all What is the selection syntax to select all GLU and ASP residues within an object? I'm trying it the way its written on the wiki: remove resn hoh# remove water h_add # add hydrogens as surface color grey90 color slate, resn lys # lysines in light blue color paleyellow, resn cys # cysteines in light yellow color tv_red, (resn asp or(resn glu)) # aspartic and glutamic acid in light red but, the selection kind of does not work for me (I'm assuming the operator for the logical AND is 'and'). What is it that I need to do differently? Kind regards Martin -- Free Software Download: Index, Search Analyze Logs and other IT data in Real-Time with Splunk. Collect, index and harness all the fast moving IT data generated by your applications, servers and devices whether physical, virtual or in the cloud. Deliver compliance at lower cost and gain new business insights. http://p.sf.net/sfu/splunk-dev2dev ___ 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. = -- Free Software Download: Index, Search Analyze Logs and other IT data in Real-Time with Splunk. Collect, index and harness all the fast moving IT data generated by your applications, servers and devices whether physical, virtual or in the cloud. Deliver compliance at lower cost and gain new business insights. http://p.sf.net/sfu/splunk-dev2dev ___ 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] Selecting ASP and GLU
Hi Martin, To select all ASPs and GLUs just type, select resn GLU+ASP or select resn GLU or resn ASP or, if you need parentheses, select ((resn GLU) or (resn ASP)) Maybe this will help: # fetch a test protein fetch 1rsy, async=0 # color all ASPs and GLUs red color tv_red, (resn ASP or resn GLU) While the boolean 'and' works, the following will fail to select and color any atoms: color tv_red, (resn ASP and resn GLU) because there will be no _single atom_ in both an ASP and a GLU. The boolean 'and' in (resn ASP and resn GLU) requests an atom that is in any ASP _and_ in any GLU--which is impossible. Cheers, -- Jason On Tue, Mar 1, 2011 at 7:44 AM, Martin Hediger ma@bluewin.ch wrote: Dear all What is the selection syntax to select all GLU and ASP residues within an object? I'm trying it the way its written on the wiki: remove resn hoh# remove water h_add # add hydrogens as surface color grey90 color slate, resn lys # lysines in light blue color paleyellow, resn cys # cysteines in light yellow color tv_red, (resn asp or(resn glu)) # aspartic and glutamic acid in light red but, the selection kind of does not work for me (I'm assuming the operator for the logical AND is 'and'). What is it that I need to do differently? Kind regards Martin -- Free Software Download: Index, Search Analyze Logs and other IT data in Real-Time with Splunk. Collect, index and harness all the fast moving IT data generated by your applications, servers and devices whether physical, virtual or in the cloud. Deliver compliance at lower cost and gain new business insights. http://p.sf.net/sfu/splunk-dev2dev ___ 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 -- Jason Vertrees, PhD PyMOL Product Manager Schrodinger, LLC (e) jason.vertr...@schrodinger.com (o) +1 (603) 374-7120 -- Free Software Download: Index, Search Analyze Logs and other IT data in Real-Time with Splunk. Collect, index and harness all the fast moving IT data generated by your applications, servers and devices whether physical, virtual or in the cloud. Deliver compliance at lower cost and gain new business insights. http://p.sf.net/sfu/splunk-dev2dev ___ 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] Selecting ASP and GLU
Hi Martin, On Tue, 01 Mar 2011 13:44:36 +0100 Martin Hediger ma@bluewin.ch wrote: Dear all What is the selection syntax to select all GLU and ASP residues within an object? I'm trying it the way its written on the wiki: remove resn hoh# remove water h_add # add hydrogens as surface color grey90 color slate, resn lys # lysines in light blue color paleyellow, resn cys # cysteines in light yellow *color tv_red, (resn asp or(resn glu)) # aspartic and glutamic acid in light red* The easier way to write that is: color tv_red, resn asp+glu You can string several sorts of selections together that way, for example: select actsite, resi 105+262+286 select aliphatic, resn ala+val+leu+ile Cheers, Rob -- Robert L. Campbell, Ph.D. Senior Research Associate/Adjunct Assistant Professor Botterell Hall Rm 644 Department of Biochemistry, Queen's University, Kingston, ON K7L 3N6 Canada Tel: 613-533-6821Fax: 613-533-2497 robert.campb...@queensu.cahttp://pldserver1.biochem.queensu.ca/~rlc -- Free Software Download: Index, Search Analyze Logs and other IT data in Real-Time with Splunk. Collect, index and harness all the fast moving IT data generated by your applications, servers and devices whether physical, virtual or in the cloud. Deliver compliance at lower cost and gain new business insights. http://p.sf.net/sfu/splunk-dev2dev ___ 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