annotate seal-galaxy-cc1b1911/seal/recab_table.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_recab_table" name="Recab Table" version="13986416aa79561bd0102cb7ccc1e0668ac9f0a4">
244073d9abc1 Uploaded
crs4
parents:
diff changeset
23 <description>Calculate a base quality recalibration table 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
244073d9abc1 Uploaded
crs4
parents:
diff changeset
30 <command interpreter="python">
244073d9abc1 Uploaded
crs4
parents:
diff changeset
31 recab_table_galaxy.py
244073d9abc1 Uploaded
crs4
parents:
diff changeset
32 $input_data
244073d9abc1 Uploaded
crs4
parents:
diff changeset
33 $output1
244073d9abc1 Uploaded
crs4
parents:
diff changeset
34
244073d9abc1 Uploaded
crs4
parents:
diff changeset
35 #if $dbsnp.db_source == "history":
244073d9abc1 Uploaded
crs4
parents:
diff changeset
36 $dbsnp.ownFile
244073d9abc1 Uploaded
crs4
parents:
diff changeset
37 #else:
244073d9abc1 Uploaded
crs4
parents:
diff changeset
38 ${dbsnp.built-inFile.fields.path}
244073d9abc1 Uploaded
crs4
parents:
diff changeset
39 #end if
244073d9abc1 Uploaded
crs4
parents:
diff changeset
40
244073d9abc1 Uploaded
crs4
parents:
diff changeset
41 $num_reducers
244073d9abc1 Uploaded
crs4
parents:
diff changeset
42
244073d9abc1 Uploaded
crs4
parents:
diff changeset
43 #if $default_rg:
244073d9abc1 Uploaded
crs4
parents:
diff changeset
44 -D seal.recab.rg-covariate.default-rg=$default_rg
244073d9abc1 Uploaded
crs4
parents:
diff changeset
45 #end if
244073d9abc1 Uploaded
crs4
parents:
diff changeset
46
244073d9abc1 Uploaded
crs4
parents:
diff changeset
47 #if $smoothing:
244073d9abc1 Uploaded
crs4
parents:
diff changeset
48 -D seal.recab.smoothing=$smoothing
244073d9abc1 Uploaded
crs4
parents:
diff changeset
49 #end if
244073d9abc1 Uploaded
crs4
parents:
diff changeset
50
244073d9abc1 Uploaded
crs4
parents:
diff changeset
51 #if $max_qscore:
244073d9abc1 Uploaded
crs4
parents:
diff changeset
52 -D seal.recab.max-qscore=$max_qscore
244073d9abc1 Uploaded
crs4
parents:
diff changeset
53 #end if
244073d9abc1 Uploaded
crs4
parents:
diff changeset
54 </command>
244073d9abc1 Uploaded
crs4
parents:
diff changeset
55
244073d9abc1 Uploaded
crs4
parents:
diff changeset
56 <inputs>
244073d9abc1 Uploaded
crs4
parents:
diff changeset
57 <param name="input_data" type="data" format="pathset" label="Input data" />
244073d9abc1 Uploaded
crs4
parents:
diff changeset
58 <param name="input_format" type="select" label="Input format" default="sam">
244073d9abc1 Uploaded
crs4
parents:
diff changeset
59 <option value="sam" />
244073d9abc1 Uploaded
crs4
parents:
diff changeset
60 <option value="bam" />
244073d9abc1 Uploaded
crs4
parents:
diff changeset
61 </param>
244073d9abc1 Uploaded
crs4
parents:
diff changeset
62
244073d9abc1 Uploaded
crs4
parents:
diff changeset
63 <conditional name="dbsnp">
244073d9abc1 Uploaded
crs4
parents:
diff changeset
64 <param name="db_source" type="select" label="Select database of known variation sites">
244073d9abc1 Uploaded
crs4
parents:
diff changeset
65 <option value="built-in">Select a different built-in database</option>
244073d9abc1 Uploaded
crs4
parents:
diff changeset
66 <option value="history">Use a database (vcf format) from my history</option>
244073d9abc1 Uploaded
crs4
parents:
diff changeset
67 </param>
244073d9abc1 Uploaded
crs4
parents:
diff changeset
68
244073d9abc1 Uploaded
crs4
parents:
diff changeset
69 <when value="built-in">
244073d9abc1 Uploaded
crs4
parents:
diff changeset
70 <param name="built-inFile" type="select" label="Select a built-in database">
244073d9abc1 Uploaded
crs4
parents:
diff changeset
71 <options from_data_table="variant_tables"/>
244073d9abc1 Uploaded
crs4
parents:
diff changeset
72 </param>
244073d9abc1 Uploaded
crs4
parents:
diff changeset
73 </when>
244073d9abc1 Uploaded
crs4
parents:
diff changeset
74
244073d9abc1 Uploaded
crs4
parents:
diff changeset
75 <when value="history">
244073d9abc1 Uploaded
crs4
parents:
diff changeset
76 <param name="ownFile" type="data" format="vcf" label="Select a database from history"/>
244073d9abc1 Uploaded
crs4
parents:
diff changeset
77 </when>
244073d9abc1 Uploaded
crs4
parents:
diff changeset
78 </conditional>
244073d9abc1 Uploaded
crs4
parents:
diff changeset
79
244073d9abc1 Uploaded
crs4
parents:
diff changeset
80
244073d9abc1 Uploaded
crs4
parents:
diff changeset
81 <param name="num_reducers"
244073d9abc1 Uploaded
crs4
parents:
diff changeset
82 label="Number of reduce tasks"
244073d9abc1 Uploaded
crs4
parents:
diff changeset
83 type="integer"
244073d9abc1 Uploaded
crs4
parents:
diff changeset
84 value="90"
244073d9abc1 Uploaded
crs4
parents:
diff changeset
85 min="1"
244073d9abc1 Uploaded
crs4
parents:
diff changeset
86 />
244073d9abc1 Uploaded
crs4
parents:
diff changeset
87
244073d9abc1 Uploaded
crs4
parents:
diff changeset
88 <!-- recab-specific parameters -->
244073d9abc1 Uploaded
crs4
parents:
diff changeset
89 <param name="default_rg"
244073d9abc1 Uploaded
crs4
parents:
diff changeset
90 label="Default read group"
244073d9abc1 Uploaded
crs4
parents:
diff changeset
91 type="text"
244073d9abc1 Uploaded
crs4
parents:
diff changeset
92 help="Read group to assign to mappings without an RG tag. This value is mandatory if your data includes mappings that do not have a read group tag (RG) Seal RecabTable property: seal.recab.rg-covariate.default-rg."
244073d9abc1 Uploaded
crs4
parents:
diff changeset
93 />
244073d9abc1 Uploaded
crs4
parents:
diff changeset
94 <param name="smoothing"
244073d9abc1 Uploaded
crs4
parents:
diff changeset
95 label="Smoothing"
244073d9abc1 Uploaded
crs4
parents:
diff changeset
96 type="integer"
244073d9abc1 Uploaded
crs4
parents:
diff changeset
97 value="0"
244073d9abc1 Uploaded
crs4
parents:
diff changeset
98 help="Smoothing parameter for empirical quality calculation. Seal RecabTable property: seal.recab.smoothing."
244073d9abc1 Uploaded
crs4
parents:
diff changeset
99 min="0"
244073d9abc1 Uploaded
crs4
parents:
diff changeset
100 />
244073d9abc1 Uploaded
crs4
parents:
diff changeset
101 <param name="max_qscore"
244073d9abc1 Uploaded
crs4
parents:
diff changeset
102 label="Max quality score"
244073d9abc1 Uploaded
crs4
parents:
diff changeset
103 type="integer"
244073d9abc1 Uploaded
crs4
parents:
diff changeset
104 value="40"
244073d9abc1 Uploaded
crs4
parents:
diff changeset
105 min="1"
244073d9abc1 Uploaded
crs4
parents:
diff changeset
106 help="Upper limit for the empirical quality scores. Seal RecabTable property: seal.recab.max-qscore."
244073d9abc1 Uploaded
crs4
parents:
diff changeset
107 />
244073d9abc1 Uploaded
crs4
parents:
diff changeset
108 </inputs>
244073d9abc1 Uploaded
crs4
parents:
diff changeset
109
244073d9abc1 Uploaded
crs4
parents:
diff changeset
110 <outputs>
244073d9abc1 Uploaded
crs4
parents:
diff changeset
111 <data name="output1" format="csv" />
244073d9abc1 Uploaded
crs4
parents:
diff changeset
112 </outputs>
244073d9abc1 Uploaded
crs4
parents:
diff changeset
113
244073d9abc1 Uploaded
crs4
parents:
diff changeset
114 <stdio>
244073d9abc1 Uploaded
crs4
parents:
diff changeset
115 <exit_code range="1:" level="fatal" />
244073d9abc1 Uploaded
crs4
parents:
diff changeset
116 </stdio>
244073d9abc1 Uploaded
crs4
parents:
diff changeset
117
244073d9abc1 Uploaded
crs4
parents:
diff changeset
118 <help>
244073d9abc1 Uploaded
crs4
parents:
diff changeset
119 RecabTable is a Hadoop program to calculate a table of base qualities for all values of a given set of factors. It computes a result equivalent to the GATK CountCovariatesWalker.
244073d9abc1 Uploaded
crs4
parents:
diff changeset
120 For the full help see the `manual &lt;http://biodoop-seal.sourceforge.net/recab_table_index.html&gt;`_.
244073d9abc1 Uploaded
crs4
parents:
diff changeset
121 </help>
244073d9abc1 Uploaded
crs4
parents:
diff changeset
122 </tool>