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

Progress bar #19

Open
tetomonti opened this issue Apr 19, 2022 · 4 comments
Open

Progress bar #19

tetomonti opened this issue Apr 19, 2022 · 4 comments

Comments

@tetomonti
Copy link
Collaborator

Wondering how easy/difficult would be to add a progress bar when running CaDrA::topn_eval or even simply the candidate_search function.

@tetomonti
Copy link
Collaborator Author

Actually, I think it would be more appropriate when running the permutation testing.

@katgit
Copy link
Collaborator

katgit commented Apr 25, 2022

There is an sapply() function in topn(), so if we put a progress bar within the permutation part, then we will result in top_N progress bars. If top_N < 10 then it's probably OK.

@tetomonti
Copy link
Collaborator Author

Most important is at permutation level (i.e., cadra_search). Need to turn it off at inner level (i.e., topn_eval or candidate_search) if called from cadra_search.
see plyr::alply( ..., .progress =...) for a potentially already defined solution.
see sys.parent for a function that would help do this automatically

Check if there is any updated version of plyr::alply in purrr or other tidyverse pacakge

@tetomonti
Copy link
Collaborator Author

tetomonti commented Apr 29, 2022

Looks like you ( @RC-88 ) are probably working on this, that's great!
Please notice that when running it, there is a lot of messaging and other output (e.g., the heatmaps) that will need to be turned off at inner level(s):
Right now, a lot of output interferes w/ the progress bar:

  |=========================                   |  20%Generating top N overlap heatmap..

Generating top N overlap heatmap..

Generating top N overlap heatmap..

  |==========================                  |  20%Generating top N overlap heatmap..

  |==========================                  |  21%Generating top N overlap heatmap..

Generating top N overlap heatmap..

Generating top N overlap heatmap..

Generating top N overlap heatmap..

  |===========================                |  21%Generating top N overlap heatmap..

  |===========================    

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

2 participants