From: Warren D. <wa...@de...> - 2006-04-03 17:42:40
|
Matt, There isn't an escape sequence, but PyMOL will automatically disable the = asterisk as a wildcard for atom names if any PDB file loaded contains an = asterisk in that field. To manually choose another wildcard for that field, issue something like set atom_name_wildcard, % As for coloring atoms by element, use of wildcards should be avoided -- = use the "elem" operator instead. color red, elem o color blue, elem n color green, elem c etc. Cheers, Warren -- Warren L. DeLano, Ph.D. =20 Principal Scientist . DeLano Scientific LLC =20 . 400 Oyster Point Blvd., Suite 213 =20 . South San Francisco, CA 94080 USA =20 . Biz:(650)-872-0942 Tech:(650)-872-0834 =20 . Fax:(650)-872-0273 Cell:(650)-346-1154 . mailto:wa...@de... =20 =20 > -----Original Message----- > From: pym...@li...=20 > [mailto:pym...@li...] On Behalf Of=20 > Mat...@im... > Sent: Monday, April 03, 2006 8:37 AM > To: Kerff Fr=E9d=E9ric > Cc: pym...@li...; Warren DeLano > Subject: Re: [PyMOL] Atom type selection with the * >=20 >=20 > pym...@li... wrote on 04/03/2006=20 > 09:49:51 AM: >=20 > > Hi Pymol users, > > > > I'm experiencing some trouble with the selection of atom type using=20 > > the "*". Sometimes it works and sometimes it doesn't... > > I used for example: > > color red, object////o* > > 'color red, name o*' give the same result. > > Any idea why it's happening and more interesting what=20 > should I do to=20 > > fix > it. > > Thank you very much. > > > > Fred > > >=20 > Hi Fred - >=20 > I don't have the answer to your question, but I did want to=20 > point out that "*" is a perfectly valid part of the atom name=20 > in some PDB files - the PDB expects you to use it for atoms=20 > in the ribose ring of nucleotides. For example, this is from=20 > a structure I did a while ago: >=20 > HETATM 8021 O5* TTP 1 0.035 48.396 15.975 1.00 50.15 > O > HETATM 8022 C5* TTP 1 -0.048 49.462 14.957 1.00 40.93 > C > HETATM 8023 C4* TTP 1 0.565 50.743 15.416 1.00 38.78 > C > HETATM 8024 O4* TTP 1 -0.194 51.219 16.565 1.00 36.44 > O > HETATM 8025 C3* TTP 1 1.977 50.628 15.948 1.00 38.12 > C > HETATM 8026 O3* TTP 1 2.988 50.525 14.996 1.00 44.69 > O > HETATM 8027 C2* TTP 1 2.084 51.848 16.841 1.00 33.48 > C > HETATM 8028 C1* TTP 1 0.693 51.871 17.477 1.00 33.26 > C >=20 >=20 > So watch out! >=20 >=20 >=20 > Warren - is there a way of escaping the "*" if you want to=20 > use it for selection? Let's say I wanted atom C5* but not C5M. >=20 > Thanks, >=20 > Matt >=20 > -- > Matthew Franklin phone:(917)606-4116 > Senior Scientist, ImClone Systems fax:(212)645-2054 > 180 Varick Street, 6th floor > New York, NY 10014 >=20 >=20 > Confidentiality Note: This e-mail, and any attachment to it,=20 > contains privileged and confidential information intended=20 > only for the use of the > individual(s) or entity named on the e-mail. If the reader=20 > of this e-mail is not the intended recipient, or the employee=20 > or agent responsible for delivering it to the intended=20 > recipient, you are hereby notified that reading it is=20 > strictly prohibited. If you have received this e-mail in=20 > error, please immediately return it to the sender and delete=20 > it from your system. Thank you. >=20 >=20 >=20 > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking=20 > scripting language that extends applications into web and=20 > mobile media. Attend the live webcast and join the prime=20 > developer group breaking into this new coding territory! > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D110944&bid=3D241720& dat=3D121642 > _______________________________________________ > PyMOL-users mailing list > PyM...@li... > https://lists.sourceforge.net/lists/listinfo/pymol-users >=20 >=20 >=20 >=20 |