comparison convert.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="convert" name="Convert">
2 <description>between different sequence data formats</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 convert
9
10 #for $i in $mode.input_list
11 ${i.file1}
12 #if $str($mode.iformat) in ("fastq_pe", "gz_pe"):
13 ${i.file2}
14 #end if
15 #end for
16 #if $str($header) != "None":
17 --header $header
18 #end if
19 --output $outputname
20 --iformat $(mode.iformat)
21 --oformat $(mode.oformat)
22 </command>
23
24 <inputs>
25 <conditional name="mode">
26 <param name="iformat" type="select" label="choose the input file format" help="Your data will have to be in a single file if it comes from single-end sequencing, but will have to be arranged in two files if it comes from paired-end sequencing.">
27 <option value="fastq">fastq: single-end (one file)</option>
28 <option value="fastq_pe">fastq: paired-end (two files)</option>
29 <option value="gz">gzip compressed fastq: single-end (one file)</option>
30 <option value="gz_pe">gzip compressed fastq: paired-end (two files)</option>
31 <option value="sam">sam</option>
32 <option value="bam">bam</option>
33 </param>
34 <when value="fastq">
35 <param name="oformat" type="select" label="choose the output file format">
36 <option value="sam">sam</option>
37 <option value="bam">bam</option>
38 </param>
39 <repeat name="input_list" title="fastq input dataset" default="1" min="1">
40 <param name="file1" format="fastq" type="data" label="inputfile"/>
41 </repeat>
42 </when>
43 <when value="fastq_pe">
44 <param name="oformat" type="select" label="choose the output file format">
45 <option value="sam">sam</option>
46 <option value="bam">bam</option>
47 </param>
48 <repeat name="input_list" title="fastq input datasets" default="1" min="1">
49 <param format="fastq" name="file1" type="data" label="inputfile 1"/>
50 <param format="fastq" name="file2" type="data" label="inputfile 2"/>
51 </repeat>
52 </when>
53 <when value="gz">
54 <param name="oformat" type="select" label="choose the output file format">
55 <option value="sam">sam</option>
56 <option value="bam">bam</option>
57 </param>
58 <repeat name="input_list" title="fastq.gz input dataset" default="1" min="1">
59 <param name="file1" format="data" type="data" label="inputfile"/>
60 </repeat>
61 </when>
62 <when value="gz_pe">
63 <param name="oformat" type="select" label="choose the output file format">
64 <option value="sam">sam</option>
65 <option value="bam">bam</option>
66 </param>
67 <repeat name="input_list" title="fastq.gz input datasets" default="1" min="1">
68 <param format="data" name="file1" type="data" label="inputfile 1"/>
69 <param format="data" name="file2" type="data" label="inputfile 2"/>
70 </repeat>
71 </when>
72 <when value="sam">
73 <param name="oformat" type="select" label="choose the output file format">
74 <option value="bam">bam</option>
75 </param>
76 <repeat name="input_list" title="sam input dataset" default="1" min="1" max="1">
77 <param name="file1" format="sam" type="data" label="inputfile"/>
78 </repeat>
79 </when>
80 <when value="bam">
81 <param name="oformat" type="select" label="choose the output file format">
82 <option value="sam">sam</option>
83 </param>
84 <repeat name="input_list" title="bam input dataset" default="1" min="1" max="1">
85 <param name="file1" format="bam" type="data" label="inputfile"/>
86 </repeat>
87 </when>
88 </conditional>
89 <param name="header" type="data" format="sam" optional="True" label="Use Header File" help="A SAM file with header information, as generated, for example, by the NGS Run Annotation Tool, that will be used to attach metainformation to the results file. Selection is highly recommended."/>
90 </inputs>
91
92 <outputs>
93 <data name="outputname" format="bam" label="Converted reads from MiModd ${tool.name} on ${on_string}">
94 <change_format>
95 <when input="mode.oformat" value="sam" format="sam" />
96 </change_format>
97 </data>
98 </outputs>
99
100 <help>
101 .. class:: infomark
102
103 **What it does**
104
105 The tool converts between different file formats used for storing next-generation sequencing data.
106
107 As input file types, it can handle uncompressed or gzipped fastq, SAM or BAM format, which it can convert to SAM or BAM format.
108
109 **Notes:**
110
111 1) In its standard configuration Galaxy will decompress any .gz files during their upload, effectively preventing the use of gzipped fastq files.
112
113 2) The tool can convert fastq files representing data from paired-end sequencing runs to appropriate SAM/BAM format provided that the mate information is split over two fastq files in corresponding order.
114
115 **TIP:** If your paired-end data is arranged differently, you may look into the *FASTQ splitter* and *FASTQ de-interlacer* tools to see if they convert your files to the right format.
116
117 3) Specifying a SAM header file to use in the conversion is highly recommended as this will add sequencing run metadata to the results file, which is the main purpose of storing unaligned NGS data in SAM/BAM format.
118
119 See the help on the *NGS Run Annotation* tool for information on how to generate a new header file.
120
121 </help>
122
123 </tool>
124