6
|
1 <tool id="trimSequences" name="trim sequences">
|
15
|
2 <description>Remove the 5' and/or 3' adapters of a list of reads.</description>
|
6
|
3 <command interpreter="python"> ../Java/Python/trimSequences.py -i $inputFile -f fastq
|
|
4 #if $OptionFPADP.FPADP == "Yes":
|
|
5 -5 $OptionFPADP.fivePAdaptor
|
|
6 #end if
|
|
7 #if $OptionTPADP.TPADP == "Yes":
|
|
8 -3 $OptionTPADP.threePAdaptor
|
|
9 #end if
|
15
|
10 -e $errors
|
6
|
11 $indels
|
|
12 $noAdaptor5p $noAdaptorFile5p
|
|
13 $noAdaptor3p $noAdaptorFile3p
|
|
14 -o $outputFile
|
|
15
|
|
16 </command>
|
|
17
|
|
18
|
|
19 <inputs>
|
|
20 <param name="inputFile" type="data" label="Input fastq File" format="fastq"/>
|
|
21
|
|
22 <conditional name="OptionFPADP">
|
15
|
23 <param name="FPADP" type="select" label="5' adapter">
|
6
|
24 <option value="Yes">Yes</option>
|
|
25 <option value="No" selected="true">No</option>
|
|
26 </param>
|
|
27 <when value="Yes">
|
|
28 <param name="fivePAdaptor" type="text" value="None" />
|
|
29 </when>
|
|
30 <when value="No">
|
|
31 </when>
|
|
32 </conditional>
|
|
33
|
|
34 <conditional name="OptionTPADP">
|
15
|
35 <param name="TPADP" type="select" label="3' adapter">
|
6
|
36 <option value="Yes">Yes</option>
|
|
37 <option value="No" selected="true">No</option>
|
|
38 </param>
|
|
39 <when value="Yes">
|
|
40 <param name="threePAdaptor" type="text" value="None" />
|
|
41 </when>
|
|
42 <when value="No">
|
|
43 </when>
|
|
44 </conditional>
|
|
45
|
15
|
46 <param name="errors" type="integer" label="number of errors in percent" value="0" />
|
6
|
47 <param name="indels" type="boolean" truevalue="-d" falsevalue="" checked="false" label="indels option" help="also accept indels"/>
|
15
|
48 <param name="noAdaptor5p" type="boolean" truevalue="-n" falsevalue="" checked="false" label="noAdaptor 5' option" help="file name where to print sequences with no 5' adapter "/>
|
|
49 <param name="noAdaptor3p" type="boolean" truevalue="-m" falsevalue="" checked="false" label="noAdaptor 3' option" help="file name where to print sequences with no 3' adapter "/>
|
6
|
50
|
|
51 </inputs>
|
|
52
|
|
53 <outputs>
|
|
54 <data format="fastq" name="outputFile" label="[trimSequences] Output File"/>
|
|
55 <data name="noAdaptorFile5p" format="fastq" label="[trimSequences] noAdaptor5p File">
|
|
56 <filter>noAdaptor5p</filter>
|
|
57 </data>
|
|
58 <data name="noAdaptorFile3p" format="fastq" label="[trimSequences] noAdaptor3p File">
|
|
59 <filter>noAdaptor3p</filter>
|
|
60 </data>
|
|
61 </outputs>
|
|
62
|
|
63 <help>
|
|
64 </help>
|
15
|
65 <tests>
|
|
66 <test>
|
|
67 <param name="inputFile" value="short_fastq.fastq" />
|
|
68 <param name="FPADP" value="Yes"/>
|
|
69 <param name="fivePAdaptor" value="AAAA" />
|
|
70 <param name="TPADP" value="No"/>
|
|
71 <param name ="Error" value="No"/>
|
|
72 <param name="indels" value="False"/>
|
|
73 <param name ="noAdaptor5p" value="False"/>
|
|
74 <param name= "noAdaptor3p" value="False"/>
|
|
75 <output name="outputFile" file="exp_trimsequences_short_fastq.fastq" />
|
|
76 </test>
|
|
77 </tests>
|
|
78
|
|
79 <help>
|
|
80 This function removes the adaptor from the 5' or 3' end of your reads. It can even recognize the adaptators which are partially present. You can specify whether you are ready to accept indels or not.
|
|
81 </help>
|
6
|
82 </tool>
|