annotate seal-galaxy-cc1b1911/seal/prq.xml @ 0:244073d9abc1 draft default tip

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