<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
The bug was present in the original implementation of the code:</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<a href="https://github.com/cctbx/cctbx_project/commit/13b9b26f622fe8a99cc65102b657f551ab1ecb33#diff-7299f5e6607d26db001fa97199b85100bd388c682f736db5a49029ea2cbe3ad0R403">https://github.com/cctbx/cctbx_project/commit/13b9b26f622fe8a99cc65102b657f551ab1ecb33#diff-7299f5e6607d26db001fa97199b85100bd388c682f736db5a49029ea2cbe3ad0R403</a><br>
</div>
<div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="Signature">
<div>
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:'Segoe UI',Helvetica,Arial,sans-serif; font-size:medium; margin:0px">
<font face="Calibri,sans-serif" size="2"><span style="font-size:11pt"><font face="Verdana,sans-serif" size="2"><span style="font-size:10pt">Dr Richard Gildea</span></font></span></font></div>
<div style="font-family:'Segoe UI',Helvetica,Arial,sans-serif; font-size:medium; margin:0px">
<font face="Calibri,sans-serif" size="2"><span style="font-size:11pt"><font face="Verdana,sans-serif" size="2"><span style="font-size:10pt; background-color:white">Data Analysis Scientist</span></font></span></font></div>
<div style="font-family:'Segoe UI',Helvetica,Arial,sans-serif; font-size:medium; margin:0px">
<font face="Calibri,sans-serif" size="2"><span style="font-size:11pt"><font face="Verdana,sans-serif" size="2"><span style="font-size:10pt">Tel: +441235 77 8078</span></font></span></font></div>
<div style="font-family:'Segoe UI',Helvetica,Arial,sans-serif; font-size:medium; margin:0px">
<font face="Calibri,sans-serif" size="2"><span style="font-size:11pt">&nbsp;</span></font></div>
<div style="font-family:'Segoe UI',Helvetica,Arial,sans-serif; font-size:medium; margin:0px">
<font face="Calibri,sans-serif" size="2"><span style="font-size:11pt"><font face="Verdana,sans-serif" size="2"><span style="font-size:10pt">Diamond Light Source Ltd.</span></font></span></font></div>
<div style="font-family:'Segoe UI',Helvetica,Arial,sans-serif; font-size:medium; margin:0px">
<font face="Calibri,sans-serif" size="2"><span style="font-size:11pt"><font face="Verdana,sans-serif" size="2"><span style="font-size:10pt">Diamond House</span></font></span></font></div>
<div style="font-family:'Segoe UI',Helvetica,Arial,sans-serif; font-size:medium; margin:0px">
<font face="Calibri,sans-serif" size="2"><span style="font-size:11pt"><font face="Verdana,sans-serif" size="2"><span style="font-size:10pt">Harwell Science &amp; Innovation Campus</span></font></span></font></div>
<div style="font-family:'Segoe UI',Helvetica,Arial,sans-serif; font-size:medium; margin:0px">
<font face="Calibri,sans-serif" size="2"><span style="font-size:11pt"><font face="Verdana,sans-serif" size="2"><span style="font-size:10pt">Didcot</span></font></span></font></div>
<div style="font-family:'Segoe UI',Helvetica,Arial,sans-serif; font-size:medium; margin:0px">
<font face="Calibri,sans-serif" size="2"><span style="font-size:11pt"><font face="Verdana,sans-serif" size="2"><span style="font-size:10pt">Oxfordshire</span></font></span></font></div>
<div style="font-family:'Segoe UI',Helvetica,Arial,sans-serif; font-size:medium; margin:0px">
<font face="Calibri,sans-serif" size="2"><span style="font-size:11pt"><font face="Verdana,sans-serif" size="2"><span style="font-size:10pt">OX11 0DE</span></font></span></font></div>
</div>
</div>
</div>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> cctbxbb-bounces@phenix-online.org &lt;cctbxbb-bounces@phenix-online.org&gt; on behalf of Winter, Graeme (DLSLtd,RAL,LSCI) &lt;Graeme.Winter@diamond.ac.uk&gt;<br>
<b>Sent:</b> 21 April 2021 16:53<br>
<b>To:</b> cctbx mailing list &lt;cctbxbb@phenix-online.org&gt;<br>
<b>Subject:</b> Re: [cctbxbb] Question/a possible typo in sampling backrub and side chain conformations in mmtbx</font>
<div>&nbsp;</div>
</div>
<div class="" style="word-wrap:break-word; line-break:after-white-space">Hi Nigel,
<div class=""><br class="">
</div>
<div class="">Search and replace was _probably_ to done as an abstract syntax tree replacement - but I would be surprised if �O� was replaced with �self� (surprised, but not impossible)&nbsp;</div>
<div class=""><br class="">
</div>
<div class="">Do you have the commit I could check? Evidently if people did not notice for 2 years the code is not well tested� but equally I am surprised.&nbsp;</div>
<div class=""><br class="">
</div>
<div class="">Oh, found it</div>
<div class=""><br class="">
</div>
<div class=""><a href="https://github.com/cctbx/cctbx_project/commit/c0ac70cab55b41b874bdb2ec1a97d516eb722e42" class="">https://github.com/cctbx/cctbx_project/commit/c0ac70cab55b41b874bdb2ec1a97d516eb722e42</a></div>
<div class=""><br class="">
</div>
<div class="">looking...</div>
<div class=""><br class="">
</div>
<div class="">Thanks Graeme<br class="">
<div><br class="">
<blockquote type="cite" class="">
<div class="">On 21 Apr 2021, at 16:48, Nigel Moriarty &lt;<a href="mailto:nwmoriarty@lbl.gov" class="">nwmoriarty@lbl.gov</a>&gt; wrote:</div>
<br class="x_Apple-interchange-newline">
<div class="">
<div dir="ltr" class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none">
<div class="x_gmail_quote">
<blockquote class="x_gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left-width:1px; border-left-style:solid; border-left-color:rgb(204,204,204); padding-left:1ex">
<div dir="ltr" class="">
<div dir="ltr" class=""><font face="arial, sans-serif" class=""><br class="x_Apple-interchange-newline">
Hi,</font><br class="">
<div class="" style=""><br class="">
</div>
<div class="" style="">Not sure if this message was posted earlier or not, that is why I am reposting it.</div>
<div class="" style=""><br class="">
</div>
<div class="" style=""><font face="arial, sans-serif" class="">I had a couple of questions about sampling backrub and sidechains&nbsp;using the building or refinement modules in cctbx_project/mmtbx.</font></div>
<div class="" style=""><font face="arial, sans-serif" class=""><br class="">
</font></div>
<div class="" style="">
<div class="" style="margin:0px; font-stretch:normal; line-height:normal"><span class="" style="font-variant-ligatures:no-common-ligatures"><font face="arial, sans-serif" class="">1) In the file:&nbsp;<a href="http://mmtbx.building.alternate_conformations.conformer_generation.py/" target="_blank" class="">mmtbx.building.alternate_conformations.conformer_generation.py</a></font></span></div>
<div class="" style="margin:0px; font-stretch:normal; line-height:normal"><span class="" style="font-variant-ligatures:no-common-ligatures"><font face="arial, sans-serif" class=""><br class="">
</font></span></div>
<div class="" style="margin:0px; font-stretch:normal; line-height:normal"><font face="arial, sans-serif" class=""><span class="" style="font-variant-ligatures:no-common-ligatures">In the function&nbsp;</span><span class="" style="color:rgb(159,160,28); font-variant-ligatures:no-common-ligatures">def</span><span class="" style="font-variant-ligatures:no-common-ligatures">&nbsp;</span><span class="" style="font-variant-ligatures:no-common-ligatures"><font color="#2eaebb" class="" style="font-weight:bold">__call__:&nbsp;</font><font class="">the
 if statements for checking whether the sampled side chain conformation is a rotamer outlier or not, the check in the if statement is for &quot;selfUTLIER&quot;.</font></span></font></div>
