comparison hsp.xml @ 0:6eafc1e01a8c draft

planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
author iuc
date Sat, 04 Mar 2023 20:28:30 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:6eafc1e01a8c
1 <tool id="picrust2_hsp" name="PICRUSt2 Hidden state prediction (HSP)" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@">
2 <description>to predict gene family abundances</description>
3 <macros>
4 <import>macros.xml</import>
5 </macros>
6 <expand macro="bio_tool"/>
7 <expand macro="requirements"/>
8 <version_command>hsp.py -v</version_command>
9 <command detect_errors="exit_code"><![CDATA[
10 @VAR_ACCESS_FOO@
11 hsp.py
12 --tree '$tree'
13 @HSP_PARAMS@
14 --output '$prediction_output'
15 $check
16 ## not implemented --chunk_size hoping that the default is carefully chosen
17 ## otherwise one might need to compute a "good" value from the number of
18 ## entries in the trait table and the number of available processors
19 -p "\${GALAXY_SLOTS:-1}"
20 ]]></command>
21 <inputs>
22 <param argument="--tree" type="data" format="newick" label="Newick tree with study sequences placed amongst reference sequences" help="The full reference tree containing both study sequences (i.e. ASVs or OTUs) and reference sequences."/>
23 <expand macro="hsp_params" nsti_truevalue="--calculate_NSTI" nsti_checked="false" in_trait_arg="--in_trait" in_trait_multiple="false" in_trait_label_suff="">
24 <token name="add_default_traits">
25 <option value="16S">16S</option>
26 <option value="PHENO">PHENO</option>
27 </token>
28 <token name="custom_traits">
29 <param argument="--observed_trait_table" type="data" format="tabular" label="Customized trait table" help="Describes directly observed traits (e.g. sequenced genomes) in tab-delimited format. "/>
30 </token>
31 <!-- add the seed parameter here (for the emp_prob option) .. param absent in picrust2_pipeline -->
32 <param argument="--seed" type="integer" value="100" label="Seed to make output reproducible" help="is necessary for the emp_prob method"/>
33 </expand>
34 <param argument="--check" type="boolean" truevalue="--check" falsevalue="" checked="false" label="Check input trait table before HSP"/>
35 </inputs>
36 <outputs>
37 <data name="prediction_output" format="tabular"/>
38 </outputs>
39 <tests>
40 <test expect_num_outputs="1">
41 <param name="tree" ftype="newick" value="out_tree.zip"/>
42 <conditional name="trait_input">
43 <param name="selector" value="default"/>
44 <param name="in_trait" value="16S"/>
45 </conditional>
46 <conditional name="hsp_method__options">
47 <param name="hsp_method" value="mp"/>
48 <param name="edge_exponent" value="0.0"/>
49 </conditional>
50 <param name="calculate_NSTI" value="false"/>
51 <param name="check" value="false"/>
52 <output name="prediction_output" ftype="tabular">
53 <assert_contents>
54 <has_text text="sequence"/>
55 <has_n_lines n="38"/>
56 </assert_contents>
57 </output>
58 </test>
59 <test expect_num_outputs="1">
60 <param name="tree" ftype="newick" value="out_tree.zip"/>
61 <conditional name="trait_input">
62 <param name="selector" value="custom"/>
63 <param name="observed_trait_table" value="known_traits.tsv.gz"/>
64 </conditional>
65 <conditional name="hsp_method__options">
66 <param name="hsp_method" value="mp"/>
67 <param name="edge_exponent" value="0.0"/>
68 </conditional>
69 <param name="calculate_NSTI" value="false"/>
70 <param name="check" value="false"/>
71 <output name="prediction_output">
72 <assert_contents>
73 <has_text text="2040502012"/>
74 <has_n_lines n="20005"/>
75 </assert_contents>
76 </output>
77 </test>
78 <test expect_num_outputs="1">
79 <param name="tree" ftype="newick" value="out_tree.zip"/>
80 <conditional name="trait_input">
81 <param name="selector" value="default"/>
82 <param name="in_trait" value="16S"/>
83 </conditional>
84 <conditional name="hsp_method__options">
85 <param name="hsp_method" value="emp_prob"/>
86 <param name="seed" value="100"/>
87 </conditional>
88 <param name="calculate_NSTI" value="false"/>
89 <param name="check" value="false"/>
90 <output name="prediction_output">
91 <assert_contents>
92 <has_text text="sequence"/>
93 <has_n_lines n="38"/>
94 </assert_contents>
95 </output>
96 </test>
97 </tests>
98 <help><![CDATA[
99 @HELP_HEADER@
100
101 Hidden State Prediction (HSP)
102 =============================
103 Performs hidden state prediction on tips in the input tree with unknown trait values. Typically this script is used to predict the copy number of gene families present in the predicted genome for each amplicon sequence variant, given a tree and a set of known trait values. This script outputs a table of trait predictions.
104
105 Note
106 ====
107 Run hidden-state prediction (hsp) to predict gene family abundances.
108
109 Input
110 =====
111 Newick tree with study sequences placed amongst reference sequences.
112
113 Output
114 ======
115 Tabular file containing predicted counts.
116
117 ]]></help>
118 <citations>
119 <citation type="doi">10.1038/s41587-020-0548-6</citation>
120 </citations>
121 </tool>