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

3D PCA and 3D tSNE plot #1178

Closed
shikhagupta68 opened this issue Feb 27, 2019 · 5 comments
Closed

3D PCA and 3D tSNE plot #1178

shikhagupta68 opened this issue Feb 27, 2019 · 5 comments

Comments

@shikhagupta68
Copy link

Hi,

I was wondering if there is a way I can visualize my data in the form of 3D PCA and 3D tSNE plots?

For 3D tSNE, I tried using RunTSNE function with dim.embed =3 but it doesn't seem to be working.

Please let me know if Seurat has other functions which can be used for this purpose.

Thank you
Shikha Gupta

@andrewwbutler
Copy link
Collaborator

Hi,

There are no native Seurat functions to produce 3D plots but you can always pull out the data and feed it into your favorite 3D plotting framework. The relevant function in Seurat v3 is:

Embeddings(object = object[["pca"]])

or in Seurat v2:

GetCellEmbeddings(object = object, reduction.type = "pca")

@shikhagupta68
Copy link
Author

Thanks so much

@Dragonmasterx87
Copy link

@shikhagupta68 I know this is old but find the solution here

Cheers!

@shikhagupta68
Copy link
Author

Thanks very much!

@Dragonmasterx87
Copy link

@andrewwbutler mate, you guys should implement this: 3D Plotting of Seurat Objects using Seurat 3.1.1

I'm sure you guys can make it nicer, but it works a lot of people are using it.

Also is it cool if I list you as a co-author? Since you gave me the idea to use plotly :) You guys please feel free to implement it as a part of seurat.

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

3 participants