Open main menu

Changes

m
Replacement of dead Gna! links.
{{tip|See the [https://mail.{{gna.org/public/mailing list link|url=relax-devel/2013-06/msg00016.html |text=mail archive] message}} for the original post.}}
The following is a tutorial for adding new relaxation dispersion models for either CPMG-type or {{:R1rho}}-type experiments to the software relax. This includes both the models based on the analytic, closed-form expressions as well as the models involving numeric solutions of the Bloch-McConnell equations.
* Copy the full analysis script to <code>test_suite/system_tests/scripts/relax_disp/</code> with an appropriate name (always using the <code>svn cp</code> command). This can then be used in a new system test. Better still, the final save file from the <code>r2eff_calc.py</code> script for the truncated data can be used to start the script. This is again to save a lot of computation time in the test. See the <code>test_tp02_data_to_ns_r1rho_2site()</code> system test in the <code>test_suite/system_tests/relax_disp.py</code> file for a template.
If you are not a relax developer, a [https://gnasourceforge.orgnet/projectsp/nmr-relax /tickets-support/ support request] can be [https://gnasourceforge.orgnet/p/nmr-relax/tickets-support/?func=additem&group=relax new/ submitted]. You can attach files and add comments to that request for a relax developer to make the changes for you.
=== Reference commits ===
== The relax_disp.select_model user function front end ==
The next step is to add the model, its description, the equations for the analytic models, and all references to the {{uf|relax_disp.select_model }} user function front end.
== The relax_disp.select_model user function back end ==
Now the back end of the {{uf|relax_disp.select_model }} user function for the model can be added. This involved identifying the model and constructing the parameter list.
=== Reference commits ===
* The [[M61]] model at [http://article.gmane.org/gmane.science.nmr.relax.scm/17622 r19866]
* The [[No Rex]] model at [http://article.gmane.org/gmane.science.nmr.relax.scm/17592 r19836]
 
== Adding support for the parameters ==
This is needed to enable the model. It involves modifying many of the modules in the <code>specific_analyses.relax_disp </code> package.
=== Reference commits ===
* The [[MQ NS CPMG 2-site]] model at [http://article.gmane.org/gmane.science.nmr.relax.scm/18812 r21056]
* The [[CR72]] model at [http://article.gmane.org/gmane.science.nmr.relax.scm/17573 r19817]
 
== The target function ==
The target function is used in optimisation and is a class method which takes as a single argument the parameter vector. This list is changed by the minimisation algorithm during optimisation. The target function should then return a single floating point number - the chi-squared value.
Again in this example, the code for the [[M61 ]] is copied from the [[LM63 ]] model and then modified.
=== Reference commits ===
* The [[No Rex]] model at [http://article.gmane.org/gmane.science.nmr.relax.scm/17592 r19836]
* The [[CR72]] model at [http://article.gmane.org/gmane.science.nmr.relax.scm/17571 r19815]
 
== The relax library ==
Trusted, Bureaucrats
4,223

edits