Difference between revisions of "Tutorial for the relaxation dispersion auto-analysis in the GUI"

From relax wiki
Jump to navigation Jump to search
(→‎The script: English fixes for the comments.)
(→‎The script: Python 3 fixes for the script.)
Line 108: Line 108:
  
 
# Then check.
 
# Then check.
print cdp.replicates
+
print(cdp.replicates)
  
 
# Then repeat for 800.
 
# Then repeat for 800.
Line 144: Line 144:
  
 
# Then check.
 
# Then check.
print cdp.replicates
+
print(cdp.replicates)
print len(ID500), len(ID500rep), len(ID800), len(ID800rep)
+
print("%s %s %s %s" % (len(ID500), len(ID500rep), len(ID800), len(ID800rep)))
  
 
# Then set spectrum properties.
 
# Then set spectrum properties.
Line 158: Line 158:
 
     else:
 
     else:
 
         vcpmg = float(vcpmg_str.split("b")[0])
 
         vcpmg = float(vcpmg_str.split("b")[0])
     print cur_id, sfrq_str, vcpmg
+
     print("%s %s %s" %  (cur_id, sfrq_str, vcpmg))
  
 
     # Set the current experiment type.
 
     # Set the current experiment type.

Revision as of 17:19, 6 November 2015

Tutorial

This follows the setup for test data in the Manual

Where the test data is in:

test_suite/shared_data/dispersion/Hansen

It is written up here as a script instead. This goes a little faster testing.

In terminal

mkdir -p $HOME/test
cd $HOME/test
gedit test.py

Then we build the script onwards.

We run relax repeatedly, to execute code. Then we write new code in the script, and run again.

relax test.py

When we are satisfied, one can then do like this.

Start relax

relax -g -t log.txt

Then do

User functions -> Script -> test.py

THEN do:

View -> Data pipe editor -> Right click on pipe -> Associate with a new Auto analysis

This should bring you to a window, where all settings have been set.

Set

  • Relaxations dispersion models: ['R2eff', 'No Rex', 'CR72', 'NS CPMG 2-site expanded']
  • Grid increements: 11 (For speed-up in test phase)
  • Monte-Carlo simulations number: 5 (For speed up in test phase)

Then a quick click on spin.isotope function, and GO.

The script

Inspect results

Go to the final folder.

Execute

cd $HOME/test/final
./grace2images.py

Go through the PNG images

Also open

gedit $HOME/test/log.txt $HOME/test/final/chi2.out $HOME/test/final/models.out
gedit $HOME/test/No_Rex/chi2.out
gedit $HOME/test/CR72/chi2.out $HOME/test/CR72/kex.out
gedit $HOME/test/NS_CPMG_2-site_expanded/chi2.out $HOME/test/NS_CPMG_2-site_expanded/kex.out

Get info from log.txt

See Grep log file for inspiration.

Try these different grep commands

egrep -wi --color 'relax>| model -' $HOME/test/log.txt

Find eliminate function

egrep -wi --color -A 10 'relax> eliminate' $HOME/test/log.txt

Find model_selection function

egrep -wi --color -A 100 'relax> model_selection' $HOME/test/log.txt

See also