Mercurial > repos > iuc > ampvis2_subset_taxa
annotate subset_taxa.xml @ 4:a396cb857098 draft default tip
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/ampvis2 commit e0ad9ce8f508215ec6af69be2682a0faf38415da
| author | iuc |
|---|---|
| date | Mon, 10 Nov 2025 12:56:39 +0000 |
| parents | 91c39622b224 |
| children |
| rev | line source |
|---|---|
|
1
91c39622b224
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit d92935972ac18906154fadf42bd0c008e3c437e2
iuc
parents:
0
diff
changeset
|
1 <tool id="ampvis2_subset_taxa" name="ampvis2 subset data" version="@TOOL_VERSION@+galaxy1" profile="@PROFILE@" license="MIT"> |
|
0
7504a5b81188
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
2 <description>by taxonomy</description> |
|
7504a5b81188
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
3 <macros> |
|
7504a5b81188
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
4 <import>macros.xml</import> |
|
7504a5b81188
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
5 </macros> |
|
7504a5b81188
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
6 <expand macro="header"/> |
|
7504a5b81188
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
7 <command detect_errors="exit_code"><![CDATA[ |
|
7504a5b81188
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
8 Rscript '$rscript' |
|
7504a5b81188
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
9 ]]></command> |
|
7504a5b81188
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
10 <configfiles> |
|
7504a5b81188
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
11 <configfile name="rscript"><![CDATA[ |
|
7504a5b81188
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
12 library(ampvis2, quietly = TRUE) |
|
7504a5b81188
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
13 data <- readRDS("$data") |
|
1
91c39622b224
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit d92935972ac18906154fadf42bd0c008e3c437e2
iuc
parents:
0
diff
changeset
|
14 |
|
91c39622b224
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit d92935972ac18906154fadf42bd0c008e3c437e2
iuc
parents:
0
diff
changeset
|
15 #if $select_param == "option_input_selected_file" |
|
91c39622b224
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit d92935972ac18906154fadf42bd0c008e3c437e2
iuc
parents:
0
diff
changeset
|
16 ## Define the file path (assuming it's a text file with one value per line) |
|
91c39622b224
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit d92935972ac18906154fadf42bd0c008e3c437e2
iuc
parents:
0
diff
changeset
|
17 file_path <- "$selected_taxonomy_list" |
|
91c39622b224
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit d92935972ac18906154fadf42bd0c008e3c437e2
iuc
parents:
0
diff
changeset
|
18 |
|
91c39622b224
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit d92935972ac18906154fadf42bd0c008e3c437e2
iuc
parents:
0
diff
changeset
|
19 ## Read the file into a character vector, where each line represents a value |
|
91c39622b224
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit d92935972ac18906154fadf42bd0c008e3c437e2
iuc
parents:
0
diff
changeset
|
20 lines <- readLines(file_path) |
|
91c39622b224
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit d92935972ac18906154fadf42bd0c008e3c437e2
iuc
parents:
0
diff
changeset
|
21 |
|
91c39622b224
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit d92935972ac18906154fadf42bd0c008e3c437e2
iuc
parents:
0
diff
changeset
|
22 ## Remove any leading or trailing whitespace (if necessary) |
|
91c39622b224
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit d92935972ac18906154fadf42bd0c008e3c437e2
iuc
parents:
0
diff
changeset
|
23 tax_vector <- trimws(lines) |
|
91c39622b224
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit d92935972ac18906154fadf42bd0c008e3c437e2
iuc
parents:
0
diff
changeset
|
24 #else |
|
91c39622b224
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit d92935972ac18906154fadf42bd0c008e3c437e2
iuc
parents:
0
diff
changeset
|
25 tax_vector <- unlist(strsplit("$tax_vector", ",")) |
|
91c39622b224
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit d92935972ac18906154fadf42bd0c008e3c437e2
iuc
parents:
0
diff
changeset
|
26 #end if |
|
91c39622b224
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit d92935972ac18906154fadf42bd0c008e3c437e2
iuc
parents:
0
diff
changeset
|
27 data <- amp_subset_taxa( |
|
0
7504a5b81188
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
28 data, |
|
1
91c39622b224
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit d92935972ac18906154fadf42bd0c008e3c437e2
iuc
parents:
0
diff
changeset
|
29 tax_vector = tax_vector, |
|
0
7504a5b81188
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
30 normalise = $normalise, |
|
7504a5b81188
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
31 remove = $remove |
|
1
91c39622b224
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit d92935972ac18906154fadf42bd0c008e3c437e2
iuc
parents:
0
diff
changeset
|
32 ) |
|
91c39622b224
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit d92935972ac18906154fadf42bd0c008e3c437e2
iuc
parents:
0
diff
changeset
|
33 |
|
0
7504a5b81188
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
34 saveRDS(data, "$ampvis") |
|
7504a5b81188
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
35 @SAVE_TAX_LIST@ |
|
7504a5b81188
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
36 ]]></configfile> |
|
7504a5b81188
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
37 </configfiles> |
|
7504a5b81188
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
38 <inputs> |
|
7504a5b81188
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
39 <expand macro="rds_input_macro"/> |
|
7504a5b81188
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
40 <!-- add validator --> |
|
1
91c39622b224
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit d92935972ac18906154fadf42bd0c008e3c437e2
iuc
parents:
0
diff
changeset
|
41 <conditional name="taxonomy_select_type"> |
|
91c39622b224
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit d92935972ac18906154fadf42bd0c008e3c437e2
iuc
parents:
0
diff
changeset
|
42 <param name="select_param" type="select" label="Choose taxa input option"> |
|
91c39622b224
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit d92935972ac18906154fadf42bd0c008e3c437e2
iuc
parents:
0
diff
changeset
|
43 <option value="option_input_file">Select taxa from taxonomy list file</option> |
|
91c39622b224
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit d92935972ac18906154fadf42bd0c008e3c437e2
iuc
parents:
0
diff
changeset
|
44 <option value="option_input_selected_file">Provide a file with selected taxa</option> |
|
91c39622b224
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit d92935972ac18906154fadf42bd0c008e3c437e2
iuc
parents:
0
diff
changeset
|
45 </param> |
|
91c39622b224
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit d92935972ac18906154fadf42bd0c008e3c437e2
iuc
parents:
0
diff
changeset
|
46 |
|
91c39622b224
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit d92935972ac18906154fadf42bd0c008e3c437e2
iuc
parents:
0
diff
changeset
|
47 <when value="option_input_selected_file"> |
|
91c39622b224
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit d92935972ac18906154fadf42bd0c008e3c437e2
iuc
parents:
0
diff
changeset
|
48 <param name="selected_taxonomy_list" type="data" optional="false" format="tabular" label="Selected taxonomy list" help="A file containing the taxa to subsample. One taxa per line."/> |
|
91c39622b224
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit d92935972ac18906154fadf42bd0c008e3c437e2
iuc
parents:
0
diff
changeset
|
49 </when> |
|
91c39622b224
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit d92935972ac18906154fadf42bd0c008e3c437e2
iuc
parents:
0
diff
changeset
|
50 |
|
91c39622b224
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit d92935972ac18906154fadf42bd0c008e3c437e2
iuc
parents:
0
diff
changeset
|
51 <when value="option_input_file"> |
|
91c39622b224
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit d92935972ac18906154fadf42bd0c008e3c437e2
iuc
parents:
0
diff
changeset
|
52 <param name="taxonomy_list" type="data" optional="false" format="tabular" label="Taxonomy list" help="Generated with ampvis2: load"/> |
|
91c39622b224
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit d92935972ac18906154fadf42bd0c008e3c437e2
iuc
parents:
0
diff
changeset
|
53 <expand macro="taxonomy_select_macro" argument="tax_vector" label="Taxa to keep"/> |
|
91c39622b224
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit d92935972ac18906154fadf42bd0c008e3c437e2
iuc
parents:
0
diff
changeset
|
54 </when> |
|
91c39622b224
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit d92935972ac18906154fadf42bd0c008e3c437e2
iuc
parents:
0
diff
changeset
|
55 </conditional> |
|
91c39622b224
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit d92935972ac18906154fadf42bd0c008e3c437e2
iuc
parents:
0
diff
changeset
|
56 |
|
0
7504a5b81188
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
57 <expand macro="normalise_macro"/> |
|
7504a5b81188
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
58 <param argument="remove" type="boolean" truevalue="TRUE" falsevalue="FALSE" checked="false" label="Remove" help="Selected taxa will be removed instead of being the only ones kept in the data."/> |
|
7504a5b81188
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
59 </inputs> |
|
7504a5b81188
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
60 <outputs> |
|
7504a5b81188
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
61 <data name="ampvis" format="ampvis2"/> |
|
7504a5b81188
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
62 <data name="taxonomy_list_out" format="tabular" label="${tool.name} on ${on_string}: taxonomy list"/> |
|
7504a5b81188
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
63 </outputs> |
|
1
91c39622b224
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit d92935972ac18906154fadf42bd0c008e3c437e2
iuc
parents:
0
diff
changeset
|
64 <!-- Test cases --> |
|
0
7504a5b81188
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
65 <tests> |
|
1
91c39622b224
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit d92935972ac18906154fadf42bd0c008e3c437e2
iuc
parents:
0
diff
changeset
|
66 <!-- Test case for using comma-separated taxonomy list --> |
|
0
7504a5b81188
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
67 <test expect_num_outputs="2"> |
|
7504a5b81188
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
68 <param name="data" value="AalborgWWTPs.rds" ftype="ampvis2"/> |
|
1
91c39622b224
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit d92935972ac18906154fadf42bd0c008e3c437e2
iuc
parents:
0
diff
changeset
|
69 <param name="select_param" value="option_input_file"/> |
|
0
7504a5b81188
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
70 <param name="taxonomy_list" value="AalborgWWTPs-taxonomy.list"/> |
|
7504a5b81188
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
71 <param name="tax_vector" value="f__Caldilineaceae,p__Elusimicrobia"/> |
|
7504a5b81188
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
72 <output name="ampvis" value="AalborgWWTPs-subset_taxa.rds" ftype="ampvis2" compare="sim_size"/> |
|
7504a5b81188
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
73 <output name="taxonomy_list_out" ftype="tabular"> |
|
7504a5b81188
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
74 <assert_contents> |
|
7504a5b81188
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
75 <has_text text="f__Caldilineaceae"/> |
|
7504a5b81188
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
76 <has_text text="p__Elusimicrobia"/> |
|
7504a5b81188
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
77 </assert_contents> |
|
7504a5b81188
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
78 </output> |
|
7504a5b81188
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
79 </test> |
|
1
91c39622b224
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit d92935972ac18906154fadf42bd0c008e3c437e2
iuc
parents:
0
diff
changeset
|
80 |
|
91c39622b224
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit d92935972ac18906154fadf42bd0c008e3c437e2
iuc
parents:
0
diff
changeset
|
81 <!-- Test case for using comma-separated taxonomy list and remove=true --> |
|
0
7504a5b81188
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
82 <test expect_num_outputs="2"> |
|
7504a5b81188
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
83 <param name="data" value="AalborgWWTPs.rds" ftype="ampvis2"/> |
|
1
91c39622b224
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit d92935972ac18906154fadf42bd0c008e3c437e2
iuc
parents:
0
diff
changeset
|
84 <param name="select_param" value="option_input_file"/> |
|
0
7504a5b81188
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
85 <param name="taxonomy_list" value="AalborgWWTPs-taxonomy.list"/> |
|
7504a5b81188
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
86 <param name="tax_vector" value="f__Caldilineaceae,p__Elusimicrobia"/> |
|
7504a5b81188
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
87 <param name="remove" value="true"/> |
|
7504a5b81188
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
88 <output name="ampvis" value="AalborgWWTPs-subset_taxa.rds" ftype="ampvis2" compare="sim_size"/> |
|
7504a5b81188
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
89 <output name="taxonomy_list_out" ftype="tabular"> |
|
7504a5b81188
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
90 <assert_contents> |
|
7504a5b81188
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
91 <not_has_text text="f__Caldilineaceae"/> |
|
7504a5b81188
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
92 <not_has_text text="p__Elusimicrobia"/> |
|
7504a5b81188
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
93 </assert_contents> |
|
7504a5b81188
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
94 </output> |
|
7504a5b81188
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
95 </test> |
|
1
91c39622b224
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit d92935972ac18906154fadf42bd0c008e3c437e2
iuc
parents:
0
diff
changeset
|
96 |
|
91c39622b224
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit d92935972ac18906154fadf42bd0c008e3c437e2
iuc
parents:
0
diff
changeset
|
97 <!-- Test case for using selected taxonomy list from a file --> |
|
91c39622b224
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit d92935972ac18906154fadf42bd0c008e3c437e2
iuc
parents:
0
diff
changeset
|
98 <test expect_num_outputs="2"> |
|
91c39622b224
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit d92935972ac18906154fadf42bd0c008e3c437e2
iuc
parents:
0
diff
changeset
|
99 <param name="data" value="AalborgWWTPs.rds" ftype="ampvis2"/> |
|
91c39622b224
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit d92935972ac18906154fadf42bd0c008e3c437e2
iuc
parents:
0
diff
changeset
|
100 <param name="select_param" value="option_input_selected_file"/> |
|
91c39622b224
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit d92935972ac18906154fadf42bd0c008e3c437e2
iuc
parents:
0
diff
changeset
|
101 <param name="selected_taxonomy_list" value="AalborgWWTPs-selected.taxonomy.list"/> |
|
91c39622b224
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit d92935972ac18906154fadf42bd0c008e3c437e2
iuc
parents:
0
diff
changeset
|
102 <param name="remove" value="true"/> |
|
91c39622b224
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit d92935972ac18906154fadf42bd0c008e3c437e2
iuc
parents:
0
diff
changeset
|
103 <output name="ampvis" value="AalborgWWTPs-subset_taxa.rds" ftype="ampvis2" compare="sim_size"/> |
|
91c39622b224
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit d92935972ac18906154fadf42bd0c008e3c437e2
iuc
parents:
0
diff
changeset
|
104 <output name="taxonomy_list_out" ftype="tabular"> |
|
91c39622b224
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit d92935972ac18906154fadf42bd0c008e3c437e2
iuc
parents:
0
diff
changeset
|
105 <assert_contents> |
|
91c39622b224
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit d92935972ac18906154fadf42bd0c008e3c437e2
iuc
parents:
0
diff
changeset
|
106 <not_has_text text="f__Caldilineaceae"/> |
|
91c39622b224
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit d92935972ac18906154fadf42bd0c008e3c437e2
iuc
parents:
0
diff
changeset
|
107 <not_has_text text="p__Elusimicrobia"/> |
|
91c39622b224
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit d92935972ac18906154fadf42bd0c008e3c437e2
iuc
parents:
0
diff
changeset
|
108 </assert_contents> |
|
91c39622b224
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit d92935972ac18906154fadf42bd0c008e3c437e2
iuc
parents:
0
diff
changeset
|
109 </output> |
|
91c39622b224
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit d92935972ac18906154fadf42bd0c008e3c437e2
iuc
parents:
0
diff
changeset
|
110 </test> |
|
0
7504a5b81188
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
111 </tests> |
|
7504a5b81188
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
112 <help><![CDATA[ |
|
7504a5b81188
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
113 What it does |
|
7504a5b81188
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
114 ============ |
|
7504a5b81188
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
115 |
|
7504a5b81188
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
116 Subsets the data in ampvis2 objects based on taxonomy and returns the subsetted object. |
|
7504a5b81188
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
117 |
|
7504a5b81188
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
118 The Galaxy tool calls the `amp_subset_taxa |
|
7504a5b81188
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
119 <https://kasperskytte.github.io/ampvis2/reference/amp_filter_taxa.html>`_ function |
|
7504a5b81188
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
120 of the ampvis2 package. |
|
7504a5b81188
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
121 |
|
1
91c39622b224
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit d92935972ac18906154fadf42bd0c008e3c437e2
iuc
parents:
0
diff
changeset
|
122 This tool provides two options for specifying the `subset`: |
|
91c39622b224
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit d92935972ac18906154fadf42bd0c008e3c437e2
iuc
parents:
0
diff
changeset
|
123 |
|
91c39622b224
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit d92935972ac18906154fadf42bd0c008e3c437e2
iuc
parents:
0
diff
changeset
|
124 1. **Provide taxa names matching the taxonomy table**: |
|
91c39622b224
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit d92935972ac18906154fadf42bd0c008e3c437e2
iuc
parents:
0
diff
changeset
|
125 |
|
0
7504a5b81188
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
126 The taxonomy subset is done by providing a tax_vector of taxa names which are |
|
7504a5b81188
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
127 then matched to the taxonomy table, where all other taxa not matching the |
|
7504a5b81188
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
128 "Taxa to keep" (``tax_vector``) are removed. If "Remove" is enabled, then the |
|
7504a5b81188
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
129 matching taxa are the ones being removed instead. The taxa names |
|
7504a5b81188
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
130 will be matched in all columns of the taxonomy table. |
|
7504a5b81188
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
131 |
|
1
91c39622b224
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit d92935972ac18906154fadf42bd0c008e3c437e2
iuc
parents:
0
diff
changeset
|
132 2. **Provide a file of selected taxonomies**: |
|
91c39622b224
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit d92935972ac18906154fadf42bd0c008e3c437e2
iuc
parents:
0
diff
changeset
|
133 |
|
91c39622b224
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit d92935972ac18906154fadf42bd0c008e3c437e2
iuc
parents:
0
diff
changeset
|
134 In this option, you can upload a file containing the taxa you wish to subset. |
|
91c39622b224
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit d92935972ac18906154fadf42bd0c008e3c437e2
iuc
parents:
0
diff
changeset
|
135 The file should contain one taxon name per line. |
|
91c39622b224
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit d92935972ac18906154fadf42bd0c008e3c437e2
iuc
parents:
0
diff
changeset
|
136 This option is useful when you have a pre-defined list of taxa stored in a file. |
|
91c39622b224
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit d92935972ac18906154fadf42bd0c008e3c437e2
iuc
parents:
0
diff
changeset
|
137 This is useful if you want to use the tool in a workflow or if you automatically generate |
|
91c39622b224
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit d92935972ac18906154fadf42bd0c008e3c437e2
iuc
parents:
0
diff
changeset
|
138 a taxonomy selection e.g. with differential abundance tools like MaAsLi2 and you only want to |
|
91c39622b224
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit d92935972ac18906154fadf42bd0c008e3c437e2
iuc
parents:
0
diff
changeset
|
139 plot these taxa. |
|
91c39622b224
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit d92935972ac18906154fadf42bd0c008e3c437e2
iuc
parents:
0
diff
changeset
|
140 |
|
91c39622b224
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit d92935972ac18906154fadf42bd0c008e3c437e2
iuc
parents:
0
diff
changeset
|
141 |
|
0
7504a5b81188
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
142 @HELP_RELATIVE_ABUNDANCES@ |
|
7504a5b81188
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
143 |
|
7504a5b81188
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
144 Input |
|
7504a5b81188
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
145 ===== |
|
7504a5b81188
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
146 |
|
7504a5b81188
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
147 @HELP_RDS_INPUT@ |
|
7504a5b81188
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
148 |
|
7504a5b81188
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
149 @HELP_METADATA_LIST_INPUT@ |
|
7504a5b81188
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
150 |
|
7504a5b81188
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
151 Output |
|
7504a5b81188
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
152 ====== |
|
7504a5b81188
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
153 |
|
7504a5b81188
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
154 An ampvis2_rds dataset containing subsetted data and an updated taxonomy list dataset. |
|
7504a5b81188
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
155 |
|
7504a5b81188
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
156 ]]></help> |
|
7504a5b81188
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit 9ed0c3078be166bd22136771f517ae91a5198ecf
iuc
parents:
diff
changeset
|
157 <expand macro="citations"/> |
|
1
91c39622b224
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ampvis2 commit d92935972ac18906154fadf42bd0c008e3c437e2
iuc
parents:
0
diff
changeset
|
158 </tool> |
