get top genes function