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


R code