Automatically remove bad genes