[chimera-dev] read file by python script and color pdb file with script

Sanjeev Sariya s.sariya_work at ymail.com
Mon Apr 21 20:33:58 PDT 2014


I am having 2 coordinates in check file. I want to take/read them and paint my pdb file loaded in chimera.
I have chimera in my ~/bin/
System specs: ubuntu 64 bit, 13.10, 4gb ram

Below is the command I have used for script-chimera communication

$ chimera64-1.8.1 --script "y.py check" -- Q6UXT6.pdb


I am storing values in listu and want to use them for coloring my file loaded.

    rc("color blue :"+listu[0]+"-"+listu[1])

This works well, if hard coded
rc ("color red :55-86")


I do not get any error. The particular protein length is not colored.


attached 3 files.
Kindly suggest, how do I proceed.

 
--
Regards

Sariya
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://plato.cgl.ucsf.edu/pipermail/chimera-dev/attachments/20140421/2be4deb4/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Q6UXT6.pdb
Type: application/octet-stream
Size: 266255 bytes
Desc: not available
URL: <http://plato.cgl.ucsf.edu/pipermail/chimera-dev/attachments/20140421/2be4deb4/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: y.py
Type: application/octet-stream
Size: 455 bytes
Desc: not available
URL: <http://plato.cgl.ucsf.edu/pipermail/chimera-dev/attachments/20140421/2be4deb4/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: check
Type: application/octet-stream
Size: 6 bytes
Desc: not available
URL: <http://plato.cgl.ucsf.edu/pipermail/chimera-dev/attachments/20140421/2be4deb4/attachment-0002.obj>


More information about the Chimera-dev mailing list