R code for small molecule heatmap construction and analysis