<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none"><!-- p { margin-top: 0px; margin-bottom: 0px; }--></style>
</head>
<body dir="ltr" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>&#8203;Hi Greg,<br>
</p>
<p>I'm sorry for this crash of fit_loops! &nbsp;</p>
<p><br>
</p>
<p>It looks like somehow a map_coeffs array that has anomalous information was given to fit loops. &nbsp;That seems like a bug, so if you can send me the input files and full log I will try to fix it. &nbsp;<br>
</p>
<p><br>
</p>
<p>In the meantime, if you run with a file that has only non-anomalous data in it perhaps that will get around the problem.<br>
</p>
<p><br>
</p>
<p>All the best,<br>
</p>
<p>Tom T<br>
</p>
<p><br>
</p>
<div style="word-wrap:break-word">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> phenixbb-bounces@phenix-online.org &lt;phenixbb-bounces@phenix-online.org&gt; on behalf of Greg Bowman &lt;gdbowman@jhu.edu&gt;<br>
<b>Sent:</b> Thursday, April 21, 2016 10:28 AM<br>
<b>To:</b> phenixbb@phenix-online.org<br>
<b>Subject:</b> [phenixbb] fit_loops using loop_lib</font>
<div>&nbsp;</div>
</div>
<div>Hi all -
<div class=""><br class="">
</div>
<div class="">I&#8217;m having a problem getting phenix.fit_loops to run using the loop library (loop_lib=True). The phenix.fit_loops seems to work fine without this keyword (I get a good solution for a test case), but I have 3A density and wanted to restrict solutions
 to the loop library for the poorer density regions. I am running this from the command line, with this input:</div>
<div class=""><br class="">
</div>
<div class="">
<div class="" style="margin:0px; font-size:11px; line-height:normal; font-family:Menlo">
phenix.fit_loops pdb_in=refine_35-delloop1170to1172.pdb mtz_in=refine_35.mtz \</div>
<div class="" style="margin:0px; font-size:11px; line-height:normal; font-family:Menlo">
&nbsp;seq_file=KRJmonomer.seq start=1170 end=1172 chain_id=B \</div>
<div class="" style="margin:0px; font-size:11px; line-height:normal; font-family:Menlo">
&nbsp;loop_lib=True &gt;&gt; fit_loops-1170to1172-looplibrary.log</div>
</div>
<div class=""><br class="">
</div>
<div class="">I am using OSX ElCapitan (10.11.3) and get this error:</div>
<div class=""><br class="">
</div>
<div class="">
<div class="" style="margin:0px; font-size:11px; line-height:normal; font-family:Menlo">
File &quot;/Applications/phenix-1.10.1-2155/build/../modules/phenix/phenix/command_line/fit_loops.py&quot;, line 962, in &lt;module&gt;</div>
<div class="" style="margin:0px; font-size:11px; line-height:normal; font-family:Menlo">
&nbsp; &nbsp; fit_loops=fit_loops(args=sys.argv[1:])</div>
<div class="" style="margin:0px; font-size:11px; line-height:normal; font-family:Menlo">
&nbsp; File &quot;/Applications/phenix-1.10.1-2155/build/../modules/phenix/phenix/command_line/fit_loops.py&quot;, line 598, in __init__</div>
<div class="" style="margin:0px; font-size:11px; line-height:normal; font-family:Menlo">
&nbsp; &nbsp; target_time=target_time,</div>
<div class="" style="margin:0px; font-size:11px; line-height:normal; font-family:Menlo">
&nbsp; File &quot;/Applications/phenix-1.10.1-2155/build/../modules/phenix/phenix/command_line/fit_loops.py&quot;, line 760, in run_fit</div>
<div class="" style="margin:0px; font-size:11px; line-height:normal; font-family:Menlo">
&nbsp; &nbsp; target_time=target_time,</div>
<div class="" style="margin:0px; font-size:11px; line-height:normal; font-family:Menlo">
&nbsp; File &quot;/Applications/phenix-1.10.1-2155/modules/phenix/phenix/autosol/UserMethods.py&quot;, line 3671, in Build_fit_gaps</div>
<div class="" style="margin:0px; font-size:11px; line-height:normal; font-family:Menlo">
&nbsp; &nbsp; starting_residue_number=starting_residue_number)</div>
<div class="" style="margin:0px; font-size:11px; line-height:normal; font-family:Menlo">
&nbsp; File &quot;/Applications/phenix-1.10.1-2155/modules/phenix/phenix/loop_lib/clustering.py&quot;, line 2063, in apply_clusters</div>
<div class="" style="margin:0px; font-size:11px; line-height:normal; font-family:Menlo">
&nbsp; &nbsp; d=get_density_map(map_coeffs_array=map_coeffs_array)</div>
<div class="" style="margin:0px; font-size:11px; line-height:normal; font-family:Menlo">
&nbsp; File &quot;/Applications/phenix-1.10.1-2155/modules/phenix/phenix/utilities/get_density_map.py&quot;, line 54, in __init__</div>
<div class="" style="margin:0px; font-size:11px; line-height:normal; font-family:Menlo">
&nbsp; &nbsp; assert not map_coeffs_array.anomalous_flag()</div>
<div class="" style="margin:0px; font-size:11px; line-height:normal; font-family:Menlo">
AssertionError</div>
</div>
<div class=""><br class="">
</div>
<div class="">The last lines of the log file are:</div>
<div class=""><br class="">
</div>
<div class="">
<div class="" style="margin:0px; font-size:11px; line-height:normal; font-family:Menlo">
Fitting loop with loop-library...</div>
<div class="" style="margin:0px; font-size:11px; line-height:normal; font-family:Menlo">
loop_lib length (including 3 on each end): 9</div>
<div class="" style="margin:0px; font-size:11px; line-height:normal; font-family:Menlo">
DATABASE:&nbsp; /Applications/phenix-1.10.1-2155/modules/chem_data/loop_library/loops_9_2.5/loop_lib&nbsp; CLUSTER_FILE:&nbsp; split_clusters.pkl.gz</div>
</div>
<div class=""><br class="">
</div>
<div class="">Thanks,</div>
<div class="">Greg</div>
<div class=""><br class="">
</div>
<div class="">
<div class=""><span class="Apple-style-span" style="border-collapse:separate; line-height:normal; border-spacing:0px"><span class="Apple-style-span" style="border-collapse:separate; color:rgb(0,0,0); font-family:Helvetica; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:2; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px">
<div class="" style="word-wrap:break-word"><span class="Apple-style-span" style="border-collapse:separate; color:rgb(0,0,0); font-family:Helvetica; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:2; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px">
<div class="" style="word-wrap:break-word"><span class="Apple-style-span" style="border-collapse:separate; color:rgb(0,0,0); font-family:Helvetica; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:2; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px">
<div class="" style="word-wrap:break-word"><br class="">
</div>
</span></div>
</span></div>
</span></span></div>
<br class="">
</div>
</div>
</div>
</body>
</html>