for p values from an analysis rgQQ.py "$input1" "$name" "$sample" "$cols" "$allqq" "$height" "$width" "$logtrans" "$allqq.id" "$__new_file_path__" .. class:: infomark **Explanation** A quantile-quantile (QQ) plot is a good way to see systematic departures from the null expectation of uniform p-values from a genomic analysis. If the QQ plot shows departure from the null (ie a uniform 0-1 distribution), you hope that this will be in the very smallest p-values suggesting that there might be some interesting results to look at. A log scale will help emphasise departures from the null at low p values more clear ----- .. class:: infomark **Syntax** This tool has 2 pages. On the first one you choose the data set and output options, then on the second page, the column names are shown so you can choose the one containing the p values you wish to plot. - **History data** is one of your history tabular data sets - **Descriptive Title** is the text to appear in the output file names to remind you what the plots are! - **Use a Log scale** is recommended for p values in the range 0-1 as it highlights departures from the null at small p values - **Random Sample Fraction** is the fraction of points to randomly sample - highly recommended for >5k or so values - **Height and Width** will determine the scale of the pdf images ----- .. class:: infomark **Summary** Generate a uniform QQ plot for any large number of p values from an analysis. Essentially a plot of n ranked p values against their rank as a centile - ie rank/n Works well where you have a column containing p values from a statistical test of some sort. These will be plotted against the values expected under the null. Departure from the diagonal suggests one distribution is more extreme than the other. You hope your p values are smaller than expected under the null. The sampling fraction will help cut down the size of the pdfs. If there are fewer than 5k points on any plot, all will be shown. Otherwise the sampling fraction will be used or 5k, whichever is larger. Note that the use of a log scale is ill-advised if you are plotting log transformed p values because the uniform distribution chosen for the qq plot is always 0-1 and log transformation is applied if required. The most useful plots for p values are log QQ plots of untransformed p values in the range 0-1 Originally designed and written for family based data from the CAMP Illumina run of 2007 by ross lazarus (ross.lazarus@gmail.com)