Finding markers of all cluster using a loop #4027
-
Hi,
where "AllClus" is an array that have the number of all the cluster in the data (0, 1, 2 ....). But, when I use this code the variable g0.markers, g1.markers ... don't exist. Only exist gmarker.markers variable. Someone can help me? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
DefaultAssay(immune.combined) <- "RNA"
all_markers <- list()
for (i in AllClus) {
gmarker <- paste("g", i, sep = "")
all_markers[[gmarker]] <- FindConservedMarkers(immune.combined, ident.1 = i, grouping.var = "Condition", verbose = FALSE)
} |
Beta Was this translation helpful? Give feedback.
-
Hi @arturomarin, I do something similar like this all the time. Try this:
Hope this helps! |
Beta Was this translation helpful? Give feedback.
-
Hi @Pancreas-Pratik your script works. Thank you very much!! |
Beta Was this translation helpful? Give feedback.
Hi @arturomarin,
I do something similar like this all the time.
Try this:
Hope this helps!