Skip to content
Snippets Groups Projects
Unverified Commit a9676779 authored by Todor Kondic's avatar Todor Kondic
Browse files

Rewrite build observer

R/shiny-ui-config.R(server_conf) <build observer>: Emulate build
process from the cmd line flow.
parent 9f957249
No related branches found
No related tags found
No related merge requests found
...@@ -199,26 +199,15 @@ server_conf <- function(input,output,session,rv,rf,roots) { ...@@ -199,26 +199,15 @@ server_conf <- function(input,output,session,rv,rf,roots) {
## Building rv objects here. Probably should change to ## Building rv objects here. Probably should change to
## something like reactive get_m. ## something like reactive get_m.
rv$m$conf$compounds$known <- input$known m <- list()
rv$m$conf$compounds$unknown <- input$unknown m$conf$compounds$known <- input$known
rv$m$conf$compounds$sets <- input$sets m$conf$compounds$unknown <- input$unknown
m$conf$compounds$sets <- input$sets
assert(isTruthy(rv$m$conf$compounds$known) || isTruthy(rv$m$conf$compounds$unknown), m$conf$project <- rv$m$conf$project
msg = "Please provide at least one (known, or unknown) compounds table.") m$conf$data <- file.path(m$conf$project,FN_DATA_TAB)
assert(isTruthy(rv$m$conf$compounds$sets), msg = "Please provide the compounds set table.")
rv$m <- load_compound_input(rv$m) m$conf <- vrfy_conf(m$conf)
if (nrow(rv$m$input$tab$mzml)==0 && file.exists(rv$m$conf$data)) rv$m <- load_data_input(rv$m) message("Building m at:",Sys.time())
## Rebuild tags.
isol({
df_tags <- unique(rv$m$input$tab$mzml$tag)
txt_tags <- input$tagsInp
new_tags <- combine_tags(df_tags,txt_tags)
shiny::updateTextInput(session=session,
inputId=input$tagsInp,
value=new_tags)})
message("Here at:",Sys.time())
}) })
obsrv_e(rv$m$conf$project,{ obsrv_e(rv$m$conf$project,{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment