annotate fromgtfTobed12.xml @ 1:6fd4b3b90220 draft default tip

planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 15b8c2cc83708044413a152322bcbfca8a74d29a
author lldelisle
date Fri, 03 Nov 2023 14:13:51 +0000
parents 418e4d0fe0bd
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
6fd4b3b90220 planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 15b8c2cc83708044413a152322bcbfca8a74d29a
lldelisle
parents: 0
diff changeset
1 <tool id="fromgtfTobed12" name="fromgtftobed12" version="0.11.1+galaxy1">
0
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
1
6fd4b3b90220 planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 15b8c2cc83708044413a152322bcbfca8a74d29a
lldelisle
parents: 0
diff changeset
17 #if str($preferedName) != "":
6fd4b3b90220 planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 15b8c2cc83708044413a152322bcbfca8a74d29a
lldelisle
parents: 0
diff changeset
18 --preferedName $preferedName
6fd4b3b90220 planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 15b8c2cc83708044413a152322bcbfca8a74d29a
lldelisle
parents: 0
diff changeset
19 #end if
0
418e4d0fe0bd planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 1aaffda5b95e0389e315179345642c0d005867c1
lldelisle
parents:
diff changeset
20 $mergeTranscripts
418e4d0fe0bd planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 1aaffda5b95e0389e315179345642c0d005867c1
lldelisle
parents:
diff changeset
21 $ucscformat
418e4d0fe0bd planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 1aaffda5b95e0389e315179345642c0d005867c1
lldelisle
parents:
diff changeset
22 --output $output
418e4d0fe0bd planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 1aaffda5b95e0389e315179345642c0d005867c1
lldelisle
parents:
diff changeset
23 $input
418e4d0fe0bd planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 1aaffda5b95e0389e315179345642c0d005867c1
lldelisle
parents:
diff changeset
24 ]]>
418e4d0fe0bd planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 1aaffda5b95e0389e315179345642c0d005867c1
lldelisle
parents:
diff changeset
25 </command>
418e4d0fe0bd planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 1aaffda5b95e0389e315179345642c0d005867c1
lldelisle
parents:
diff changeset
26 <inputs>
418e4d0fe0bd planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 1aaffda5b95e0389e315179345642c0d005867c1
lldelisle
parents:
diff changeset
27 <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
28 <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
29 <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
30 <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
31 <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
32 </param>
1
6fd4b3b90220 planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 15b8c2cc83708044413a152322bcbfca8a74d29a
lldelisle
parents: 0
diff changeset
33 <param argument="--preferedName" type="text" value="" label="Use a specific name for the 4th column" help="By default the 4th column will be transcript_name or gene_name if you merge transcripts. If you prefer 'gene_id', for example, then set this option." />
0
418e4d0fe0bd planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 1aaffda5b95e0389e315179345642c0d005867c1
lldelisle
parents:
diff changeset
34 <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
35 </inputs>
418e4d0fe0bd planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 1aaffda5b95e0389e315179345642c0d005867c1
lldelisle
parents:
diff changeset
36
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 <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
39 </outputs>
418e4d0fe0bd planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 1aaffda5b95e0389e315179345642c0d005867c1
lldelisle
parents:
diff changeset
40
418e4d0fe0bd planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 1aaffda5b95e0389e315179345642c0d005867c1
lldelisle
parents:
diff changeset
41 <tests>
418e4d0fe0bd planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 1aaffda5b95e0389e315179345642c0d005867c1
lldelisle
parents:
diff changeset
42 <test>
418e4d0fe0bd planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 1aaffda5b95e0389e315179345642c0d005867c1
lldelisle
parents:
diff changeset
43 <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
44 <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
45 <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
46 </test>
418e4d0fe0bd planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 1aaffda5b95e0389e315179345642c0d005867c1
lldelisle
parents:
diff changeset
47 <test>
418e4d0fe0bd planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 1aaffda5b95e0389e315179345642c0d005867c1
lldelisle
parents:
diff changeset
48 <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
49 <param name="ucscformat" value="--ucscformat"/>
1
6fd4b3b90220 planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 15b8c2cc83708044413a152322bcbfca8a74d29a
lldelisle
parents: 0
diff changeset
50 <param name="preferedName" value="gene_name"/>
0
418e4d0fe0bd planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 1aaffda5b95e0389e315179345642c0d005867c1
lldelisle
parents:
diff changeset
51 <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
52 </test>
418e4d0fe0bd planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 1aaffda5b95e0389e315179345642c0d005867c1
lldelisle
parents:
diff changeset
53 <test>
418e4d0fe0bd planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 1aaffda5b95e0389e315179345642c0d005867c1
lldelisle
parents:
diff changeset
54 <param name="input" value="Homo_sapiens.GRCh38.95_491firstLines.gtf.gz"/>
1
6fd4b3b90220 planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 15b8c2cc83708044413a152322bcbfca8a74d29a
lldelisle
parents: 0
diff changeset
55 <param name="ucscformat" value="--ucscformat"/>
6fd4b3b90220 planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 15b8c2cc83708044413a152322bcbfca8a74d29a
lldelisle
parents: 0
diff changeset
56 <param name="preferedName" value="gene_id"/>
6fd4b3b90220 planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 15b8c2cc83708044413a152322bcbfca8a74d29a
lldelisle
parents: 0
diff changeset
57 <output name="output" file="testWithGeneIds.bed"/>
6fd4b3b90220 planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 15b8c2cc83708044413a152322bcbfca8a74d29a
lldelisle
parents: 0
diff changeset
58 </test>
6fd4b3b90220 planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 15b8c2cc83708044413a152322bcbfca8a74d29a
lldelisle
parents: 0
diff changeset
59 <test>
6fd4b3b90220 planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 15b8c2cc83708044413a152322bcbfca8a74d29a
lldelisle
parents: 0
diff changeset
60 <param name="input" value="Homo_sapiens.GRCh38.95_491firstLines.gtf.gz"/>
0
418e4d0fe0bd planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 1aaffda5b95e0389e315179345642c0d005867c1
lldelisle
parents:
diff changeset
61 <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
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="testMergeNotUCSC.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 <test>
418e4d0fe0bd planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 1aaffda5b95e0389e315179345642c0d005867c1
lldelisle
parents:
diff changeset
66 <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
67 <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
68 <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
69 <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
70 </test>
418e4d0fe0bd planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 1aaffda5b95e0389e315179345642c0d005867c1
lldelisle
parents:
diff changeset
71 </tests>
418e4d0fe0bd planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 1aaffda5b95e0389e315179345642c0d005867c1
lldelisle
parents:
diff changeset
72 <help><![CDATA[
418e4d0fe0bd planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 1aaffda5b95e0389e315179345642c0d005867c1
lldelisle
parents:
diff changeset
73 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
74 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
75 ]]> </help>
418e4d0fe0bd planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 1aaffda5b95e0389e315179345642c0d005867c1
lldelisle
parents:
diff changeset
76 <citations>
418e4d0fe0bd planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 1aaffda5b95e0389e315179345642c0d005867c1
lldelisle
parents:
diff changeset
77 <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
78 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
79 }
418e4d0fe0bd planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 1aaffda5b95e0389e315179345642c0d005867c1
lldelisle
parents:
diff changeset
80 </citation>
418e4d0fe0bd planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 1aaffda5b95e0389e315179345642c0d005867c1
lldelisle
parents:
diff changeset
81 </citations>
418e4d0fe0bd planemo upload for repository https://github.com/lldelisle/tools-lldelisle/tree/master/tools/fromgtfTobed12 commit 1aaffda5b95e0389e315179345642c0d005867c1
lldelisle
parents:
diff changeset
82 </tool>