Git Product home page Git Product logo

Comments (2)

kstreet13 avatar kstreet13 commented on July 21, 2024

Hi @trueth1206,

Hm, that is definitely strange, so thank you for bringing it to my attention. I think the first plot makes sense because you have multiple lineages and are only coloring by pseudotime along the first one. All cells with a weight of zero for that first lineage will end up with an NA for the color and therefore not be plotted. If you didn't intend for this, you can avoid it by replacing sce$slingPseudotime_1 with slingPseudotime(sce, na=FALSE)[,1].

The second plot is much more concerning. I see no reason why you wouldn't get all of the cells, but it looks like you're getting the same subset as from the previous plot, despite not using the Slingshot output in any way. My best guess is that this has something to do with sce$seurat_clusters being used as an index for a color vector of length 12. It looks like you only have ~10 clusters, so if that variable is a factor, I wouldn't expect this behavior (and don't know what might be causing it). If the variable is an integer, it might have values outside the range 1-12 (ie. a "0" cluster)? If that's the case I would replace it with factor(sce$seurat_clusters).

Hope this helps! Let me know if you're still having problems.

from slingshot.

trueth1206 avatar trueth1206 commented on July 21, 2024

Hi,

Thank you for your reply and you're absolutely right. The first plot was solved by using slingPseudotime(sce, na=FALSE)[,1], slingPseudotime(sce, na=FALSE)[,2]... And the second plot came from a subset that contains clusters named "0" and "17". The issue has been solved by using factor(sce$seurat_clusters). Many 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.