2
|
1 <tool id="usearch_fastq_mergepairs" name="usearch fastq_mergepairs" version="0.0.1">
|
|
2 <description>merging of paired reads</description>
|
|
3 <version_command>usearch -version</version_command>
|
12
|
4 <command interpreter='bash'>usearch_wrapper.sh
|
|
5 usearch
|
|
6 -quiet
|
7
|
7 -fastq_mergepairs '$input_forward'
|
|
8 -reverse '$input_reverse'
|
17
|
9 #if $minovlen.value != 0
|
13
|
10 -fastq_minovlen $minovlen
|
7
|
11 #end if
|
17
|
12 #if $minmergelen.value != 0
|
|
13 -fastq_minmergelen $minmergelen
|
|
14 #end if
|
|
15 #if $maxmergelen.value != 0
|
|
16 -fastq_maxmergelen $maxmergelen
|
|
17 #end if
|
|
18 #if $maxdiffs.value != 0
|
|
19 -fastq_maxdiffs $maxdiffs
|
|
20 #end if
|
|
21 #if $truncqual.value != 0
|
|
22 -fastq_truncqual $truncqual
|
|
23 #end if
|
|
24 #if $minlen.value != 0
|
|
25 -fastq_minlen $minlen
|
|
26 #end if
|
|
27 $allowmergestagger
|
|
28 -fastq_ascii $ascii
|
|
29 -fastq_qmin $qmin
|
7
|
30 -fastq_qmax $qmax
|
17
|
31 -fastq_qmaxout $qmaxout
|
|
32 #if $output_format.format == "fastq"
|
|
33 -fastqout $output
|
|
34 #else
|
|
35 -fastaout $output
|
|
36 #end if
|
2
|
37 </command>
|
|
38 <inputs>
|
17
|
39 <!-- INPUT OPTIONS -->
|
7
|
40 <param name="input_forward" type="data" format="fastq,fastqsanger,fastqcssanger" label="File with forward reads" />
|
|
41 <param name="input_reverse" type="data" format="fastq,fastqsanger,fastqcssanger" label="File with reverse reads" />
|
11
|
42 <param name="minovlen" type="integer" value="0" label="Minimum length of the overlap" help="'0' means no minimum." />
|
17
|
43 <param name="minmergelen" type="integer" value="0" label="Minimum length of the merged read" help="'0' means no minimum." />
|
|
44 <param name="maxmergelen" type="integer" value="0" label="Maximum length of the merged read" help="'0' means no maximum." />
|
|
45 <param name="maxdiffs" type="integer" value="0" label="Maximum number of mismatches allowed in the overlap region" help="'0' means any number of mismatches allowed" />
|
|
46 <param name="truncqual" type="integer" value="0" label="Truncate the forward and reverse reads at the first Q<=q, if present. This truncation is performed before aligning the pair. With Illumina paired reads, it is recommended to use ‑fastq_trunqual 2 or higher, as low-quality tails will otherwise often cause alignment of the pair to fail." help="'0' means no quality truncation." />
|
|
47 <param name="minlen" type="integer" value="0" label="Minimum length of the forward and reverse read, after truncating per ‑fastq_truncqual if applicable." help="'0' means no minimum." />
|
|
48 <param name="allowmergestagger" type="boolean" truevalue="-fastq_allowmergestagger" falsevalue="" checked="false" label="Allow merge of a pair where the alignment is staggered like this: --FORWARD
|
|
49 REVERSE--" help="By default, pairs with staggered alignments are discarded." />
|
|
50 <param name="ascii" type="integer" value="33" label="ASCII_BASE constant" help="See http://drive5.com/usearch/manual/fastq_params.html" />
|
|
51 <param name="qmin" type="integer" value="0" label="Minimum Q score" />
|
10
|
52 <param name="qmax" type="integer" value="41" label="Maximum Q score for input files" />
|
17
|
53 <param name="qmaxout" type="integer" value="41" label="Maximum Q score for output files" />
|
|
54
|
|
55 <!-- OUTPUT OPTIONS -->
|
|
56 <conditional name="output_format">
|
|
57 <param name="format" type="select" display="radio" label="Output format">
|
|
58 <option value="fastq">FASTQ</option>
|
|
59 <option value="fasta">FASTA</option>
|
|
60 </param>
|
|
61 <when value="fastq"></when>
|
|
62 <when value="fasta"></when>
|
|
63 </conditional>
|
|
64 </inputs>
|
2
|
65 <outputs>
|
|
66 <data name='output' format='fastq' label="Merge result" />
|
|
67 </outputs>
|
|
68 <tests>
|
|
69 <test>
|
|
70 <param name="input_forward" value="fastq_mergepairs_input1.fq" ftype="fastqsanger" />
|
|
71 <param name="input_reverse" value="fastq_mergepairs_input2.fq" ftype="fastqsanger" />
|
5
|
72 <param name="qmax" value="65" />
|
2
|
73 <output name="output" file="fastq_mergepairs_output.fq" />
|
|
74 </test>
|
|
75 </tests>
|
|
76 <help>
|
|
77 **What it Does**
|
|
78
|
|
79 Performs merging of paired reads.
|
|
80
|
|
81 The FASTQ filename for the forward reads is specified by the -fastq_mergepairs option, and the reverse read filename is specified by the -reverse option. Output files are specified by -fastqout (for FASTQ) and / or -fastaout (for FASTA).
|
|
82
|
|
83 Forward and reverse must be in 1:1 correspondence and must appear in the same order in both files. The labels for the forward and reverse read in a given pair must be identical except for a single position where a '1' appears in the forward read label and a '2' appears in the reverse read label.
|
|
84
|
|
85 -----
|
|
86
|
|
87 **Input formats**
|
|
88
|
|
89 Forward read::
|
|
90
|
|
91 @IRIS:7:1:29:952#0/1
|
|
92 TGAGAAGCAAGAAGAAGGTTGGTTAGTGTTTTGGAG
|
|
93 +IRIS:7:1:29:952#0/1
|
|
94 aaabaaaaaaaaaaa`aaY`aa^aaa^a_a_`aa``
|
|
95
|
|
96 Reverse read::
|
|
97
|
|
98 @IRIS:7:1:29:952#0/2
|
|
99 GACTCCAAAACACTAACCAACCTTCTTCTTGCTTCT
|
|
100 +IRIS:7:1:29:952#0/2
|
|
101 aaaabaaaabaaaabbaaaa````__`__^__``__
|
|
102
|
|
103 -----
|
|
104
|
|
105 **Output**
|
|
106
|
|
107 A multiple-fastq file, for example::
|
|
108
|
|
109 @IRIS:7:1:29:952#0/1
|
|
110 TGAGAAGCAAGAAGAAGGTTGGTTAGTGTTTTGGAGTC
|
|
111 +
|
|
112 aaJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJaa
|
|
113
|
|
114 ------
|
|
115
|
|
116 **Manual**
|
|
117
|
|
118 http://drive5.com/usearch/manual/fastq_mergepairs.html
|
|
119
|
|
120 **Citation**
|
|
121
|
|
122 Please cite one of these papers if you use USEARCH in published work.
|
|
123
|
|
124 Edgar,RC (2010) Search and clustering orders of magnitude faster than BLAST, Bioinformatics 26(19), 2460-2461.
|
|
125 doi: 10.1093/bioinformatics/btq461
|
|
126 </help>
|
|
127 </tool>
|