From: Xavier H. <xav...@un...> - 2007-06-18 09:42:50
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> </head> <body bgcolor="#ffffff" text="#000000"> <big><font face="Arial">Hi all,<br> <br> I have 2 problems regarding the distance command and python scripting:<br> <br> <b>1/</b> I would like to use a script in order to print in a file the results of this following command: <br> distance dist6, (/MyProt/MyProt/A/181/N), (/MyProt/MyProt/A/*/N), 6.0<br> This command displays distances and dash lines between </font></big><big><font face="Arial">the N atom of residue 181 and </font></big><big><font face="Arial">all the N atoms of MyProt which are at <6Ang. How do I have to write a Python script to get the results in a text file that will look like:<br> /MyProt/MyProt/A/181/N </font><font face="Arial">/MyProt/MyProt/A/180/ 4.856<br> /</font><font face="Arial">MyProt/MyProt/A/181/N </font><font face="Arial">/MyProt/MyProt/A/182/ 3.956<br> /</font><font face="Arial">MyProt/MyProt/A/181/N </font><font face="Arial">/MyProt/MyProt/A/78/ 5.562<br> </font></big><font size="+1"><font face="Arial">/</font></font><big><font face="Arial">MyProt/MyProt/A/181/N </font><font face="Arial">/MyProt/MyProt/A/105/ 2.863<br> ... ?<br> <br> <br> </font></big><font face="Arial"><big><b>2/ </b>How do I have to write a python script to measure all the N-N distances in my protein and to print the results in a text file that will look like:<br> </big></font><big><font face="Arial">/MyProt/MyProt/A/1/N </font><font face="Arial">/MyProt/MyProt/A/2/ 4.856<br> /</font><font face="Arial">MyProt/MyProt/A/1/N </font><font face="Arial">/MyProt/MyProt/A/3/ 3.956<br> /</font><font face="Arial">MyProt/MyProt/A/1/N </font><font face="Arial">/MyProt/MyProt/A/4/ 5.562<br> ...<br> </font></big><font face="Arial"><big> </big></font><big><font face="Arial"> /MyProt/MyProt/A/2/N </font><font face="Arial">/MyProt/MyProt/A/1/ 3.857<br> /</font><font face="Arial">MyProt/MyProt/A/2/N </font><font face="Arial">/MyProt/MyProt/A/3/ 7.249<br> /</font><font face="Arial">MyProt/MyProt/A/2/N </font><font face="Arial">/MyProt/MyProt/A/4/ 8.762<br> ... ?<br> Furthermore, would it be possible to add a limit for these distances ? For exemple, only get the N-N distances in MyProt which are <7Ang. ?<br> <br> Thanks for your help.<br> Sincerely,<br> <br> Xavier.<br> </font></big><big><font face="Arial"> </font></big><br> <!--[if !mso]> <style> v\:* {behavior:url(#default#VML);} o\:* {behavior:url(#default#VML);} w\:* {behavior:url(#default#VML);} .shape {behavior:url(#default#VML);} </style> <![endif]--><!--[if gte mso 9]><xml> <o:DocumentProperties> <o:Author>Xavier</o:Author> <o:LastAuthor>Xavier</o:LastAuthor> <o:Revision>4</o:Revision> <o:TotalTime>28</o:TotalTime> <o:Created>2007-04-11T11:44:00Z</o:Created> <o:LastSaved>2007-04-12T09:15:00Z</o:LastSaved> <o:Pages>1</o:Pages> <o:Words>59</o:Words> <o:Characters>327</o:Characters> <o:Company>CNRS</o:Company> <o:Lines>2</o:Lines> <o:Paragraphs>1</o:Paragraphs> <o:CharactersWithSpaces>385</o:CharactersWithSpaces> <o:Version>11.8122</o:Version> </o:DocumentProperties> </xml><![endif]--><!--[if gte mso 9]><xml> <w:WordDocument> <w:SpellingState>Clean</w:SpellingState> <w:GrammarState>Clean</w:GrammarState> <w:HyphenationZone>21</w:HyphenationZone> <w:PunctuationKerning/> <w:ValidateAgainstSchemas/> < w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid> <w:IgnoreMixedContent>false</w:IgnoreMixedContent> <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText> <w:Compatibility> <w:BreakWrappedTables/> <w:SnapToGridInCell/> <w:WrapTextWithPunct/> <w:UseAsianBreakRules/> <w:DontGrowAutofit/> </w:Compatibility> <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:LatentStyles DefLockedState="false" LatentStyleCount="156"> </w:LatentStyles> </xml><![endif]--> <!--[if gte mso 10]> <style> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Tableau Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin:0cm; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;} </style> <![endif]--><!--[if gte mso 9]><xml> <o:shapedefaults v:ext="edit" spidmax="5122"/> </xml><![endif]--><!--[if gte mso 9]><xml> <o:shapelayout v:ext="edit"> <o:idmap v:ext="edit" data="1"/> </o:shapelayout></xml><![endif]--> <div style="margin-bottom: 6pt;"> <div class="MsoNormal" style="text-align: center;" align="center"><b style=""><span style="font-size: 10pt; font-family: Arial; color: rgb(153, 153, 153);"> <hr align="center" size="2" width="100%"></span></b></div> </div> <p class="MsoNormal" style="margin-bottom: 4pt;"><b style=""><span style="font-size: 10pt; font-family: Arial; color: rgb(95, 95, 95);">Xavier HANOULLE, Ph.D.<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-bottom: 2pt;"><span style="font-size: 10pt; font-family: Arial; color: rgb(95, 95, 95);">UMR 8576 CNRS–USTL<br> Structural and Functional Glycobiology Unit<span class="SpellE"></span><br> NMR Laboratory<br> 59655 Villeneuve d’Ascq Cedex - France<o:p></o:p></span></p> <span style="font-size: 10pt; font-family: Arial; color: rgb(95, 95, 95);">Phone: +33 (0)3.20.33.72.41<br> E-mail : <a href="mailto:xav...@un...">xav...@un...</a> <br> www: <a href="http://groupe-rmn-modelisation.univ-lille1.fr/">http://groupe-rmn-modelisation.univ-lille1.fr</a><span style=""> <br> </span></span><br> </body> </html> |