code for refining housekeeping genes