added gene to sample matrix function