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

Should PCA be recaculated for each sub-sample when assessing clustering robustness? #4

Open
microbialman opened this issue Feb 7, 2022 · 0 comments

Comments

@microbialman
Copy link

Hi,

More of a theoretical question than a code issue (so apologies if this isn't the appropriate place for it).

Looking at the function used for subsampling in chooseR, it appears that when calculating clusters on subsets of cells that the PCA reduction calculated from the total set of cells is used. Therefore, some information from cells not in the sub cluster will be influencing the overall clustering (as cells outside of the subset will still determine distances in PCA space).

I'm not sure if it would make a large difference to inter-parameter comparisons but my intuition is that it would indicate clustering is more stable between subsamples than it would be if PCAs were recalculated on each subset?

Hope that makes sense, and that I haven't misunderstood the pipeline!

Cheers,
Matt

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

1 participant