of quality statistics gnuplot < '$gnuplot_commands' 2>&1 || echo "Error running gnuplot." >&2 gnuplot set output '$output_file' set term png size ${graph_size} set boxwidth 0.8 set key right tmargin set xlabel "${xlabel}" set ylabel "${ylabel}" set title "${title}" set xtics 1 set ytics 1 set grid ytics set offsets 1, 1, 1, 1 plot '${input_file}' using ${xcol}:${q1col}:${lwcol}:${rwcol}:${q3col} with candlesticks lt 1 lw 1 title 'Quartiles' whiskerbars, \ '' using ${xcol}:${medcol}:${medcol}:${medcol}:${medcol} with candlesticks lt -1 lw 2 title 'Medians'\ #if str( $use_outliers['use_outliers_type'] ) == 'use_outliers': , "< python -c \"for xval, yvals in [ ( fields[${xcol} - 1], fields[${use_outliers['outliercol']} - 1].split( ',' ) ) for fields in [ line.rstrip( '\\n\\r' ).split( '\\t' ) for line in open( '${input_file}' ) if not line.startswith( '#' ) ] if len( fields ) > max( ${xcol} - 1, ${use_outliers['outliercol']} - 1 ) ]: print('\\n'.join( [ '%s\\t%s' % ( xval, yval ) for yval in yvals if yval ] ))\"" using 1:2 with points pt 29 title 'Outliers' #end if **What it does** Creates a boxplot graph. Its main purpose is to display a distribution of quality scores produced by *NGS: QC and maniupulation -> FASTQ Summary Statistics* tool. .. class:: warningmark **TIP:** If you want to display a distribution of quality scores produced by *NGS: QC and maniupulation -> FASTQ Summary Statistics* and the column assignments within the tool's interface are not automatically set (they will all read "c1" in that case) set columns manually to the following values:: Column for X axis c1 Column for Q1 c7 Column for Median c8 Column for Q3 c9 Column for left whisker c11 Column for right whisker c12 Column for Outliers c13 ----- **Output Example** * Black horizontal lines are medians * Rectangular red boxes show the Inter-quartile Range (IQR) (top value is Q3, bottom value is Q1) * Whiskers show outliers at max. 1.5*IQR .. image:: ${static_path}/images/solid_qual.png ------ **Citation** If you use this tool, please cite `Blankenberg D, Gordon A, Von Kuster G, Coraor N, Taylor J, Nekrutenko A; Galaxy Team. Manipulation of FASTQ data with Galaxy. Bioinformatics. 2010 Jul 15;26(14):1783-5. <http://www.ncbi.nlm.nih.gov/pubmed/20562416>`_ 10.1093/bioinformatics/btq281