annotate convert.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="convert" name="Convert">
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
2 <description>between different sequence data formats</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 convert
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
6
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
7 #for $i in $mode.input_list
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
8 "${i.file1}"
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
9 #if $str($mode.iformat) in ("fastq_pe", "gz_pe"):
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
10 "${i.file2}"
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
11 #end if
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
12 #end for
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
13 #if $str($mode.header) != "None":
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
14 --header "$(mode.header)"
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
15 #end if
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
16 --ofile "$outputname"
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
17 --iformat $(mode.iformat)
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
18 --oformat $(mode.oformat)
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
19 </command>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
20
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
21 <inputs>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
22 <conditional name="mode">
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
23 <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
24 <option value="fastq">fastq: single-end (one file)</option>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
25 <option value="fastq_pe">fastq: paired-end (two files)</option>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
26 <option value="gz">gzip compressed fastq: single-end (one file)</option>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
27 <option value="gz_pe">gzip compressed fastq: paired-end (two files)</option>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
28 <option value="sam">sam</option>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
29 <option value="bam">bam</option>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
30 </param>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
31 <when value="fastq">
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
32 <param name="oformat" type="select" label="output file format">
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
33 <option value="sam">sam</option>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
34 <option value="bam">bam</option>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
35 </param>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
36 <repeat name="input_list" title="fastq input dataset" default="1" min="1">
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
37 <param name="file1" format="fastq" type="data" label="inputfile"/>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
38 </repeat>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
39 <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
40 </when>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
41 <when value="fastq_pe">
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
42 <param name="oformat" type="select" label="output file format">
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
43 <option value="sam">sam</option>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
44 <option value="bam">bam</option>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
45 </param>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
46 <repeat name="input_list" title="fastq input datasets" default="1" min="1">
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
47 <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
48 <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
49 </repeat>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
50 <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
51 </when>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
52 <when value="gz">
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
53 <param name="oformat" type="select" label="output file format">
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
54 <option value="sam">sam</option>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
55 <option value="bam">bam</option>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
56 </param>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
57 <repeat name="input_list" title="fastq.gz input dataset" default="1" min="1">
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
58 <param name="file1" format="data" type="data" label="inputfile"/>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
59 </repeat>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
60 <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
61 </when>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
62 <when value="gz_pe">
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
63 <param name="oformat" type="select" label="output file format">
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
64 <option value="sam">sam</option>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
65 <option value="bam">bam</option>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
66 </param>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
67 <repeat name="input_list" title="fastq.gz input datasets" default="1" min="1">
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
68 <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
69 <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
70 </repeat>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
71 <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
72 </when>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
73 <when value="sam">
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
74 <param name="oformat" type="select" label="output file format">
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
75 <option value="bam">bam</option>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
76 </param>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
77 <repeat name="input_list" title="sam input dataset" default="1" min="1" max="1">
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
78 <param name="file1" format="sam" type="data" label="inputfile"/>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
79 </repeat>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
80 <param name="header" type="hidden" value="None"/>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
81 </when>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
82 <when value="bam">
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
83 <param name="oformat" type="select" label="output file format">
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
84 <option value="sam">sam</option>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
85 </param>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
86 <repeat name="input_list" title="bam input dataset" default="1" min="1" max="1">
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
87 <param name="file1" format="bam" type="data" label="inputfile"/>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
88 </repeat>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
89 <param name="header" type="hidden" value="None"/>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
90 </when>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
91 </conditional>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
92 </inputs>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
93
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
94 <outputs>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
95 <data name="outputname" format="bam" label="Converted reads from MiModd ${tool.name} on ${on_string}">
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
96 <change_format>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
97 <when input="mode.oformat" value="sam" format="sam" />
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
98 </change_format>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
99 </data>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
100 </outputs>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
101
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
102 <help>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
103 .. class:: infomark
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
104
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
105 **What it does**
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
106
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
107 The tool converts between different file formats used for storing next-generation sequencing data.
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
108
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
109 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
110
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
111 **Notes:**
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
112
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
113 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
114
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
115 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
116
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
117 **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
118
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
119 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
120
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
121 Concatenation of SAM/BAM file during conversion is currently not supported.
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
122
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
123 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
124
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
125 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
126
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
127 .. _Fastq Manipulation category: https://toolshed.g2.bx.psu.edu/repository/browse_repositories_in_category?id=310ff67d4caf6531
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
128 .. _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
129 .. _MiModD user guide: http://mimodd.readthedocs.org/en/latest
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
130
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
131 </help>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
132 </tool>
6231ae8f87b8 Uploaded
wolma
parents:
diff changeset
133