annotate convert.xml @ 1:3d7ee0ba2f6d draft default tip

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