Mercurial > repos > devteam > kraken_report
comparison kraken-mpa-report.xml @ 9:8ddbdc9cdc57 draft default tip
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/blob/master/tool_collections/kraken/ commit 1590e274eaa41ea77a6017111f9122e0a58aa75d-dirty"
author | iuc |
---|---|
date | Tue, 03 Dec 2019 18:30:40 +0000 |
parents | 196f2cf1f0a1 |
children |
comparison
equal
deleted
inserted
replaced
8:196f2cf1f0a1 | 9:8ddbdc9cdc57 |
---|---|
1 <?xml version="1.0"?> | |
2 <tool id="kraken-mpa-report" name="Kraken-mpa-report" version="@WRAPPER_VERSION@"> | |
3 <description>view report of classification for multiple samples</description> | |
4 <macros> | |
5 <import>macros.xml</import> | |
6 </macros> | |
7 <expand macro="requirements" /> | |
8 <expand macro="version_command" /> | |
9 <command detect_errors="exit_code"><![CDATA[ | |
10 #set $names = [] | |
11 | |
12 #for $input_count, $input_classification in enumerate( $classification ): | |
13 #set $name_base = str( getattr( $input_classification, 'element_identifier', 'sample' ) ).replace( "/", '-' ).replace( "\t", "-" ) | |
14 #set $name = $name_base | |
15 #set $i = 1 | |
16 #while $name in $names: | |
17 #set $name = "%s_%s" % ( $name_base, $i ) | |
18 #set $i = $i + 1 | |
19 #end while | |
20 #silent $names.append( $name ) | |
21 ln -s '${input_classification}' '${name}' && | |
22 #end for | |
23 | |
24 @SET_DATABASE_PATH@ && | |
25 | |
26 kraken-mpa-report | |
27 @INPUT_DATABASE@ | |
28 #for $name in $names: | |
29 '${name}' | |
30 #end for | |
31 | |
32 ${show_zeros} | |
33 ${header_line} | |
34 | |
35 > '$output_report' | |
36 ]]></command> | |
37 <inputs> | |
38 <param name="classification" format="tabular" label="Kraken output" multiple="True" type="data" /> | |
39 <param name="show_zeros" argument="--show-zeros" type="boolean" falsevalue="" truevalue="--show-zeros" checked="False" | |
40 label="Display taxa even if they lack a read in any sample" /> | |
41 <param name="header_line" argument="--header-line" type="boolean" truevalue="--header-line" falsevalue="" checked="False" | |
42 label="Display a header line indicating sample IDs"/> | |
43 | |
44 <expand macro="input_database" /> | |
45 </inputs> | |
46 <outputs> | |
47 <data format="tabular" name="output_report" /> | |
48 </outputs> | |
49 <tests> | |
50 <test> | |
51 <param name="classification" value="kraken_mpa_report_input1.tab,kraken_mpa_report_input2.tab" ftype="tabular"/> | |
52 <param name="show_zeros" value="--show-zeros"/> | |
53 <param name="header_line" value="--header-line"/> | |
54 <param name="kraken_database" value="test_db"/> | |
55 | |
56 <output name="output_report" ftype="tabular" file="kraken_mpa_report_test1_output.tab" /> | |
57 </test> | |
58 </tests> | |
59 <help> | |
60 <![CDATA[ | |
61 | |
62 .. class:: warningmark | |
63 | |
64 **Note**: the database used must be the same as the one used in the original Kraken run | |
65 | |
66 ----- | |
67 | |
68 **What is Does** | |
69 | |
70 Kraken-mpa-report summarizes read counts across taxonomic ranks for multiple samples. This is convenient for comparing results across multiple experiments, conditions, locations, etc. | |
71 | |
72 ----- | |
73 | |
74 **Output** | |
75 | |
76 The output of kraken-mpa-report is a tab-delimited table, with one line per taxon. | |
77 | |
78 ]]> | |
79 </help> | |
80 <expand macro="citations" /> | |
81 </tool> |