Coder Social home page Coder Social logo

Error running Monocle3 about seurat-wrappers HOT 6 CLOSED

satijalab avatar satijalab commented on September 24, 2024
Error running Monocle3

from seurat-wrappers.

Comments (6)

mojaveazure avatar mojaveazure commented on September 24, 2024 2

One of the requirements of Monocle 3 is that the dimensional reduction names are all upper-case, while Seurat defaults to lower-case names (eg. "UMAP" vs "umap"). The converter does not yet take care of this, but we are working on it. In the meantime, you can either pass reduction.name = "UMAP" to RunUMAP (as seen in the vignette) or rename a previously calculated UMAP result in Seurat before converting to Monocle 3

seurat.object[["UMAP"]] <- seurat.object[["umap"]]
# To save on memory, you can delete the original UMAP, but this is not necessary
seurat.object[["umap"]] <- NULL

Please note, the same issue applies for PCA (Seurat stores as "pca" instead of "PCA") and the same fix for UMAP applies here as well.

from seurat-wrappers.

bensong721 avatar bensong721 commented on September 24, 2024

Just wanted to say that I too am having this issue.

cds <- as.cell_data_set(ciona.integrated)
Warning message:
“Monocle 3 trajectories require cluster partitions, which Seurat does not calculate. Please run 'cluster_cells' on your cell_data_set object”

cds <- cluster_cells(cds)
Error: No dimensionality reduction for UMAP calculated. Please run reduce_dimension with reduction_method = UMAP before running cluster_cells

cds <- reduce_dimension(cds, reduction_method = "UMAP")
No preprocess_method specified, using preprocess_method = 'PCA'

cds <- preprocess_cds(cds, method = "PCA")
Error in names(sf) <- colnames(SingleCellExperiment::counts(cds)): attempt to set an attribute on NULL

Any help would be appreciated!

from seurat-wrappers.

ashuchawla avatar ashuchawla commented on September 24, 2024

Wondering if you guys ran UMAP on Seurat object at all?

integrated <- RunUMAP(integrated, dims = 1:<num_of_PCs>, reduction.name = "UMAP")

from seurat-wrappers.

ashwinikumarkulkarni avatar ashwinikumarkulkarni commented on September 24, 2024

@ashuchawla Yes! RunUMAP was already run during Seurat Integration pipeline. I already have the UMAP plot. And I want to map Monocle's pseudotime onto same UMAP coordinates.. which is where the error is.

from seurat-wrappers.

mojaveazure avatar mojaveazure commented on September 24, 2024

This issue should be resolved in the latest version of SeuratWrappers. Thanks for reporting!

from seurat-wrappers.

ashwinikumarkulkarni avatar ashwinikumarkulkarni commented on September 24, 2024

Thanks a lot @mojaveazure! I think this will work. I am trying now!

from seurat-wrappers.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.