Author: bugman Date: Sun Oct 12 18:57:33 2008 New Revision: 7667 URL: http://svn.gna.org/viewcvs/relax?rev=7667&view=rev Log: Created a new script to test out the handling of Modelfree4 with PDB files and spheroid diffusion. Added: 1.3/test_suite/system_tests/scripts/palmer_omp.py - copied, changed from r7665, 1.3/test_suite/system_tests/scripts/palmer.py Copied: 1.3/test_suite/system_tests/scripts/palmer_omp.py (from r7665, 1.3/test_suite/system_tests/scripts/palmer.py) URL: http://svn.gna.org/viewcvs/relax/1.3/test_suite/system_tests/scripts/palmer_omp.py?p2=1.3/test_suite/system_tests/scripts/palmer_omp.py&p1=1.3/test_suite/system_tests/scripts/palmer.py&r1=7665&r2=7667&rev=7667&view=diff ============================================================================== --- 1.3/test_suite/system_tests/scripts/palmer.py (original) +++ 1.3/test_suite/system_tests/scripts/palmer_omp.py Sun Oct 12 18:57:33 2008 @@ -11,6 +11,9 @@ if not hasattr(ds, 'tmpdir'): ds.tmpdir = 'temp_script' +# Path of the relaxation data. +DATA_PATH = sys.path[-1] + '/test_suite/shared_data/model_free/OMP' + def exec_stage_1(pipes): """Stage 1 function. @@ -20,24 +23,29 @@ # Loop over the data pipes. for name in pipes: - # Create the pipe. + # Create the data pipe. print "\n\n# " + name + " #" pipe.create(name, 'mf') - # Load the sequence. - sequence.read(sys.path[-1] + '/test_suite/shared_data/jw_mapping/noe.dat') + # Copy the sequence. + sequence.copy('data') # Read a PDB file. - structure.read_pdb(file='Ap4Aase_res1-12.pdb', dir=sys.path[-1] + '/test_suite/shared_data/structures', model=1) + structure.read_pdb(file='1F35_N_H_molmol.pdb', dir=sys.path[-1] + '/test_suite/shared_data/structures', model=1, parser='internal') - # Load the relaxation data. - relax_data.read('R1', '600', 600.0 * 1e6, sys.path[-1] + '/test_suite/shared_data/jw_mapping/R1.dat') - relax_data.read('R2', '600', 600.0 * 1e6, sys.path[-1] + '/test_suite/shared_data/jw_mapping/R2.dat') - relax_data.read('NOE', '600', 600.0 * 1e6, sys.path[-1] + '/test_suite/shared_data/jw_mapping/noe.dat') + # Select only 3 spins (residues 9, 10, and 11). + deselect.all() + select.spin(':9') + select.spin(':10') + select.spin(':11') + + # Copy the relaxation data. + relax_data.copy('data') # Setup other values. diffusion_tensor.init((1e-8, 0, 0, 0)) value.set('15N', 'heteronucleus') + value.set('1H', 'proton') value.set(1.02 * 1e-10, 'bond_length') value.set(-172 * 1e-6, 'csa') @@ -112,6 +120,10 @@ # Main section of the script. ############################# +# Read the results file to get the relaxation data from. +pipe.create('data', 'mf') +results.read(file='final_results_trunc_1.3', dir=DATA_PATH) + # Set the pipe names (also the name of a preset model-free model). pipes = ['m1', 'm2', 'm3']