Mercurial > repos > wolma > mimodd
comparison sam_header.xml @ 0:7da2c9654a83 draft default tip
Uploaded
| author | wolma |
|---|---|
| date | Tue, 12 Aug 2014 11:26:15 -0400 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:7da2c9654a83 |
|---|---|
| 1 <tool id="sam_header" name="NGS Run Annotation"> | |
| 2 <description>Create a SAM format header from run metadata for sample annotation.</description> | |
| 3 <requirements> | |
| 4 <requirement type="package" version="3.4.1">python3</requirement> | |
| 5 <requirement type="package" version="0.1.3_9af04e0e9125">MiModD</requirement> | |
| 6 </requirements> | |
| 7 <command> | |
| 8 mimodd header | |
| 9 | |
| 10 --rg_id "$rg_id" | |
| 11 --rg_sm "$rg_sm" | |
| 12 | |
| 13 #if $str($rg_cn): | |
| 14 --rg_cn "$rg_cn" | |
| 15 #end if | |
| 16 #if $str($rg_ds): | |
| 17 --rg_ds "$rg_ds" | |
| 18 #end if | |
| 19 #if $str($anno) and $str($month) and $str($day): | |
| 20 --rg_dt "$anno-$month-$day" | |
| 21 #end if | |
| 22 #if $str($rg_lb): | |
| 23 --rg_lb "$rg_lb" | |
| 24 #end if | |
| 25 #if $str($rg_pl): | |
| 26 --rg_pl "$rg_pl" | |
| 27 #end if | |
| 28 #if $str($rg_ds): | |
| 29 --rg_pi "$rg_pi" | |
| 30 #end if | |
| 31 #if $str($rg_pu): | |
| 32 --rg_pu "$rg_pu" | |
| 33 #end if | |
| 34 | |
| 35 --outputfile $outputfile | |
| 36 | |
| 37 </command> | |
| 38 | |
| 39 <inputs> | |
| 40 <param name="rg_id" type="text" size="80" label="read-group ID (mandatory)"> | |
| 41 <sanitizer invalid_char=""> | |
| 42 <valid initial="string.printable"> | |
| 43 <remove value=""" /> | |
| 44 </valid> | |
| 45 <mapping initial="none"> | |
| 46 <add source=""" target="\""/> | |
| 47 </mapping> | |
| 48 </sanitizer> | |
| 49 </param> | |
| 50 <param name="rg_sm" type="text" size="80" label="sample name (mandatory)"> | |
| 51 <sanitizer invalid_char=""> | |
| 52 <valid initial="string.printable"> | |
| 53 <remove value=""" /> | |
| 54 </valid> | |
| 55 <mapping initial="none"> | |
| 56 <add source=""" target="\""/> | |
| 57 </mapping> | |
| 58 </sanitizer> | |
| 59 </param> | |
| 60 <param name="rg_cn" type="text" size="80" label="name of sequencing center"> | |
| 61 <sanitizer invalid_char=""> | |
| 62 <valid initial="string.printable"> | |
| 63 <remove value=""" /> | |
| 64 </valid> | |
| 65 <mapping initial="none"> | |
| 66 <add source=""" target="\""/> | |
| 67 </mapping> | |
| 68 </sanitizer> | |
| 69 </param> | |
| 70 <param name="rg_ds" type="text" size="80" label="description"> | |
| 71 <sanitizer invalid_char=""> | |
| 72 <valid initial="string.printable"> | |
| 73 <remove value=""" /> | |
| 74 </valid> | |
| 75 <mapping initial="none"> | |
| 76 <add source=""" target="\""/> | |
| 77 </mapping> | |
| 78 </sanitizer> | |
| 79 </param> | |
| 80 <param name="anno" type="text" label="year (YYYY) the run was produced" /> | |
| 81 <param name="month" type="text" label="month (MM) the run was produced" /> | |
| 82 <param name="day" type="text" label="day (DD) the run was produced" /> | |
| 83 <param name="rg_lb" type="text" size="80" label="read-group library"> | |
| 84 <sanitizer invalid_char=""> | |
| 85 <valid initial="string.printable"> | |
| 86 <remove value=""" /> | |
| 87 </valid> | |
| 88 <mapping initial="none"> | |
| 89 <add source=""" target="\""/> | |
| 90 </mapping> | |
| 91 </sanitizer> | |
| 92 </param> | |
| 93 <param name="rg_pl" type="text" label="platform/technology used to produce the reads" /> | |
| 94 <param name="rg_pi" type="text" label="predicted median insert size" /> | |
| 95 <param name="rg_pu" type="text" size="80" label="platform unit; unique identifier"> | |
| 96 <sanitizer invalid_char=""> | |
| 97 <valid initial="string.printable"> | |
| 98 <remove value=""" /> | |
| 99 </valid> | |
| 100 <mapping initial="none"> | |
| 101 <add source=""" target="\""/> | |
| 102 </mapping> | |
| 103 </sanitizer> | |
| 104 </param> | |
| 105 </inputs> | |
| 106 | |
| 107 <outputs> | |
| 108 <data name="outputfile" format="sam" label="${rg_sm} (${rg_id}) header information from MiModd ${tool.name} on ${on_string}"/> | |
| 109 </outputs> | |
| 110 | |
| 111 <help> | |
| 112 .. class:: infomark | |
| 113 | |
| 114 **What it does** | |
| 115 | |
| 116 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. | |
| 117 | |
| 118 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). | |
| 119 | |
| 120 **Note:** | |
| 121 | |
| 122 **MiModD requires run metadata for every input file at the Alignment step !** | |
| 123 | |
| 124 **Tip:** | |
| 125 | |
| 126 While you can do Alignments from fastq file format by providing a custom header file directly to the *SNAP Read Alignment* tool, the **recommended approach** is 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. | |
| 127 | |
| 128 </help> | |
| 129 </tool> | |
| 130 |
