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

Can I run calcNhoodDistance before countCells #293

Open
yulijia opened this issue Nov 2, 2023 · 3 comments
Open

Can I run calcNhoodDistance before countCells #293

yulijia opened this issue Nov 2, 2023 · 3 comments

Comments

@yulijia
Copy link

yulijia commented Nov 2, 2023

Hi

Thanks for creating the great package. I am currently applying MiloR to a large dataset with multiple design matrices. I've noticed that the "calcNhoodDistance" step is quite time-consuming. I would like to know if it's possible to run "calcNhoodDistance" before "countCells" so that I can save the object after calculating the neighborhood distances and then proceed with the remaining steps using multiple design matrices.

@emdann
Copy link
Member

emdann commented Nov 2, 2023

Hi @yulijia, You can avoid using calcNhoodDistance by using the new graph-only mode, by setting refinement_scheme="graph" in makeNhoods and fdr.weighting="graph-overlap" in testNhoods. This should make your analysis significantly faster. See quickstart example here.

@yulijia
Copy link
Author

yulijia commented Nov 7, 2023

Hi @emdann
Thank!
If I still use the old mode, can I know if I can run calcNhoodDistance before countCells?

@DarioS
Copy link

DarioS commented Apr 10, 2024

Also, it doesn't respond to R terminal interrupt or Linux kill signal unless I do kill -9. Please allow interrupts.

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

3 participants