validate.geneset {RVA} | R Documentation |
Validate Geneset
Description
This function ensures that the input geneset to check.cutoff is formatted properly and in a usable form.
Usage
validate.geneset(data, geneset, highlight.1, highlight.2)
Arguments
data |
summary statistics table or a list contain multiple summary statistics tables from limma or DEseq2, where each row is a gene. |
geneset |
a summary statistic table contain the genes want to be highlighted, the gene name format (in row names) needs to be consistent to the main summary statistics table). For example, this summary statistics table coulb be the output summary statistics table from Disease vs Healthy comparison (Only contain the subsetted significant genes want to be highlighted). |
highlight.1 |
genes want to be highlighted, in the format of a vector consists of gene names. The gene name format needs to be consistent to the main summary statistics table. |
highlight.2 |
genes want to be highlighted, in the format of a vector consists of gene names. The gene name format needs to be consistent to the main summary statistics table. |
Details
The function ensures that only a dataframe or vectors are supplied, that at least one or the other is supplied, and that their formatting is correct if supplied. It also checks if any of the genes overlap with the genes in the datanames.
Value
A character value indicating if the geneset was passed as a
dataframe (df
) or two vectors (vec
), if a list is input
the number of returned values equal the length of the list
References
Xingpeng Li, Tatiana Gelaf Romer & Siddhartha Pachhai RVA - RNAseq Visualization Automation tool.