countPlotServer: Server function to create a count plot for a given gene

View source: R/countPlot.R

countPlotServerR Documentation

Server function to create a count plot for a given gene

Description

countPlotServer() creates a count plot for a given gene from the counts and sample information supplied. The plot is a ggplot2 plot object made using biovisr::scatterplot_with_fill_and_shape(). The plot is rendered to the count_plot plotOutput from the countPlotOutput() function.

Usage

countPlotServer(
  id,
  counts = NULL,
  sample_info = NULL,
  gene_metadata = NULL,
  debug = NULL
)

Arguments

id

namespace id for the UI components. Must match the id provided to the countPlotInput() function.

counts

a reactive counts object. Should contain only numeric columns

sample_info

a reactive object. Represents the samples and associated metadata

gene_metadata

a reactive object. Contains the metadata for the genes present in the counts object.

debug

Turn on debugging message statements

Value

a shiny::reactive() object which is the count plot

Examples


countPlotServer("rnaseq", counts = reactive(rnaseqVis::counts[1:10, 1:20]),
sample_info = reactive(rnaseqVis::sampleInfo[1:20,]),
gene_metadata = reactive(rnaseqVis::gene_metadata[1:10,]))


richysix/rnaseqVis documentation built on Feb. 12, 2024, 1:37 p.m.