<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
Hi Graeme,<div><br></div><div>I am not sure where you got stuck, but this will work for you:</div><div><br></div><div>##############################</div><div><div><div>from cctbx import xray</div><div>f = xray.structure.from_shelx(filename="e:/graeme.ins")</div><div>out = open("e:/gareme.pdb", "w+")</div><div>print &gt;&gt; out, f.change_hand().as_pdb_file(fractional_coordinates=True)</div><div>out.close()</div></div><div>#####################################</div><div><br></div><div>Cheers,</div><div><br></div><div>Oleg</div><div><div id="SkyDrivePlaceholder"></div><hr id="stopSpelling">From: Graeme.Winter@diamond.ac.uk<br>To: cctbxbb@phenix-online.org<br>Date: Wed, 30 May 2012 10:18:29 +0000<br>Subject: [cctbxbb] Invert hand of shelxd res file from cctbx<br><br>



<style><!--
.ExternalClass p.ecxMsoNormal, .ExternalClass li.ecxMsoNormal, .ExternalClass div.ecxMsoNormal
{margin-bottom:.0001pt;font-size:11.0pt;font-family:"Calibri","sans-serif";}
.ExternalClass a:link, .ExternalClass span.ecxMsoHyperlink
{color:blue;text-decoration:underline;}
.ExternalClass a:visited, .ExternalClass span.ecxMsoHyperlinkFollowed
{color:purple;text-decoration:underline;}
.ExternalClass span.ecxEmailStyle17
{font-family:"Calibri","sans-serif";color:windowtext;}
.ExternalClass .ecxMsoChpDefault
{;}
@page WordSection1
{size:612.0pt 792.0pt;}
.ExternalClass div.ecxWordSection1
{page:WordSection1;}

--></style>


<div class="ecxWordSection1">
<p class="ecxMsoNormal">Hi Folks,</p>
<p class="ecxMsoNormal">&nbsp;</p>
<p class="ecxMsoNormal">This should be easy but I can�t find anything!</p>
<p class="ecxMsoNormal">&nbsp;</p>
<p class="ecxMsoNormal">I have a .res file:</p>
<p class="ecxMsoNormal">&nbsp;</p>
<p class="ecxMsoNormal">[gw56@ws050 fast_ep]$ cat sad_fa.res</p>
<p class="ecxMsoNormal">REM Best SHELXD solution:&nbsp;&nbsp; CC 41.11&nbsp;&nbsp; CC(weak) 23.51&nbsp;&nbsp; CFOM&nbsp; 64.62</p>
<p class="ecxMsoNormal">REM</p>
<p class="ecxMsoNormal">TITL sad_fa.ins SAD in P422</p>
<p class="ecxMsoNormal">CELL&nbsp; 0.98000&nbsp;&nbsp; 78.17&nbsp;&nbsp; 78.17&nbsp;&nbsp; 37.87&nbsp;&nbsp; 90.00&nbsp;&nbsp; 90.00&nbsp;&nbsp; 90.00</p>
<p class="ecxMsoNormal">LATT&nbsp; -1</p>
<p class="ecxMsoNormal">SYMM -Y+1/2,X+1/2,Z+1/4</p>
<p class="ecxMsoNormal">SYMM -X,-Y,Z+1/2</p>
<p class="ecxMsoNormal">SYMM Y+1/2,-X+1/2,Z+3/4</p>
<p class="ecxMsoNormal">SYMM X+1/2,-Y+1/2,-Z+3/4</p>
<p class="ecxMsoNormal">SYMM Y,X,-Z</p>
<p class="ecxMsoNormal">SYMM -X+1/2,Y+1/2,-Z+1/4</p>
<p class="ecxMsoNormal">SYMM -Y,-X,-Z+1/2</p>
<p class="ecxMsoNormal">SFAC SE</p>
<p class="ecxMsoNormal">UNIT&nbsp;&nbsp; 256</p>
<p class="ecxMsoNormal">SE01&nbsp;&nbsp; 1&nbsp; 0.600227&nbsp; 0.892868&nbsp; 0.042187&nbsp;&nbsp; 1.0000&nbsp; 0.2</p>
<p class="ecxMsoNormal">SE02&nbsp;&nbsp; 1&nbsp; 0.627518&nbsp; 0.852661&nbsp; 0.427392&nbsp;&nbsp; 0.8667&nbsp; 0.2</p>
<p class="ecxMsoNormal">SE03&nbsp;&nbsp; 1&nbsp; 0.867409&nbsp; 0.911667&nbsp; 0.394418&nbsp;&nbsp; 0.8420&nbsp; 0.2</p>
<p class="ecxMsoNormal">SE04&nbsp;&nbsp; 1&nbsp; 0.489761&nbsp; 0.805634&nbsp; 0.391009&nbsp;&nbsp; 0.7279&nbsp; 0.2</p>
<p class="ecxMsoNormal">SE05&nbsp;&nbsp; 1&nbsp; 0.642792&nbsp; 0.649048&nbsp; 0.369694&nbsp;&nbsp; 0.7172&nbsp; 0.2</p>
<p class="ecxMsoNormal">SE06&nbsp;&nbsp; 1&nbsp; 0.678879&nbsp; 0.535027&nbsp; 0.477918&nbsp;&nbsp; 0.4571&nbsp; 0.2</p>
<p class="ecxMsoNormal">SE07&nbsp;&nbsp; 1&nbsp; 0.609207&nbsp; 0.572754&nbsp; 0.421746&nbsp;&nbsp; 0.4212&nbsp; 0.2</p>
<p class="ecxMsoNormal">SE08&nbsp;&nbsp; 1&nbsp; 0.584526&nbsp; 0.536499&nbsp; 0.322047&nbsp;&nbsp; 0.4154&nbsp; 0.2</p>
<p class="ecxMsoNormal">SE09&nbsp;&nbsp; 1&nbsp; 0.843063&nbsp; 0.846794&nbsp; 0.480296&nbsp;&nbsp; 0.3831&nbsp; 0.2</p>
<p class="ecxMsoNormal">SE10&nbsp;&nbsp; 1&nbsp; 0.622429&nbsp; 0.743332&nbsp; 0.157899&nbsp;&nbsp; 0.3604&nbsp; 0.2</p>
<p class="ecxMsoNormal">SE11&nbsp;&nbsp; 1&nbsp; 0.626114&nbsp; 0.528595&nbsp; 0.644789&nbsp;&nbsp; 0.3590&nbsp; 0.2</p>
<p class="ecxMsoNormal">HKLF 3</p>
<p class="ecxMsoNormal">END</p>
<p class="ecxMsoNormal">&nbsp;</p>
<p class="ecxMsoNormal">which I would like to read, invert the hand of and write as a pdb file. I got stuck trying to work through the example / test code. Can someone point me in the right direction?</p>
<p class="ecxMsoNormal">&nbsp;</p>
<p class="ecxMsoNormal">Thanks,</p>
<p class="ecxMsoNormal">&nbsp;</p>
<p class="ecxMsoNormal">Graeme</p>
</div>

<br><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>
<br>

<br>_______________________________________________
cctbxbb mailing list
cctbxbb@phenix-online.org
http://phenix-online.org/mailman/listinfo/cctbxbb</div></div>                                               </div></body>
</html>