selection pipeline script + rehh.r script