annotate reheader.xml @ 1:bfcd121b99bf draft default tip

planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 44e872b808f88eacd05963fc2478da2c07b50228
author wolma
date Thu, 22 Mar 2018 10:32:39 -0400
parents f0f2795de2c7
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
1 <tool id="mimodd_reheader" name="MiModD Reheader" version="@MIMODD_WRAPPER_VERSION@">
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
2 <description>
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
3 takes a BAM file and generates a copy with the original header (if any) replaced or modified by that found in a template SAM file
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
4 </description>
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
5 <macros>
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
6 <import>macros.xml</import>
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
7 <macro name="getreadgroupinfo">
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
8 <conditional name="rginfo">
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
9 <param name="source" type="select"
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
10 label="source of new read-group information">
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
11 <option value="from_file">existing SAM file</option>
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
12 <option value="from_form">input form</option>
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
13 </param>
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
14 <when value="from_file">
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
15 <param name="data" type="data" format="sam"
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
16 label="read-group template file in SAM format"
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
17 help="use the read group information found in this file" />
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
18 <repeat name="rg" title="custom read-group mapping" default="0" min="0"
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
19 help="read-group information found in the input file, by default, gets updated / replaced with information from template file read-groups with matching IDs. Alternatively, you may specify explicit read-group mappings below.">
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
20 <param name="source_id" type="text"
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
21 label="modify input file information for read-group ID (will create the read-group if it does not exist)" />
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
22 <param name="rg_id" type="text"
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
23 label="with template file information for read-group ID" />
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
24 </repeat>
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
25 </when>
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
26 <when value="from_form">
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
27 <repeat name="rg" title="new read-group info" default="1" min="1">
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
28 <param name="source_id" type="text"
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
29 label="read-group ID (will create the read-group if it does not exist)"
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
30 help="required field">
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
31 <validator type="empty_field" />
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
32 <expand macro="lex_sam_header" />
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
33 </param>
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
34 <param name="rg_id" type="hidden" value="" />
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
35 <param name="rg_sm" type="text" label="sample name"
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
36 help="required field">
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
37 <validator type="empty_field" />
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
38 <expand macro="lex_sam_header" />
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
39 </param>
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
40 <param name="rg_ds" type="text" label="description">
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
41 <expand macro="lex_sam_header" />
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
42 </param>
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
43 <param name="rg_date" type="text"
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
44 label="date (YY-MM-DD format) the run was produced">
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
45 <expand macro="YYYY-MM-DD_format_validator" />
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
46 </param>
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
47 <param name="rg_cn" type="text"
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
48 label="name of sequencing center">
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
49 <expand macro="lex_sam_header" />
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
50 </param>
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
51 <param name="rg_lb" type="text" label="read-group library">
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
52 <expand macro="lex_sam_header" />
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
53 </param>
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
54 <param name="rg_pl" type="text"
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
55 label="platform/technology used to produce the reads">
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
56 <expand macro="known_sequencing_platform options" />
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
57 <expand macro="lex_sam_header" />
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
58 </param>
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
59 <param name="rg_pi" type="text"
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
60 label="predicted median insert size">
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
61 <validator type="expression" message="an integer number is required">not value or value.isdigit()</validator>
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
62 </param>
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
63 <param name="rg_pu" type="text"
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
64 label="platform unit; unique identifier">
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
65 <expand macro="lex_sam_header" />
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
66 </param>
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
67 </repeat>
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
68 </when>
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
69 </conditional>
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
70 </macro>
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
71 </macros>
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
72 <expand macro="requirements" />
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
73 <expand macro="stdio" />
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
74 <expand macro="version_command" />
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
75 <command><![CDATA[
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
76 #if ($str($rg.treat_rg) != "ignore" and $str($rg.rginfo.source) == "from_form") or $str($co.treat_co) != "ignore":
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
77 mimodd header
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
78 #if $str($rg.treat_rg) != "ignore" and $str($rg.rginfo.source) == "from_form":
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
79 #for $rginfo in $rg.rginfo.rg
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
80 #if $str($rginfo.source_id):
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
81 --rg-id '${rginfo.source_id}'
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
82 #end if
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
83 #if $str($rginfo.rg_sm):
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
84 --rg-sm '${rginfo.rg_sm}'
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
85 #end if
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
86 #if $str($rginfo.rg_cn):
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
87 --rg-cn '${rginfo.rg_cn}'
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
88 #else:
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
89 --rg-cn ""
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
90 #end if
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
91 #if $str($rginfo.rg_ds):
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
92 --rg-ds '${rginfo.rg_ds}'
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
93 #else:
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
94 --rg-ds ""
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
95 #end if
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
96 #if $str($rginfo.rg_date):
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
97 --rg-dt '${rginfo.rg_date}'
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
98 #else:
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
99 --rg-dt ""
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
100 #end if
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
101 #if $str($rginfo.rg_lb):
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
102 --rg-lb '${rginfo.rg_lb}'
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
103 #else:
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
104 --rg-lb ""
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
105 #end if
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
106 #if $str($rginfo.rg_pl):
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
107 --rg-pl '${rginfo.rg_pl}'
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
108 #else:
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
109 --rg-pl ""
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
110 #end if
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
111 #if $str($rginfo.rg_pi):
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
112 --rg-pi '${rginfo.rg_pi}'
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
113 #else:
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
114 --rg-pi ""
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
115 #end if
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
116 #if $str($rginfo.rg_pu):
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
117 --rg-pu '${rginfo.rg_pu}'
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
118 #else:
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
119 --rg-pu ""
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
120 #end if
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
121 #end for
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
122 #end if
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
123 #if $str($co.treat_co) != "ignore":
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
124 --co
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
125 #for $comment in $co.coinfo
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
126 #if $str($comment.line):
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
127 '${comment.line}'
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
128 #end if
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
129 #end for
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
130 #end if
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
131 |
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
132 #end if
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
133 mimodd reheader '$inputfile' --sq ignore --rg ${rg.treat_rg}
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
134 #if $str($rg.treat_rg) != "ignore":
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
135 #if $str($rg.rginfo.source) == "from_file":
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
136 '${rg.rginfo.data}'
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
137 #else:
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
138 -
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
139 #end if
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
140 #for $rgmapping in $rg.rginfo.rg
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
141 #if $str($rgmapping.source_id) and $str($rgmapping.rg_id):
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
142 '$str($rgmapping.source_id)' : '$str($rgmapping.rg_id)'
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
143 #end if
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
144 #end for
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
145 #end if
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
146
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
147 --co ${co.treat_co}
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
148 #if $str($co.treat_co) != "ignore":
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
149 -
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
150 #end if
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
151
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
152 #set $restr = ""
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
153 #for $rename in $rg_renaming
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
154 #set $restr = $restr + ($str($rename.from) and $str($rename.to) and "'" + $str($rename.from) + "' : '" + $str($rename.to) + "' ")
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
155 #end for
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
156 #if $restr
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
157 --rgm $restr
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
158 #end if
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
159
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
160 #set $restr = ""
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
161 #for $rename in $sq_renaming
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
162 #set $restr = $restr + ($str($rename.from) and $str($rename.to) and "'" + $str($rename.from) + "' : '" + $str($rename.to) + "' ")
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
163 #end for
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
164 #if $restr
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
165 --sqm $restr
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
166 #end if
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
167
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
168 -o '$output'
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
169 ]]></command>
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
170
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
171 <inputs>
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
172 <param name="inputfile" type="data" format="bam"
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
173 label="input dataset in BAM format" help="the file to reheader." />
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
174 <conditional name="rg">
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
175 <param name="treat_rg" type="select"
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
176 label="modify read-group information?"
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
177 help="Replace mode will ignore ALL existing read group information in the input file and use ONLY template information, Update mode will COPY existing input file information and UPDATE it with template information; choose No, ... to leave read-group information alone.">
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
178 <option value="ignore">No, do not change read-groups.</option>
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
179 <option value="update">Yes, update existing information</option>
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
180 <option value="replace">Yes, replace existing information</option>
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
181 </param>
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
182 <when value="update">
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
183 <expand macro="getreadgroupinfo" />
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
184 </when>
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
185 <when value="replace">
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
186 <expand macro="getreadgroupinfo" />
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
187 </when>
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
188 <when value="ignore">
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
189 </when>
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
190 </conditional>
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
191 <conditional name="co">
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
192 <param name="treat_co" type="select"
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
193 label="modify comments in the input file?">
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
194 <option value="ignore">No, do not change comments.</option>
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
195 <option value="update">Yes, append new comments to existing ones</option>
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
196 <option value="replace">Yes, replace all existing comments</option>
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
197 </param>
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
198 <when value="update">
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
199 <repeat name="coinfo" title="comment line" default="0" min="0">
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
200 <param name="line" type="text" size="80">
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
201 <expand macro="lex_sam_header" />
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
202 </param>
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
203 </repeat>
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
204 </when>
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
205 <when value="replace">
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
206 <repeat name="coinfo" title="comment line" default="0" min="0">
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
207 <param name="line" type="text" size="80">
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
208 <expand macro="lex_sam_header" />
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
209 </param>
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
210 </repeat>
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
211 </when>
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
212 <when value="ignore">
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
213 </when>
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
214 </conditional>
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
215 <repeat name="rg_renaming" title="rename read-group" default="0" min="0"
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
216 help="Warning: changing read-group IDs may increase job runtime substantially.">
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
217 <param name="from" type="text" size="30" label="old name"
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
218 help="as it appears in the current input file header">
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
219 <expand macro="lex_sam_header" />
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
220 </param>
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
221 <param name="to" type="text" size="30" label="new name">
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
222 <expand macro="lex_sam_header" />
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
223 </param>
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
224 </repeat>
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
225 <repeat name="sq_renaming" title="rename sequence" default="0" min="0"
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
226 help="Warning: changing sequence names may increase job runtime substantially.">
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
227 <param name="from" type="text" size="30" label="old name"
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
228 help="as it appears in the current input file header">
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
229 <expand macro="lex_sam_header" />
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
230 </param>
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
231 <param name="to" type="text" size="30" label="new name">
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
232 <validator type="expression" message="Sequence names may not contain non-ASCII, whitespace, non-printable characters, nor any of: &lt;&gt;[]*;=,">all((32 &lt; ord(c) &lt; 127 and c not in '&lt;&gt;[]*;=,') for c in value)</validator>
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
233 <expand macro="lex_sam_header" />
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
234 </param>
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
235 </repeat>
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
236 </inputs>
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
237
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
238 <outputs>
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
239 <data name="output" format="bam"
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
240 label="(Re)headered bam file from MiModd ${tool.name} on ${on_string}" />
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
241 </outputs>
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
242
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
243 <tests>
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
244 <test>
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
245 <param name="inputfile" value="a.bam" />
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
246 <conditional name="co">
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
247 <param name="treat_co" value="update" />
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
248 <repeat name="coinfo">
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
249 <param name="line" value="ceterum censeo ..." />
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
250 </repeat>
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
251 </conditional>
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
252 <output name="output" file="a.bam" ftype="bam" lines_diff="1" />
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
253 </test>
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
254 <test>
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
255 <param name="inputfile" value="header_only.bam" />
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
256 <conditional name="rg">
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
257 <param name="treat_rg" value="update" />
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
258 <conditional name="rginfo">
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
259 <param name="source" value="from_form" />
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
260 <repeat name="rg">
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
261 <param name="source_id" value="000" />
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
262 <param name="rg_sm" value="Bristol" />
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
263 </repeat>
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
264 </conditional>
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
265 </conditional>
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
266 <output name="output" file="header_only.bam" ftype="bam" lines_diff="2" />
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
267 </test>
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
268 <test>
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
269 <param name="inputfile" value="header_only.bam" />
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
270 <conditional name="rg">
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
271 <param name="treat_rg" value="update" />
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
272 <conditional name="rginfo">
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
273 <param name="source" value="from_form" />
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
274 <repeat name="rg">
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
275 <param name="source_id" value="001" />
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
276 <param name="rg_sm" value="Hawaiian" />
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
277 </repeat>
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
278 </conditional>
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
279 </conditional>
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
280 <output name="output" file="header_only.bam" ftype="bam" lines_diff="1" />
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
281 </test>
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
282 </tests>
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
283
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
284 <help><![CDATA[
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
285 .. class:: infomark
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
286
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
287 **What it does**
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
288
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
289 The tool generates a copy of the BAM input file with a modified header (i.e., metadata).
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
290
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
291 It can update or replace read-group information (i.e., information about the samples in the file), add or replace comment lines, and rename reference sequences declared in the header.
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
292
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
293 The tool ensures that the resulting BAM file is valid and can be further processed by other MiModD tools and standard software like samtools. It aborts with an error message if a valid BAM file cannot be generated with the user-specified settings.
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
294
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
295 The template information used to modify or replace the input file metadata is provided through forms or, in the case of read-group information, can be taken from an existing SAM file as can be generated, for example, with the *NGS Run Annotation* tool.
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
296
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
297 @HELP_FOOTER@
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
298 ]]></help>
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
299 <expand macro="citations" />
f0f2795de2c7 planemo upload for repository https://github.com/wm75/mimodd_galaxy_wrappers commit 528bcf3b769c7c73f119b2a176d19071f9ef5312
wolma
parents:
diff changeset
300 </tool>