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