comparison htseq-count.xml @ 5:8a5d43b21c6e

Improved error handling
author Lance Parsons <lparsons@princeton.edu>
date Thu, 20 Sep 2012 12:41:53 -0400
parents 14bec14f4290
children 2861eb44fbbf 5bfb7a651fac
comparison
equal deleted inserted replaced
4:14bec14f4290 5:8a5d43b21c6e
39 | awk '{if ($1 ~ "no_feature|ambiguous|too_low_aQual|not_aligned|alignment_not_unique") print $0 | "cat 1>&amp;2"; else print $0}' &gt; $counts 2&gt;$othercounts 39 | awk '{if ($1 ~ "no_feature|ambiguous|too_low_aQual|not_aligned|alignment_not_unique") print $0 | "cat 1>&amp;2"; else print $0}' &gt; $counts 2&gt;$othercounts
40 #if $samout_conditional.samout: 40 #if $samout_conditional.samout:
41 &amp;&amp; samtools view -Su -t ${reference_fasta_filename}.fai $__new_file_path__/${samoutfile.id}_tmp | samtools sort -o - sorted > $samoutfile 41 &amp;&amp; samtools view -Su -t ${reference_fasta_filename}.fai $__new_file_path__/${samoutfile.id}_tmp | samtools sort -o - sorted > $samoutfile
42 #end if</command> 42 #end if</command>
43 <inputs> 43 <inputs>
44 <param format="sam, bam" name="samfile" type="data" label="Aligned SAM File"> 44 <param format="sam, bam" name="samfile" type="data" label="Aligned SAM/BAM File">
45 <help>Paired-End data must be sorted by QUERY NAME, use Picard Read Mate Fixer and Query name sort order before using this tool on paired data</help> 45 <help>Paired-End data MUST be sorted by QUERY NAME, use Picard Read Mate Fixer and Query name sort order before using this tool on paired data</help>
46 </param> 46 </param>
47 <param format="gff" name="gfffile" type="data" label="GFF File"/> 47 <param format="gff" name="gfffile" type="data" label="GFF File"/>
48 <param name="mode" type="select" label="Mode"> 48 <param name="mode" type="select" label="Mode">
49 <help>Mode to handle reads overlapping more than one feature.</help> 49 <help>Mode to handle reads overlapping more than one feature.</help>
50 <option value="union" selected="true">Union</option> 50 <option value="union" selected="true">Union</option>
62 </param> 62 </param>
63 <param name="type" type="text" value="exon" label="Feature type"> 63 <param name="type" type="text" value="exon" label="Feature type">
64 <help>Feature type (3rd column in GFF file) to be used. All features of other types are ignored. The default, suitable for RNA-Seq and Ensembl GTF files, is exon.</help> 64 <help>Feature type (3rd column in GFF file) to be used. All features of other types are ignored. The default, suitable for RNA-Seq and Ensembl GTF files, is exon.</help>
65 </param> 65 </param>
66 <param name="idattr" type="text" value="gene_id" label="ID Attribute"> 66 <param name="idattr" type="text" value="gene_id" label="ID Attribute">
67 <help>GFF attribute to be used as feature ID. Several GFF lines with the same feature ID will be considered as parts of the same feature. The feature ID is used to identity the counts in the output table. The default, suitable for RNA-SEq and Ensembl GTF files, is gene_id.</help> 67 <help>GFF attribute to be used as feature ID. Several GFF lines with the same feature ID will be considered as parts of the same feature. The feature ID is used to identity the counts in the output table. All features of the specified type MUST have a value for this attribute. The default, suitable for RNA-SEq and Ensembl GTF files, is gene_id.</help>
68 </param> 68 </param>
69 <conditional name="samout_conditional"> 69 <conditional name="samout_conditional">
70 <param name="samout" type="boolean" value="False" truevalue="True" falsevalue="False" label="Additional BAM Output"> 70 <param name="samout" type="boolean" value="False" truevalue="True" falsevalue="False" label="Additional BAM Output">
71 <help>Write out all SAM alignment records into an output BAM file, annotating each line with its assignment to a feature or a special counter (as an optional field with tag ‘XF’).</help> 71 <help>Write out all SAM alignment records into an output BAM file, annotating each line with its assignment to a feature or a special counter (as an optional field with tag ‘XF’).</help>
72 </param> 72 </param>
100 </data> 100 </data>
101 </outputs> 101 </outputs>
102 102
103 <stdio> 103 <stdio>
104 <exit_code range="1:" level="fatal" description="Unknown error occurred" /> 104 <exit_code range="1:" level="fatal" description="Unknown error occurred" />
105 <regex match="htseq-count: command not found" source="stderr" level="fatal" description="The HTSeq python package is not properly installed, contact Galaxy administrators" />
106 <regex match="samtools: command not found" source="stderr" level="fatal" description="The samtools package is not properly installed, contact Galaxy administrators" />
107 <regex match="Error: Feature (.+) does not contain a '(.+)' attribute" source="both" level="fatal" description="Error parsing the GFF file, at least one feature of the specified 'Feature type' does not have a value for the specified 'ID Attribute'" />
108 <regex match="Error occured in line (\d+) of file" source="stderr" level="fatal" description="Unknown error parsing the GFF file" />
105 </stdio> 109 </stdio>
106 110
107 <tests> 111 <tests>
108 <test> 112 <test>
109 <param name="samfile" value="htseq-test.sam" /> 113 <param name="samfile" value="htseq-test.sam" />