annotate fromgtfTobed12.xml @ 0:418e4d0fe0bd draft

planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 1aaffda5b95e0389e315179345642c0d005867c1
author lldelisle
date Fri, 04 Nov 2022 15:37:12 +0000
parents
children 6fd4b3b90220
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
418e4d0fe0bd planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 1aaffda5b95e0389e315179345642c0d005867c1
lldelisle
parents:
diff changeset
1 <tool id="fromgtfTobed12" name="fromgtftobed12" version="0.11.1+galaxy0">
418e4d0fe0bd planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 1aaffda5b95e0389e315179345642c0d005867c1
lldelisle
parents:
diff changeset
2 <description> Convert a gtf to a bed12.</description>
418e4d0fe0bd planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 1aaffda5b95e0389e315179345642c0d005867c1
lldelisle
parents:
diff changeset
3 <requirements>
418e4d0fe0bd planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 1aaffda5b95e0389e315179345642c0d005867c1
lldelisle
parents:
diff changeset
4 <requirement type="package" version="0.11.1">gffutils</requirement>
418e4d0fe0bd planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 1aaffda5b95e0389e315179345642c0d005867c1
lldelisle
parents:
diff changeset
5 </requirements>
418e4d0fe0bd planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 1aaffda5b95e0389e315179345642c0d005867c1
lldelisle
parents:
diff changeset
6 <stdio>
418e4d0fe0bd planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 1aaffda5b95e0389e315179345642c0d005867c1
lldelisle
parents:
diff changeset
7 <!-- Anything other than zero is an error -->
418e4d0fe0bd planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 1aaffda5b95e0389e315179345642c0d005867c1
lldelisle
parents:
diff changeset
8 <exit_code range="1:" />
418e4d0fe0bd planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 1aaffda5b95e0389e315179345642c0d005867c1
lldelisle
parents:
diff changeset
9 <exit_code range=":-1" />
418e4d0fe0bd planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 1aaffda5b95e0389e315179345642c0d005867c1
lldelisle
parents:
diff changeset
10 <!-- In case the return code has not been set propery check stderr too -->
418e4d0fe0bd planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 1aaffda5b95e0389e315179345642c0d005867c1
lldelisle
parents:
diff changeset
11 <regex match="Error:" />
418e4d0fe0bd planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 1aaffda5b95e0389e315179345642c0d005867c1
lldelisle
parents:
diff changeset
12 <regex match="Exception:" />
418e4d0fe0bd planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 1aaffda5b95e0389e315179345642c0d005867c1
lldelisle
parents:
diff changeset
13 </stdio>
418e4d0fe0bd planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 1aaffda5b95e0389e315179345642c0d005867c1
lldelisle
parents:
diff changeset
14 <command>
418e4d0fe0bd planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 1aaffda5b95e0389e315179345642c0d005867c1
lldelisle
parents:
diff changeset
15 <![CDATA[
418e4d0fe0bd planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 1aaffda5b95e0389e315179345642c0d005867c1
lldelisle
parents:
diff changeset
16 python3 $__tool_directory__/fromgtfTobed12.py
418e4d0fe0bd planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 1aaffda5b95e0389e315179345642c0d005867c1
lldelisle
parents:
diff changeset
17 $useGene
418e4d0fe0bd planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 1aaffda5b95e0389e315179345642c0d005867c1
lldelisle
parents:
diff changeset
18 $mergeTranscripts
418e4d0fe0bd planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 1aaffda5b95e0389e315179345642c0d005867c1
lldelisle
parents:
diff changeset
19 $ucscformat
418e4d0fe0bd planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 1aaffda5b95e0389e315179345642c0d005867c1
lldelisle
parents:
diff changeset
20 --output $output
418e4d0fe0bd planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 1aaffda5b95e0389e315179345642c0d005867c1
lldelisle
parents:
diff changeset
21 $input
418e4d0fe0bd planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 1aaffda5b95e0389e315179345642c0d005867c1
lldelisle
parents:
diff changeset
22 ]]>
418e4d0fe0bd planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 1aaffda5b95e0389e315179345642c0d005867c1
lldelisle
parents:
diff changeset
23 </command>
418e4d0fe0bd planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 1aaffda5b95e0389e315179345642c0d005867c1
lldelisle
parents:
diff changeset
24 <inputs>
418e4d0fe0bd planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 1aaffda5b95e0389e315179345642c0d005867c1
lldelisle
parents:
diff changeset
25 <param name="input" multiple="false" type="data" format="gtf" label="Select the gtf to convert."/>
418e4d0fe0bd planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 1aaffda5b95e0389e315179345642c0d005867c1
lldelisle
parents:
diff changeset
26 <param argument="--useGene" type="boolean" checked="False" truevalue="--useGene" falsevalue="" label="Uses the gene name instead of the transcript name."/>
418e4d0fe0bd planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 1aaffda5b95e0389e315179345642c0d005867c1
lldelisle
parents:
diff changeset
27 <param name="mergeTranscripts" type="select" label="Do you want to merge all transcripts of a gene in a single line?">
418e4d0fe0bd planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 1aaffda5b95e0389e315179345642c0d005867c1
lldelisle
parents:
diff changeset
28 <option value="" selected="true">No</option>
418e4d0fe0bd planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 1aaffda5b95e0389e315179345642c0d005867c1
lldelisle
parents:
diff changeset
29 <option value="--mergeTranscripts">Yes</option>
418e4d0fe0bd planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 1aaffda5b95e0389e315179345642c0d005867c1
lldelisle
parents:
diff changeset
30 <option value="--mergeTranscriptsAndOverlappingExons">Yes and merge overlapping exons</option>
418e4d0fe0bd planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 1aaffda5b95e0389e315179345642c0d005867c1
lldelisle
parents:
diff changeset
31 </param>
418e4d0fe0bd planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 1aaffda5b95e0389e315179345642c0d005867c1
lldelisle
parents:
diff changeset
32 <param argument="--ucscformat" type="boolean" checked="True" truevalue="--ucscformat" falsevalue="" label="If you want that all chromosome names begin with 'chr'."/>
418e4d0fe0bd planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 1aaffda5b95e0389e315179345642c0d005867c1
lldelisle
parents:
diff changeset
33 </inputs>
418e4d0fe0bd planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 1aaffda5b95e0389e315179345642c0d005867c1
lldelisle
parents:
diff changeset
34
418e4d0fe0bd planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 1aaffda5b95e0389e315179345642c0d005867c1
lldelisle
parents:
diff changeset
35 <outputs>
418e4d0fe0bd planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 1aaffda5b95e0389e315179345642c0d005867c1
lldelisle
parents:
diff changeset
36 <data format="bed" name="output" label="$input.name as bed12"/>
418e4d0fe0bd planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 1aaffda5b95e0389e315179345642c0d005867c1
lldelisle
parents:
diff changeset
37 </outputs>
418e4d0fe0bd planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 1aaffda5b95e0389e315179345642c0d005867c1
lldelisle
parents:
diff changeset
38
418e4d0fe0bd planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 1aaffda5b95e0389e315179345642c0d005867c1
lldelisle
parents:
diff changeset
39 <tests>
418e4d0fe0bd planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 1aaffda5b95e0389e315179345642c0d005867c1
lldelisle
parents:
diff changeset
40 <test>
418e4d0fe0bd planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 1aaffda5b95e0389e315179345642c0d005867c1
lldelisle
parents:
diff changeset
41 <param name="input" value="Homo_sapiens.GRCh38.95_491firstLines.gtf.gz"/>
418e4d0fe0bd planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 1aaffda5b95e0389e315179345642c0d005867c1
lldelisle
parents:
diff changeset
42 <param name="ucscformat" value="--ucscformat"/>
418e4d0fe0bd planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 1aaffda5b95e0389e315179345642c0d005867c1
lldelisle
parents:
diff changeset
43 <output name="output" file="test.bed"/>
418e4d0fe0bd planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 1aaffda5b95e0389e315179345642c0d005867c1
lldelisle
parents:
diff changeset
44 </test>
418e4d0fe0bd planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 1aaffda5b95e0389e315179345642c0d005867c1
lldelisle
parents:
diff changeset
45 <test>
418e4d0fe0bd planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 1aaffda5b95e0389e315179345642c0d005867c1
lldelisle
parents:
diff changeset
46 <param name="input" value="Homo_sapiens.GRCh38.95_491firstLines.gtf.gz"/>
418e4d0fe0bd planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 1aaffda5b95e0389e315179345642c0d005867c1
lldelisle
parents:
diff changeset
47 <param name="ucscformat" value="--ucscformat"/>
418e4d0fe0bd planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 1aaffda5b95e0389e315179345642c0d005867c1
lldelisle
parents:
diff changeset
48 <param name="useGene" value="--useGene"/>
418e4d0fe0bd planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 1aaffda5b95e0389e315179345642c0d005867c1
lldelisle
parents:
diff changeset
49 <output name="output" file="testWithGenes.bed"/>
418e4d0fe0bd planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 1aaffda5b95e0389e315179345642c0d005867c1
lldelisle
parents:
diff changeset
50 </test>
418e4d0fe0bd planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 1aaffda5b95e0389e315179345642c0d005867c1
lldelisle
parents:
diff changeset
51 <test>
418e4d0fe0bd planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 1aaffda5b95e0389e315179345642c0d005867c1
lldelisle
parents:
diff changeset
52 <param name="input" value="Homo_sapiens.GRCh38.95_491firstLines.gtf.gz"/>
418e4d0fe0bd planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 1aaffda5b95e0389e315179345642c0d005867c1
lldelisle
parents:
diff changeset
53 <param name="mergeTranscripts" value="--mergeTranscripts"/>
418e4d0fe0bd planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 1aaffda5b95e0389e315179345642c0d005867c1
lldelisle
parents:
diff changeset
54 <param name="useGene" value="--useGene"/>
418e4d0fe0bd planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 1aaffda5b95e0389e315179345642c0d005867c1
lldelisle
parents:
diff changeset
55 <param name="ucscformat" value=""/>
418e4d0fe0bd planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 1aaffda5b95e0389e315179345642c0d005867c1
lldelisle
parents:
diff changeset
56 <output name="output" file="testMergeNotUCSC.bed"/>
418e4d0fe0bd planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 1aaffda5b95e0389e315179345642c0d005867c1
lldelisle
parents:
diff changeset
57 </test>
418e4d0fe0bd planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 1aaffda5b95e0389e315179345642c0d005867c1
lldelisle
parents:
diff changeset
58 <test>
418e4d0fe0bd planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 1aaffda5b95e0389e315179345642c0d005867c1
lldelisle
parents:
diff changeset
59 <param name="input" value="Homo_sapiens.GRCh38.95_491firstLines.gtf.gz"/>
418e4d0fe0bd planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 1aaffda5b95e0389e315179345642c0d005867c1
lldelisle
parents:
diff changeset
60 <param name="mergeTranscripts" value="--mergeTranscriptsAndOverlappingExons"/>
418e4d0fe0bd planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 1aaffda5b95e0389e315179345642c0d005867c1
lldelisle
parents:
diff changeset
61 <param name="useGene" value="--useGene"/>
418e4d0fe0bd planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 1aaffda5b95e0389e315179345642c0d005867c1
lldelisle
parents:
diff changeset
62 <param name="ucscformat" value=""/>
418e4d0fe0bd planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 1aaffda5b95e0389e315179345642c0d005867c1
lldelisle
parents:
diff changeset
63 <output name="output" file="testMergeExons.bed"/>
418e4d0fe0bd planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 1aaffda5b95e0389e315179345642c0d005867c1
lldelisle
parents:
diff changeset
64 </test>
418e4d0fe0bd planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 1aaffda5b95e0389e315179345642c0d005867c1
lldelisle
parents:
diff changeset
65 </tests>
418e4d0fe0bd planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 1aaffda5b95e0389e315179345642c0d005867c1
lldelisle
parents:
diff changeset
66 <help><![CDATA[
418e4d0fe0bd planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 1aaffda5b95e0389e315179345642c0d005867c1
lldelisle
parents:
diff changeset
67 This tool uses gffutils to convert gtf to bed12. One line per transcript.
418e4d0fe0bd planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 1aaffda5b95e0389e315179345642c0d005867c1
lldelisle
parents:
diff changeset
68 It will use as names transcript_name or gene_name when available.
418e4d0fe0bd planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 1aaffda5b95e0389e315179345642c0d005867c1
lldelisle
parents:
diff changeset
69 ]]> </help>
418e4d0fe0bd planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 1aaffda5b95e0389e315179345642c0d005867c1
lldelisle
parents:
diff changeset
70 <citations>
418e4d0fe0bd planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 1aaffda5b95e0389e315179345642c0d005867c1
lldelisle
parents:
diff changeset
71 <citation type="bibtex">@online{gffutils,
418e4d0fe0bd planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 1aaffda5b95e0389e315179345642c0d005867c1
lldelisle
parents:
diff changeset
72 url = {https://pythonhosted.org/gffutils/contents.html}
418e4d0fe0bd planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 1aaffda5b95e0389e315179345642c0d005867c1
lldelisle
parents:
diff changeset
73 }
418e4d0fe0bd planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 1aaffda5b95e0389e315179345642c0d005867c1
lldelisle
parents:
diff changeset
74 </citation>
418e4d0fe0bd planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 1aaffda5b95e0389e315179345642c0d005867c1
lldelisle
parents:
diff changeset
75 </citations>
418e4d0fe0bd planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 1aaffda5b95e0389e315179345642c0d005867c1
lldelisle
parents:
diff changeset
76 </tool>