Hi Krisztina,

check the attached script (strongly modified). It doesn't use a regex anymore, but uses a split function which takes parentheses into account. Also it doesn't parse name and resi, but passes the selection string directly to PyMOL (which understands most of CNS selection syntax!).

Your example selects segid " A", since PyMOL will strip off whitespace from the segid, you might need something like this to fix it before calling plot_noe:

PyMOL> alter all, segi=segi.rjust(4)

Hope that helps.

Cheers,
  Thomas

On 10/31/2012 04:36 PM, Krisztina Feher wrote:
Dear All

thanks to Thomas for the modfication on the plot_noe.py. It turns out
that the CNS .tbl file can have different formats, the one I used only
includes residue ID and atom name, but soemtimes it also inlcudes
segment ID as well, see on the attached file. How do I have to modify
the noe_regex pattern so that it is recognised?

Thanks in advance,
regards,
Krisztina

--
Thomas Holder
MPI for Developmental Biology
Spemannstr. 35
D-72076 Tübingen

Attachment: plot_noe.py
Description: application/chimera

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
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

Reply via email to