<div class="" style="margin:0px; font-stretch:normal; line-height:normal"><font face="arial, sans-serif" class=""><span class="" style="font-variant-ligatures:no-common-ligatures"><br class="">
</span></font></div>
<div class="" style="margin:0px; font-stretch:normal; line-height:normal"><font face="arial, sans-serif" class=""><span class="" style="font-variant-ligatures:no-common-ligatures"><font class="">Also in the function&nbsp;</font></span><span class="" style="color:rgb(46,174,187); font-variant-ligatures:no-common-ligatures"><b class="">set_up_backrub</b></span><span class="" style="font-variant-ligatures:no-common-ligatures">(self):
 the atom &quot;O&quot; for the previous residue is not included in the backrun motion, as a result this atom is not moved when the backrub is implemented.</span></font></div>
<div class="" style="margin:0px; font-stretch:normal; line-height:normal"><font face="arial, sans-serif" class=""><span class="" style="font-variant-ligatures:no-common-ligatures"><br class="">
</span></font></div>
<div class="" style="margin:0px; font-stretch:normal; line-height:normal"><font face="arial, sans-serif" class=""><span class="" style="font-variant-ligatures:no-common-ligatures">I was just wondering if this is a mistake&nbsp;(possibly all instances of &quot;O&quot; being
 replaced by &quot;self&quot; which would explain both these things, and some other instances throughout the file), or is this code old and not used anymore?</span></font></div>
</div>
</div>
</div>
</blockquote>
<div class=""><br class="">
</div>
<div class="">This is exactly the case. It appears that Graeme Winter did a search and replace two years ago. I did a git blame and it shows that the original code was written by Nat Echols 5 years ago. The fact that the&nbsp;code is broken would indicate that the
 code is not used or tested well. Feel free to correct it and submit a pull request.</div>
