mailr20419 - /branches/relax_disp/specific_analyses/relax_disp/cpmgfit.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on July 19, 2013 - 17:05:
Author: bugman
Date: Fri Jul 19 17:05:29 2013
New Revision: 20419

URL: http://svn.gna.org/viewcvs/relax?rev=20419&view=rev
Log:
Added support for optimising the 'LM63 3-site' dispersion model with Art 
Palmer's CPMGFit.

This is for the relax_disp.cpmgfit_input user function.  This model in 
CPMGFit is called
'3-site_CPMG'.


Modified:
    branches/relax_disp/specific_analyses/relax_disp/cpmgfit.py

Modified: branches/relax_disp/specific_analyses/relax_disp/cpmgfit.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/relax_disp/specific_analyses/relax_disp/cpmgfit.py?rev=20419&r1=20418&r2=20419&view=diff
==============================================================================
--- branches/relax_disp/specific_analyses/relax_disp/cpmgfit.py (original)
+++ branches/relax_disp/specific_analyses/relax_disp/cpmgfit.py Fri Jul 19 
17:05:29 2013
@@ -91,7 +91,7 @@
         test_binary(binary)
 
         # Execute CPMGFit.
-        cmd = "%s -grid -xmgr -f %s | tee %s\n" % (binary, file_in, file_out)
+        cmd = "%s -grid -xmgr -f \"%s\" | tee \"%s\"\n" % (binary, file_in, 
file_out)
         print("\n\n%s" % cmd)
         pipe = Popen(cmd, shell=True, stdin=PIPE, stdout=PIPE, stderr=PIPE, 
close_fds=False)
 
@@ -238,6 +238,18 @@
         file.write("PaDw 2 10.0 50\n")
         file.write("Tau 0.1 10.0 50\n")
 
+    # The function and parameters.
+    if function == '3-site_CPMG':
+        # Function.
+        file.write("function 3-site_CPMG\n")
+
+        # Parameters.
+        file.write("R2 1 10 20\n")
+        file.write("Rex1 0 100.0 20\n")
+        file.write("Tau1 0 10.0 20\n")
+        file.write("Rex2 0 100.0 20\n")
+        file.write("Tau2 0 10.0 20\n")
+
     # The Grace setup.
     file.write("xmgr\n")
     file.write("@ xaxis label \"1/tcp (1/ms)\"\n")
@@ -299,9 +311,10 @@
 
     # A translation table (relax to CPMGFit models).
     translation = {
-        'LM63': 'CPMG',
-        'CR72': 'Full_CPMG',
-        'IT99': "Ishima"
+        'LM63':         'CPMG',
+        'LM63 3-site':  '3-site_CPMG',
+        'CR72':         'Full_CPMG',
+        'IT99':         'Ishima'
     }
 
     # No translation, so fail.




Related Messages


Powered by MHonArc, Updated Fri Jul 19 19:20:02 2013