Extract Monocle2 "State" for Seurat
1
0
Entering edit mode
2.0 years ago
cgp09741 ▴ 10

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 • 692 views
ADD COMMENT
1
Entering edit mode
2.0 years ago
fracarb8 ★ 1.7k

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)
)
ADD COMMENT

Login before adding your answer.

Traffic: 2371 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6