Mercurial > repos > petr-novak > krona_text
comparison krona_text.xml @ 0:04021cfd5170 draft default tip
planemo upload for repository https://github.com/kavonrtep/galaxy_packages commit 5269b4297ea690bce0802c3c1cb217f24290f1ec-dirty
author | petr-novak |
---|---|
date | Mon, 04 Mar 2024 09:16:34 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:04021cfd5170 |
---|---|
1 <tool id="krona-text" name="Visualize with Krona" version="1.1"> | |
2 | |
3 <description>Visualise any hierarchical data</description> | |
4 | |
5 <requirements> | |
6 <requirement type="package" version="2.6">krona</requirement> | |
7 </requirements> | |
8 <command><![CDATA[ | |
9 echo "starting" && | |
10 head '${inputfile}' && | |
11 | |
12 #if "$isMothur" == "Y" | |
13 awk 'BEGIN{FS="\t";OFS="\t"}{print $2,$3}' '${inputfile}' > tempinput && | |
14 head tempinput && | |
15 sed -i 's/;/\t/g' tempinput && | |
16 | |
17 #else | |
18 cp '${inputfile}' tempinput && | |
19 | |
20 #end if | |
21 | |
22 head tempinput && | |
23 export TERM=dumb && | |
24 ktImportText tempinput | |
25 ]]></command> | |
26 | |
27 | |
28 <inputs> | |
29 <!-- parameter examples, see https://wiki.galaxyproject.org/Admin/Tools/ToolConfigSyntax for descriptions --> | |
30 | |
31 <!-- file from history --> | |
32 <param name="inputfile" type="data" label="Select input file" help="Choose input file from history. Format: count - Hierarchy (tab separated)"/> | |
33 <param name="isMothur" type="boolean" checked="False" truevalue="Y" falsevalue="N" label="is this output from MOTHUR?" help="e.g. taxonomy file generated from Classify.otu?"/> | |
34 | |
35 | |
36 </inputs> | |
37 | |
38 | |
39 <outputs> | |
40 <data format="html" name="outputfile" from_work_dir="text.krona.html" label="Krona on ${on_string}: HTML"/> | |
41 </outputs> | |
42 | |
43 <help> | |
44 Input file must be a tab-delimited file with first column being a count, rest the hierarchy, for example:: | |
45 | |
46 2 Fats Saturated fat | |
47 3 Fats Unsaturated fat Monounsaturated fat | |
48 3 Fats Unsaturated fat Polyunsaturated fat | |
49 13 Carbohydrates Sugars | |
50 4 Carbohydrates Dietary fiber | |
51 21 Carbohydrates | |
52 5 Protein | |
53 4 | |
54 | |
55 Would yield the following graph: http://krona.sourceforge.net/examples/text.krona.html | |
56 This tool is a modification of https://toolshed.g2.bx.psu.edu/view/saskia-hiltemann/krona_text/b14f1444e464 | |
57 </help> | |
58 </tool> |