Mercurial > repos > iuc > dexseq
diff dexseq_count.xml @ 0:4ca0e679f21e draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dexseq commit 876fc32b23d3b9c378ddbfbbba27d37d22576c85
author | iuc |
---|---|
date | Thu, 08 Oct 2015 16:52:01 -0400 |
parents | |
children | f1c406f9554c |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/dexseq_count.xml Thu Oct 08 16:52:01 2015 -0400 @@ -0,0 +1,110 @@ +<tool id="dexseq_count" name="DEXSeq-Count" version="1.0"> + <description>Prepare and count exon abundancies from RNA-seq data</description> + <requirements> + <requirement type="package" version="1.14">dexseq</requirement> + <requirement type="package" version="0.6.1">htseq</requirement> + <requirement type="package" version="0.7.7">pysam</requirement> + </requirements> + <stdio> + <!-- Anything other than zero is an error --> + <exit_code range="1:" /> + <exit_code range=":-1" /> + <!-- In case the return code has not been set propery check stderr too --> + <regex match="Error:" /> + <regex match="Exception:" /> + </stdio> + <command> + <![CDATA[ + #if $mode.mode_select == "prepare": + python \$DEXSEQ_ROOT/python_scripts/dexseq_prepare_annotation.py + -r $mode.aggregate + $mode.gtffile + $flattened_gtf_out + #elif $mode.mode_select == "count": + python \$DEXSEQ_ROOT/python_scripts/dexseq_count.py + -f bam + -p $mode.paired + -s $mode.stranded + -a $mode.qual + -r $mode.order + $mode.flattened_gtf_in + $mode.bamfile + $counts_file + #end if + ]]> + </command> + <inputs> + <conditional name="mode"> + <param name="mode_select" type="select" label="Mode of operation"> + <option value="prepare">Prepare annotation</option> + <option value="count">Count reads</option> + </param> + <when value="prepare"> + <param name="gtffile" type="data" format="gff" label="GTF file"/> + <param name="aggregate" type="boolean" checked="True" truevalue="yes" falsevalue="no" + label="Aggretare genes with exons?" + help="Indicates whether two or more genes sharing an exon should be merged into an 'aggregate gene'. If 'no', the exons that can not be assiged to a single gene are ignored."/> + </when> + <when value="count"> + <param name="bamfile" type="data" format="bam" label="Input bam file"/> + <param name="flattened_gtf_in" type="data" format="gff" label="DEXSeq compatible GTF file" help="Created by prepare mode"/> + <param name="paired" type="boolean" checked="True" truevalue="yes" falsevalue="no" label="Is libray paired end?"/> + <param name="stranded" type="select" label="Is library strand specific?"> + <option value="no">No</option> + <option value="yes">Yes</option> + <option value="reverse">Yes, but reverse</option> + </param> + <param name="qual" type="integer" value="10" label="Skip all reads with alignment quality lower than the given minimum value"/> + <param name="order" type="select" label="Sorting order of alignments" help="If you generated your alignments using tophat, they are by default position sorted. Ignored for single-end data"> + <option value="pos">By position</option> + <option value="name">By name</option> + </param> + </when> + </conditional> + </inputs> + + <outputs> + <data format="tabular" name="counts_file" label="DEXSeq count reads on ${on_string}"> + <filter>mode['mode_select'] == 'count'</filter> + </data> + <data format="gtf" name="flattened_gtf_out" label="DEXSeq prepare annotation on ${on_string}"> + <filter>mode['mode_select'] == 'prepare'</filter> + </data> + </outputs> + + <tests> + <test> + <param name="mode_select" value="prepare" /> + <param name="gtffile" ftype="gff" value="original.gtf"/> + <param name="aggregate" value="True"/> + <output name="flattened_gtf_out" file="flattened.gtf" ftype="gtf"/> + </test> + </tests> + + <help> + <![CDATA[ +.. class:: infomark + +**What it does** + +The main goal of this tol is to count the number of reads/fragments per exon of each gene in RNA-seq sample. In addition it also prepares your annotation gtf file compatible for counting. + + +**Inputs** + +Mode-preprare: Takes a normal gtf file as input. For example from ensembl database. +Mode-count: Inputs are flattened gtf file and BAM file. The flattened gtf file can be generated from 'prepare' mode of this tool. + +**Output** + +Mode-preprare: Flattened gtf file that contains only exons with corresponding gene ids from given gtf file. Sometimes two or more genes sharing an exon will be merged into an 'aggregate gene' if the aggregate option was used. +Mode-count: Two column tab-delimeted file with exon ids and their read counts. + +.. _DEXSeq: http://master.bioconductor.org/packages/release/bioc/html/DEXSeq.html + + ]]> + </help> + <citations> + <citation type="doi">10.1101/gr.133744.111</citation> + </citations> +</tool>