0
|
1
|
|
2 <!--
|
|
3 Copyright (C) 2011-2014 CRS4.
|
|
4
|
|
5 This file is part of Seal.
|
|
6
|
|
7 Seal is free software: you can redistribute it and/or modify it
|
|
8 under the terms of the GNU General Public License as published by the Free
|
|
9 Software Foundation, either version 3 of the License, or (at your option)
|
|
10 any later version.
|
|
11
|
|
12 Seal is distributed in the hope that it will be useful, but
|
|
13 WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
|
14 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
15 for more details.
|
|
16
|
|
17 You should have received a copy of the GNU General Public License along
|
|
18 with Seal. If not, see <http://www.gnu.org/licenses/>.
|
|
19 -->
|
|
20
|
|
21
|
|
22 <tool id="seal_prq" name="Prq" version="13986416aa79561bd0102cb7ccc1e0668ac9f0a4">
|
|
23 <description>Convert qseq or fastq files to prq on Hadoop</description>
|
|
24 <requirements>
|
|
25 <requirement type="package" version="13986416aa79561bd0102cb7ccc1e0668ac9f0a4">seal</requirement>
|
|
26 <requirement type="package" version="0.11">pydoop</requirement>
|
|
27 <requirement type="package" version="0.1.3">hadoop-galaxy</requirement>
|
|
28 </requirements>
|
|
29 <command>
|
|
30 hadoop_galaxy
|
|
31 --input $input_data
|
|
32 --input-format $input_format.type
|
|
33 --output $output1
|
|
34 --executable seal
|
|
35 prq
|
|
36 --input-format $input_format.type
|
|
37 --num-reducers $num_reducers
|
|
38 -D hbam.qseq-input.base-quality-encoding=$input_format.bq_encoding
|
|
39 -D hbam.fastq-input.base-quality-encoding=$input_format.bq_encoding
|
|
40
|
|
41 #if $bpr
|
|
42 -D seal.prq.min-bases-per-read=$bpr
|
|
43 #end if
|
|
44 #if $drop_failed
|
|
45 -D seal.prq.drop-failed-filter=$drop_failed
|
|
46 #end if
|
|
47 #if $warn_unpaired
|
|
48 -D seal.prq.warning-only-if-unpaired=$warn_unpaired
|
|
49 #end if
|
|
50 </command>
|
|
51
|
|
52 <inputs>
|
|
53 <param name="input_data" type="data" format="pathset" label="Input data" />
|
|
54 <conditional name="input_format">
|
|
55 <!-- We use a conditional for the input_format since we want a different
|
|
56 default base quality encoding value for each of the respective
|
|
57 supported formats, qseq and fastq.-->
|
|
58 <param name="type" type="select" label="Input format" default="qseq">
|
|
59 <option value="qseq" />
|
|
60 <option value="fastq" />
|
|
61 </param>
|
|
62 <when value="qseq">
|
|
63 <param name="bq_encoding" type="select" label="BQ encoding" default="illumina">
|
|
64 <option value="illumina">Illumina</option>
|
|
65 <option value="sanger">Sanger</option>
|
|
66 </param>
|
|
67 </when>
|
|
68 <when value="fastq">
|
|
69 <param name="bq_encoding" type="select" label="BQ encoding" default="sanger">
|
|
70 <option value="sanger">Sanger</option>
|
|
71 <option value="illumina">Illumina</option>
|
|
72 </param>
|
|
73 </when>
|
|
74 </conditional>
|
|
75
|
|
76 <param name="num_reducers"
|
|
77 label="Number of reduce tasks"
|
|
78 type="integer"
|
|
79 value="90"
|
|
80 min="1"
|
|
81 />
|
|
82
|
|
83 <!-- prq-specific parameters -->
|
|
84 <param name="bpr"
|
|
85 label="Min bases per read"
|
|
86 type="integer"
|
|
87 help="If neither read in a pair has at least this many known bases the pair is dropped (prop: seal.prq.min-bases-per-read)."
|
|
88 value="30"
|
|
89 min="0"
|
|
90 />
|
|
91 <param name="drop_failed"
|
|
92 label="Filter by machine quality check"
|
|
93 type="boolean"
|
|
94 help="Drop pairs if both reads failed machine quality checks (prop: seal.prq.drop-failed-filter)."
|
|
95 checked="true"
|
|
96 />
|
|
97 <param name="warn_unpaired"
|
|
98 label="Warn only on unpaired reads"
|
|
99 type="boolean"
|
|
100 help="PRQ normally gives an error if it finds an unpaired read. If this setting is checked it will instead emit a warning, drop the unpaired read and keep going (prop: seal.prq.warning-only-if-unpaired)."
|
|
101 checked="false"
|
|
102 />
|
|
103 </inputs>
|
|
104
|
|
105 <outputs>
|
|
106 <data name="output1" format="pathset" />
|
|
107 </outputs>
|
|
108
|
|
109 <stdio>
|
|
110 <exit_code range="1:" level="fatal" />
|
|
111 </stdio>
|
|
112
|
|
113 <help>
|
|
114 PairReadsQSeq (PRQ) is a Hadoop utility to convert Illumina qseq files into
|
|
115 prq file format. For the full help see the `manual <http://biodoop-seal.sourceforge.net/prq_index.html>`_.
|
|
116 </help>
|
|
117
|
|
118 </tool>
|