<div class=""><br class="">
</div>
<blockquote class="x_gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left-width:1px; border-left-style:solid; border-left-color:rgb(204,204,204); padding-left:1ex">
<div dir="ltr" class="">
<div dir="ltr" class="">
<div class="" style="">
<div class="" style="margin:0px; font-stretch:normal; line-height:normal"><font face="arial, sans-serif" class=""><span class="" style="font-variant-ligatures:no-common-ligatures"><br class="">
</span></font></div>
<div class="" style="margin:0px; font-stretch:normal; line-height:normal"><font face="arial, sans-serif" class=""><span class="" style="font-variant-ligatures:no-common-ligatures">2) When trying to run fit_residues.py and tst_fit_residues* scripts in mmtbx.refinement.real_space,
 I encountered errors mainly related&nbsp;to chem_data/rotamer_chi_angles/ not being present. Looks like this data is not distributed with cctbx. Is this correct, or maybe there is some other known issue ?</span></font></div>
</div>
</div>
</div>
</blockquote>
<div class=""><br class="">
</div>
<div class="">You may need the chem_data directory from a Phenix installation.</div>
<div class=""><br class="">
</div>
<div class="">Nigel</div>
<div class=""><br class="">
</div>
<blockquote class="x_gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left-width:1px; border-left-style:solid; border-left-color:rgb(204,204,204); padding-left:1ex">
<div dir="ltr" class="">
<div dir="ltr" class="">
<div class="" style="">
<div class="" style="margin:0px; font-stretch:normal; line-height:normal"><font face="arial, sans-serif" class=""><span class="" style="font-variant-ligatures:no-common-ligatures"><br class="">
</span></font></div>
<div class="" style="margin:0px; font-stretch:normal; line-height:normal"><font face="arial, sans-serif" class=""><span class="" style="font-variant-ligatures:no-common-ligatures">I look forward to hearing from you.</span></font></div>
<div class="" style="margin:0px; font-stretch:normal; line-height:normal"><font face="arial, sans-serif" class=""><span class="" style="font-variant-ligatures:no-common-ligatures"><br class="">
</span></font></div>
<div class="" style="margin:0px; font-stretch:normal; line-height:normal"><font face="arial, sans-serif" class=""><span class="" style="font-variant-ligatures:no-common-ligatures">Thanks,</span></font></div>
<div class="" style="margin:0px; font-stretch:normal; line-height:normal"><font face="arial, sans-serif" class=""><span class="" style="font-variant-ligatures:no-common-ligatures">Swati</span></font></div>
</div>
</div>
</div>
_______________________________________________<br class="">
cctbxbb mailing list<br class="">
<a href="mailto:cctbxbb@phenix-online.org" target="_blank" class="">cctbxbb@phenix-online.org</a><br class="">
<a href="http://phenix-online.org/mailman/listinfo/cctbxbb" rel="noreferrer" target="_blank" class="">http://phenix-online.org/mailman/listinfo/cctbxbb</a><br class="">
</blockquote>
</div>
</div>
<span class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; float:none; display:inline!important">_______________________________________________</span><br class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none">
<span class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; float:none; display:inline!important">cctbxbb
 mailing list</span><br class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none">
<a href="mailto:cctbxbb@phenix-online.org" class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px">cctbxbb@phenix-online.org</a><br class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none">
<a href="http://phenix-online.org/mailman/listinfo/cctbxbb" class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px">http://phenix-online.org/mailman/listinfo/cctbxbb</a></div>
</blockquote>
</div>
<br class="">
</div>
<p align="justify">&nbsp;</p>
<p align="justify">--&nbsp;</p>
<p align="justify">This e-mail and any attachments may contain confidential, copyright and or privileged material, and are for the use of the intended addressee only. If you are not the intended addressee or an authorised recipient of the addressee please notify
 us of receipt by returning the e-mail and do not use, copy, retain, distribute or disclose the information in or attached to the e-mail.<br>
Any opinions expressed within this e-mail are those of the individual and not necessarily of Diamond Light Source Ltd.
<br>
Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments are free from viruses and we cannot accept liability for any damage which you may sustain as a result of software viruses which may be transmitted in or with the message.<br>
Diamond Light Source Limited (company no. 4375679). Registered in England and Wales with its registered office at Diamond House, Harwell Science and Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom<br>
&nbsp;</p>
</div>
<p align="justify">&nbsp;</p>
<p align="justify">--&nbsp;</p>
<p align="justify">This e-mail and any attachments may contain confidential, copyright and or privileged material, and are for the use of the intended addressee only. If you are not the intended addressee or an authorised recipient of the addressee please notify us of receipt by returning the e-mail and do not use, copy, retain, distribute or disclose the information in or attached to the e-mail.<br />Any opinions expressed within this e-mail are those of the individual and not necessarily of Diamond Light Source Ltd. <br />Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments are free from viruses and we cannot accept liability for any damage which you may sustain as a result of software viruses which may be transmitted in or with the message.<br />Diamond Light Source Limited (company no. 4375679). Registered in England and Wales with its registered office at Diamond House, Harwell Science and Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom<br />&nbsp;</p></body>
</html>