mirror of
https://github.com/johrpan/geposanui.git
synced 2025-10-26 11:17:24 +01:00
Add progress indicator for analysis
This commit is contained in:
parent
dc0265a13f
commit
079deb0faf
1 changed files with 13 additions and 1 deletions
14
server.R
14
server.R
|
|
@ -79,7 +79,19 @@ server <- function(input, output, session) {
|
|||
}
|
||||
|
||||
# Perform the analysis cached based on the preset's hash.
|
||||
results <- run_cached(rlang::hash(preset), geposan::analyze, preset)
|
||||
results <- withProgress(
|
||||
message = "Analyzing genes",
|
||||
value = 0.0, {
|
||||
run_cached(
|
||||
rlang::hash(preset),
|
||||
geposan::analyze,
|
||||
preset,
|
||||
function(progress) {
|
||||
setProgress(progress)
|
||||
}
|
||||
)
|
||||
}
|
||||
)
|
||||
|
||||
# Add all gene information to the results.
|
||||
results <- merge(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue