SubsetByGeneIDsServer: Server function to upload a file to use to subset the data

View source: R/SubsetByGeneIDs.R

SubsetByGeneIDsServerR Documentation

Server function to upload a file to use to subset the data

Description

SubsetByGeneIDsServer() implements uploading a file of gene IDs to use to subset the data with. It also deals with resetting the gene IDs with the reset button.

Usage

SubsetByGeneIDsServer(id, counts = NULL, gene_metadata = NULL, debug = FALSE)

Arguments

id

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

counts

a reactive counts object. Should contain only numeric columns

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 a vector of gene IDs if a file has been uploaded. If a file hasn't been uploaded or the reset button has been clicked it returns NULL

Examples

SubsetByGeneIDsServer("geneIds")

# turn on debugging
SubsetByGeneIDsServer("geneIds", debug = TRUE)


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