Added condition to split test and training sets one gene at a time