This function ensures the fold change minimum, maximum, and step are valid.
validate.pvals(p.min, p.max, p.step)The minimum starting FDR cutoff to be checked, so the minimum fold change cutoff to be evaluated will be p.min + p.step, p.min default = 0.
The maximum FDR cutoff to be checked, default = 0.2.
The step from the minimum to maximum fold change cutoff, one step increase at a time, default = 0.005.
Specifically it checks that the pvalues are between 0-1, and that
at least 1 p.step fits within the p.min and p.max bounds and
is positive.
Xingpeng Li, Tatiana Gelaf Romer & Siddhartha Pachhai RVA - RNAseq Visualization Automation tool.