Description Usage Arguments Value Examples
Get Pathway Map: Generate pathway map with patient data superimposed.
1 | getPathwayMap(input, zscore.data)
|
input |
- List of parameters passed from R shiny from UI. Important parameters will be input$ptIDs, input$pathwayMapId, and input$scalingFactor. |
zscore.data |
- A named vector of metabolites with corresponding z-scores. |
An SVG image of the selected pathway map in input$pathwayMapId, with the mean profile of input$ptIDs superimposed.
1 2 3 4 5 6 7 8 9 10 11 12 | data(Miller2015_Heparin)
# Input is supplied by R shiny app, but you can hard code parameters as a list object, too, to test functionality.
input = list()
input$ptIDs = colnames(Miller2015_Heparin)[4]
input$diagClass = "paa"
input$pathwayMapId = "allPathways"
input$scalingFactor = 1
svg_img = getPathwayMap(input, Miller2015_Heparin)
# SVG file will be saved at following path
svg_img$src
# Colorbar can be visualized this way
plot(svg_img$colorbar)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.