This function runs necessary checks for pmartR trelliscope plotting functions. It cleans any parameters (rounding numerics to integers, etc.), and returns them.
trelli_precheck(
trelliData,
trelliCheck,
cognostics,
acceptable_cognostics,
ggplot_params,
interactive,
test_mode,
test_example,
single_plot,
seqDataCheck,
seqText = NULL,
p_value_skip = FALSE,
p_value_thresh = NULL
)
trelliData object the user passed to a plotting function
Check if the object type is supposed to be "omics", "statRes" or put a vector of both
A vector of the user provided cognstics
The acceptable cognostics for this plot
The vector of user provided ggplots
The user provided logical for whether the plot should be interactive
The user provided logical for whether a smaller trelliscope should be returned
The user provided vector of plot indices
The user provided logical for whether a single plot should be returned
Whether seqData is permitted for this plot. "no" means that seqData cannot be used at all, "permissible" means that seqData can be used, and "required" means that seqData is required for the plotting function.
Text that should appear when seqDataCheck is violated.
Whether to skip specific p_value checks.
The user provided threshold for plotting significant p-values.
No return value, validates a trelliData object before passing it to builder functions.