|
Hi all, I have 2 problems regarding the distance command and python scripting: 1/ I would like to use a script in order to print in a file the results of this following command: distance dist6, (/MyProt/MyProt/A/181/N), (/MyProt/MyProt/A/*/N), 6.0 This command displays distances and dash lines between the N atom of residue 181 and 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: /MyProt/MyProt/A/181/N /MyProt/MyProt/A/180/ 4.856 /MyProt/MyProt/A/181/N /MyProt/MyProt/A/182/ 3.956 /MyProt/MyProt/A/181/N /MyProt/MyProt/A/78/ 5.562 /MyProt/MyProt/A/181/N /MyProt/MyProt/A/105/ 2.863 ... ? 2/ 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: /MyProt/MyProt/A/1/N /MyProt/MyProt/A/2/ 4.856 /MyProt/MyProt/A/1/N /MyProt/MyProt/A/3/ 3.956 /MyProt/MyProt/A/1/N /MyProt/MyProt/A/4/ 5.562 ... /MyProt/MyProt/A/2/N /MyProt/MyProt/A/1/ 3.857 /MyProt/MyProt/A/2/N /MyProt/MyProt/A/3/ 7.249 /MyProt/MyProt/A/2/N /MyProt/MyProt/A/4/ 8.762 ... ? 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. ? Thanks for your help. Sincerely, Xavier. Xavier
HANOULLE, Ph.D. UMR
8576 CNRS–USTL E-mail : [email protected] www: http://groupe-rmn-modelisation.univ-lille1.fr |
- [PyMOL] Distances and Python scripts Xavier HANOULLE
- Re: [PyMOL] Distances and Python scripts Andreas Henschel
