comparison gtfToBed12.xml @ 0:75a14cc16d4d draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gtfToBed12 commit adc4f5c431fca0bcdf93188b7065bdc4c9c424c6
author iuc
date Fri, 18 May 2018 15:10:34 -0400
parents
children 57d45064f114
comparison
equal deleted inserted replaced
-1:000000000000 0:75a14cc16d4d
1 <tool id="gtftobed12" name="Convert GTF to BED12" version="357">
2 <requirements>
3 <requirement type="package" version="357">ucsc-gtftogenepred</requirement>
4 <requirement type="package" version="357">ucsc-genepredtobed</requirement>
5 </requirements>
6 <command detect_errors="aggressive"><![CDATA[
7 gtfToGenePred
8 #if $advanced_options.advanced_options_selector == "advanced":
9 $advanced_options.ignoreGroupsWithoutExons
10 $advanced_options.simple
11 $advanced_options.allErrors
12 $advanced_options.impliedStopAfterCds
13 $advanced_options.includeVersion
14 #if $advanced_options.infoOut:
15 -infoOut='${transcript_info_file}'
16 #end if
17 #for $prefix in $advanced_options.sourcePrefixes
18 -sourcePrefix='${prefix.sourcePrefix}'
19 #end for
20 #end if
21 '${gtf_file}'
22 'temp.genePred' &&
23 genePredToBed 'temp.genePred' '${bed_file}'
24 ]]>
25 </command>
26 <inputs>
27 <param name="gtf_file" type="data" format="gtf" label="GTF File to convert" />
28 <conditional name="advanced_options">
29 <param name="advanced_options_selector" type="select" label="Advanced options"
30 help="Advanced options for gtfToGenePred.">
31 <option value="default" selected="true">Use default options</option>
32 <option value="advanced">Set advanced options</option>
33 </param>
34 <when value="default" />
35 <when value="advanced">
36 <repeat name="sourcePrefixes" title="Source Prefixes"
37 help="Only process entries where the source name has the specified prefixes">
38 <param argument="-sourcePrefix" label="Source prefix"
39 type="text" />
40 </repeat>
41 <param argument="-ignoreGroupsWithoutExons" label="Ignore groups without exons"
42 help="Ignore groups that do not have exons, otherwise they will cause an error."
43 type="boolean" truevalue="-ignoreGroupsWithoutExons" falsevalue="" checked="false" />
44 <param argument="-simple" label="Skip hierarchy check"
45 help="Only check column validity, not heirarchy, may result in invalid output."
46 type="boolean" truevalue="-simple" falsevalue="" checked="false" />
47 <param argument="-allErrors" label="Skip all errors"
48 help="Skip groups with errors rather than aborting. Useful for getting information
49 about as many errors as possible."
50 type="boolean" truevalue="-allErrors" falsevalue="" checked="false" />
51 <param argument="-impliedStopAfterCds" label="Implied stop codon in after CDS"
52 help="Assume there is an implied stop codon after CDS."
53 type="boolean" truevalue="-impliedStopAfterCds" falsevalue="" checked="false" />
54 <param argument="-includeVersion" label="Include gene and transcript version"
55 help="If gene_version and/or transcript_version attributes exist, include the version
56 in the corresponding identifiers."
57 type="boolean" truevalue="-includeVersion" falsevalue="" checked="false" />
58 <param argument="-infoOut" label="Output transcript information file"
59 help="Outputs a file with information about each transcript."
60 type="boolean" checked="false" />
61 </when>
62 </conditional>
63 </inputs>
64 <outputs>
65 <data name="bed_file" format="bed12" metadata_source="gtf_file" />
66 <data name="transcript_info_file" format="tabular" metadata_source="gtf_file">
67 <filter>advanced_options['infoOut']</filter>
68 </data>
69 </outputs>
70 <tests>
71 <test>
72 <param name="gtf_file" value="gtf2bed_test.gtf"/>
73 <output name="bed_file" file="gtf2bed_test.bed" ftype="bed12"/>
74 </test>
75 <test>
76 <param name="gtf_file" value="gtf2bed_test_missing_exon.gtf"/>
77 <param name="advanced_options_selector" value="advanced" />
78 <param name="ignoreGroupsWithoutExons" value="true" />
79 <output name="bed_file" file="gtf2bed_test_missing_exon.bed" ftype="bed12"/>
80 </test>
81 <test>
82 <param name="gtf_file" value="gtf2bed_test.gtf"/>
83 <param name="advanced_options_selector" value="advanced" />
84 <param name="includeVersion" value="true" />
85 <output name="bed_file" file="gtf2bed_test_include_version.bed" ftype="bed12"/>
86 </test>
87 <test>
88 <param name="gtf_file" value="gtf2bed_test.gtf"/>
89 <param name="advanced_options_selector" value="advanced" />
90 <param name="infoOut" value="true" />
91 <output name="bed_file" file="gtf2bed_test.bed" ftype="bed12"/>
92 <output name="transcript_info_file" file="gtf2bed_test_transcript_info.txt" ftype="tabular"/>
93 </test>
94 <test>
95 <param name="gtf_file" value="gtf2bed_test.gtf"/>
96 <param name="advanced_options_selector" value="advanced" />
97 <repeat name="sourcePrefixes">
98 <param name="sourcePrefix" value="hav" />
99 </repeat>
100 <output name="bed_file" file="gtf2bed_test_havana.bed" ftype="bed12"/>
101 </test>
102 <test>
103 <param name="gtf_file" value="gtf2bed_test.gtf"/>
104 <param name="advanced_options_selector" value="advanced" />
105 <repeat name="sourcePrefixes">
106 <param name="sourcePrefix" value="hav" />
107 </repeat>
108 <repeat name="sourcePrefixes">
109 <param name="sourcePrefix" value="ens" />
110 </repeat>
111 <output name="bed_file" file="gtf2bed_test.bed" ftype="bed12"/>
112 </test>
113 </tests>
114 <help><![CDATA[
115 Converts a GTF_ file to a BED12_ formatted file using UCSC tools from Jim Kent.
116
117 ``gtfToGenePred``, followed by ``genePredToBed``
118
119 .. _GTF: https://genome.ucsc.edu/FAQ/FAQformat.html#format4
120 .. _BED12: https://genome.ucsc.edu/FAQ/FAQformat.html#format1
121 ]]>
122 </help>
123
124 <citations>
125 <citation type="doi">10.1101/gr.229102</citation>
126 </citations>
127 </tool>