From 9f724ff556138e37d1c16f530ec774b4cfefa371 Mon Sep 17 00:00:00 2001 From: paulzierep Date: Thu, 17 Oct 2024 16:02:43 +0200 Subject: [PATCH 1/3] input update and test case --- tools/ampvis2/subset_taxa.xml | 78 ++++++++++++++++--- .../AalborgWWTPs-selected.taxonomy.list | 2 + 2 files changed, 71 insertions(+), 9 deletions(-) create mode 100644 tools/ampvis2/test-data/AalborgWWTPs-selected.taxonomy.list diff --git a/tools/ampvis2/subset_taxa.xml b/tools/ampvis2/subset_taxa.xml index d292a000ff2..691e102d27e 100644 --- a/tools/ampvis2/subset_taxa.xml +++ b/tools/ampvis2/subset_taxa.xml @@ -11,13 +11,26 @@ @@ -25,8 +38,22 @@ - - + + + + + + + + + + + + + + + + @@ -34,10 +61,12 @@ + - + + @@ -48,13 +77,30 @@ - + + + - + + + + + + + + + + + + + + + + @@ -73,12 +119,26 @@ The Galaxy tool calls the `amp_subset_taxa `_ function of the ampvis2 package. +This tool provides two options for specifying the `subset`: + +1. **Provide taxa names matching the taxonomy table**: + The taxonomy subset is done by providing a tax_vector of taxa names which are then matched to the taxonomy table, where all other taxa not matching the "Taxa to keep" (``tax_vector``) are removed. If "Remove" is enabled, then the matching taxa are the ones being removed instead. The taxa names will be matched in all columns of the taxonomy table. +2. **Provide a file of selected taxonomies**: + +In this option, you can upload a file containing the taxa you wish to subset. +The file should contain one taxon name per line. +This option is useful when you have a pre-defined list of taxa stored in a file. +This is useful if you want to use the tool in a workflow or if you automatically generate +a taxonomy selection e.g. with differential abundance tools like MaAsLi2 and you only want to +plot these taxa. + + @HELP_RELATIVE_ABUNDANCES@ Input diff --git a/tools/ampvis2/test-data/AalborgWWTPs-selected.taxonomy.list b/tools/ampvis2/test-data/AalborgWWTPs-selected.taxonomy.list new file mode 100644 index 00000000000..69f08c264fe --- /dev/null +++ b/tools/ampvis2/test-data/AalborgWWTPs-selected.taxonomy.list @@ -0,0 +1,2 @@ +f__Caldilineaceae +p__Elusimicrobia \ No newline at end of file From a9d8463ea98760fc97896a420b5986359f5b5faf Mon Sep 17 00:00:00 2001 From: paulzierep Date: Thu, 17 Oct 2024 16:22:40 +0200 Subject: [PATCH 2/3] fixed test --- tools/ampvis2/subset_taxa.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/ampvis2/subset_taxa.xml b/tools/ampvis2/subset_taxa.xml index 691e102d27e..7ca98c4e946 100644 --- a/tools/ampvis2/subset_taxa.xml +++ b/tools/ampvis2/subset_taxa.xml @@ -85,7 +85,7 @@ - + @@ -100,7 +100,7 @@ - + From cebef80924d3d7bc7a7f8ed3c47dcb36b619f17e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Gr=C3=BCning?= Date: Sat, 19 Oct 2024 22:49:27 +0200 Subject: [PATCH 3/3] bump --- tools/ampvis2/subset_taxa.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/ampvis2/subset_taxa.xml b/tools/ampvis2/subset_taxa.xml index 7ca98c4e946..b6ca9a8ffc1 100644 --- a/tools/ampvis2/subset_taxa.xml +++ b/tools/ampvis2/subset_taxa.xml @@ -1,4 +1,4 @@ - + by taxonomy macros.xml @@ -155,4 +155,4 @@ An ampvis2_rds dataset containing subsetted data and an updated taxonomy list da ]]> - \ No newline at end of file +