从矩阵中提取行名匹配的子矩阵
例如:原始矩阵
image.png
提取SOX17和RP1匹配的子矩阵
genes <- c("Sox17","Rp1")
ex_matrix_sub<- ex_matrix %>% subset(rownames(ex_matrix) %in% genes )
例如:原始矩阵
genes <- c("Sox17","Rp1")
ex_matrix_sub<- ex_matrix %>% subset(rownames(ex_matrix) %in% genes )