<div dir="ltr">Thank you all!<div><br></div><div>Both bash scripts work, both python scripts work!</div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Jun 26, 2018 at 10:36 AM Tristan Croll &lt;<a href="mailto:tic20@cam.ac.uk">tic20@cam.ac.uk</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">... or you could just listen to Pavel!<br>
<br>
On 2018-06-26 14:55, Pavel Afonine wrote:<br>
&gt; This now starts looking like writing a simple python script using<br>
&gt; basic CCTBX functionality is most optimal option.. I&#39;m attaching the<br>
&gt; script that does it. &#39;result&#39; object contains all you need. Just<br>
&gt; format its content the way you like.<br>
&gt; <br>
&gt;  Pavel<br>
&gt; <br>
&gt; On 6/26/18 06:42, CPMAS Chen wrote:<br>
&gt; <br>
&gt;&gt; Thanks!<br>
&gt;&gt; <br>
&gt;&gt; I used the bash scripts you two provided. It works great.<br>
&gt;&gt; <br>
&gt;&gt; A further question, how do I extract the output summary of the<br>
&gt;&gt; molprobity results from all 100 files into a single file. Ideally, I<br>
&gt;&gt; would like to make the data into a table.<br>
&gt;&gt; <br>
&gt;&gt; Appreciate your help!<br>
&gt;&gt; <br>
&gt;&gt; =================================== Summary<br>
&gt;&gt; ===================================<br>
&gt;&gt; <br>
&gt;&gt; Ramachandran outliers = 0.38 %<br>
&gt;&gt; favored = 95.27 %<br>
&gt;&gt; Rotamer outliers = 0.00 %<br>
&gt;&gt; C-beta deviations = 10<br>
&gt;&gt; Clashscore = 184.98<br>
&gt;&gt; RMS(bonds) = 0.0193<br>
&gt;&gt; RMS(angles) = 2.77<br>
&gt;&gt; MolProbity score = 3.06<br>
&gt;&gt; <br>
&gt;&gt; On Mon, Jun 25, 2018 at 5:32 PM Oleg Sobolev &lt;<a href="mailto:osobolev@lbl.gov" target="_blank">osobolev@lbl.gov</a>&gt;<br>
&gt;&gt; wrote:<br>
&gt;&gt; <br>
&gt;&gt; Hi Charles,<br>
&gt;&gt; <br>
&gt;&gt; I would use any scripting language you are familiar with - python,<br>
&gt;&gt; bash, csh. Here is a bash script adapted from<br>
&gt;&gt; <br>
&gt; <a href="https://stackoverflow.com/questions/10523415/bash-script-to-execute-command-on-all-files-in-a-directory" rel="noreferrer" target="_blank">https://stackoverflow.com/questions/10523415/bash-script-to-execute-command-on-all-files-in-a-directory</a><br>
&gt;&gt; [1]<br>
&gt;&gt; <br>
&gt;&gt; for file in *.pdb<br>
&gt;&gt; do<br>
&gt;&gt; echo $file<br>
&gt;&gt; phenix.molprobity &quot;$file&quot; &gt; &quot;$file&quot;_results.txt<br>
&gt;&gt; done<br>
&gt;&gt; <br>
&gt;&gt; On mac - make a file mpscript put it in a directory with your .pdb,<br>
&gt;&gt; then run<br>
&gt;&gt; chmod a+x mpscript<br>
&gt;&gt; ./mpscript<br>
&gt;&gt; <br>
&gt;&gt; Hope it helps.<br>
&gt;&gt; <br>
&gt;&gt; Best regards,<br>
&gt;&gt; Oleg Sobolev.<br>
&gt;&gt; <br>
&gt;&gt; On Mon, Jun 25, 2018 at 1:39 PM, CPMAS Chen &lt;<a href="mailto:cpmasmit@gmail.com" target="_blank">cpmasmit@gmail.com</a>&gt;<br>
&gt;&gt; wrote:<br>
&gt;&gt; <br>
&gt;&gt; Hi, All,<br>
&gt;&gt; <br>
&gt;&gt; I have about 100 structures needs be validated and optimized. what<br>
&gt;&gt; will be a fast way to do so? Can I somehow put phenix.molprobity in<br>
&gt;&gt; a circle?<br>
&gt;&gt; <br>
&gt;&gt; Thanks!<br>
&gt;&gt; <br>
&gt;&gt; --<br>
&gt;&gt; <br>
&gt;&gt; ***************************************************<br>
&gt;&gt; <br>
&gt;&gt; Charles Chen<br>
&gt;&gt; <br>
&gt;&gt; Research Instructor<br>
&gt;&gt; <br>
&gt;&gt; University of Pittsburgh School of Medicine<br>
&gt;&gt; <br>
&gt;&gt; Department of Anesthesiology<br>
&gt;&gt; <br>
&gt;&gt; ******************************************************<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; phenixbb mailing list<br>
&gt;&gt; <a href="mailto:phenixbb@phenix-online.org" target="_blank">phenixbb@phenix-online.org</a><br>
&gt;&gt; <a href="http://phenix-online.org/mailman/listinfo/phenixbb" rel="noreferrer" target="_blank">http://phenix-online.org/mailman/listinfo/phenixbb</a> [2]<br>
&gt;&gt; Unsubscribe: <a href="mailto:phenixbb-leave@phenix-online.org" target="_blank">phenixbb-leave@phenix-online.org</a><br>
&gt; <br>
&gt;  --<br>
&gt; <br>
&gt; ***************************************************<br>
&gt; <br>
&gt; Charles Chen<br>
&gt; <br>
&gt; Research Instructor<br>
&gt; <br>
&gt; University of Pittsburgh School of Medicine<br>
&gt; <br>
&gt; Department of Anesthesiology<br>
&gt; <br>
&gt; ******************************************************<br>
&gt; <br>
&gt; _______________________________________________<br>
&gt; phenixbb mailing list<br>
&gt; <a href="mailto:phenixbb@phenix-online.org" target="_blank">phenixbb@phenix-online.org</a><br>
&gt; <a href="http://phenix-online.org/mailman/listinfo/phenixbb" rel="noreferrer" target="_blank">http://phenix-online.org/mailman/listinfo/phenixbb</a> [2]<br>
&gt; Unsubscribe: <a href="mailto:phenixbb-leave@phenix-online.org" target="_blank">phenixbb-leave@phenix-online.org</a><br>
&gt; <br>
&gt; <br>
&gt; <br>
&gt; Links:<br>
&gt; ------<br>
&gt; [1]<br>
&gt; <a href="https://stackoverflow.com/questions/10523415/bash-script-to-execute-command-on-all-files-in-a-directory" rel="noreferrer" target="_blank">https://stackoverflow.com/questions/10523415/bash-script-to-execute-command-on-all-files-in-a-directory</a><br>
&gt; [2] <a href="http://phenix-online.org/mailman/listinfo/phenixbb" rel="noreferrer" target="_blank">http://phenix-online.org/mailman/listinfo/phenixbb</a><br>
&gt; <br>
&gt; _______________________________________________<br>
&gt; phenixbb mailing list<br>
&gt; <a href="mailto:phenixbb@phenix-online.org" target="_blank">phenixbb@phenix-online.org</a><br>
&gt; <a href="http://phenix-online.org/mailman/listinfo/phenixbb" rel="noreferrer" target="_blank">http://phenix-online.org/mailman/listinfo/phenixbb</a><br>
&gt; Unsubscribe: <a href="mailto:phenixbb-leave@phenix-online.org" target="_blank">phenixbb-leave@phenix-online.org</a><br>
<br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>







<p></p><p>***************************************************</p><p>Charles Chen</p><p>Research Instructor</p><p>University of Pittsburgh School of Medicine</p><p>Department of Anesthesiology</p><p>******************************************************</p><p></p></div></div></div>