Mercurial > repos > iuc > picrust2_shuffle_predictions
annotate shuffle_predictions.xml @ 1:677f3c8db525 draft default tip
planemo upload for repository https://github.com/picrust/picrust2 commit f8c32a316582ff102c9b7edf3817000691ef9eea
author | iuc |
---|---|
date | Tue, 13 Aug 2024 12:11:20 +0000 |
parents | 881f2faa5fe7 |
children |
rev | line source |
---|---|
0
881f2faa5fe7
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
1 <tool id="picrust2_shuffle_predictions" name="PICRUSt2 Generation of shuffled predictions" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@"> |
881f2faa5fe7
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
2 <description>for a specified number of replicates</description> |
881f2faa5fe7
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
3 <macros> |
881f2faa5fe7
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
4 <import>macros.xml</import> |
881f2faa5fe7
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
5 </macros> |
881f2faa5fe7
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
6 <expand macro="bio_tool"/> |
881f2faa5fe7
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
7 <expand macro="requirements"/> |
881f2faa5fe7
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
8 <version_command>shuffle_predictions.py -v</version_command> |
881f2faa5fe7
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
9 <command detect_errors="exit_code"><![CDATA[ |
881f2faa5fe7
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
10 ln -s '$input' predicted.tsv && |
881f2faa5fe7
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
11 shuffle_predictions.py |
881f2faa5fe7
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
12 --input predicted.tsv |
881f2faa5fe7
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
13 --outdir predicted_shuffled |
881f2faa5fe7
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
14 --rep $rep |
881f2faa5fe7
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
15 #if str($seed) != '' |
881f2faa5fe7
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
16 --seed $seed |
881f2faa5fe7
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
17 #end if |
881f2faa5fe7
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
18 ]]></command> |
881f2faa5fe7
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
19 <inputs> |
881f2faa5fe7
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
20 <param argument="--input" type="data" format="tabular" label="Input prediction table"/> |
881f2faa5fe7
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
21 <param argument="--rep" type="integer" min="1" value="1" label="Number of shuffled replicates to create"/> |
881f2faa5fe7
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
22 <param argument="--seed" type="integer" optional="true" label="Random seed" help="Set this for reproducible shufflings"/> |
881f2faa5fe7
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
23 </inputs> |
881f2faa5fe7
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
24 <outputs> |
881f2faa5fe7
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
25 <collection name="predicted_shuffled" type="list"> |
881f2faa5fe7
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
26 <discover_datasets pattern="(?P<designation>.+)" directory="predicted_shuffled/" format="tabular"/> |
881f2faa5fe7
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
27 </collection> |
881f2faa5fe7
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
28 </outputs> |
881f2faa5fe7
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
29 <tests> |
881f2faa5fe7
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
30 <test expect_num_outputs="1"> |
881f2faa5fe7
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
31 <param name="input" value="EC_predicted.tsv.gz"/> |
881f2faa5fe7
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
32 <param name="rep" value="5"/> |
881f2faa5fe7
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
33 <param name="seed" value="131"/> |
881f2faa5fe7
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
34 <output_collection name="predicted_shuffled" type="list" count="5"> |
881f2faa5fe7
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
35 <element name="predicted_shuf1.tsv" ftype="tabular"> |
881f2faa5fe7
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
36 <assert_contents> |
881f2faa5fe7
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
37 <has_text text="8db33d54e5184b0f448ae140f793368a"/> |
881f2faa5fe7
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
38 <has_n_lines n="38"/> |
881f2faa5fe7
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
39 </assert_contents> |
881f2faa5fe7
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
40 </element> |
881f2faa5fe7
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
41 <element name="predicted_shuf2.tsv" ftype="tabular"> |
881f2faa5fe7
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
42 <assert_contents> |
881f2faa5fe7
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
43 <has_text text="763af2e6cfd1d573893fa6d28aafc4b5"/> |
881f2faa5fe7
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
44 <has_n_lines n="38"/> |
881f2faa5fe7
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
45 </assert_contents> |
881f2faa5fe7
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
46 </element> |
881f2faa5fe7
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
47 <element name="predicted_shuf3.tsv" ftype="tabular"> |
881f2faa5fe7
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
48 <assert_contents> |
881f2faa5fe7
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
49 <has_text text="f5b23f626e3f2d2d1213f83c6de3e385"/> |
881f2faa5fe7
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
50 <has_n_lines n="38"/> |
881f2faa5fe7
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
51 </assert_contents> |
881f2faa5fe7
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
52 </element> |
881f2faa5fe7
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
53 <element name="predicted_shuf4.tsv" ftype="tabular"> |
881f2faa5fe7
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
54 <assert_contents> |
881f2faa5fe7
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
55 <has_text text="ff33233ffebbe6e3720af8bba7e89f08"/> |
881f2faa5fe7
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
56 <has_n_lines n="38"/> |
881f2faa5fe7
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
57 </assert_contents> |
881f2faa5fe7
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
58 </element> |
881f2faa5fe7
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
59 <element name="predicted_shuf5.tsv" ftype="tabular"> |
881f2faa5fe7
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
60 <assert_contents> |
881f2faa5fe7
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
61 <has_text text="691eeed271e420c8e7a91d5ea0cf5431"/> |
881f2faa5fe7
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
62 <has_n_lines n="38"/> |
881f2faa5fe7
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
63 </assert_contents> |
881f2faa5fe7
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
64 </element> |
881f2faa5fe7
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
65 </output_collection> |
881f2faa5fe7
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
66 </test> |
881f2faa5fe7
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
67 </tests> |
881f2faa5fe7
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
68 <help><![CDATA[ |
881f2faa5fe7
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
69 @HELP_HEADER@ |
881f2faa5fe7
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
70 |
881f2faa5fe7
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
71 Generating shuffled predictions |
881f2faa5fe7
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
72 =============================== |
881f2faa5fe7
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
73 Shuffles sequence ids of prediction table for a specified number of replicates. |
881f2faa5fe7
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
74 |
881f2faa5fe7
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
75 Note |
881f2faa5fe7
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
76 ==== |
881f2faa5fe7
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
77 This means that the prediction table is not totally scrambled across all colunmns: each predicted genome is still the same, but the sequence ids (e.g. the ASV id) linked with each predicted genome is randomized. |
881f2faa5fe7
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
78 |
881f2faa5fe7
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
79 Input |
881f2faa5fe7
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
80 ===== |
881f2faa5fe7
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
81 Prediction table |
881f2faa5fe7
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
82 |
881f2faa5fe7
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
83 Output |
881f2faa5fe7
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
84 ====== |
881f2faa5fe7
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
85 Predicted shuffled table |
881f2faa5fe7
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
86 |
881f2faa5fe7
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
87 ]]></help> |
881f2faa5fe7
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
88 <citations> |
881f2faa5fe7
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
89 <citation type="doi">10.1038/s41587-020-0548-6</citation> |
881f2faa5fe7
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
90 </citations> |
881f2faa5fe7
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
91 </tool> |