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

PCA and elbow plot #117

Open
ptranvan opened this issue May 22, 2024 · 0 comments
Open

PCA and elbow plot #117

ptranvan opened this issue May 22, 2024 · 0 comments
Assignees

Comments

@ptranvan
Copy link

Hi,

I am having some difficulty understanding your elbow plot and how to choose the right principal component (PC) for downstream analysis as described in the following page:

https://hbctraining.github.io/scRNA-seq/lessons/elbow_plot_metric.html

On this page, you mention using the percentage of variation, but all the calculations are made using the standard deviation (stdev).

To use the percentage of variation, the calculations would be:

var_explained <- stdv^2
sum_var_explained <- sum(var_explained)
percent_var_explained <- (var_explained / sum_var_explained) * 100

This would change the results of co1 and co2.

Can you explain ?

Thank you.

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