annotate fastq_trimmer.xml @ 0:feb5479a48ff draft

Imported from capsule None
author devteam
date Thu, 23 Jan 2014 12:31:36 -0500
parents
children 3be753901f6e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
1 <tool id="fastq_trimmer" name="FASTQ Trimmer" version="1.0.0">
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
2 <description>by column</description>
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
3 <requirements>
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
4 <requirement type="package" version="1.0.0">galaxy_sequence_utils</requirement>
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
5 </requirements>
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
6 <command interpreter="python">fastq_trimmer.py '$input_file' '$output_file' '${offset_type['left_column_offset']}' '${offset_type['right_column_offset']}' '${offset_type['base_offset_type']}' '${input_file.extension[len( 'fastq' ):]}' '$keep_zero_length'</command>
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
7 <inputs>
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
8 <param name="input_file" type="data" format="fastqsanger,fastqcssanger" label="FASTQ File"/>
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
9 <conditional name="offset_type">
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
10 <param name="base_offset_type" type="select" label="Define Base Offsets as" help="Use Absolute for fixed length reads (Illumina, SOLiD)&lt;br&gt;Use Percentage for variable length reads (Roche/454)">
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
11 <option value="offsets_absolute" selected="true">Absolute Values</option>
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
12 <option value="offsets_percent">Percentage of Read Length</option>
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
13 </param>
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
14 <when value="offsets_absolute">
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
15 <param name="left_column_offset" label="Offset from 5' end" value="0" type="integer" help="Values start at 0, increasing from the left">
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
16 <validator type="in_range" message="Base Offsets must be positive" min="0" max="inf"/>
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
17 <validator type="expression" message="An integer is required.">int( float( value ) ) == float( value )</validator>
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
18 </param>
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
19 <param name="right_column_offset" label="Offset from 3' end" value="0" type="integer" help="Values start at 0, increasing from the right">
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
20 <validator type="in_range" message="Base Offsets must be positive" min="0" max="inf"/>
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
21 <validator type="expression" message="An integer is required.">int( float( value ) ) == float( value )</validator>
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
22 </param>
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
23 </when>
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
24 <when value="offsets_percent">
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
25 <param name="left_column_offset" label="Offset from 5' end" value="0" type="float">
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
26 <validator type="in_range" message="Base Offsets must be between 0 and 100" min="0" max="100"/>
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
27 </param>
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
28 <param name="right_column_offset" label="Offset from 3' end" value="0" type="float">
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
29 <validator type="in_range" message="Base Offsets must be between 0 and 100" min="0" max="100"/>
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
30 </param>
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
31 </when>
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
32 </conditional>
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
33 <param name="keep_zero_length" label="Keep reads with zero length" type="boolean" truevalue="keep_zero_length" falsevalue="exclude_zero_length" selected="False"/>
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
34 </inputs>
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
35 <outputs>
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
36 <data name="output_file" format="input" />
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
37 </outputs>
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
38 <tests>
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
39 <test>
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
40 <!-- Do nothing trim -->
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
41 <param name="input_file" value="sanger_full_range_original_sanger.fastqsanger" ftype="fastqsanger" />
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
42 <param name="base_offset_type" value="offsets_absolute"/>
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
43 <param name="left_column_offset" value="0"/>
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
44 <param name="right_column_offset" value="0"/>
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
45 <param name="keep_zero_length" value="keep_zero_length" />
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
46 <output name="output_file" file="sanger_full_range_original_sanger.fastqsanger" />
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
47 </test>
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
48 <!-- Trim to empty File -->
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
49 <test>
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
50 <param name="input_file" value="sanger_full_range_original_sanger.fastqsanger" ftype="fastqsanger" />
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
51 <param name="base_offset_type" value="offsets_absolute"/>
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
52 <param name="left_column_offset" value="30"/>
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
53 <param name="right_column_offset" value="64"/>
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
54 <param name="keep_zero_length" value="exclude_zero_length" />
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
55 <output name="output_file" file="empty_file.dat" />
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
56 </test>
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
57 <test>
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
58 <param name="input_file" value="sanger_full_range_original_sanger.fastqsanger" ftype="fastqsanger" />
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
59 <param name="base_offset_type" value="offsets_percent"/>
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
60 <param name="left_column_offset" value="50"/>
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
61 <param name="right_column_offset" value="50"/>
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
62 <param name="keep_zero_length" value="exclude_zero_length" />
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
63 <output name="output_file" file="empty_file.dat" />
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
64 </test>
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
65 <!-- Trim to 4 inner-most bases -->
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
66 <test>
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
67 <param name="input_file" value="sanger_full_range_original_sanger.fastqsanger" ftype="fastqsanger" />
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
68 <param name="base_offset_type" value="offsets_absolute"/>
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
69 <param name="left_column_offset" value="45"/>
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
70 <param name="right_column_offset" value="45"/>
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
71 <param name="keep_zero_length" value="exclude_zero_length" />
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
72 <output name="output_file" file="fastq_trimmer_out1.fastqsanger" />
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
73 </test>
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
74 <test>
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
75 <param name="input_file" value="sanger_full_range_original_sanger.fastqsanger" ftype="fastqsanger" />
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
76 <param name="base_offset_type" value="offsets_percent"/>
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
77 <param name="left_column_offset" value="47.87"/>
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
78 <param name="right_column_offset" value="47.87"/>
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
79 <param name="keep_zero_length" value="exclude_zero_length" />
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
80 <output name="output_file" file="fastq_trimmer_out1.fastqsanger" />
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
81 </test>
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
82 </tests>
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
83 <help>
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
84 This tool allows you to trim the ends of reads.
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
85
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
86 You can specify either absolute or percent-based offsets. Offsets are calculated, starting at 0, from the respective end to be trimmed. When using the percent-based method, offsets are rounded to the nearest integer.
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
87
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
88 For example, if you have a read of length 36::
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
89
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
90 @Some FASTQ Sanger Read
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
91 CAATATGTNCTCACTGATAAGTGGATATNAGCNCCA
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
92 +
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
93 =@@.@;B-%?8&gt;CBA@&gt;7@7BBCA4-48%&lt;;;%&lt;B@
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
94
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
95 And you set absolute offsets of 2 and 9::
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
96
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
97 @Some FASTQ Sanger Read
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
98 ATATGTNCTCACTGATAAGTGGATA
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
99 +
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
100 @.@;B-%?8&gt;CBA@&gt;7@7BBCA4-4
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
101
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
102 Or you set percent offsets of 6% and 20% (corresponds to absolute offsets of 2,7 for a read length of 36)::
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
103
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
104 @Some FASTQ Sanger Read
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
105 ATATGTNCTCACTGATAAGTGGATATN
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
106 +
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
107 @.@;B-%?8&gt;CBA@&gt;7@7BBCA4-48%
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
108
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
109 -----
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
110
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
111 .. class:: warningmark
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
112
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
113 Trimming a color space read will cause any adapter base to be lost.
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
114
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
115 ------
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
116
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
117 **Citation**
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
118
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
119 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. &lt;http://www.ncbi.nlm.nih.gov/pubmed/20562416&gt;`_
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
120
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
121
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
122 </help>
feb5479a48ff Imported from capsule None
devteam
parents:
diff changeset
123 </tool>