Entering edit mode
4.1 years ago
patel.kru
▴
10
Hello,
I have 4 Seurat Objects and i am trying to get common genes(row.names) from them, with the rows (All values associated with that). I know with intersect i can fid common genes but extracting with their values is tricky part. Any suggestions Appreciated.
Newfunction<- function(A,B,C,D) {
Matrix_1 <- (intersect(row.names(A),row.names(B)))
Matrix_2 <- intersect(row.names(C),row.names(D))
Combined_matrix <- intersect(Matrix_1,Matrix_2)
return(Combined_matrix)
}
Newfunction (Healthy_1, Healthy_2, Healthy_3, Aggr_data)
Best KD
Possible answer: https://github.com/satijalab/seurat/issues/246