annotate sam_header.xml @ 0:6231ae8f87b8

Uploaded
author wolma
date Wed, 11 Feb 2015 08:29:02 -0500
parents
children a548b3c6ed00
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
1 <tool id="ngs_run_annotation" name="NGS Run Annotation">
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
2 <description>Create a SAM format header from run metadata for sample annotation.</description>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
3 <version_command>mimodd version -q</version_command>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
4 <command>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
5 mimodd header
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
6
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
7 --rg-id "$rg_id"
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
8 --rg-sm "$rg_sm"
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
9
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
10 #if $str($rg_cn):
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
11 --rg-cn "$rg_cn"
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
12 #end if
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
13 #if $str($rg_ds):
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
14 --rg-ds "$rg_ds"
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
15 #end if
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
16 #if $str($rg_date):
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
17 --rg-dt "$rg_date"
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
18 #end if
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
19 #if $str($rg_lb):
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
20 --rg-lb "$rg_lb"
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
21 #end if
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
22 #if $str($rg_pl):
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
23 --rg-pl "$rg_pl"
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
24 #end if
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
25 #if $str($rg_pi):
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
26 --rg-pi "$rg_pi"
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
27 #end if
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
28 #if $str($rg_pu):
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
29 --rg-pu "$rg_pu"
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
30 #end if
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
31
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
32 --ofile "$outputfile"
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
33
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
34 </command>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
35
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
36 <inputs>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
37 <param name="rg_id" type="text" size="80" label="read-group ID (required)">
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
38 <sanitizer invalid_char="">
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
39 <valid initial="string.printable">
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
40 <remove value="&quot;" />
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
41 </valid>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
42 <mapping initial="none">
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
43 <add source="&quot;" target="\&quot;"/>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
44 </mapping>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
45 </sanitizer>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
46 </param>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
47 <param name="rg_sm" type="text" size="80" label="sample name (required)">
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
48 <sanitizer invalid_char="">
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
49 <valid initial="string.printable">
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
50 <remove value="&quot;" />
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
51 </valid>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
52 <mapping initial="none">
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
53 <add source="&quot;" target="\&quot;"/>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
54 </mapping>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
55 </sanitizer>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
56 </param>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
57 <param name="rg_ds" type="text" size="80" label="description">
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
58 <sanitizer invalid_char="">
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
59 <valid initial="string.printable">
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
60 <remove value="&quot;" />
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
61 </valid>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
62 <mapping initial="none">
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
63 <add source="&quot;" target="\&quot;"/>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
64 </mapping>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
65 </sanitizer>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
66 </param>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
67 <param name="rg_date" type="text" label="date (YYYY-MM-DD) the run was produced" />
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
68 <param name="rg_cn" type="text" size="80" label="name of sequencing center">
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
69 <sanitizer invalid_char="">
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
70 <valid initial="string.printable">
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
71 <remove value="&quot;" />
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
72 </valid>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
73 <mapping initial="none">
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
74 <add source="&quot;" target="\&quot;"/>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
75 </mapping>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
76 </sanitizer>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
77 </param>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
78 <param name="rg_lb" type="text" size="80" label="read-group library">
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
79 <sanitizer invalid_char="">
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
80 <valid initial="string.printable">
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
81 <remove value="&quot;" />
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
82 </valid>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
83 <mapping initial="none">
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
84 <add source="&quot;" target="\&quot;"/>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
85 </mapping>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
86 </sanitizer>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
87 </param>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
88 <param name="rg_pl" type="text" label="platform/technology used to produce the reads" />
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
89 <param name="rg_pi" type="text" label="predicted median insert size" />
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
90 <param name="rg_pu" type="text" size="80" label="platform unit; unique identifier">
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
91 <sanitizer invalid_char="">
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
92 <valid initial="string.printable">
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
93 <remove value="&quot;" />
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
94 </valid>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
95 <mapping initial="none">
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
96 <add source="&quot;" target="\&quot;"/>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
97 </mapping>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
98 </sanitizer>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
99 </param>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
100 </inputs>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
101
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
102 <outputs>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
103 <data name="outputfile" format="sam" label="${rg_sm} (${rg_id}) header information from MiModd ${tool.name} on ${on_string}"/>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
104 </outputs>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
105
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
106 <help>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
107 .. class:: infomark
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
108
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
109 **What it does**
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
110
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
111 This tool takes the user-provided information about a next-generation sequencing run and constructs a valid header in the SAM file format from it.
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
112
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
113 The result file can be used by the tools *Convert* and *Reheader* or in the *SNAP Read Alignment* step to add run metadata to sequenced reads files (or to overwrite pre-existing information).
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
114
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
115 **Note:**
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
116
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
117 **MiModD requires run metadata for every input file at the Alignment step !**
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
118
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
119 **Tip:**
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
120
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
121 While you can do Alignments from fastq file format by providing a custom header file directly to the *SNAP Read Alignment* tool, we **recommend** you to first convert all input files to and archive all datasets in SAM/BAM format with appropriate header information prior to any downstream analysis. Although a bit more time-consuming, this practice protects against information loss and ensures that the input datasets will remain useful for others in the future.
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
122
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
123 </help>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
124 </tool>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
125