This function ensures the fold change minimum, maximum, and step are valid.
validate.FC(FCmin, FCmax, FCstep)
The minimum starting fold change cutoff to be checked, so the minimum fold change cutoff to be evaluated will be FCmin + FCstep, FCmin default = 1.
The maximum fold change cutoff to be checked, default = 2.
The step from the minimum to maximum fold change cutoff, one step increase at a time, default = 0.01.
Specifically it checks that the FCmax is greater than the FCmin, that at least 1 FCstep can fit within the FCmax and FCmin, that FCmax and FCmin values are non-negative, and that FCstep is positive.
Xingpeng Li, Tatiana Gelaf Romer & Siddhartha Pachhai RVA - RNAseq Visualization Automation tool.