annotate sam_header.xml @ 1:4090ff909f47 draft default tip

Uploaded
author wolma
date Fri, 16 Jan 2015 11:15:01 -0500
parents 37e44e7e2d50
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
1 <tool id="ngs_run_annotation" name="NGS Run Annotation">
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
2 <description>Create a SAM format header from run metadata for sample annotation.</description>
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
3 <requirements>
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
4 <requirement type="package" version="0.1.5">mimodd</requirement>
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
5 </requirements>
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
6 <version_command>mimodd version -q</version_command>
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
7 <command>
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
8 mimodd header
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
9
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
10 --rg-id "$rg_id"
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
11 --rg-sm "$rg_sm"
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
12
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
13 #if $str($rg_cn):
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
14 --rg-cn "$rg_cn"
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
15 #end if
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
16 #if $str($rg_ds):
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
17 --rg-ds "$rg_ds"
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
18 #end if
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
19 #if $str($rg_date):
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
20 --rg-dt "$rg_date"
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
21 #end if
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
22 #if $str($rg_lb):
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
23 --rg-lb "$rg_lb"
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
24 #end if
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
25 #if $str($rg_pl):
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
26 --rg-pl "$rg_pl"
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
27 #end if
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
28 #if $str($rg_pi):
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
29 --rg-pi "$rg_pi"
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
30 #end if
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
31 #if $str($rg_pu):
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
32 --rg-pu "$rg_pu"
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
33 #end if
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
34
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
35 --ofile $outputfile
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
36
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
37 </command>
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
38
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
39 <inputs>
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
40 <param name="rg_id" type="text" size="80" label="read-group ID (required)">
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
41 <sanitizer invalid_char="">
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
42 <valid initial="string.printable">
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
43 <remove value="&quot;" />
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
44 </valid>
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
45 <mapping initial="none">
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
46 <add source="&quot;" target="\&quot;"/>
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
47 </mapping>
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
48 </sanitizer>
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
49 </param>
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
50 <param name="rg_sm" type="text" size="80" label="sample name (required)">
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
51 <sanitizer invalid_char="">
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
52 <valid initial="string.printable">
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
53 <remove value="&quot;" />
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
54 </valid>
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
55 <mapping initial="none">
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
56 <add source="&quot;" target="\&quot;"/>
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
57 </mapping>
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
58 </sanitizer>
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
59 </param>
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
60 <param name="rg_ds" type="text" size="80" label="description">
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
61 <sanitizer invalid_char="">
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
62 <valid initial="string.printable">
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
63 <remove value="&quot;" />
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
64 </valid>
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
65 <mapping initial="none">
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
66 <add source="&quot;" target="\&quot;"/>
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
67 </mapping>
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
68 </sanitizer>
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
69 </param>
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
70 <param name="rg_date" type="text" label="date (YYYY-MM-DD) the run was produced" />
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
71 <param name="rg_cn" type="text" size="80" label="name of sequencing center">
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
72 <sanitizer invalid_char="">
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
73 <valid initial="string.printable">
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
74 <remove value="&quot;" />
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
75 </valid>
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
76 <mapping initial="none">
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
77 <add source="&quot;" target="\&quot;"/>
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
78 </mapping>
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
79 </sanitizer>
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
80 </param>
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
81 <param name="rg_lb" type="text" size="80" label="read-group library">
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
82 <sanitizer invalid_char="">
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
83 <valid initial="string.printable">
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
84 <remove value="&quot;" />
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
85 </valid>
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
86 <mapping initial="none">
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
87 <add source="&quot;" target="\&quot;"/>
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
88 </mapping>
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
89 </sanitizer>
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
90 </param>
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
91 <param name="rg_pl" type="text" label="platform/technology used to produce the reads" />
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
92 <param name="rg_pi" type="text" label="predicted median insert size" />
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
93 <param name="rg_pu" type="text" size="80" label="platform unit; unique identifier">
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
94 <sanitizer invalid_char="">
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
95 <valid initial="string.printable">
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
96 <remove value="&quot;" />
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
97 </valid>
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
98 <mapping initial="none">
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
99 <add source="&quot;" target="\&quot;"/>
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
100 </mapping>
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
101 </sanitizer>
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
102 </param>
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
103 </inputs>
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
104
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
105 <outputs>
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
106 <data name="outputfile" format="sam" label="${rg_sm} (${rg_id}) header information from MiModd ${tool.name} on ${on_string}"/>
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
107 </outputs>
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
108
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
109 <help>
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
110 .. class:: infomark
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
111
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
112 **What it does**
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
113
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
114 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.
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
115
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
116 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).
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
117
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
118 **Note:**
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
119
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
120 **MiModD requires run metadata for every input file at the Alignment step !**
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
121
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
122 **Tip:**
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
123
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
124 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.
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
125
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
126 </help>
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
127 </tool>
37e44e7e2d50 Imported from capsule None
wolma
parents:
diff changeset
128