Mercurial > repos > iuc > taxonomy_krona_chart
comparison taxonomy_krona_chart.xml @ 0:5c95bef081c7 draft default tip
planemo upload for repository https://github.com/galaxyproject/tools-diuc/blob/master/tools/taxonomy_krona_chart/ commit f96423e81ad876e5643da6d49030d5f3c07be32a
| author | iuc |
|---|---|
| date | Mon, 17 Aug 2015 11:16:23 -0400 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:5c95bef081c7 |
|---|---|
| 1 <tool id="taxonomy_krona_chart" name="Krona pie chart" version="2.0.0"> | |
| 2 <description>from taxonomic profile</description> | |
| 3 <requirements> | |
| 4 <requirement type="package" version="2.5">krona</requirement> | |
| 5 </requirements> | |
| 6 <version_command>ktImportText | sed -n 's/.*\(KronaTools [[:digit:].]\{1,\}\).*/\1/p'</version_command> | |
| 7 <command> | |
| 8 <![CDATA[ | |
| 9 | |
| 10 #if $type_of_data.input[0].is_of_type('taxonomy'): | |
| 11 | |
| 12 ktImportGalaxy | |
| 13 -a | |
| 14 -d "${type_of_data.max_rank}" | |
| 15 -n "${root_name}" | |
| 16 -o ${output} | |
| 17 ${combine_inputs} | |
| 18 #for $input_count, $input_dataset in enumerate( $type_of_data.input ): | |
| 19 "${input_dataset},${input_count}" | |
| 20 #end for | |
| 21 | |
| 22 #else: | |
| 23 | |
| 24 ktImportText | |
| 25 -a | |
| 26 -n "${root_name}" | |
| 27 -o ${output} | |
| 28 ${combine_inputs} | |
| 29 #for $input_count, $input_dataset in enumerate( $type_of_data.input ): | |
| 30 "${input_dataset},${input_count}" | |
| 31 #end for | |
| 32 | |
| 33 #end if | |
| 34 | |
| 35 ]]> | |
| 36 | |
| 37 </command> | |
| 38 <inputs> | |
| 39 <conditional name="type_of_data"> | |
| 40 <param name="type_of_data_selector" type="select" label="What is the type of your input data" help="Select between Galaxy Taxonomy and MetaPhlAn Text"> | |
| 41 <option value="taxonomy" selected="True">Taxonomy</option> | |
| 42 <option value="text">MetaPhlAn</option> | |
| 43 </param> | |
| 44 <when value="taxonomy"> | |
| 45 <param name="input" type="data" format="taxonomy" multiple="True" label="Input file" help="Select a taxonomy dataset" /> | |
| 46 <param name="max_rank" type="select" label="show ranks from root to" help="-d; Show all level from root up to this point"> | |
| 47 <option value="8">Class</option> | |
| 48 <option value="0">Show entire tree</option> | |
| 49 <option value="1">Superkingdom</option> | |
| 50 <option value="2">Kingdom</option> | |
| 51 <option value="3">Subkingdom</option> | |
| 52 <option value="4">Superphylum</option> | |
| 53 <option value="5">Phylum</option> | |
| 54 <option value="6">Subphylum</option> | |
| 55 <option value="7">Superclass</option> | |
| 56 <option value="9">Subclass</option> | |
| 57 <option value="10">Superorder</option> | |
| 58 <option value="11">Order</option> | |
| 59 <option value="12">Suborder</option> | |
| 60 <option value="13">Superfamily</option> | |
| 61 <option value="14">Family</option> | |
| 62 <option value="15">Subfamily</option> | |
| 63 <option value="16">Tribe</option> | |
| 64 <option value="17">Subtribe</option> | |
| 65 <option value="18">Genus</option> | |
| 66 <option value="19">Subgenus</option> | |
| 67 <option value="20">Species</option> | |
| 68 <option value="21">Subspecies</option> | |
| 69 </param> | |
| 70 </when> | |
| 71 <when value="text"> | |
| 72 <param name="input" type="data" format="tabular" multiple="True" label="Input file" help="Select a MetaPhlAn dataset" /> | |
| 73 </when> | |
| 74 </conditional> | |
| 75 <param name="root_name" type="text" size="20" value="Root" label="Provide a name for the basal rank" help="-n; Otherwise it will simply be called "Root""/> | |
| 76 <param name="combine_inputs" type="boolean" truevalue="-c" falsevalue="" selected="False" label="Combine data from multiple datasets?" help="-c; Combine data from each dataset, rather than creating separate datasets within the chart"/> | |
| 77 </inputs> | |
| 78 <outputs> | |
| 79 <data format="html" name="output" label="${tool.name} on ${on_string}: HTML"/> | |
| 80 </outputs> | |
| 81 <tests> | |
| 82 <test> | |
| 83 <param name="type_of_data_selector" value="taxonomy"/> | |
| 84 <param name="input" value="taxonomy_data.tax" ftype="taxonomy" /> | |
| 85 <param name="max_rank" value="Genus"/> | |
| 86 <param name="root_name" value="Root"/> | |
| 87 <param name="combine_inputs" value="False"/> | |
| 88 <output name="output" file="krona_test1.html" ftype="html" lines_diff="100"/> | |
| 89 </test> | |
| 90 </tests> | |
| 91 <help> | |
| 92 **What it does** | |
| 93 | |
| 94 This tool renders results of a metagenomic profiling as a zoomable pie chart using Krona_. | |
| 95 | |
| 96 | |
| 97 .. _Krona: http://sourceforge.net/p/krona/home/krona/ | |
| 98 | |
| 99 ------ | |
| 100 | |
| 101 **Krona options** | |
| 102 | |
| 103 The Galaxy version supports the following options:: | |
| 104 | |
| 105 -n Name of the highest level. | |
| 106 -c Combine data from each file, rather than creating separate datasets within the chart. | |
| 107 -d Maximum depth of wedges to include in the chart. | |
| 108 | |
| 109 ----- | |
| 110 | |
| 111 **License and citation** | |
| 112 | |
| 113 This Galaxy tool is Copyright © 2013-2014 `CRS4 Srl.`_ and is released under the `MIT license`_. | |
| 114 | |
| 115 .. _CRS4 Srl.: http://www.crs4.it/ | |
| 116 .. _MIT license: http://opensource.org/licenses/MIT | |
| 117 | |
| 118 You can use this tool only if you agree to the license terms of: `Krona`_. | |
| 119 | |
| 120 .. _Krona: http://sourceforge.net/p/krona/home/krona/ | |
| 121 | |
| 122 | |
| 123 </help> | |
| 124 <citations> | |
| 125 <citation type="doi">10.1186/1471-2105-12-385</citation> | |
| 126 <citation type="doi">10.1093/bioinformatics/btu135</citation> | |
| 127 </citations> | |
| 128 </tool> |
