Skip to content
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

Can I use more than two dimensions as the input for Slingshot? #254

Open
zczali4403 opened this issue Jul 10, 2024 · 3 comments
Open

Can I use more than two dimensions as the input for Slingshot? #254

zczali4403 opened this issue Jul 10, 2024 · 3 comments

Comments

@zczali4403
Copy link

Hi,

Thank you for producing and maintaining this package; it gives me a good insight into lineage trending. I have a question: Can I use more than two dimensions as the input for Slingshot? For example, three-dimensional PCA results.

Best regards,
Chengzhi Zhao

@kstreet13
Copy link
Owner

Hi @zczali4403,

Yes, absolutely! Slingshot uses Euclidean distances between the points, so we wouldn't recommend going too high-dimensional, but you can certainly use more than 2 (we have often gone up to 20 PCs to see if we get consistent results across different numbers of dimensions).

Best,
Kelly

@zczali4403
Copy link
Author

I tried to perform slingshot on a 3 dimensions input in the following way. However, there was no response after I executed 'plot3d.SlingshotDataSet', and no graphics were returned either.

sce <- slingshot(subset_rnaslot.sce, clusterLabels = 'Cell_type', reducedDim = 'GRAPHDR_XYZ',start.clus ="zygote")
plot3d.SlingshotDataSet(SlingshotDataSet(sce), col = cell_colors, pch=16)

Can you help me? Thank you very much!

@kstreet13
Copy link
Owner

Hm, this code looks correct, I'm not sure why it wouldn't be working. Can you provide the sessionInfo()?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants