annotate convert.xml @ 3:ba685c655e18

Uploaded
author wolma
date Wed, 11 Feb 2015 09:26:43 -0500
parents 72d20758ba2c
children ffee8534a5c4
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
1 <tool id="convert" name="Convert">
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
2 <description>between different sequence data formats</description>
2
72d20758ba2c final upload
wolma
parents: 1
diff changeset
3 <macros>
72d20758ba2c final upload
wolma
parents: 1
diff changeset
4 <import>toolshed_macros.xml</import>
72d20758ba2c final upload
wolma
parents: 1
diff changeset
5 </macros>
72d20758ba2c final upload
wolma
parents: 1
diff changeset
6 <expand macro="requirements"/>
0
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
7 <version_command>mimodd version -q</version_command>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
8 <command>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
9 mimodd convert
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
10
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
11 #for $i in $mode.input_list
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
12 "${i.file1}"
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
13 #if $str($mode.iformat) in ("fastq_pe", "gz_pe"):
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
14 "${i.file2}"
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
15 #end if
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
16 #end for
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
17 #if $str($mode.header) != "None":
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
18 --header "$(mode.header)"
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
19 #end if
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
20 --ofile "$outputname"
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
21 --iformat $(mode.iformat)
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
22 --oformat $(mode.oformat)
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
23 </command>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
24
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
25 <inputs>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
26 <conditional name="mode">
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
27 <param name="iformat" type="select" label="input file format" help="Your choice will update the interface to display further choices appropriate for your type of input data.">
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
28 <option value="fastq">fastq: single-end (one file)</option>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
29 <option value="fastq_pe">fastq: paired-end (two files)</option>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
30 <option value="gz">gzip compressed fastq: single-end (one file)</option>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
31 <option value="gz_pe">gzip compressed fastq: paired-end (two files)</option>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
32 <option value="sam">sam</option>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
33 <option value="bam">bam</option>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
34 </param>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
35 <when value="fastq">
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
36 <param name="oformat" type="select" label="output file format">
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
37 <option value="sam">sam</option>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
38 <option value="bam">bam</option>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
39 </param>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
40 <repeat name="input_list" title="fastq input dataset" default="1" min="1">
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
41 <param name="file1" format="fastq" type="data" label="inputfile"/>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
42 </repeat>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
43 <param name="header" type="data" format="sam" 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."/>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
44 </when>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
45 <when value="fastq_pe">
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
46 <param name="oformat" type="select" label="output file format">
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
47 <option value="sam">sam</option>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
48 <option value="bam">bam</option>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
49 </param>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
50 <repeat name="input_list" title="fastq input datasets" default="1" min="1">
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
51 <param format="fastq" name="file1" type="data" label="inputfile with the first set of reads of paired-end data"/>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
52 <param format="fastq" name="file2" type="data" label="inputfile with the second set of reads of paired-end data"/>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
53 </repeat>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
54 <param name="header" type="data" format="sam" 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."/>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
55 </when>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
56 <when value="gz">
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
57 <param name="oformat" type="select" label="output file format">
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
58 <option value="sam">sam</option>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
59 <option value="bam">bam</option>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
60 </param>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
61 <repeat name="input_list" title="fastq.gz input dataset" default="1" min="1">
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
62 <param name="file1" format="data" type="data" label="inputfile"/>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
63 </repeat>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
64 <param name="header" type="data" format="sam" 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."/>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
65 </when>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
66 <when value="gz_pe">
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
67 <param name="oformat" type="select" label="output file format">
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
68 <option value="sam">sam</option>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
69 <option value="bam">bam</option>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
70 </param>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
71 <repeat name="input_list" title="fastq.gz input datasets" default="1" min="1">
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
72 <param format="data" name="file1" type="data" label="inputfile with the first set of reads of paired-end data"/>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
73 <param format="data" name="file2" type="data" label="inputfile with the second set of reads of paired-end data"/>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
74 </repeat>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
75 <param name="header" type="data" format="sam" 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."/>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
76 </when>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
77 <when value="sam">
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
78 <param name="oformat" type="select" label="output file format">
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
79 <option value="bam">bam</option>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
80 </param>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
81 <repeat name="input_list" title="sam input dataset" default="1" min="1" max="1">
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
82 <param name="file1" format="sam" type="data" label="inputfile"/>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
83 </repeat>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
84 <param name="header" type="hidden" value="None"/>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
85 </when>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
86 <when value="bam">
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
87 <param name="oformat" type="select" label="output file format">
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
88 <option value="sam">sam</option>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
89 </param>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
90 <repeat name="input_list" title="bam input dataset" default="1" min="1" max="1">
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
91 <param name="file1" format="bam" type="data" label="inputfile"/>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
92 </repeat>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
93 <param name="header" type="hidden" value="None"/>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
94 </when>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
95 </conditional>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
96 </inputs>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
97
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
98 <outputs>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
99 <data name="outputname" format="bam" label="Converted reads from MiModd ${tool.name} on ${on_string}">
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
100 <change_format>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
101 <when input="mode.oformat" value="sam" format="sam" />
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
102 </change_format>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
103 </data>
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 The tool converts between different file formats used for storing next-generation sequencing data.
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
112
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
113 As input file types it can handle uncompressed or gzipped fastq, SAM or BAM format, which it can convert to SAM or BAM format.
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
114
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
115 **Notes:**
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
116
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
117 1) In its standard configuration Galaxy will decompress any .gz files during their upload, so the option to align gzipped fastq input is useful only with customized Galaxy instances or by using linked files as explained in our `recipe for using gzipped fastq files in Galaxy`_ from the `MiModD user guide`_.
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
118
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
119 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.
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
120
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
121 **TIP:** If your paired-end data is arranged differently, you may look into the *fastq splitter* and *fastq de-interlacer* tools for Galaxy from the `Fastq Manipulation category`_ of the Galaxy Tool Shed to see if they can convert your files to the expected format.
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
122
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
123 3) Merging partial fastq (or gzipped fastq) files into a single SAM/BAM file is supported both for single-end and paired-end data. Simply add additional input datasets and select the appropriate files (pairs of files in case of paired-end data).
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
124
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
125 Concatenation of SAM/BAM file during conversion is currently not supported.
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
126
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
127 4) For input in fastq format a SAM header file providing run metadata **has to be specified**. The information in this file will be used as the header data of the new SAM/BAM file. You can use the *NGS Run Annotation* tool to generate a new header file for your data.
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
128
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
129 For input in SAM/BAM format the tool will simply copy the existing header data to the new file. To modify the header of an existing SAM/BAM file, use the *Reheader BAM file* tool instead.
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
130
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
131 .. _Fastq Manipulation category: https://toolshed.g2.bx.psu.edu/repository/browse_repositories_in_category?id=310ff67d4caf6531
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
132 .. _recipe for using gzipped fastq files in Galaxy: http://mimodd.readthedocs.org/en/latest/recipes.html#use-gzipped-fastq-files-in-galaxy
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
133 .. _MiModD user guide: http://mimodd.readthedocs.org/en/latest
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
134
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
135 </help>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
136 </tool>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
137