This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Extract Monocle2 "State" for Seurat

Hello,

I am currently running Monocle2 and have generated a trajectory plot with three different "states", is it possible to extract this state information to input as a column of data in the Seurat metadata, so that I can run FindMarkers?

Thank you in advance for helping write this code.

findmarkers monocle seurat deg monocle2

1 answer

You need to check how monocle 2 stores data inside the celldata set. To save the pseudotime from monocle 3 (not 2) to seruat I usually do:

seuratObject <- AddMetaData(
    object = seuratObject,
    metadata = monocleObject@principal_graph_aux@listData$UMAP$pseudotime,
    col.name = paste0("Pseudotime_",condition)
)

Log in to answer this question.