Comments (2)
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.
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)
- Comparing trajectories from two different experiments HOT 2
- tsne not found in reducedDims(data) HOT 3
- Trajectories with multiple starting clusters HOT 7
- Installing Slingshot with R version 4.0.5 HOT 2
- trajectory bootstrapping and uncertainty HOT 3
- Slingshot pseudotime with CellRank HOT 8
- error when trying to overlay the lineage trajectory on umap HOT 2
- Slingshot curves look weird HOT 2
- Trajectory over condtions not ending in center HOT 1
- steps you have to take after slingshot HOT 1
- one question about psuedo time inference HOT 1
- pseudotime distribution is uneven when run slingshot on a subset of dimensionality reduction HOT 6
- What assay to use after Seurat integration HOT 2
- Error plotting the trajectory HOT 2
- Clustering discrepancy with Slingshot and Seurat HOT 5
- Error with SlingshotDataSet(): as(<dsCMatrix>, "dgCMatrix") is deprecated HOT 5
- Porting slingshot to Python HOT 4
- Calculating cell weights HOT 4
- Scale or not to scale the genes by their variance in real datasets HOT 2
- the cluster in end.clust is not the end of pseudotime value HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from slingshot.