-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question about plot function #57
Comments
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 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 Hope this helps! Let me know if you're still having problems. |
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. |
Hi, Thank you for developing this great package. I am trying to apply this package to do pseudotime for a single cell experiment in two conditions. I used Seurat for filtering and data merge. Then I converted the result to a SingleCellExperiment. The script went smoothly but I found that I lost some dots in the pseudotime plot.
Here is my script:
Obj <- as.SingleCellExperiment(seuratobj)
sce <- slingshot(Obj, clusterLabels = 'seurat_clusters', reducedDim = 'PCA')
colors <- colorRampPalette(brewer.pal(11,'Spectral')[-6])(100)
![Rplot03](https://user-images.githubusercontent.com/49007028/64526024-22433e80-d2fa-11e9-8b15-decc480efe64.jpeg)
plotcol <- colors[cut(sce$slingPseudotime_1, breaks=100)]
plot(reducedDims(sce)$PCA, col = plotcol, pch=16, asp = 1)
lines(SlingshotDataSet(sce), lwd=2, col='black')
plot(reducedDims(sce)$PCA, col = brewer.pal(12,'Set3')[sce$seurat_clusters], pch=16, asp = 1)
![Rplot02](https://user-images.githubusercontent.com/49007028/64526049-3424e180-d2fa-11e9-8f18-fc06d9eb71bf.jpeg)
lines(SlingshotDataSet(sce), lwd=2, type = 'lineages', col = 'black')
But I have 6000 cells and the plot should look like this if it's not colored. The above plots showed only part of the cells.
![Rplot01](https://user-images.githubusercontent.com/49007028/64526108-561e6400-d2fa-11e9-8026-fc85f540d503.jpeg)
Is there anything I can do for it to get the correct plots? Thank you.
The text was updated successfully, but these errors were encountered: