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

runTSNE step couldn't finish #22

Open
lixin4306ren opened this issue Dec 12, 2018 · 3 comments
Open

runTSNE step couldn't finish #22

lixin4306ren opened this issue Dec 12, 2018 · 3 comments

Comments

@lixin4306ren
Copy link

the command I used:
scran_normalised <- runTSNE(scran_normalised, PCA = FALSE)

The dataset has ~18000 cells and ~20000 genes, after overnight running, it still couldn't finish.

@asenabouth
Copy link
Collaborator

Hi @lixin4306ren ,

The TSNE function runs a lot faster if you run it on PCA data instead of the expression data. This reduces the number of dimensions down to the number of genes.

If you wish to use TSNE directly on your expression data, you can extract the normalised counts using the normcounts or logcounts functions for use directly with the Rtsne function from the Rtsne package. You can leverage more cores and use the partial_pca argument with this function, that should hopefully speed up the processing time. You can then store it back into the EMSet using the reducedDim function.

@lixin4306ren
Copy link
Author

Thank you for your prompt reply!
Is there any significant difference between tsne results generated directly from the expression matrix and that based on PCA data? Thanks.

@asenabouth
Copy link
Collaborator

The results will look different, as that's the nature of TSNE. Here's a comparison of a TSNE generated from PCA-reduced values:
pca_tsne_plot

And directly from expression data:
exprs_tsne_plot

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