To make Figure 16, first ensure that you have downloaded the rates data. Also make sure you have made the simple_snII project. Now change into the nucnet-tools-code/examples/misc/ directory:
Since we must access our user-defined rate functions, we need to set the environment variable NNT_MY_USER. To do so, type
To ensure that the variable is set, type
which should return
Now you can compile and run the required code by typing
Plot column 2 of n14_a_g_il10.txt (beginning at row 6) versus column 1 of the same file. Do the same for n14_a_g_fcz2.txt. Repeat for the other reactions (but be sure to use a selective enough XPath expression to get only the reaction you want).
If you run the print_rates_by_xpath code and get an error message “ERROR: No rate function ...”, then you have neglected to set NNT_MY_USER. Try the export command above and recompile. Should it become necessary for you to unset the environment variable NNT_MY_USER, you can type