Author: tlinnet
Date: Wed May 27 03:09:35 2015
New Revision: 27834
URL: http://svn.gna.org/viewcvs/relax?rev=27834&view=rev
Log:
Wrote a method to store parameter data and dispersion curves, for the
protocol of repeated analysis.
This is to prepare for analysis in other programs.
The method loops throug the data pipes, and write the data out.
It then write a bash script, that will concatenate the data in an matrix
array style, for reading and processing in other programs.
Task #7826 (https://gna.org/task/?7826): Write an python class for the
repeated analysis of dispersion data.
Modified:
trunk/auto_analyses/relax_disp_repeat_cpmg.py
Modified: trunk/auto_analyses/relax_disp_repeat_cpmg.py
URL:
http://svn.gna.org/viewcvs/relax/trunk/auto_analyses/relax_disp_repeat_cpmg.py?rev=27834&r1=27833&r2=27834&view=diff
==============================================================================
--- trunk/auto_analyses/relax_disp_repeat_cpmg.py (original)
+++ trunk/auto_analyses/relax_disp_repeat_cpmg.py Wed May 27 03:09:35
2015
@@ -32,10 +32,11 @@
from copy import deepcopy
from datetime import datetime
from glob import glob
-from os import F_OK, access, getcwd, sep
+from os import F_OK, access, chmod, getcwd, sep
from numpy import any, asarray, arange, concatenate, max, mean, min, sqrt,
std, sum
if dep_check.scipy_module:
from scipy.stats import pearsonr
+from stat import S_IRWXU, S_IRGRP, S_IROTH
import sys
from warnings import warn
@@ -48,7 +49,7 @@
from pipe_control.mol_res_spin import display_spin, generate_spin_string,
return_spin, spin_loop
from pipe_control import pipes
from prompt.interpreter import Interpreter
-from specific_analyses.relax_disp.data import generate_r20_key,
has_exponential_exp_type, is_r1_optimised, loop_exp_frq_offset,
loop_exp_frq_offset_point, return_param_key_from_data
+from specific_analyses.relax_disp.data import generate_r20_key,
has_exponential_exp_type, has_cpmg_exp_type, is_r1_optimised,
loop_exp_frq_offset, loop_exp_frq_offset_point, return_param_key_from_data
from status import Status; status = Status()
if dep_check.matplotlib_module:
@@ -2665,6 +2666,149 @@
plt.show()
+ def write_results(self, method=None, model=None, analysis=None,
list_glob_ini=None, selection=None):
+
+ for glob_ini in list_glob_ini: