Mercurial > repos > iuc > picrust2_shuffle_predictions
annotate shuffle_predictions.xml @ 1:075a2d34e8db draft default tip
planemo upload for repository https://github.com/picrust/picrust2 commit f8c32a316582ff102c9b7edf3817000691ef9eea
| author | iuc |
|---|---|
| date | Tue, 13 Aug 2024 12:09:58 +0000 |
| parents | c13a42f51745 |
| children |
| rev | line source |
|---|---|
|
0
c13a42f51745
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@"> |
|
c13a42f51745
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
2 <description>for a specified number of replicates</description> |
|
c13a42f51745
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
3 <macros> |
|
c13a42f51745
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
4 <import>macros.xml</import> |
|
c13a42f51745
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
5 </macros> |
|
c13a42f51745
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
6 <expand macro="bio_tool"/> |
|
c13a42f51745
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
7 <expand macro="requirements"/> |
|
c13a42f51745
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
8 <version_command>shuffle_predictions.py -v</version_command> |
|
c13a42f51745
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
9 <command detect_errors="exit_code"><![CDATA[ |
|
c13a42f51745
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
10 ln -s '$input' predicted.tsv && |
|
c13a42f51745
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
11 shuffle_predictions.py |
|
c13a42f51745
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
12 --input predicted.tsv |
|
c13a42f51745
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
13 --outdir predicted_shuffled |
|
c13a42f51745
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
14 --rep $rep |
|
c13a42f51745
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
15 #if str($seed) != '' |
|
c13a42f51745
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
16 --seed $seed |
|
c13a42f51745
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
17 #end if |
|
c13a42f51745
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
18 ]]></command> |
|
c13a42f51745
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
19 <inputs> |
|
c13a42f51745
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"/> |
|
c13a42f51745
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"/> |
|
c13a42f51745
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"/> |
|
c13a42f51745
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
23 </inputs> |
|
c13a42f51745
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
24 <outputs> |
|
c13a42f51745
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
25 <collection name="predicted_shuffled" type="list"> |
|
c13a42f51745
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"/> |
|
c13a42f51745
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
27 </collection> |
|
c13a42f51745
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
28 </outputs> |
|
c13a42f51745
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
29 <tests> |
|
c13a42f51745
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
30 <test expect_num_outputs="1"> |
|
c13a42f51745
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
31 <param name="input" value="EC_predicted.tsv.gz"/> |
|
c13a42f51745
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
32 <param name="rep" value="5"/> |
|
c13a42f51745
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
33 <param name="seed" value="131"/> |
|
c13a42f51745
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"> |
|
c13a42f51745
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
35 <element name="predicted_shuf1.tsv" ftype="tabular"> |
|
c13a42f51745
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
36 <assert_contents> |
|
c13a42f51745
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
37 <has_text text="8db33d54e5184b0f448ae140f793368a"/> |
|
c13a42f51745
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
38 <has_n_lines n="38"/> |
|
c13a42f51745
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
39 </assert_contents> |
|
c13a42f51745
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
40 </element> |
|
c13a42f51745
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
41 <element name="predicted_shuf2.tsv" ftype="tabular"> |
|
c13a42f51745
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
42 <assert_contents> |
|
c13a42f51745
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
43 <has_text text="763af2e6cfd1d573893fa6d28aafc4b5"/> |
|
c13a42f51745
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
44 <has_n_lines n="38"/> |
|
c13a42f51745
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
45 </assert_contents> |
|
c13a42f51745
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
46 </element> |
|
c13a42f51745
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
47 <element name="predicted_shuf3.tsv" ftype="tabular"> |
|
c13a42f51745
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
48 <assert_contents> |
|
c13a42f51745
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
49 <has_text text="f5b23f626e3f2d2d1213f83c6de3e385"/> |
|
c13a42f51745
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
50 <has_n_lines n="38"/> |
|
c13a42f51745
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
51 </assert_contents> |
|
c13a42f51745
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
52 </element> |
|
c13a42f51745
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
53 <element name="predicted_shuf4.tsv" ftype="tabular"> |
|
c13a42f51745
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
54 <assert_contents> |
|
c13a42f51745
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
55 <has_text text="ff33233ffebbe6e3720af8bba7e89f08"/> |
|
c13a42f51745
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
56 <has_n_lines n="38"/> |
|
c13a42f51745
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
57 </assert_contents> |
|
c13a42f51745
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
58 </element> |
|
c13a42f51745
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
59 <element name="predicted_shuf5.tsv" ftype="tabular"> |
|
c13a42f51745
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
60 <assert_contents> |
|
c13a42f51745
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
61 <has_text text="691eeed271e420c8e7a91d5ea0cf5431"/> |
|
c13a42f51745
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
62 <has_n_lines n="38"/> |
|
c13a42f51745
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
63 </assert_contents> |
|
c13a42f51745
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
64 </element> |
|
c13a42f51745
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
65 </output_collection> |
|
c13a42f51745
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
66 </test> |
|
c13a42f51745
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
67 </tests> |
|
c13a42f51745
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
68 <help><![CDATA[ |
|
c13a42f51745
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
69 @HELP_HEADER@ |
|
c13a42f51745
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
70 |
|
c13a42f51745
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
71 Generating shuffled predictions |
|
c13a42f51745
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
72 =============================== |
|
c13a42f51745
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. |
|
c13a42f51745
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
74 |
|
c13a42f51745
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
75 Note |
|
c13a42f51745
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
76 ==== |
|
c13a42f51745
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. |
|
c13a42f51745
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
78 |
|
c13a42f51745
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
79 Input |
|
c13a42f51745
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
80 ===== |
|
c13a42f51745
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
81 Prediction table |
|
c13a42f51745
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
82 |
|
c13a42f51745
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
83 Output |
|
c13a42f51745
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
84 ====== |
|
c13a42f51745
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
85 Predicted shuffled table |
|
c13a42f51745
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
86 |
|
c13a42f51745
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
87 ]]></help> |
|
c13a42f51745
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
88 <citations> |
|
c13a42f51745
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> |
|
c13a42f51745
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
90 </citations> |
|
c13a42f51745
planemo upload for repository https://github.com/picrust/picrust2 commit 972784d909912af20cd213fc56830fee79d83ca6
iuc
parents:
diff
changeset
|
91 </tool> |
