comparison picrust2_functions_macros.xml @ 0:c5fd7b97c2a4 draft default tip

planemo upload for repository https://github.com/geraldinepascal/FROGS-wrappers/ commit 78ca62b54aee22893d278d9c3d495527be405f8a
author frogs
date Wed, 04 Feb 2026 13:17:34 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:c5fd7b97c2a4
1 <?xml version="1.0"?>
2 <macros>
3 <token name="@PICRUST2_FUNCTIONS_CMD_LINE@">
4 frogsfunc_functions.py
5 @CPUS@
6 --input-biom '$input_biom'
7 --input-fasta '$input_fasta'
8 --input-tree '$input_tree'
9 --input-marker-copy '$input_marker_copy'
10 --marker-type $marker.value
11
12 #if $marker.value == "16S"
13 --functions ${" ".join(str($functions).split(","))}
14 #end if
15
16 #if $marker.value != "16S"
17 --input-function-table $functions.fields.fun
18 #end if
19
20 --max-nsti $max_nsti
21 --min-blast-ident $min_blast_ident
22 --min-blast-cov $min_blast_cov
23 --hsp-method '$hsp_method'
24
25 --html '$html'
26 --output-excluded '$output_excluded'
27 --output-biom '$output_biom'
28 --output-fasta '$output_fasta'
29 --output-asv-copy-norm '$output_asv_norm'
30 --output-weighted-nsti '$output_weighted_nsti'
31 --prefix-function-abund unstrat_abundance
32 </token>
33
34 <xml name="picrust2_functions_inputs">
35 <!-- Files -->
36 <param argument="--input-biom" format="biom1" type="data" label="ASV abundance file (format Biom)" help="ASV biom abundance file containing the PICRUSt2 taxonomic annotation (output of picrust2_placeseq_and_copynumber tool)." />
37 <param argument="--input-fasta" type="data" format="fasta" label="Sequence file (format: FASTA)" help="ASV sequence fasta file." />
38 <param argument="--input-tree" format="nhx,newick" type="data" label="ASV Phylogenetic tree (format nhx,newick)" help="PICRUSt2 phylogenetic tree."/>
39 <param argument="--input-marker-copy" format="tsv" type="data" label="Marker copy number file (format TSV)" help="PICRUSt2 estimation of marker copy number."/>
40
41 <!-- Parameters-->
42 <param name="marker" type="select" multiple="false" display="radio" label="Marker gene" help="Marker gene analysed.">
43 <options from_data_table="frogs_picrust2_functions">
44 <column name='name' index='0' />
45 <column name='value' index='0' />
46 <filter type="unique_value" column='0'/>
47 <validator type="no_options" message="A built-in database is not available" />
48 </options>
49 </param>
50 <param argument="--functions" type="select" label="Target function database" multiple="true" optional="false" help=" 16S : at least 'EC' or/and 'KO' should be chosen (EC for Metacyc pathway analysis or/and KO for KEGG pathway analysis) - others values are optionnal. ITS and 18S : 'EC' only available." >
51 <options from_data_table="frogs_picrust2_functions">
52 <column name='name' index='1' />
53 <column name='value' index='1' />
54 <column name='path' index='2' />
55 <column name='fun' index='3' />
56 <filter type="param_value" ref="marker" column="0" />
57 </options>
58 </param>
59 <param argument="--max-nsti" type="float" label="NSTI cut-off" help="ASV sequence with NSTI above this threshold will be excluded. (default: 2)" value="2" min="0" optional="false" />
60 <param argument="--min-blast-ident" type="float" label="Identity alignment cut-off" help="Percentage identity between the ASV sequence and the closest PICRUSt2 reference sequence. ASV sequence with identity percentage bellow this threshold will be excluded. (default: None)" value="0" min="0" max="1" optional="true" />
61 <param argument="--min-blast-cov" type="float" label="Coverage alignment cut-off" help="Coverage identity of the alignment between the input sequence and the PICRUSt2 reference sequence. ASV sequence with coverage percentage bellow this threshold will be excluded. (default: None)" value="0" min="0" max="1" optional="true" />
62 <param argument="--hsp-method" type="select" label="HSP method" help="Hidden-state prediction method to use: maximum parsimony (mp), empirical probabilities (emp_prob), continuous traits prediction using subtree averaging (subtree_average), continuous traits prediction with phylogentic independent contrast (pic), continuous traits reconstruction using squared-change parsimony (scp) (default: mp)." multiple="false" display="radio">
63 <option value="mp">mp</option>
64 <option value="emp_prob">emp_prob</option>
65 <option value="pic">pic</option>
66 <option value="scp">scp</option>
67 <option value="subtree_average">subtree_average</option>
68 </param>
69 </xml>
70
71 <!-- Test -->
72 <xml name="picrust2_functions_test_input">
73 <param name="input_fasta" value="references/25-frogsfunc_placeseqs.fasta" />
74 <param name="input_biom" value="references/25-frogsfunc_placeseqs.biom" />
75 <param name="input_tree" value="references/25-frogsfunc_placeseqs_tree.nwk" />
76 <param name="input_marker_copy" value="references/25-frogsfunc_placeseqs_marker.tsv" />
77
78 <!-- Parameters -->
79 <param name="marker" value="16S" />
80 <param name="functions" value="EC" />
81 <param name="max_nsti" value="2" />
82 </xml>
83
84 <xml name="picrust2_functions_test_output">
85 <output name="html" file="references/26-frogsfunc_functions_summary.html" compare="diff" lines_diff="0" />
86 <output name="output_excluded" file="references/26-frogsfunc_functions_excluded.tsv" compare="diff" lines_diff="0" />
87 <output name="output_biom" file="references/26-frogsfunc_functions.biom" compare="diff" lines_diff="0" />
88 <output name="output_fasta" file="references/26-frogsfunc_functions.fasta" compare="diff" lines_diff="0" />
89 <output name="output_asv_norm" file="references/26-frogsfunc_functions_marker_norm.tsv" compare="diff" lines_diff="0" />
90 <output name="output_weighted_nsti" file="references/26-frogsfunc_functions_weighted_nsti.tsv" compare="diff" lines_diff="0" />
91 <output name="output_function_ec_abund" file="references/26-frogsfunc_functions_unstrat_EC.tsv" compare="diff" lines_diff="0" />
92 <output name="output_copy_ec_abund" file="references/EC_copynumbers_predicted.tsv" compare="diff" lines_diff="0" />
93 </xml>
94 </macros>