plotVolcanoApp: Plot interactive volcano plots

Description Usage Arguments Value Examples

View source: R/plotVolcanoApp.R

Description

Plot interactive volcano plots.

Usage

1
2
3
4
5
6
7
plotVolcanoApp(
  data = data,
  dataMetrics = dataMetrics,
  dataSE = NULL,
  option = c("hexagon", "allPoints"),
  pointColor = "orange"
)

Arguments

data

DATA FRAME | Read counts

dataMetrics

LIST | Differential expression metrics. This object must contain one column named "logFC" and one column named "PValue".

dataSE

SUMMARIZEDEXPERIMENT | Summarized experiment format that can be used in lieu of data; default NULL

option

CHARACTER STRING ["hexagon" | "allPoints"] | The background of plot; default "hexagon"

pointColor

CHARACTER STRING | Color of overlaid points on scatterplot matrix; default "orange"

Value

A Shiny application that shows a volcano plot and allows users to overlay genes depending on two values, usually a statistical value (such as P-value) and a magnitude change value (such as log fold change). The user can download a file that contains the gene IDs that pass these thresholds.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# The first pair of examples use data and dataMetrics objects as input.
# The last pair of examples create the same plots now using the 
# SummarizedExperiment (i.e. dataSE) object input.

# Example 1: Create interactive volcano plot of logged data using hexagon
# bins for the background.

data(soybean_cn_sub)
data(soybean_cn_sub_metrics)
app <- plotVolcanoApp(data = soybean_cn_sub,
    dataMetrics = soybean_cn_sub_metrics)
if (interactive()) {
    shiny::runApp(app)
}

# Example 2: Create interactive volcano plot of logged data using points for 
# the background.

app <- plotVolcanoApp(data = soybean_cn_sub,
    dataMetrics = soybean_cn_sub_metrics, option = "allPoints",
    pointColor = "magenta")
if (interactive()) {
    shiny::runApp(app)
}

# Below is the same pair of examples, only now using the
# SummarizedExperiment (i.e. dataSE) object as input.

# Example 1: Create interactive volcano plot of logged data using hexagon
# bins for the background.

## Not run: 
data(se_soybean_cn_sub)
app <- plotVolcanoApp(dataSE = se_soybean_cn_sub)
if (interactive()) {
    shiny::runApp(app)
}

## End(Not run)

# Example 2: Create interactive volcano plot of logged data using points for 
# the background.

## Not run: 
app <- plotVolcanoApp(dataSE = se_soybean_cn_sub, option = "allPoints",
    pointColor = "magenta")
if (interactive()) {
    shiny::runApp(app)
}

## End(Not run)

bigPint documentation built on Nov. 8, 2020, 5:07 p.m.