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

[QST] Question About When to Use rsc.get.anndata_to_CPU() #322

Open
YihengJiang0912 opened this issue Jan 29, 2025 · 1 comment
Open

[QST] Question About When to Use rsc.get.anndata_to_CPU() #322

YihengJiang0912 opened this issue Jan 29, 2025 · 1 comment
Labels
question Further information is requested

Comments

@YihengJiang0912
Copy link

What is your question?

Thank you for providing this amazing tool! It is incredibly useful. I am new to working with GPUs and would like some clarification on when to use the rsc.get.anndata_to_CPU() function.

While following the seuratv3-brain-1M notebook, I noticed that rsc.get.anndata_to_CPU() is used before calling rsc.pp.regress_out() and rsc.pp.neighbors(). Does this mean that if I want to use rsc.pp.bbknn() after rsc.pp.pca(), I should also call rsc.get.anndata_to_CPU() beforehand?

@YihengJiang0912 YihengJiang0912 added the question Further information is requested label Jan 29, 2025
@Intron7
Copy link
Member

Intron7 commented Feb 7, 2025

@YihengJiang0912 sorry for the delayed reply!

If you have enough memory available, you generally don’t need to call rsc.get.anndata_to_CPU(). However, it's often best practice to run it after PCA. You may also need to run it before any visualization steps to ensure everything displays properly.

Let me know if you have any other questions!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants