The R code for making predictions based on the encoded data is listed as below. The input is the encoded hydrophobicity data and the output file is called "prediction.rec" in which there are two columns. The first column is the posterior probability of non-hydroxylation while the second column indicates the posterior probability of hydroxylation.


R code