<div dir="ltr">On Tue, Dec 9, 2014 at 6:47 AM, PC <span dir="ltr">&lt;<a href="mailto:patrick.cossins@inbox.com" target="_blank">patrick.cossins@inbox.com</a>&gt;</span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I was wondering if there is a small script I can use to generate the outline of the allowed regions of Ramachandran map on to which I can superimpose my coordinates phi and psi?<br>
<br>
Something like what appears in COOT-&gt;Validate-&gt;Ramachandran Plot.<br></blockquote><div><br></div><div>We do the same thing in the Phenix GUI using the matplotlib library, and the same code can be used to generate images independently of the GUI.  If you run this command:</div><div><br></div><div>phenix.ramalyze --plot model.pdb</div><div><br></div><div>it will generate PNG images of the plots for each residue type.  Since all of the code is available you are welcome to tinker with it if you want to adjust the appearance (or extract the core routines and use them differently).  FYI, the actual contours are generated by using the contour() function in matplotlib, and the smooth gradients generated using imshow().</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
How does one generate such images for publications?<br></blockquote><div><br></div><div>The PNG might be good enough, but you can also output postscript or PDF from matplotlib - this isn&#39;t directly exposed in phenix.ramalyze, however.</div><div><br></div><div>-Nat </div></div></div></div>