Mercurial > repos > earlhaminst > gff3_to_json
comparison gff3_to_json.xml @ 0:be6cec883b02 draft
planemo upload for repository https://github.com/TGAC/earlham-galaxytools/tree/master/tools/gff3_to_json commit 822c798d43a72724eeab174043fdaafcfdac845f-dirty
author | earlhaminst |
---|---|
date | Wed, 21 Dec 2016 10:02:59 -0500 |
parents | |
children | befe6021e476 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:be6cec883b02 |
---|---|
1 <tool id="gff3_to_json" name="GFF3 to JSON" version="0.1.1"> | |
2 <description>converter</description> | |
3 <stdio> | |
4 <exit_code range="1:" level="fatal" /> | |
5 </stdio> | |
6 <command> | |
7 <![CDATA[ | |
8 python $__tool_directory__/gff3_to_json.py | |
9 #for $q in $queries | |
10 --gff3 "${q.genome}:${q.gff3_input}" | |
11 #end for | |
12 #if str($json) != 'None' | |
13 #for $v in $json | |
14 --json "$v" | |
15 #end for | |
16 #end if | |
17 $sort | |
18 > "$output" | |
19 ]]> | |
20 </command> | |
21 | |
22 <inputs> | |
23 <repeat name="queries" title="GFF3 dataset"> | |
24 <param name="gff3_input" type="data" format="gff3" label="GFF3 dataset" /> | |
25 <param name="genome" type="text" label="Genome name" help="Genome name without whitespaces or special characters"> | |
26 <validator type="empty_field" /> | |
27 </param> | |
28 </repeat> | |
29 <param name="json" type="data" format="json" multiple="true" optional="true" label="JSON datasets to merge" /> | |
30 <param name="sort" type="boolean" truevalue="-s" falsevalue="" label="Sort the keys in the JSON output" help="Ensure reproducibility, but can slow down the JSON creation for big files" /> | |
31 </inputs> | |
32 | |
33 <outputs> | |
34 <data name="output" format="json" label="${tool.name} on ${on_string}" /> | |
35 </outputs> | |
36 | |
37 <tests> | |
38 <test> | |
39 <param name="gff3_input" ftype="gff3" value="ENSCAFT00000026349.gff" /> | |
40 <param name="genome" ftype="text" value="canisfamiliaris" /> | |
41 | |
42 <param name="gff3_input" ftype="gff3" value="ENSMUST00000005671.gff" /> | |
43 <param name="genome" ftype="text" value="musmusculus" /> | |
44 | |
45 <param name="gff3_input" ftype="gff3" value="ENSMUST00000091291.gff" /> | |
46 <param name="genome" ftype="text" value="musmusculus" /> | |
47 | |
48 <param name="gff3_input" ftype="gff3" value="ENSPTRT00000013802.gff" /> | |
49 <param name="genome" ftype="text" value="pantroglodytes" /> | |
50 | |
51 <param name="gff3_input" ftype="gff3" value="ENSRNOT00000019267.gff" /> | |
52 <param name="genome" value="rattusnorvegicus" /> | |
53 | |
54 <param name="sort" value="-s" /> | |
55 <output name="output" file="test.json" ftype="json" /> | |
56 </test> | |
57 <test> | |
58 <param name="gff3_input" ftype="gff3" value="Caenorhabditis_elegans.WBcel235.33.chromosome.I_shortened.gff3" /> | |
59 <param name="genome" value="caenorhabditiselegans" /> | |
60 <param name="sort" value="-s" /> | |
61 <output name="output" file="Caenorhabditis_elegans.WBcel235.33.chromosome.I_shortened.json" ftype="json" /> | |
62 </test> | |
63 </tests> | |
64 <help> | |
65 <![CDATA[ | |
66 **What it does** | |
67 | |
68 Simple tool to convert a set of GFF3 datasets into JSON format and to merge with other JSON files. | |
69 | |
70 Example GFF3 file:: | |
71 | |
72 scaffold_0 MYZPE13164_Clone_G006_v1.0 gene 44968 69413 . - . ID=MYZPE13164_G006_v1.0_000000030;Name=MYZPE13164_G006_v1.0_000000030;biotype=protein_coding | |
73 scaffold_0 MYZPE13164_Clone_G006_v1.0 mRNA 44968 69413 . - . ID=MYZPE13164_G006_v1.0_000000030.1;Parent=MYZPE13164_G006_v1.0_000000030;Name=MYZPE13164_G006_v1.0_000000030.1;biotype=protein_coding;_AED=0.31 | |
74 scaffold_0 MYZPE13164_Clone_G006_v1.0 three_prime_utr 44968 46637 . - . ID=MYZPE13164_G006_v1.0_000000030.1.3utr1;Parent=MYZPE13164_G006_v1.0_000000030.1 | |
75 scaffold_0 MYZPE13164_Clone_G006_v1.0 exon 44968 47432 . - . ID=MYZPE13164_G006_v1.0_000000030.1.exon1;Parent=MYZPE13164_G006_v1.0_000000030.1 | |
76 scaffold_0 MYZPE13164_Clone_G006_v1.0 CDS 46638 47432 . - 0 ID=MYZPE13164_G006_v1.0_000000030.1.cds1;Parent=MYZPE13164_G006_v1.0_000000030.1 | |
77 scaffold_0 MYZPE13164_Clone_G006_v1.0 exon 53325 53539 . - . ID=MYZPE13164_G006_v1.0_000000030.1.exon2;Parent=MYZPE13164_G006_v1.0_000000030.1 | |
78 scaffold_0 MYZPE13164_Clone_G006_v1.0 CDS 53325 53539 . - 2 ID=MYZPE13164_G006_v1.0_000000030.1.cds2;Parent=MYZPE13164_G006_v1.0_000000030.1 | |
79 scaffold_0 MYZPE13164_Clone_G006_v1.0 exon 54614 54719 . - . ID=MYZPE13164_G006_v1.0_000000030.1.exon3;Parent=MYZPE13164_G006_v1.0_000000030.1 | |
80 scaffold_0 MYZPE13164_Clone_G006_v1.0 CDS 54614 54719 . - 0 ID=MYZPE13164_G006_v1.0_000000030.1.cds3;Parent=MYZPE13164_G006_v1.0_000000030.1 | |
81 scaffold_0 MYZPE13164_Clone_G006_v1.0 CDS 54852 55106 . - 0 ID=MYZPE13164_G006_v1.0_000000030.1.cds4;Parent=MYZPE13164_G006_v1.0_000000030.1 | |
82 scaffold_0 MYZPE13164_Clone_G006_v1.0 exon 54852 55117 . - . ID=MYZPE13164_G006_v1.0_000000030.1.exon4;Parent=MYZPE13164_G006_v1.0_000000030.1 | |
83 scaffold_0 MYZPE13164_Clone_G006_v1.0 five_prime_utr 55107 55117 . - . ID=MYZPE13164_G006_v1.0_000000030.1.5utr1;Parent=MYZPE13164_G006_v1.0_000000030.1 | |
84 scaffold_0 MYZPE13164_Clone_G006_v1.0 five_prime_utr 68851 69413 . - . ID=MYZPE13164_G006_v1.0_000000030.1.5utr2;Parent=MYZPE13164_G006_v1.0_000000030.1 | |
85 scaffold_0 MYZPE13164_Clone_G006_v1.0 exon 68851 69413 . - . ID=MYZPE13164_G006_v1.0_000000030.1.exon5;Parent=MYZPE13164_G006_v1.0_000000030.1 | |
86 | |
87 Warning: **Gene**, **mRNA** and **exon** features are mandatory, UTR and CDS are optional. Also, **ID** and **Parent** tags are needed to create relations. | |
88 ]]> | |
89 </help> | |
90 <citations> | |
91 </citations> | |
92 </tool> |