-
Notifications
You must be signed in to change notification settings - Fork 88
Speed improvements #206
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
base: master
Are you sure you want to change the base?
Speed improvements #206
Conversation
…f creating new one
|
||
results_df <- data.frame(spot_class = factor(sapply(results,function(X){return(X$spot_class)}),levels=spot_levels), | ||
first_type = sapply(results,function(X){return(X$first_type)}), | ||
scond_type = sapply(results,function(X){return(X$second_type)}), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think there is a typo of 'second_type' here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for catching that!
I have tried running the branch but in my case the function choose_sigma_c.R now runs substantially slower: While with the version from dmcable on my Visium HD data the 8 epochs complete within one hour using 28 cores, not even one epoch is processed within that time using the updated version proposed in this pull request. Could that be due to the fact that no cluster is created with makeClusters ? I also see very little CPU usage in general with most threads being in the S state and not running. |
Hi @dpaysan! It is a bit difficult to identify the issue without any code. Here are some suggestions to see if we can get it to work as intended:
|
This PR includes a series of commits intended to reduce the computational time when running the algorithm in doublet mode. Mostly intended for high definition assays (big number of spots), but usable with all other methods.
Main changes:
1. Change parallelization approach
2. Speed up gather_results
3. General speed up
4. Add MIN_OBS as parameter to create.RCTD
To do list: