38
|
1 <tool id="ConvertTranscriptFile" name="convert transcript file">
|
|
2 <description>Convert a file from a format to another.</description>
|
|
3 <requirements>
|
|
4 <requirement type="set_environment">PYTHONPATH</requirement>
|
|
5 </requirements>
|
56
|
6 <command interpreter="python"> ../Java/Python/convertTranscriptFile.py -i $inputFormatType.inputFileName -f $inputFormatType.FormatInputFileName -g $outputFormatType.outFormat -n $name $strand -o $outputFile </command>
|
38
|
7 <inputs>
|
|
8 <conditional name="inputFormatType">
|
|
9 <param name="FormatInputFileName" type="select" label="Input File Format">
|
|
10 <option value="gff3">GFF3</option>
|
|
11 <option value="bed">BED</option>
|
56
|
12 <option value="sam">SAM</option>
|
38
|
13 <option value="bam">BAM</option>
|
|
14 <option value="gtf">GTF</option>
|
|
15 </param>
|
|
16 <when value="gff3">
|
|
17 <param name="inputFileName" format="gff3" type="data" label="Input File"/>
|
|
18 </when>
|
|
19 <when value="bed">
|
|
20 <param name="inputFileName" format="bed" type="data" label="Input File"/>
|
|
21 </when>
|
56
|
22 <when value="sam">
|
|
23 <param name="inputFileName" format="sam" type="data" label="Input File"/>
|
|
24 </when>
|
38
|
25 <when value="bam">
|
|
26 <param name="inputFileName" format="bam" type="data" label="Input File"/>
|
|
27 </when>
|
|
28 <when value="gtf">
|
|
29 <param name="inputFileName" format="gtf" type="data" label="Input File"/>
|
|
30 </when>
|
|
31 </conditional>
|
|
32
|
|
33
|
|
34 <conditional name="outputFormatType">
|
|
35 <param name="outFormat" type="select" label="Please choose the format that you want to convert to (corresponding to your input file format).">
|
|
36 <option value="gff3">GFF3</option>
|
|
37 <option value="bed">BED</option>
|
|
38 <option value="wig">WIG</option>
|
|
39 <option value="sam">SAM</option>
|
|
40 <option value="csv">CSV</option>
|
|
41 <option value="gtf">GTF</option>
|
|
42 </param>
|
|
43 <when value="gff3">
|
|
44 </when>
|
|
45 <when value="bed">
|
|
46 </when>
|
|
47 <when value="wig">
|
|
48 </when>
|
|
49 <when value="sam">
|
|
50 </when>
|
|
51 <when value="csv">
|
|
52 </when>
|
|
53 <when value="gtf">
|
|
54 </when>
|
|
55 </conditional>
|
|
56
|
|
57 <param name="name" type="text" value="SMART" label="name for the transcripts"/>
|
|
58
|
|
59 <param name="strand" type="boolean" truevalue="-t" falsevalue="" checked="false" label="consider the 2 strands as different (only useful for writing WIG files)"/>
|
|
60
|
|
61 </inputs>
|
|
62
|
|
63 <outputs>
|
|
64 <data name="outputFile" format="gff3" label="$inputFormatType.FormatInputFileName to $outputFormatType.outFormat">
|
|
65 <change_format>
|
|
66 <when input="outputFormatType.outFormat" value="bed" format="bed" />
|
|
67 <when input="outputFormatType.outFormat" value="gff" format="gff" />
|
|
68 <when input="outputFormatType.outFormat" value="wig" format="wig" />
|
|
69 <when input="outputFormatType.outFormat" value="sam" format="sam" />
|
|
70 <when input="outputFormatType.outFormat" value="csv" format="csv" />
|
|
71 <when input="outputFormatType.outFormat" value="gtf" format="gtf" />
|
|
72 </change_format>
|
|
73 </data>
|
|
74 </outputs>
|
|
75
|
|
76 <help>
|
|
77 Simple conversion tool.
|
|
78 </help>
|
|
79 </tool>
|