Calculate DE between sample "WT" & "KO" for cluster "2":
clust2 <- subset(obj, seurat_clusters == "2")
Idents(clust2) <- "sample"
markers2 <- FindMarkers(clust2, ident.1="WT", ident.2="KO")
write.csv(markers2, "markers2.csv", row.names=FALSE)
#Rstats #scRNAseq #Seurat