xcmsWidget: xcmsWidget

View source: R/Widget_xcmsWidget.R

xcmsWidgetR Documentation

xcmsWidget

Description

server module for accessing the xcms data analysis workflow

Usage

xcmsWidget(
  input,
  output,
  session,
  externalFilegroups = reactive({     NULL }),
  static = list(servermode = F, rootpath = .MseekOptions$filePaths, activateXCMS = T,
    filePattern = .MseekOptions$filePattern, defaultSettings = "Metaboseek_defaults")
)

xcmsWidgetUI(id)

Arguments

input

arguments necessary for use with callModule()

output

arguments necessary for use with callModule()

session

arguments necessary for use with callModule()

externalFilegroups

A data.frame with columns File and Group, specifying files to analyze by xcms. Will be ignored if files were loaded from within the xcmsWidget.

static

a list of arguments that are not in a reactive context and hence do not change while the app is running.

id

id to be used to define a namespace via NS() (must match id in callModule for the server Module)

Value

Returns nothing

Functions

  • xcmsWidget: Server logic

  • xcmsWidgetUI: UI elements

Examples

## Not run: 
library(shiny)

ui <- xcmsWidgetUI("xcmsGUI")

server <- function(input, output) {
  
  callModule(xcmsWidget, "xcmsGUI", 
             static = list(servermode = F,
                           rootpath = .MseekOptions$filePaths,
                           activateXCMS = T,
                           filePattern = .MseekOptions$filePattern))
}
# Create Shiny app ----
shinyApp(ui, server)


## End(Not run)


mjhelf/Metaboseek documentation built on April 23, 2022, 12:09 p.m.