Seurat: Is it possible to use FindAllMarkers to find markers based on a metaData column?

Created on 18 Dec 2017  路  2Comments  路  Source: satijalab/seurat

Hello there,

As far as I understand, the function FindAllMarkers by default uses the identity classes allocated by Seurat's cluster-finding step earlier in the pipeline. So, if there are nine clusters identified by FindClusters, then FindAllMarkers uses these cluster IDs to find markers.

However, if we have another identity scheme for each cell computed by an external package which gives only 5 distinct classes, then can I use FindMarkers by adding these new cell identities as a metaData column to my Seurat object? If so, how exactly do I give the metaData column as input to FindAllMarkers?

Alternatively, I tried to trick Seurat by manually changing the object@ident. But that did not work, maybe simply changing object@ident is not enough?

Any help would be greatly appreciated!

Most helpful comment

In version Seurat 3, based in #1076,
it is Idents(object = object) <- "new.idents",
and a concrete example would be

Idents(object = object) <- [email protected]$'integrated_snn_res.0.3'

All 2 comments

Hi,

You can change the identity of your cells to the desired identity located in the [email protected] slot.

# Set the identity of your cells to the desired column
object <- SetAllIdent(object = object, id = "desired.column")

Best,
Leon

In version Seurat 3, based in #1076,
it is Idents(object = object) <- "new.idents",
and a concrete example would be

Idents(object = object) <- [email protected]$'integrated_snn_res.0.3'
Was this page helpful?
0 / 5 - 0 ratings