|
18
|
1 <tool id="usearch_fastq_mergepairs" name="usearch fastq_mergepairs" version="0.0.2">
|
|
2
|
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
|
|
22
|
12 #if $minmergelen.value != 0
|
|
|
13 -fastq_minmergelen $minmergelen
|
|
|
14 #end if
|
|
24
|
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
|
|
7
|
27 -fastq_qmax $qmax
|
|
21
|
28 -fastqout $output
|
|
2
|
29 </command>
|
|
|
30 <inputs>
|
|
17
|
31 <!-- INPUT OPTIONS -->
|
|
7
|
32 <param name="input_forward" type="data" format="fastq,fastqsanger,fastqcssanger" label="File with forward reads" />
|
|
|
33 <param name="input_reverse" type="data" format="fastq,fastqsanger,fastqcssanger" label="File with reverse reads" />
|
|
11
|
34 <param name="minovlen" type="integer" value="0" label="Minimum length of the overlap" help="'0' means no minimum." />
|
|
22
|
35 <param name="minmergelen" type="integer" value="0" label="Minimum length of the merged read" help="'0' means no minimum." />
|
|
24
|
36 <param name="maxmergelen" type="integer" value="0" label="Maximum length of the merged read" help="'0' means no maximum." />
|
|
|
37 <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" />
|
|
|
38 <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." />
|
|
|
39 <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." />
|
|
10
|
40 <param name="qmax" type="integer" value="41" label="Maximum Q score for input files" />
|
|
17
|
41
|
|
|
42 <!-- OUTPUT OPTIONS -->
|
|
|
43 <conditional name="output_format">
|
|
19
|
44 <param name="format" type="select" label="Output format">
|
|
|
45 <option value="fastq" selected="true">FASTQ</option>
|
|
17
|
46 <option value="fasta">FASTA</option>
|
|
|
47 </param>
|
|
|
48 <when value="fastq"></when>
|
|
|
49 <when value="fasta"></when>
|
|
|
50 </conditional>
|
|
|
51 </inputs>
|
|
2
|
52 <outputs>
|
|
21
|
53 <data name="output" format="fastq" label="Merge result" />
|
|
2
|
54 </outputs>
|
|
|
55 <tests>
|
|
|
56 <test>
|
|
|
57 <param name="input_forward" value="fastq_mergepairs_input1.fq" ftype="fastqsanger" />
|
|
|
58 <param name="input_reverse" value="fastq_mergepairs_input2.fq" ftype="fastqsanger" />
|
|
5
|
59 <param name="qmax" value="65" />
|
|
2
|
60 <output name="output" file="fastq_mergepairs_output.fq" />
|
|
|
61 </test>
|
|
|
62 </tests>
|
|
|
63 <help>
|
|
|
64 **What it Does**
|
|
|
65
|
|
|
66 Performs merging of paired reads.
|
|
|
67
|
|
|
68 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).
|
|
|
69
|
|
|
70 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.
|
|
|
71
|
|
|
72 -----
|
|
|
73
|
|
|
74 **Input formats**
|
|
|
75
|
|
|
76 Forward read::
|
|
|
77
|
|
|
78 @IRIS:7:1:29:952#0/1
|
|
|
79 TGAGAAGCAAGAAGAAGGTTGGTTAGTGTTTTGGAG
|
|
|
80 +IRIS:7:1:29:952#0/1
|
|
|
81 aaabaaaaaaaaaaa`aaY`aa^aaa^a_a_`aa``
|
|
|
82
|
|
|
83 Reverse read::
|
|
|
84
|
|
|
85 @IRIS:7:1:29:952#0/2
|
|
|
86 GACTCCAAAACACTAACCAACCTTCTTCTTGCTTCT
|
|
|
87 +IRIS:7:1:29:952#0/2
|
|
|
88 aaaabaaaabaaaabbaaaa````__`__^__``__
|
|
|
89
|
|
|
90 -----
|
|
|
91
|
|
|
92 **Output**
|
|
|
93
|
|
|
94 A multiple-fastq file, for example::
|
|
|
95
|
|
|
96 @IRIS:7:1:29:952#0/1
|
|
|
97 TGAGAAGCAAGAAGAAGGTTGGTTAGTGTTTTGGAGTC
|
|
|
98 +
|
|
|
99 aaJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJaa
|
|
|
100
|
|
|
101 ------
|
|
|
102
|
|
|
103 **Manual**
|
|
|
104
|
|
|
105 http://drive5.com/usearch/manual/fastq_mergepairs.html
|
|
|
106
|
|
|
107 **Citation**
|
|
|
108
|
|
|
109 Please cite one of these papers if you use USEARCH in published work.
|
|
|
110
|
|
|
111 Edgar,RC (2010) Search and clustering orders of magnitude faster than BLAST, Bioinformatics 26(19), 2460-2461.
|
|
|
112 doi: 10.1093/bioinformatics/btq461
|
|
|
113 </help>
|
|
|
114 </tool>
|