# NOT RUN {
pbmc_small
# Create a simulated grouping variable
pbmc_small@meta.data$groups <- sample(
x = c("g1", "g2"),
size = length(x = pbmc_small@cell.names),
replace = TRUE
)
FindConservedMarkers(pbmc_small, ident.1 = 1, ident.2 = 2, grouping.var = "groups")
# }
Run the code above in your browser using DataLab