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