comparison phyloseq_composition_macros.xml @ 0:6507a8d42a4f draft default tip

planemo upload for repository https://github.com/geraldinepascal/FROGS-wrappers/ commit 78ca62b54aee22893d278d9c3d495527be405f8a
author frogs
date Wed, 04 Feb 2026 13:16:44 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:6507a8d42a4f
1 <?xml version="1.0"?>
2 <macros>
3 <token name="@PHYLOSEQ_COMPOSITION_CMD_LINE@">
4 phyloseq_composition.py
5 --phyloseq-rdata '$phyloseq_rdata'
6 --var-exp '$var_exp'
7 --taxa-rank-1 '$taxa_rank_1'
8 --taxa-set-1 '$taxa_set_1'
9 --taxa-rank-2 '$taxa_rank_2'
10 --number-of-taxa $number_of_taxa
11 --html '$html'
12 </token>
13
14 <xml name="phyloseq_composition_inputs">
15 <!-- Files -->
16 <param argument="--phyloseq-rdata" type="data" format="rdata" label="Phyloseq object (.Rdata)" help="Rdata file generated by the FROGS Stat 'Phyloseq Import data' tool."/>
17 <!-- Params -->
18 <param argument="--var-exp" type="text" label="Grouping variable" help="Experimental variable used to group samples (e.g., Treatment, Host type, Site, etc.).">
19 <expand macro="restricted_sanitizer_validator"/>
20 </param>
21 <param argument="--taxa-rank-1" type="text" value="Kingdom" label="Taxonomic level for filtering" help="Taxonomic rank used to filter the dataset (e.g., Kingdom, Phylum, Class, Order, Family, Genus, Species).">
22 <expand macro="restricted_sanitizer_validator"/>
23 </param>
24 <param argument="--taxa-set-1" type="text" value="Bacteria" label="Taxa to retain" help="Taxa to keep at the selected filtering level (e.g., Bacteria at Kingdom level, or Firmicutes at Phylum level). Multiple taxa can be specified, separated by spaces (e.g., Firmicutes Proteobacteria).">
25 <expand macro="restricted_sanitizer_validator"/>
26 </param>
27 <param argument="--taxa-rank-2" type="text" value="Family" label="Taxonomic level for aggregation" help="Taxonomic rank used to aggregate data. It must be lower than the filtering level (e.g., Family when filtering at the Phylum level).">
28 <expand macro="restricted_sanitizer_validator"/>
29 </param>
30 <param argument="--number-of-taxa" type="integer" value="9" min="1" label="Number of most abundant taxa to retain" help="Number of the most abundant taxa to keep (e.g., 9). All remaining taxa are grouped under 'Other'."/>
31 </xml>
32
33 <!-- Test -->
34 <xml name="phyloseq_composition_test_input">
35 <param name="phyloseq_rdata" value="references/16-phylo_import.Rdata"/>
36 <param name="var_exp" value="EnvType"/>
37 <param name="taxa_rank_1" value="Kingdom"/>
38 <param name="taxa_set_1" value="Bacteria"/>
39 <param name="taxa_rank_2" value="Phylum"/>
40 <param name="number_of_taxa" value="9" />
41 </xml>
42
43 <xml name="phyloseq_composition_test_output">
44 <output name="html" count="1">
45 <assert_contents>
46 <!-- HTML size or line diff can't be used as many information about path, os, date are present. -->
47 <!-- Here we test only title, intermediate results and output of last R command -->
48 <has_text text='Stat: Visualise Data Composition' />
49 <has_text text='(phyloseq_composition.py' />
50 <has_text text='v5.1.0)' />
51 <!-- check html report contents -->
52 <has_text_matching expression="Phylum: Actinobacteria.*Sample: BHT0.LOT07.*Abundance: 0.3806484555" />
53 <has_text_matching expression="Phylum: Bacteroidetes.*Sample: BHT0.LOT07.*Abundance: 0.0026380734" />
54 <has_text_matching expression="Phylum: Cyanobacteria.*Sample: BHT0.LOT07.*Abundance: 0.0000000000" />
55 <has_text_matching expression="Phylum: Firmicutes.*Sample: BHT0.LOT07.*Abundance: 0.6024168156" />
56 <has_text_matching expression="Phylum: Fusobacteria.*Sample: BHT0.LOT07.*Abundance: 0.0002552974" />
57 <has_text_matching expression="Phylum: Proteobacteria.*Sample: BHT0.LOT07.*Abundance: 0.0137860608" />
58 <has_text_matching expression="Phylum: Spirochaetes.*Sample: BHT0.LOT07.*Abundance: 0.0000000000" />
59 <has_text_matching expression="Phylum: Tenericutes.*Sample: BHT0.LOT07.*Abundance: 0.0002552974" />
60 <has_text_matching expression="Phylum: Other.*Sample: BHT0.LOT07.*Abundance: 0.0000000000" />
61 <has_text text='─ Session info ───────────────────────────────────────────────────────────────' />
62 </assert_contents>
63 </output>
64 </xml>
65
66 </macros>