annotate fastq_trimmer_by_quality.xml @ 2:61b9d9f80662 draft

planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/fastq_trimmer_by_quality commit de7140295cce07e1bc1697e51dab4271c8d7a8a6
author devteam
date Fri, 18 Dec 2015 19:01:05 -0500
parents f695662366e2
children 178d14eb7546
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
1 <tool id="fastq_quality_trimmer" name="FASTQ Quality Trimmer" version="1.0.0">
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
2 <description>by sliding window</description>
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
3 <requirements>
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
4 <requirement type="package" version="1.0.0">galaxy_sequence_utils</requirement>
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
5 </requirements>
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
6 <command interpreter="python">fastq_trimmer_by_quality.py '$input_file' '$output_file' -f '${input_file.extension[len( 'fastq' ):]}' -s '$window_size'
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
7 -t '$step_size' -e '$trim_ends' -a '$aggregation_action' -x '$exclude_count' -c '$score_comparison' -q '$quality_score'
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
8 #if $keep_zero_length.value:
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
9 -k
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
10 #end if
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
11 </command>
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
12 <inputs>
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
13 <param name="input_file" type="data" format="fastqsanger,fastqcssanger" label="FASTQ File"/>
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
14 <param name="keep_zero_length" label="Keep reads with zero length" type="boolean" truevalue="keep_zero_length" falsevalue="exclude_zero_length" selected="False"/>
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
15 <param name="trim_ends" type="select" label="Trim ends">
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
16 <option value="53" selected="True">5' and 3'</option>
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
17 <option value="5">5' only</option>
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
18 <option value="3">3' only</option>
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
19 </param>
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
20 <param name="window_size" type="integer" value="1" label="Window size"/>
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
21 <param name="step_size" type="integer" value="1" label="Step Size" />
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
22 <param name="exclude_count" label="Maximum number of bases to exclude from the window during aggregation" value="0" type="integer" />
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
23 <param name="aggregation_action" type="select" label="Aggregate action for window">
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
24 <option value="min" selected="True">min score</option>
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
25 <option value="max">max score</option>
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
26 <option value="sum">sum of scores</option>
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
27 <option value="mean">mean of scores</option>
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
28 </param>
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
29 <param name="score_comparison" type="select" label="Trim until aggregate score is">
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
30 <sanitizer>
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
31 <valid initial="none">
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
32 <add value="&lt;&gt;=!"/> <!-- only allow lt, gt, e, le, ge, ne for this parameter; will be single-quote escaped on commandline -->
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
33 </valid>
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
34 </sanitizer>
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
35 <option value="&gt;">&gt;</option>
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
36 <option value="&gt;=" selected="true">&gt;=</option>
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
37 <option value="==">==</option>
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
38 <option value="!=">!=</option>
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
39 <option value="&lt;">&lt;</option>
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
40 <option value="&lt;=">&lt;=</option>
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
41 </param>
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
42 <param name="quality_score" label="Quality Score" value="0" type="float" />
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
43 </inputs>
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
44 <outputs>
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
45 <data name="output_file" format="input" />
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
46 </outputs>
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
47 <tests>
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
48 <test>
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
49 <!-- Trim until window size 1 >= 20;both ends -->
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
50 <param name="input_file" value="sanger_full_range_original_sanger.fastqsanger" ftype="fastqsanger" />
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
51 <param name="keep_zero_length" value="exclude_zero_length" />
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
52 <param name="trim_ends" value="53"/>
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
53 <param name="window_size" value="1"/>
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
54 <param name="step_size" value="1"/>
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
55 <param name="exclude_count" value="0"/>
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
56 <param name="aggregation_action" value="min"/>
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
57 <param name="score_comparison" value="&gt;="/>
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
58 <param name="quality_score" value="20"/>
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
59 <output name="output_file" file="sanger_full_range_quality_trimmed_out_1.fastqsanger" />
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
60 </test>
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
61 <test>
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
62 <!-- Trim until window size 1 >= 20; 5' end only -->
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
63 <param name="input_file" value="sanger_full_range_original_sanger.fastqsanger" ftype="fastqsanger" />
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
64 <param name="keep_zero_length" value="exclude_zero_length" />
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
65 <param name="trim_ends" value="5"/>
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
66 <param name="window_size" value="1"/>
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
67 <param name="step_size" value="1"/>
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
68 <param name="exclude_count" value="0"/>
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
69 <param name="aggregation_action" value="min"/>
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
70 <param name="score_comparison" value="&gt;="/>
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
71 <param name="quality_score" value="20"/>
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
72 <output name="output_file" file="sanger_full_range_quality_trimmed_out_2.fastqsanger" />
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
73 </test>
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
74 <test>
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
75 <!-- Trim until window size 1 >= 20; 3' end only -->
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
76 <param name="input_file" value="sanger_full_range_original_sanger.fastqsanger" ftype="fastqsanger" />
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
77 <param name="keep_zero_length" value="exclude_zero_length" />
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
78 <param name="trim_ends" value="3"/>
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
79 <param name="window_size" value="1"/>
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
80 <param name="step_size" value="1"/>
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
81 <param name="exclude_count" value="0"/>
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
82 <param name="aggregation_action" value="min"/>
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
83 <param name="score_comparison" value="&gt;="/>
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
84 <param name="quality_score" value="20"/>
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
85 <output name="output_file" file="sanger_full_range_quality_trimmed_out_3.fastqsanger" />
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
86 </test>
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
87 <test>
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
88 <!-- Trim until window size 2 >= 1;both ends, 1 deviant score -->
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
89 <param name="input_file" value="sanger_full_range_original_sanger.fastqsanger" ftype="fastqsanger" />
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
90 <param name="keep_zero_length" value="exclude_zero_length" />
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
91 <param name="trim_ends" value="53"/>
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
92 <param name="window_size" value="2"/>
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
93 <param name="step_size" value="1"/>
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
94 <param name="exclude_count" value="1"/>
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
95 <param name="aggregation_action" value="min"/>
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
96 <param name="score_comparison" value="&gt;="/>
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
97 <param name="quality_score" value="1"/>
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
98 <output name="output_file" file="sanger_full_range_original_sanger.fastqsanger" />
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
99 </test>
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
100 <test>
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
101 <!-- Trim entire sequences; keep empty reads -->
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
102 <param name="input_file" value="sanger_full_range_original_sanger.fastqsanger" ftype="fastqsanger" />
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
103 <param name="keep_zero_length" value="true" />
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
104 <param name="trim_ends" value="53"/>
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
105 <param name="window_size" value="1"/>
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
106 <param name="step_size" value="1"/>
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
107 <param name="exclude_count" value="0"/>
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
108 <param name="aggregation_action" value="min"/>
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
109 <param name="score_comparison" value="&gt;="/>
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
110 <param name="quality_score" value="999"/>
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
111 <output name="output_file" file="sanger_full_range_empty_reads.fastqsanger" />
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
112 </test>
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
113 <test>
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
114 <!-- Trim entire sequences; discard empty reads -->
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
115 <param name="input_file" value="sanger_full_range_original_sanger.fastqsanger" ftype="fastqsanger" />
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
116 <param name="keep_zero_length"/>
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
117 <param name="trim_ends" value="53"/>
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
118 <param name="window_size" value="1"/>
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
119 <param name="step_size" value="1"/>
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
120 <param name="exclude_count" value="0"/>
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
121 <param name="aggregation_action" value="min"/>
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
122 <param name="score_comparison" value="&gt;="/>
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
123 <param name="quality_score" value="999"/>
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
124 <output name="output_file" file="empty_file.dat" />
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
125 </test>
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
126 </tests>
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
127 <help>
1
f695662366e2 planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents: 0
diff changeset
128 **What it does**
f695662366e2 planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents: 0
diff changeset
129
0
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
130 This tool allows you to trim the ends of reads based upon the aggregate value of quality scores found within a sliding window; a sliding window of size 1 is equivalent to 'simple' trimming of the ends.
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
131
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
132 The user specifies the aggregating action (min, max, sum, mean) to perform on the quality score values found within the sliding window to be used with the user defined comparison operation and comparison value.
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
133
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
134 The user can provide a maximum count of bases that can be excluded from the aggregation within the window. When set, this tool will first check the aggregation of the entire window, then after removing 1 value, then after removing 2 values, up to the number declared. Setting this value to be equal to or greater than the window size will cause no trimming to occur.
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
135
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
136 -----
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
137
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
138 .. class:: warningmark
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
139
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
140 Trimming a color space read will cause any adapter base to be lost.
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
141
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
142 ------
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
143
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
144
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
145 </help>
1
f695662366e2 planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents: 0
diff changeset
146 <citations>
f695662366e2 planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents: 0
diff changeset
147 <citation type="doi">10.1093/bioinformatics/btq281</citation>
f695662366e2 planemo upload commit 33927a87ba2eee9bf0ecdd376a66241b17b3d734
devteam
parents: 0
diff changeset
148 </citations>
0
5070dd206927 Imported from capsule None
devteam
parents:
diff changeset
149 </tool>