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 is very slow on large single-cell matrices #17

Open
lwaldron opened this issue Jun 23, 2022 · 1 comment
Open

PCA is very slow on large single-cell matrices #17

lwaldron opened this issue Jun 23, 2022 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@lwaldron
Copy link
Contributor

lwaldron commented Jun 23, 2022

Consider using irlba for very large matrices, or allowing use of pre-computed PCA from other packages as input to 1validate()1.

@shbrief shbrief self-assigned this Jun 24, 2022
@shbrief shbrief added the enhancement New feature or request label Jun 24, 2022
@lwaldron
Copy link
Contributor Author

lwaldron commented Jun 25, 2022

(used to be, "consider using scater::runPCA / scater::calculatePCA", changed after discussion with Vince). irlba has an advantage of only one dependency (Matrix), and allowing computation of only the desired number of PCs. If you go the route of using irlba, I would suggest using it all the time rather than only for larger matrices, for the sake of simplicity and not having to have two different sets of code.

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

No branches or pull requests

2 participants