SpecModule2: SpecModule2

View source: R/Module_SpecModule2.R

SpecModule2R Documentation

SpecModule2

Description

Module for interactive mass spectrum view

Usage

SpecModule2(
  input,
  output,
  session,
  values,
  reactives = reactive({     list(scantable = NULL, type = "ms2", spectrum = NULL,
    specinfo = NULL, xrange = NULL, markermz = NULL) })
)

SpecModule2UI(id)

Arguments

input

arguments necessary for use with callModule()

output

arguments necessary for use with callModule()

session

arguments necessary for use with callModule()

values

a reactiveValues object that in effect gives read and write access to external objects

reactives

a list, wrapped in a reactive() expression with settings for this module. See details.

id

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

Details

reactives

Can either be a list with entries scanTable and type, specifying inputs for the getScanInfo, OR a list with entries spectrum and specinfo.

scanTable
type
spectrum
specinfo

Value

If the server module for this Module returns something, it is described in Details.

Functions

  • SpecModule2: Server module, to be called with callModule()

  • SpecModule2UI: UI function for SpecModule2

See Also

values for a description of the values object

Examples

## Not run: 
library(shiny)

ui <- SpecModule2UI("examplemodule")

server <- function(input, output) {
    MseekMinimalServer(diagnostics = F, data = F, tables = F)
    
    ExampleModule <- callModule(SpecModule2, "examplemodule", values,
                                reactives = reactive({
                                    list(spectrum = data.frame(mz = c(100,200,250,300,400),
                                                               intensity = c(1000,2000,3000,1000,3000)))
                                    
                                }))
}

# Create Shiny app ----
shinyApp(ui, server)

## End(Not run)


mjhelf/Mosaic documentation built on April 28, 2022, 11:32 a.m.