plyr function in genewise_analysis.R