Git Product home page Git Product logo

Comments (2)

kstreet13 avatar kstreet13 commented on July 21, 2024

Hey @GBeattie,

Thanks for the interest! Unfortunately, Slingshot cannot (currently?) work with Seurat objects, but there are a couple different ways around this:

  1. I think the most intuitive solution might be to use Seurat's as.SingleCellExperiment and as.Seurat functions, since Slingshot can work with SingleCellExperiment objects (the code would look identical to what you already have, but sample.combined would be a different class). I say "might be" because I haven't used these functions extensively and there may be some data loss when converting from one type to the other, so just be careful about checking that everything you need is still there!

  2. If you don't want to convert everything, you could also pull out the necessary parts of the Seurat object for running Slingshot. Specifically, these would be the PCA coordinates (Reductions(sample.combined, slot = 'PCA'), I think...) and the cluster labels (sample.combined$seurat_clusters). Similarly, you can then extract the pseudotime values from the resulting SlingshotDataSet (via slingPseudotime) and, if you want, add them to the metadata of your Seurat object.

Hope this helps and let me know if anything still doesn't work!

from slingshot.

GBeattie avatar GBeattie commented on July 21, 2024

Converted and seems to be running now, no sign of meta data loss, thanks!

from slingshot.

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.