annotate reheader.xml @ 1:1425ea794026 draft default tip

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