view fastq_quality_boxplot.xml @ 3:7cf5b1d072b5 draft

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/fastx_toolkit/fastq_quality_boxplot commit 4c002e52261da2e7609735883d91fa1610ce6ce7"
author iuc
date Thu, 30 Jan 2020 13:29:05 -0500
parents 3987db70a4b0
children 867ab348287d
line wrap: on
line source

<tool id="cshl_fastq_quality_boxplot" name="Draw quality score boxplot" version="1.0.1">
    <description></description>
    <macros>
        <import>macros.xml</import>
    </macros>
    <expand macro="requirements" />
    <command detect_errors="exit_code"><![CDATA[
#import re
#set escaped_element_identifier = re.sub('[^\w\-\s]', '_', str($input.element_identifier))
fastq_quality_boxplot_graph.sh
-t '$escaped_element_identifier'
-i '$input'
-o '$output'
    ]]></command>

    <inputs>
        <param name="input" type="data" format="txt" label="Statistics report file"  help="output of 'FASTQ Statistics' tool" />
    </inputs>

    <outputs>
        <data name="output" format="png" metadata_source="input" />
    </outputs>
    <tests>
        <test>
            <param name="input" value="fastq_quality_boxplot-in1.fastq" />
            <output name="output" file="fastq_quality_boxplot-out1.png" compare="sim_size" delta="10000" />
        </test>
    </tests>
    <help><![CDATA[
**What it does**

Creates a boxplot graph for the quality scores in the library.

.. class:: infomark

**TIP:** Use the **FASTQ Statistics** tool to generate the report file needed for this tool.

-----

**Output Examples**

* Black horizontal lines are medians
* Rectangular red boxes show the Inter-quartile Range (IQR) (top value is Q3, bottom value is Q1)
* Whiskers show outlier at max. 1.5*IQR


An excellent quality library (median quality is 40 for almost all 36 cycles):

.. image:: fastq_quality_boxplot_1.png


A relatively good quality library (median quality degrades towards later cycles):

.. image:: fastq_quality_boxplot_2.png

A low quality library (median drops quickly):

.. image:: fastq_quality_boxplot_3.png

------

This tool is based on `FASTX-toolkit`__ by Assaf Gordon.

 .. __: http://hannonlab.cshl.edu/fastx_toolkit/
    ]]></help>
    <expand macro="citations" />
<!-- FASTQ-Quality-Boxplot is part of the FASTX-toolkit, by A.Gordon (gordon@cshl.edu) -->
</tool>