validate_reference: validate reference data.frame

View source: R/validate_reference.R

validate_referenceR Documentation

validate reference data.frame

Description

Input a data.frame and check whether it contains a pre-specified set of valid columns. Invalid columns will be omitted alongside a warning.

Usage

validate_reference(
  df,
  warn = T,
  valid = c("gene", "accession_number", "col_significant", "col_other", "col_border",
    "shape", "dataset", "group", "stroke", "alt_label", "label", "label_size", "size",
    "symbol", "pLI", "opacity", "size", "size_gg", "legend_order")
)

Arguments

df

a data.frame

warn

should a warning be issued about the columns that have been discarded?

valid

a vector of valid downstream ggplot/plotly.

Value

a data.frame


lagelab/Genoppi documentation built on Oct. 13, 2022, 2:36 p.m.