From c31c3842f525cd773a333614b4047e22b3f58d64 Mon Sep 17 00:00:00 2001 From: xec-cm <70643921+xec-cm@users.noreply.github.com> Date: Fri, 5 Apr 2024 14:38:07 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20Microbia?= =?UTF-8?q?lGenomics-IrsicaixaOrg/dar@6e7e357c493b8bacf0621d227e0950c106ac?= =?UTF-8?q?be23=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 404.html | 2 +- CODE_OF_CONDUCT.html | 2 +- CONTRIBUTING.html | 2 +- LICENSE-text.html | 2 +- LICENSE.html | 2 +- articles/article.html | 6 +++--- articles/dar.html | 4 ++-- articles/data_import.html | 4 ++-- articles/filtering_subsetting.html | 4 ++-- articles/import_export_recipes.html | 4 ++-- articles/index.html | 2 +- authors.html | 6 +++--- index.html | 2 +- news/index.html | 9 ++++++++- pkgdown.yml | 2 +- reference/PrepRecipe-class.html | 2 +- reference/Recipe-class.html | 2 +- reference/abundance_plt.html | 2 +- reference/add_step.html | 2 +- reference/add_tax.html | 2 +- reference/add_var.html | 2 +- reference/bake.html | 2 +- reference/contains_rarefaction.html | 2 +- reference/cool.html | 2 +- reference/corr_heatmap.html | 6 +++--- reference/dar-package.html | 2 +- reference/exclusion_plt.html | 2 +- reference/export_steps.html | 2 +- reference/find_intersections.html | 2 +- reference/get_comparisons.html | 2 +- reference/get_phy.html | 2 +- reference/get_tax.html | 2 +- reference/get_var.html | 2 +- reference/grapes-greater-than-grapes.html | 2 +- reference/import_steps.html | 2 +- reference/index.html | 2 +- reference/intersection_df.html | 2 +- reference/intersection_plt.html | 2 +- reference/metaHIV_phy.html | 2 +- reference/mutual_plt.html | 2 +- reference/otu_table.html | 2 +- reference/overlap_df.html | 2 +- reference/pastry_df.html | 2 +- reference/phy_qc.html | 2 +- reference/prep.html | 2 +- reference/prep_recipe.html | 2 +- reference/rand_id.html | 2 +- reference/read_data.html | 2 +- reference/recipe.html | 2 +- reference/recipes_pkg_check.html | 2 +- reference/required_deps.html | 2 +- reference/sample_data.html | 2 +- reference/step.html | 2 +- reference/step_aldex.html | 2 +- reference/step_ancom.html | 2 +- reference/step_corncob.html | 2 +- reference/step_deseq.html | 2 +- reference/step_filter_by_abundance.html | 2 +- reference/step_filter_by_prevalence.html | 2 +- reference/step_filter_by_rarity.html | 2 +- reference/step_filter_by_variance.html | 2 +- reference/step_filter_taxa.html | 2 +- reference/step_lefse.html | 2 +- reference/step_maaslin.html | 2 +- reference/step_metagenomeseq.html | 2 +- reference/step_rarefaction.html | 2 +- reference/step_subset_taxa.html | 2 +- reference/step_to_expr.html | 2 +- reference/step_wilcox.html | 2 +- reference/steps_ids.html | 2 +- reference/tax_table.html | 2 +- reference/test_prep_rec.html | 2 +- reference/test_rec.html | 2 +- reference/tidyeval.html | 8 ++++---- reference/to_tibble.html | 2 +- reference/use_rarefy.html | 2 +- reference/zero_otu.html | 2 +- search.json | 2 +- 78 files changed, 98 insertions(+), 91 deletions(-) diff --git a/404.html b/404.html index c8abdb5..f87d0ee 100644 --- a/404.html +++ b/404.html @@ -31,7 +31,7 @@ dar - 0.99.9 + 0.99.10 diff --git a/CODE_OF_CONDUCT.html b/CODE_OF_CONDUCT.html index 8960111..e4a7eb0 100644 --- a/CODE_OF_CONDUCT.html +++ b/CODE_OF_CONDUCT.html @@ -10,7 +10,7 @@ dar - 0.99.9 + 0.99.10 diff --git a/CONTRIBUTING.html b/CONTRIBUTING.html index 56a78df..210c1d5 100644 --- a/CONTRIBUTING.html +++ b/CONTRIBUTING.html @@ -10,7 +10,7 @@ dar - 0.99.9 + 0.99.10 diff --git a/LICENSE-text.html b/LICENSE-text.html index e43fe36..928bf95 100644 --- a/LICENSE-text.html +++ b/LICENSE-text.html @@ -10,7 +10,7 @@ dar - 0.99.9 + 0.99.10 diff --git a/LICENSE.html b/LICENSE.html index 150023d..f4a551c 100644 --- a/LICENSE.html +++ b/LICENSE.html @@ -10,7 +10,7 @@ dar - 0.99.9 + 0.99.10 diff --git a/articles/article.html b/articles/article.html index 0685278..7ed2f4a 100644 --- a/articles/article.html +++ b/articles/article.html @@ -33,7 +33,7 @@ dar - 0.99.9 + 0.99.10 @@ -379,7 +379,7 @@ Exploration for consensu corr_heat <- corr_heatmap(da_results, font_size = 10) corr_heat -Finally, dar also includes the function +Finally, dar also includes the function mutual_plt(), which plots the number of differential abundant features mutually found by a defined number of methods, colored by the differential abundance direction and separated by comparison. The @@ -513,7 +513,7 @@ Session info#> colorspace 2.1-0 2023-01-23 [1] CRAN (R 4.4.0) #> crayon 1.5.2 2022-09-29 [2] CRAN (R 4.5.0) #> crosstalk 1.2.1 2023-11-23 [1] CRAN (R 4.4.0) -#> dar * 0.99.9 2024-04-05 [1] Bioconductor +#> dar * 0.99.10 2024-04-05 [1] Bioconductor #> data.table 1.15.4 2024-03-30 [1] CRAN (R 4.5.0) #> dendextend 1.17.1 2023-03-25 [1] CRAN (R 4.4.0) #> desc 1.4.3 2023-12-10 [2] CRAN (R 4.5.0) diff --git a/articles/dar.html b/articles/dar.html index 1e1f705..a5fa15a 100644 --- a/articles/dar.html +++ b/articles/dar.html @@ -37,7 +37,7 @@ dar - 0.99.9 + 0.99.10 @@ -352,7 +352,7 @@ Session info#> codetools 0.2-20 2024-03-31 [3] CRAN (R 4.5.0) #> colorspace 2.1-0 2023-01-23 [1] CRAN (R 4.4.0) #> crayon 1.5.2 2022-09-29 [2] CRAN (R 4.5.0) -#> dar * 0.99.9 2024-04-05 [1] Bioconductor +#> dar * 0.99.10 2024-04-05 [1] Bioconductor #> data.table 1.15.4 2024-03-30 [1] CRAN (R 4.5.0) #> dendextend 1.17.1 2023-03-25 [1] CRAN (R 4.4.0) #> desc 1.4.3 2023-12-10 [2] CRAN (R 4.5.0) diff --git a/articles/data_import.html b/articles/data_import.html index 97c917b..1d6830c 100644 --- a/articles/data_import.html +++ b/articles/data_import.html @@ -33,7 +33,7 @@ dar - 0.99.9 + 0.99.10 @@ -635,7 +635,7 @@ Session info#> codetools 0.2-20 2024-03-31 [3] CRAN (R 4.5.0) #> colorspace 2.1-0 2023-01-23 [1] CRAN (R 4.4.0) #> crayon 1.5.2 2022-09-29 [2] CRAN (R 4.5.0) -#> dar 0.99.9 2024-04-05 [1] Bioconductor +#> dar 0.99.10 2024-04-05 [1] Bioconductor #> data.table 1.15.4 2024-03-30 [1] CRAN (R 4.5.0) #> DBI 1.2.2 2024-02-16 [1] CRAN (R 4.5.0) #> DECIPHER 2.31.4 2024-03-29 [1] Bioconductor 3.19 (R 4.5.0) diff --git a/articles/filtering_subsetting.html b/articles/filtering_subsetting.html index 94e4e4e..808ad92 100644 --- a/articles/filtering_subsetting.html +++ b/articles/filtering_subsetting.html @@ -37,7 +37,7 @@ dar - 0.99.9 + 0.99.10 @@ -246,7 +246,7 @@ Session info#> codetools 0.2-20 2024-03-31 [3] CRAN (R 4.5.0) #> colorspace 2.1-0 2023-01-23 [1] CRAN (R 4.4.0) #> crayon 1.5.2 2022-09-29 [2] CRAN (R 4.5.0) -#> dar * 0.99.9 2024-04-05 [1] Bioconductor +#> dar * 0.99.10 2024-04-05 [1] Bioconductor #> data.table 1.15.4 2024-03-30 [1] CRAN (R 4.5.0) #> dendextend 1.17.1 2023-03-25 [1] CRAN (R 4.4.0) #> desc 1.4.3 2023-12-10 [2] CRAN (R 4.5.0) diff --git a/articles/import_export_recipes.html b/articles/import_export_recipes.html index 018d9b3..26df631 100644 --- a/articles/import_export_recipes.html +++ b/articles/import_export_recipes.html @@ -33,7 +33,7 @@ dar - 0.99.9 + 0.99.10 @@ -268,7 +268,7 @@ Session info#> codetools 0.2-20 2024-03-31 [3] CRAN (R 4.5.0) #> colorspace 2.1-0 2023-01-23 [1] CRAN (R 4.4.0) #> crayon 1.5.2 2022-09-29 [2] CRAN (R 4.5.0) -#> dar * 0.99.9 2024-04-05 [1] Bioconductor +#> dar * 0.99.10 2024-04-05 [1] Bioconductor #> data.table 1.15.4 2024-03-30 [1] CRAN (R 4.5.0) #> DBI 1.2.2 2024-02-16 [1] CRAN (R 4.5.0) #> dendextend 1.17.1 2023-03-25 [1] CRAN (R 4.4.0) diff --git a/articles/index.html b/articles/index.html index 9b09729..c07c993 100644 --- a/articles/index.html +++ b/articles/index.html @@ -10,7 +10,7 @@ dar - 0.99.9 + 0.99.10 diff --git a/authors.html b/authors.html index 71a05b3..fa766fb 100644 --- a/authors.html +++ b/authors.html @@ -10,7 +10,7 @@ dar - 0.99.9 + 0.99.10 @@ -70,14 +70,14 @@ Citation Catala-Moll F (2024). dar: Differential Abundance Analysis by Consensus. -R package version 0.99.9, +R package version 0.99.10, https://microbialgenomics-irsicaixaorg.github.io/dar/, https://github.com/MicrobialGenomics-IrsicaixaOrg/dar. @Manual{, title = {dar: Differential Abundance Analysis by Consensus}, author = {Francesc Catala-Moll}, year = {2024}, - note = {R package version 0.99.9, + note = {R package version 0.99.10, https://microbialgenomics-irsicaixaorg.github.io/dar/}, url = {https://github.com/MicrobialGenomics-IrsicaixaOrg/dar}, } diff --git a/index.html b/index.html index 5b2d8d1..dea2652 100644 --- a/index.html +++ b/index.html @@ -33,7 +33,7 @@ dar - 0.99.9 + 0.99.10 diff --git a/news/index.html b/news/index.html index 6ba6fa8..88a9691 100644 --- a/news/index.html +++ b/news/index.html @@ -10,7 +10,7 @@ dar - 0.99.9 + 0.99.10 @@ -56,6 +56,13 @@ Source: NEWS.md + +dar 0.99.10 + +New Features +Reimplementing step_corncob after the return of corncob package to cran + + dar 0.99.9 diff --git a/pkgdown.yml b/pkgdown.yml index c29773e..5f2aafc 100644 --- a/pkgdown.yml +++ b/pkgdown.yml @@ -7,7 +7,7 @@ articles: data_import: data_import.html filtering_subsetting: filtering_subsetting.html import_export_recipes: import_export_recipes.html -last_built: 2024-04-05T13:51Z +last_built: 2024-04-05T14:33Z urls: reference: https://microbialgenomics-irsicaixaorg.github.io/dar/reference article: https://microbialgenomics-irsicaixaorg.github.io/dar/articles diff --git a/reference/PrepRecipe-class.html b/reference/PrepRecipe-class.html index 5fee07a..475adff 100644 --- a/reference/PrepRecipe-class.html +++ b/reference/PrepRecipe-class.html @@ -12,7 +12,7 @@ dar - 0.99.9 + 0.99.10 diff --git a/reference/Recipe-class.html b/reference/Recipe-class.html index c6312ad..5036c99 100644 --- a/reference/Recipe-class.html +++ b/reference/Recipe-class.html @@ -12,7 +12,7 @@ dar - 0.99.9 + 0.99.10 diff --git a/reference/abundance_plt.html b/reference/abundance_plt.html index aedcfcd..71068ca 100644 --- a/reference/abundance_plt.html +++ b/reference/abundance_plt.html @@ -10,7 +10,7 @@ dar - 0.99.9 + 0.99.10 diff --git a/reference/add_step.html b/reference/add_step.html index 29b6f99..b5dfd84 100644 --- a/reference/add_step.html +++ b/reference/add_step.html @@ -12,7 +12,7 @@ dar - 0.99.9 + 0.99.10 diff --git a/reference/add_tax.html b/reference/add_tax.html index 1da51b2..50272b3 100644 --- a/reference/add_tax.html +++ b/reference/add_tax.html @@ -10,7 +10,7 @@ dar - 0.99.9 + 0.99.10 diff --git a/reference/add_var.html b/reference/add_var.html index 19d0482..bca9d18 100644 --- a/reference/add_var.html +++ b/reference/add_var.html @@ -10,7 +10,7 @@ dar - 0.99.9 + 0.99.10 diff --git a/reference/bake.html b/reference/bake.html index 29409d3..2d45dd3 100644 --- a/reference/bake.html +++ b/reference/bake.html @@ -10,7 +10,7 @@ dar - 0.99.9 + 0.99.10 diff --git a/reference/contains_rarefaction.html b/reference/contains_rarefaction.html index 7940173..edd71ca 100644 --- a/reference/contains_rarefaction.html +++ b/reference/contains_rarefaction.html @@ -10,7 +10,7 @@ dar - 0.99.9 + 0.99.10 diff --git a/reference/cool.html b/reference/cool.html index 3ce3e62..46a98c9 100644 --- a/reference/cool.html +++ b/reference/cool.html @@ -10,7 +10,7 @@ dar - 0.99.9 + 0.99.10 diff --git a/reference/corr_heatmap.html b/reference/corr_heatmap.html index fc02a7f..6f8c1bb 100644 --- a/reference/corr_heatmap.html +++ b/reference/corr_heatmap.html @@ -10,7 +10,7 @@ dar - 0.99.9 + 0.99.10 @@ -105,13 +105,13 @@ Examples## Running the function returns a UpSet plot ordered by frequency. corr_heatmap(test_prep_rec) - + ## If you want to exclude a method for the plot, you can remove it with the ## step parameter. In the following example we eliminate from the graph the ## results of maaslin corr_heatmap(test_prep_rec, steps = steps_ids(test_prep_rec, "da")[-1]) - + ## corr_heatmap function needs a PrepRecipe. If you pass a a non-prep ## Recipe the output is an error. data(test_rec) diff --git a/reference/dar-package.html b/reference/dar-package.html index eda1b85..c76de62 100644 --- a/reference/dar-package.html +++ b/reference/dar-package.html @@ -12,7 +12,7 @@ dar - 0.99.9 + 0.99.10 diff --git a/reference/exclusion_plt.html b/reference/exclusion_plt.html index f31a4a5..fb1aef2 100644 --- a/reference/exclusion_plt.html +++ b/reference/exclusion_plt.html @@ -10,7 +10,7 @@ dar - 0.99.9 + 0.99.10 diff --git a/reference/export_steps.html b/reference/export_steps.html index 30dafd2..fb7bf3b 100644 --- a/reference/export_steps.html +++ b/reference/export_steps.html @@ -10,7 +10,7 @@ dar - 0.99.9 + 0.99.10 diff --git a/reference/find_intersections.html b/reference/find_intersections.html index 9a28970..aceb3d4 100644 --- a/reference/find_intersections.html +++ b/reference/find_intersections.html @@ -10,7 +10,7 @@ dar - 0.99.9 + 0.99.10 diff --git a/reference/get_comparisons.html b/reference/get_comparisons.html index 7fe9654..d21d0d5 100644 --- a/reference/get_comparisons.html +++ b/reference/get_comparisons.html @@ -10,7 +10,7 @@ dar - 0.99.9 + 0.99.10 diff --git a/reference/get_phy.html b/reference/get_phy.html index 26d19cc..1957db7 100644 --- a/reference/get_phy.html +++ b/reference/get_phy.html @@ -10,7 +10,7 @@ dar - 0.99.9 + 0.99.10 diff --git a/reference/get_tax.html b/reference/get_tax.html index 8742c10..e86e08e 100644 --- a/reference/get_tax.html +++ b/reference/get_tax.html @@ -10,7 +10,7 @@ dar - 0.99.9 + 0.99.10 diff --git a/reference/get_var.html b/reference/get_var.html index 0954487..537cd53 100644 --- a/reference/get_var.html +++ b/reference/get_var.html @@ -10,7 +10,7 @@ dar - 0.99.9 + 0.99.10 diff --git a/reference/grapes-greater-than-grapes.html b/reference/grapes-greater-than-grapes.html index f92a007..745b31d 100644 --- a/reference/grapes-greater-than-grapes.html +++ b/reference/grapes-greater-than-grapes.html @@ -10,7 +10,7 @@ dar - 0.99.9 + 0.99.10 diff --git a/reference/import_steps.html b/reference/import_steps.html index d72f5f7..9753843 100644 --- a/reference/import_steps.html +++ b/reference/import_steps.html @@ -10,7 +10,7 @@ dar - 0.99.9 + 0.99.10 diff --git a/reference/index.html b/reference/index.html index 5197687..ba72f65 100644 --- a/reference/index.html +++ b/reference/index.html @@ -10,7 +10,7 @@ dar - 0.99.9 + 0.99.10 diff --git a/reference/intersection_df.html b/reference/intersection_df.html index ddb1c03..0b30788 100644 --- a/reference/intersection_df.html +++ b/reference/intersection_df.html @@ -10,7 +10,7 @@ dar - 0.99.9 + 0.99.10 diff --git a/reference/intersection_plt.html b/reference/intersection_plt.html index d06d345..d5907a0 100644 --- a/reference/intersection_plt.html +++ b/reference/intersection_plt.html @@ -10,7 +10,7 @@ dar - 0.99.9 + 0.99.10 diff --git a/reference/metaHIV_phy.html b/reference/metaHIV_phy.html index 056b429..9b830ab 100644 --- a/reference/metaHIV_phy.html +++ b/reference/metaHIV_phy.html @@ -12,7 +12,7 @@ dar - 0.99.9 + 0.99.10 diff --git a/reference/mutual_plt.html b/reference/mutual_plt.html index b584bcf..ae55791 100644 --- a/reference/mutual_plt.html +++ b/reference/mutual_plt.html @@ -14,7 +14,7 @@ dar - 0.99.9 + 0.99.10 diff --git a/reference/otu_table.html b/reference/otu_table.html index f9801d3..949a65c 100644 --- a/reference/otu_table.html +++ b/reference/otu_table.html @@ -10,7 +10,7 @@ dar - 0.99.9 + 0.99.10 diff --git a/reference/overlap_df.html b/reference/overlap_df.html index 6d91a0c..4443f6d 100644 --- a/reference/overlap_df.html +++ b/reference/overlap_df.html @@ -10,7 +10,7 @@ dar - 0.99.9 + 0.99.10 diff --git a/reference/pastry_df.html b/reference/pastry_df.html index 91b6543..e44b3bf 100644 --- a/reference/pastry_df.html +++ b/reference/pastry_df.html @@ -10,7 +10,7 @@ dar - 0.99.9 + 0.99.10 diff --git a/reference/phy_qc.html b/reference/phy_qc.html index e753337..bbfd999 100644 --- a/reference/phy_qc.html +++ b/reference/phy_qc.html @@ -40,7 +40,7 @@ dar - 0.99.9 + 0.99.10 diff --git a/reference/prep.html b/reference/prep.html index 920060c..46e43a7 100644 --- a/reference/prep.html +++ b/reference/prep.html @@ -12,7 +12,7 @@ dar - 0.99.9 + 0.99.10 diff --git a/reference/prep_recipe.html b/reference/prep_recipe.html index 3353f6f..bf0cef1 100644 --- a/reference/prep_recipe.html +++ b/reference/prep_recipe.html @@ -12,7 +12,7 @@ dar - 0.99.9 + 0.99.10 diff --git a/reference/rand_id.html b/reference/rand_id.html index 31f77e5..01b3f0c 100644 --- a/reference/rand_id.html +++ b/reference/rand_id.html @@ -10,7 +10,7 @@ dar - 0.99.9 + 0.99.10 diff --git a/reference/read_data.html b/reference/read_data.html index 0bbf6d3..751ee8e 100644 --- a/reference/read_data.html +++ b/reference/read_data.html @@ -20,7 +20,7 @@ dar - 0.99.9 + 0.99.10 diff --git a/reference/recipe.html b/reference/recipe.html index e5b9e38..5a29e9a 100644 --- a/reference/recipe.html +++ b/reference/recipe.html @@ -12,7 +12,7 @@ dar - 0.99.9 + 0.99.10 diff --git a/reference/recipes_pkg_check.html b/reference/recipes_pkg_check.html index 7363ad1..48f698c 100644 --- a/reference/recipes_pkg_check.html +++ b/reference/recipes_pkg_check.html @@ -10,7 +10,7 @@ dar - 0.99.9 + 0.99.10 diff --git a/reference/required_deps.html b/reference/required_deps.html index 0ce04d4..e65936f 100644 --- a/reference/required_deps.html +++ b/reference/required_deps.html @@ -10,7 +10,7 @@ dar - 0.99.9 + 0.99.10 diff --git a/reference/sample_data.html b/reference/sample_data.html index 23462e8..71c6ae7 100644 --- a/reference/sample_data.html +++ b/reference/sample_data.html @@ -10,7 +10,7 @@ dar - 0.99.9 + 0.99.10 diff --git a/reference/step.html b/reference/step.html index 9a7ccc7..ff91a33 100644 --- a/reference/step.html +++ b/reference/step.html @@ -10,7 +10,7 @@ dar - 0.99.9 + 0.99.10 diff --git a/reference/step_aldex.html b/reference/step_aldex.html index 442f515..4a42d6b 100644 --- a/reference/step_aldex.html +++ b/reference/step_aldex.html @@ -28,7 +28,7 @@ dar - 0.99.9 + 0.99.10 diff --git a/reference/step_ancom.html b/reference/step_ancom.html index 1040bf6..e22cf14 100644 --- a/reference/step_ancom.html +++ b/reference/step_ancom.html @@ -24,7 +24,7 @@ dar - 0.99.9 + 0.99.10 diff --git a/reference/step_corncob.html b/reference/step_corncob.html index 53bc97b..9fd5d93 100644 --- a/reference/step_corncob.html +++ b/reference/step_corncob.html @@ -14,7 +14,7 @@ dar - 0.99.9 + 0.99.10 diff --git a/reference/step_deseq.html b/reference/step_deseq.html index d6bd560..a944060 100644 --- a/reference/step_deseq.html +++ b/reference/step_deseq.html @@ -26,7 +26,7 @@ dar - 0.99.9 + 0.99.10 diff --git a/reference/step_filter_by_abundance.html b/reference/step_filter_by_abundance.html index e178ad1..825e1a4 100644 --- a/reference/step_filter_by_abundance.html +++ b/reference/step_filter_by_abundance.html @@ -20,7 +20,7 @@ dar - 0.99.9 + 0.99.10 diff --git a/reference/step_filter_by_prevalence.html b/reference/step_filter_by_prevalence.html index 05f041b..139e23d 100644 --- a/reference/step_filter_by_prevalence.html +++ b/reference/step_filter_by_prevalence.html @@ -18,7 +18,7 @@ dar - 0.99.9 + 0.99.10 diff --git a/reference/step_filter_by_rarity.html b/reference/step_filter_by_rarity.html index 5e9dbf0..2834e7e 100644 --- a/reference/step_filter_by_rarity.html +++ b/reference/step_filter_by_rarity.html @@ -18,7 +18,7 @@ dar - 0.99.9 + 0.99.10 diff --git a/reference/step_filter_by_variance.html b/reference/step_filter_by_variance.html index bf7b45c..30cdbc7 100644 --- a/reference/step_filter_by_variance.html +++ b/reference/step_filter_by_variance.html @@ -18,7 +18,7 @@ dar - 0.99.9 + 0.99.10 diff --git a/reference/step_filter_taxa.html b/reference/step_filter_taxa.html index 5252cee..df20c87 100644 --- a/reference/step_filter_taxa.html +++ b/reference/step_filter_taxa.html @@ -22,7 +22,7 @@ dar - 0.99.9 + 0.99.10 diff --git a/reference/step_lefse.html b/reference/step_lefse.html index 443213b..1e6d5ec 100644 --- a/reference/step_lefse.html +++ b/reference/step_lefse.html @@ -24,7 +24,7 @@ dar - 0.99.9 + 0.99.10 diff --git a/reference/step_maaslin.html b/reference/step_maaslin.html index 5ba09d3..2b5a1a0 100644 --- a/reference/step_maaslin.html +++ b/reference/step_maaslin.html @@ -18,7 +18,7 @@ dar - 0.99.9 + 0.99.10 diff --git a/reference/step_metagenomeseq.html b/reference/step_metagenomeseq.html index 07fe669..550d7b9 100644 --- a/reference/step_metagenomeseq.html +++ b/reference/step_metagenomeseq.html @@ -18,7 +18,7 @@ dar - 0.99.9 + 0.99.10 diff --git a/reference/step_rarefaction.html b/reference/step_rarefaction.html index 7625355..c27d052 100644 --- a/reference/step_rarefaction.html +++ b/reference/step_rarefaction.html @@ -48,7 +48,7 @@ dar - 0.99.9 + 0.99.10 diff --git a/reference/step_subset_taxa.html b/reference/step_subset_taxa.html index ac2a36b..fd40734 100644 --- a/reference/step_subset_taxa.html +++ b/reference/step_subset_taxa.html @@ -20,7 +20,7 @@ dar - 0.99.9 + 0.99.10 diff --git a/reference/step_to_expr.html b/reference/step_to_expr.html index 8cc29a5..de92658 100644 --- a/reference/step_to_expr.html +++ b/reference/step_to_expr.html @@ -12,7 +12,7 @@ dar - 0.99.9 + 0.99.10 diff --git a/reference/step_wilcox.html b/reference/step_wilcox.html index 119a2fa..dd1fd3a 100644 --- a/reference/step_wilcox.html +++ b/reference/step_wilcox.html @@ -14,7 +14,7 @@ dar - 0.99.9 + 0.99.10 diff --git a/reference/steps_ids.html b/reference/steps_ids.html index dc438f4..0bc589d 100644 --- a/reference/steps_ids.html +++ b/reference/steps_ids.html @@ -10,7 +10,7 @@ dar - 0.99.9 + 0.99.10 diff --git a/reference/tax_table.html b/reference/tax_table.html index 233bbbd..d84c8b9 100644 --- a/reference/tax_table.html +++ b/reference/tax_table.html @@ -10,7 +10,7 @@ dar - 0.99.9 + 0.99.10 diff --git a/reference/test_prep_rec.html b/reference/test_prep_rec.html index 8004103..e6f1641 100644 --- a/reference/test_prep_rec.html +++ b/reference/test_prep_rec.html @@ -14,7 +14,7 @@ dar - 0.99.9 + 0.99.10 diff --git a/reference/test_rec.html b/reference/test_rec.html index bc4b6ae..8698df8 100644 --- a/reference/test_rec.html +++ b/reference/test_rec.html @@ -12,7 +12,7 @@ dar - 0.99.9 + 0.99.10 diff --git a/reference/tidyeval.html b/reference/tidyeval.html index 0dca9f1..655b8d3 100644 --- a/reference/tidyeval.html +++ b/reference/tidyeval.html @@ -164,7 +164,7 @@ dar - 0.99.9 + 0.99.10 @@ -302,7 +302,7 @@ Examplesf(1 + 1) #> <quosure> #> expr: ^1 + 1 -#> env: 0x557293c52560 +#> env: 0x55f45ede3e68 # `enquos()` works with arguments and dots. It returns a list of # expressions @@ -316,12 +316,12 @@ Examples#> [[1]] #> <quosure> #> expr: ^1 + 1 -#> env: 0x557293c52560 +#> env: 0x55f45ede3e68 #> #> [[2]] #> <quosure> #> expr: ^2 * 10 -#> env: 0x557293c52560 +#> env: 0x55f45ede3e68 #> # Let's create some symbols: diff --git a/reference/to_tibble.html b/reference/to_tibble.html index 997fa2d..912e14d 100644 --- a/reference/to_tibble.html +++ b/reference/to_tibble.html @@ -10,7 +10,7 @@ dar - 0.99.9 + 0.99.10 diff --git a/reference/use_rarefy.html b/reference/use_rarefy.html index c46620b..d64c306 100644 --- a/reference/use_rarefy.html +++ b/reference/use_rarefy.html @@ -22,7 +22,7 @@ dar - 0.99.9 + 0.99.10 diff --git a/reference/zero_otu.html b/reference/zero_otu.html index 0300f05..62ac789 100644 --- a/reference/zero_otu.html +++ b/reference/zero_otu.html @@ -10,7 +10,7 @@ dar - 0.99.9 + 0.99.10 diff --git a/search.json b/search.json index d004bf3..c6769fc 100644 --- a/search.json +++ b/search.json @@ -1 +1 @@ -[{"path":[]},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/CODE_OF_CONDUCT.html","id":"our-pledge","dir":"","previous_headings":"","what":"Our Pledge","title":"Contributor Covenant Code of Conduct","text":"members, contributors, leaders pledge make participation community harassment-free experience everyone, regardless age, body size, visible invisible disability, ethnicity, sex characteristics, gender identity expression, level experience, education, socio-economic status, nationality, personal appearance, race, religion, sexual identity orientation. pledge act interact ways contribute open, welcoming, diverse, inclusive, healthy community.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/CODE_OF_CONDUCT.html","id":"our-standards","dir":"","previous_headings":"","what":"Our Standards","title":"Contributor Covenant Code of Conduct","text":"Examples behavior contributes positive environment community include: Demonstrating empathy kindness toward people respectful differing opinions, viewpoints, experiences Giving gracefully accepting constructive feedback Accepting responsibility apologizing affected mistakes, learning experience Focusing best just us individuals, overall community Examples unacceptable behavior include: use sexualized language imagery, sexual attention advances kind Trolling, insulting derogatory comments, personal political attacks Public private harassment Publishing others’ private information, physical email address, without explicit permission conduct reasonably considered inappropriate professional setting","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/CODE_OF_CONDUCT.html","id":"enforcement-responsibilities","dir":"","previous_headings":"","what":"Enforcement Responsibilities","title":"Contributor Covenant Code of Conduct","text":"Community leaders responsible clarifying enforcing standards acceptable behavior take appropriate fair corrective action response behavior deem inappropriate, threatening, offensive, harmful. Community leaders right responsibility remove, edit, reject comments, commits, code, wiki edits, issues, contributions aligned Code Conduct, communicate reasons moderation decisions appropriate.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/CODE_OF_CONDUCT.html","id":"scope","dir":"","previous_headings":"","what":"Scope","title":"Contributor Covenant Code of Conduct","text":"Code Conduct applies within community spaces, also applies individual officially representing community public spaces. Examples representing community include using official e-mail address, posting via official social media account, acting appointed representative online offline event.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/CODE_OF_CONDUCT.html","id":"enforcement","dir":"","previous_headings":"","what":"Enforcement","title":"Contributor Covenant Code of Conduct","text":"Instances abusive, harassing, otherwise unacceptable behavior may reported community leaders responsible enforcement fcatala@iriscaixa.es. complaints reviewed investigated promptly fairly. community leaders obligated respect privacy security reporter incident.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/CODE_OF_CONDUCT.html","id":"enforcement-guidelines","dir":"","previous_headings":"","what":"Enforcement Guidelines","title":"Contributor Covenant Code of Conduct","text":"Community leaders follow Community Impact Guidelines determining consequences action deem violation Code Conduct:","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/CODE_OF_CONDUCT.html","id":"id_1-correction","dir":"","previous_headings":"Enforcement Guidelines","what":"1. Correction","title":"Contributor Covenant Code of Conduct","text":"Community Impact: Use inappropriate language behavior deemed unprofessional unwelcome community. Consequence: private, written warning community leaders, providing clarity around nature violation explanation behavior inappropriate. public apology may requested.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/CODE_OF_CONDUCT.html","id":"id_2-warning","dir":"","previous_headings":"Enforcement Guidelines","what":"2. Warning","title":"Contributor Covenant Code of Conduct","text":"Community Impact: violation single incident series actions. Consequence: warning consequences continued behavior. interaction people involved, including unsolicited interaction enforcing Code Conduct, specified period time. includes avoiding interactions community spaces well external channels like social media. Violating terms may lead temporary permanent ban.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/CODE_OF_CONDUCT.html","id":"id_3-temporary-ban","dir":"","previous_headings":"Enforcement Guidelines","what":"3. Temporary Ban","title":"Contributor Covenant Code of Conduct","text":"Community Impact: serious violation community standards, including sustained inappropriate behavior. Consequence: temporary ban sort interaction public communication community specified period time. public private interaction people involved, including unsolicited interaction enforcing Code Conduct, allowed period. Violating terms may lead permanent ban.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/CODE_OF_CONDUCT.html","id":"id_4-permanent-ban","dir":"","previous_headings":"Enforcement Guidelines","what":"4. Permanent Ban","title":"Contributor Covenant Code of Conduct","text":"Community Impact: Demonstrating pattern violation community standards, including sustained inappropriate behavior, harassment individual, aggression toward disparagement classes individuals. Consequence: permanent ban sort public interaction within community.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/CODE_OF_CONDUCT.html","id":"attribution","dir":"","previous_headings":"","what":"Attribution","title":"Contributor Covenant Code of Conduct","text":"Code Conduct adapted Contributor Covenant, version 2.0, available https://www.contributor-covenant.org/version/2/0/code_of_conduct.html. Community Impact Guidelines inspired Mozilla’s code conduct enforcement ladder. answers common questions code conduct, see FAQ https://www.contributor-covenant.org/faq. Translations available https://www.contributor-covenant.org/translations.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/CONTRIBUTING.html","id":null,"dir":"","previous_headings":"","what":"Contributing to dar","title":"Contributing to dar","text":"outlines propose change dar. detailed info contributing , tidyverse packages, please see development contributing guide.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/CONTRIBUTING.html","id":"fixing-typos","dir":"","previous_headings":"","what":"Fixing typos","title":"Contributing to dar","text":"can fix typos, spelling mistakes, grammatical errors documentation directly using GitHub web interface, long changes made source file. generally means ’ll need edit roxygen2 comments .R, .Rd file. can find .R file generates .Rd reading comment first line.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/CONTRIBUTING.html","id":"bigger-changes","dir":"","previous_headings":"","what":"Bigger changes","title":"Contributing to dar","text":"want make bigger change, ’s good idea first file issue make sure someone team agrees ’s needed. ’ve found bug, please file issue illustrates bug minimal reprex (also help write unit test, needed).","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/CONTRIBUTING.html","id":"pull-request-process","dir":"","previous_headings":"Bigger changes","what":"Pull request process","title":"Contributing to dar","text":"Fork package clone onto computer. haven’t done , recommend using usethis::create_from_github(\"MicrobialGenomics-IrsicaixaOrg/dar\", fork = TRUE). Install development dependencies devtools::install_dev_deps(), make sure package passes R CMD check running devtools::check(). R CMD check doesn’t pass cleanly, ’s good idea ask help continuing. Create Git branch pull request (PR). recommend using usethis::pr_init(\"brief-description--change\"). Make changes, commit git, create PR running usethis::pr_push(), following prompts browser. title PR briefly describe change. body PR contain Fixes #issue-number. user-facing changes, add bullet top NEWS.md (.e. just first header). Follow style described https://style.tidyverse.org/news.html.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/CONTRIBUTING.html","id":"code-style","dir":"","previous_headings":"Bigger changes","what":"Code style","title":"Contributing to dar","text":"New code follow tidyverse style guide. can use styler package apply styles, please don’t restyle code nothing PR. use roxygen2, Markdown syntax, documentation. use testthat unit tests. Contributions test cases included easier accept.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/CONTRIBUTING.html","id":"code-of-conduct","dir":"","previous_headings":"","what":"Code of Conduct","title":"Contributing to dar","text":"Please note dar project released Contributor Code Conduct. contributing project agree abide terms.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/LICENSE.html","id":null,"dir":"","previous_headings":"","what":"MIT License","title":"MIT License","text":"Copyright (c) 2022 Francesc Català-Moll Permission hereby granted, free charge, person obtaining copy software associated documentation files (“Software”), deal Software without restriction, including without limitation rights use, copy, modify, merge, publish, distribute, sublicense, /sell copies Software, permit persons Software furnished , subject following conditions: copyright notice permission notice shall included copies substantial portions Software. SOFTWARE PROVIDED “”, WITHOUT WARRANTY KIND, EXPRESS IMPLIED, INCLUDING LIMITED WARRANTIES MERCHANTABILITY, FITNESS PARTICULAR PURPOSE NONINFRINGEMENT. EVENT SHALL AUTHORS COPYRIGHT HOLDERS LIABLE CLAIM, DAMAGES LIABILITY, WHETHER ACTION CONTRACT, TORT OTHERWISE, ARISING , CONNECTION SOFTWARE USE DEALINGS SOFTWARE.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/articles/article.html","id":"load-dar-package-and-data","dir":"Articles","previous_headings":"","what":"Load dar package and data","title":"Workflow with real data","text":"","code":"library(dar) # suppressPackageStartupMessages(library(plotly)) data(\"metaHIV_phy\") metaHIV_phy #> phyloseq-class experiment-level object #> otu_table() OTU Table: [ 451 taxa and 156 samples ] #> sample_data() Sample Data: [ 156 samples by 3 sample variables ] #> tax_table() Taxonomy Table: [ 451 taxa by 7 taxonomic ranks ]"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/articles/article.html","id":"recipe-initialization","dir":"Articles","previous_headings":"","what":"Recipe initialization","title":"Workflow with real data","text":"begin analysis process dar package, first step initialize Recipe object, S4 class. recipe object serves blueprint data preparation steps required differential abundance analysis. initialization recipe object done function recipe(), takes inputs phyloseq TreeSummarizedExperiment (TSE) object, name categorical variable interest taxonomic level differential abundance analyses performed. previously mentioned, use data set (Noguera-Julian, M., et al. 2016) variable interest “RiskGroup2” containing categories: men sex men (msm), non-MSM (hts) people inject drugs (pwid) perform analysis species level.","code":"## Recipe initialization rec <- recipe(metaHIV_phy, var_info = \"RiskGroup2\", tax_info = \"Species\") rec #> ── DAR Recipe ────────────────────────────────────────────────────────────────── #> Inputs: #> #> ℹ phyloseq object with 451 taxa and 156 samples #> ℹ variable of interes RiskGroup2 (class: character, levels: hts, msm, pwid) #> ℹ taxonomic level Species"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/articles/article.html","id":"recipe-qc-and-preprocessing-steps-definition","dir":"Articles","previous_headings":"","what":"Recipe QC and preprocessing steps definition","title":"Workflow with real data","text":"recipe object initialized, next step populate steps. Steps methods applied data stored recipe. two types steps: preprocessing (prepro) differential abundance (da) steps. Initially, focus prepro steps used modify data loaded recipe, used da steps. ‘dar’ package includes 3 main preprocessing functionalities: step_subset_taxa, used subsetting columns values taxon table connected phyloseq object, step_filter_taxa, used filter OTUs, step_rarefaction, used resample OTU table ensure samples library size. functionalities allow high level flexibility customization data preparation process performing differential abundance analysis. dar package provides convenient wrappers step_filter_taxa function, designed filter Operational Taxonomic Units (OTUs) based specific criteria: prevalence, variance, abundance, rarity. step_filter_by_prevalence: Filters OTUs according number samples OTU appears. step_filter_by_variance: Filters OTUs based variance OTU’s presence across samples. step_filter_by_abundance: Filters OTUs according OTU’s abundance across samples. step_filter_by_rarity: Filters OTUs based rarity OTU across samples. addition preprocessing steps, dar package also incorporates function phy_qc returns table set metrics allow informed decisions made data preprocessing done. case, decided use step_subset_taxa function retain observations annotated within realm Bacteria Archaea. also used step_filter_by_prevalence function retain OTUs least 1% samples values greater 0. approach ensured working high-quality, informative subset data, improved overall accuracy reliability differential abundance analysis.","code":"## QC phy_qc(rec) #> # A tibble: 4 × 10 #> var_levels n n_zero pct_zero pct_all_zero pct_singletons pct_doubletons #> #> 1 all 70356 57632 81.9 0 20.6 8.87 #> 2 hts 18491 15108 81.7 24.2 22.8 8.43 #> 3 msm 45100 37019 82.1 16.0 20.2 9.53 #> 4 pwid 6765 5505 81.4 41.2 16.6 9.31 #> # ℹ 3 more variables: count_mean , count_min , count_max ## Adding prepro steps rec <- rec |> step_subset_taxa(tax_level = \"Kingdom\", taxa = c(\"Bacteria\", \"Archaea\")) |> step_filter_by_prevalence() rec #> ── DAR Recipe ────────────────────────────────────────────────────────────────── #> Inputs: #> #> ℹ phyloseq object with 451 taxa and 156 samples #> ℹ variable of interes RiskGroup2 (class: character, levels: hts, msm, pwid) #> ℹ taxonomic level Species #> #> Preporcessing steps: #> #> ◉ step_subset_taxa() id = subset_taxa__Puff_pastry #> ◉ step_filter_by_prevalence() id = filter_by_prevalence__Paris–Brest #> #> DA steps:"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/articles/article.html","id":"define-differential-analysis-da-steps","dir":"Articles","previous_headings":"","what":"Define Differential Analysis (DA) steps","title":"Workflow with real data","text":"data preprocessed cleaned, next step add da steps. dar package incorporates multiple methods analyze data, including: ALDEx2, ANCOM-BC, corncob, DESeq2, Lefse, MAaslin2, MetagenomeSeq, Wilcox. methods provide range options uncovering potential microbial biomarkers associated variable interest. ensure consistency across methods, decided use default parameters, set min_prevalence parameter 0 MAaslin2, rm_zeros parameter 0.01 MetagenomeSeq, since observed pct_all_zeros value equal 0 levels categorical variable results phy_qc(). approach ensured analysis consistent across methods results interpretable. Note: reduce computation time, example use metagenomeSeq MAaslin2 methods, fastest ones. However, recommend using methods available package ensure robust analysis.","code":"## DA steps definition rec <- rec |> step_metagenomeseq(rm_zeros = 0.01) |> step_maaslin(min_prevalence = 0) rec #> ── DAR Recipe ────────────────────────────────────────────────────────────────── #> Inputs: #> #> ℹ phyloseq object with 451 taxa and 156 samples #> ℹ variable of interes RiskGroup2 (class: character, levels: hts, msm, pwid) #> ℹ taxonomic level Species #> #> Preporcessing steps: #> #> ◉ step_subset_taxa() id = subset_taxa__Puff_pastry #> ◉ step_filter_by_prevalence() id = filter_by_prevalence__Paris–Brest #> #> DA steps: #> #> ◉ step_metagenomeseq() id = metagenomeseq__Spina_santa #> ◉ step_maaslin() id = maaslin__Dutch_Baby_Pancake"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/articles/article.html","id":"prep-recipe","dir":"Articles","previous_headings":"","what":"Prep recipe","title":"Workflow with real data","text":"recipe defined, next step execute steps defined recipe. done function prep(). Internally, first executes preprocessing steps, modify phyloseq object stored recipe. , using modified phyloseq, executes defined differential abundance methods. speed execution time, prep() function includes option run parallel. resulting object class PrepRecipe printed terminal, displays number taxa detected significant methods also total number taxa shared across methods. allows provisional overview results comparison methods.","code":"## Execute in parallel da_results <- prep(rec, parallel = TRUE) #> Warning in sqrt(out$s2.post): NaNs produced #> Warning in sqrt(out$s2.post): NaNs produced #> Warning in sqrt(out$s2.post): NaNs produced da_results #> ── DAR Results ───────────────────────────────────────────────────────────────── #> Inputs: #> #> ℹ phyloseq object with 355 taxa and 156 samples #> ℹ variable of interes RiskGroup2 (class: character, levels: hts, msm, pwid) #> ℹ taxonomic level Species #> #> Results: #> #> ✔ metagenomeseq__Spina_santa diff_taxa = 294 #> ✔ maaslin__Dutch_Baby_Pancake diff_taxa = 235 #> #> ℹ 210 taxa are present in all tested methods"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/articles/article.html","id":"default-results-extraction","dir":"Articles","previous_headings":"","what":"Default results extraction","title":"Workflow with real data","text":"point, extract taxa shared across methods using function bake() define default consensus strategy cool() extract results. However, dar allows complex consensus strategies based obtained results. end, user access different functions graphically represent different types information. feature allows -depth analysis results better understanding underlying patterns data.","code":"## Default DA taxa results results <- bake(da_results) |> cool() results #> # A tibble: 210 × 2 #> taxa_id taxa #> #> 1 Otu_70 Bacteroides_sp_CAG_598 #> 2 Otu_73 Bacteroides_sp_D2 #> 3 Otu_369 Dialister_sp_CAG_357 #> 4 Otu_121 Alistipes_sp_An31A #> 5 Otu_63 Bacteroides_plebeius #> 6 Otu_216 Clostridium_sp_CAG_632 #> 7 Otu_257 Butyrivibrio_sp_CAG_318 #> 8 Otu_137 Enterococcus_avium #> 9 Otu_49 Bacteroides_coprocola #> 10 Otu_441 Brachyspira_sp_CAG_700 #> # ℹ 200 more rows"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/articles/article.html","id":"exploration-for-consensus-strategie-definition","dir":"Articles","previous_headings":"","what":"Exploration for consensus strategie definition","title":"Workflow with real data","text":"example, intersection_plt() gives overview overlaps methods creating upSet plot. case, function shown 210 taxa shared across methods used. addition intersection_plt() function, dar also function exclusion_plt() provides information number OTUs shared methods. function allows identify OTUs specific method also ones shared among method. Besides previously mentioned functions, dar also includes function corr_heatmap(), allows visualization overlap significant OTUs tested methods. function can provide similar information previous plots, cases may easier interpret. comprehensive view results. Finally, dar also includes function mutual_plt(), plots number differential abundant features mutually found defined number methods, colored differential abundance direction separated comparison. resulting graph allows us see features detected correspond mainly comparisons hts vs msm msm vs pwid. Additionally, graph also allows us observe direction effect; whether specific OTU enriched depleted comparison.","code":"## Intersection plot intersection_plt(da_results, ordered_by = \"degree\", font_size = 1) ## Exclusion plot exclusion_plt(da_results) ## Correlation heatmap corr_heat <- corr_heatmap(da_results, font_size = 10) corr_heat ## Mutual plot mutual_plt( da_results, count_cutoff = length(steps_ids(da_results, type = \"da\")) )"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/articles/article.html","id":"define-a-consesus-strategy-using-bake","dir":"Articles","previous_headings":"","what":"Define a consesus strategy using bake","title":"Workflow with real data","text":"visually inspecting results running differential analysis methods data, necessary information define consensus strategy fits dataset. case, retain methods. However one methods desired, bake() function includes exclude parameter, allows exclude specific methods. Additionally, bake() function allows refine consensus strategy parameters, count_cutoff, indicates minimum number methods OTU must present, weights, named vector ponderation value method. However, simplicity, parameters used example.","code":"## Define consensus strategy da_results <- bake(da_results) da_results #> ── DAR Results ───────────────────────────────────────────────────────────────── #> Inputs: #> #> ℹ phyloseq object with 355 taxa and 156 samples #> ℹ variable of interes RiskGroup2 (class: character, levels: hts, msm, pwid) #> ℹ taxonomic level Species #> #> Results: #> #> ✔ metagenomeseq__Spina_santa diff_taxa = 294 #> ✔ maaslin__Dutch_Baby_Pancake diff_taxa = 235 #> #> ℹ 210 taxa are present in all tested methods #> #> Bakes: #> #> ◉ 1 -> count_cutoff: NULL, weights: NULL, exclude: NULL, id: bake__Cornish_pasty"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/articles/article.html","id":"extract-results","dir":"Articles","previous_headings":"","what":"Extract results","title":"Workflow with real data","text":"conclude, can extract final results using cool() function. function takes PrepRecipe object ID bake used input (default 1, multiple consensus strategies, can change extract desired results). visualize results, abundance_plt() function can utilized visualize differences abundance differential abundant taxa.","code":"## Extract results for bake id 1 f_results <- cool(da_results, bake = 1) f_results #> # A tibble: 210 × 2 #> taxa_id taxa #> #> 1 Otu_70 Bacteroides_sp_CAG_598 #> 2 Otu_73 Bacteroides_sp_D2 #> 3 Otu_369 Dialister_sp_CAG_357 #> 4 Otu_121 Alistipes_sp_An31A #> 5 Otu_63 Bacteroides_plebeius #> 6 Otu_216 Clostridium_sp_CAG_632 #> 7 Otu_257 Butyrivibrio_sp_CAG_318 #> 8 Otu_137 Enterococcus_avium #> 9 Otu_49 Bacteroides_coprocola #> 10 Otu_441 Brachyspira_sp_CAG_700 #> # ℹ 200 more rows ## Ids for Bacteroide and Provotella species ids <- f_results |> dplyr::filter(stringr::str_detect(taxa, \"Bacteroi.*|Prevote.*\")) |> dplyr::pull(taxa_id) ## Abundance plot as boxplot abundance_plt(da_results, taxa_ids = ids, type = \"boxplot\")"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/articles/article.html","id":"session-info","dir":"Articles","previous_headings":"","what":"Session info","title":"Workflow with real data","text":"","code":"devtools::session_info() #> ─ Session info ─────────────────────────────────────────────────────────────── #> setting value #> version R Under development (unstable) (2024-03-28 r86224) #> os Ubuntu 22.04.4 LTS #> system x86_64, linux-gnu #> ui X11 #> language en #> collate en_US.UTF-8 #> ctype en_US.UTF-8 #> tz UTC #> date 2024-04-05 #> pandoc 3.1.1 @ /usr/local/bin/ (via rmarkdown) #> #> ─ Packages ─────────────────────────────────────────────────────────────────── #> package * version date (UTC) lib source #> ade4 1.7-22 2023-02-06 [1] CRAN (R 4.4.0) #> ape 5.7-1 2023-03-13 [1] CRAN (R 4.4.0) #> assertthat 0.2.1 2019-03-21 [1] CRAN (R 4.4.0) #> Biobase 2.63.1 2024-03-29 [1] Bioconductor 3.19 (R 4.5.0) #> BiocGenerics 0.49.1 2023-11-01 [1] Bioconductor #> biomformat 1.31.0 2023-10-24 [1] Bioconductor #> Biostrings 2.71.5 2024-03-22 [1] Bioconductor 3.19 (R 4.5.0) #> bitops 1.0-7 2021-04-24 [1] CRAN (R 4.4.0) #> brio 1.1.4 2023-12-10 [2] CRAN (R 4.5.0) #> bslib 0.7.0 2024-03-29 [2] CRAN (R 4.5.0) #> ca 0.71.1 2020-01-24 [1] CRAN (R 4.4.0) #> cachem 1.0.8 2023-05-01 [2] CRAN (R 4.5.0) #> cli 3.6.2 2023-12-11 [2] CRAN (R 4.5.0) #> cluster 2.1.6 2023-12-01 [3] CRAN (R 4.5.0) #> codetools 0.2-20 2024-03-31 [3] CRAN (R 4.5.0) #> colorspace 2.1-0 2023-01-23 [1] CRAN (R 4.4.0) #> crayon 1.5.2 2022-09-29 [2] CRAN (R 4.5.0) #> crosstalk 1.2.1 2023-11-23 [1] CRAN (R 4.4.0) #> dar * 0.99.9 2024-04-05 [1] Bioconductor #> data.table 1.15.4 2024-03-30 [1] CRAN (R 4.5.0) #> dendextend 1.17.1 2023-03-25 [1] CRAN (R 4.4.0) #> desc 1.4.3 2023-12-10 [2] CRAN (R 4.5.0) #> devtools 2.4.5 2022-10-11 [2] CRAN (R 4.5.0) #> digest 0.6.35 2024-03-11 [2] CRAN (R 4.5.0) #> dplyr 1.1.4 2023-11-17 [1] CRAN (R 4.4.0) #> ellipsis 0.3.2 2021-04-29 [2] CRAN (R 4.5.0) #> evaluate 0.23 2023-11-01 [2] CRAN (R 4.5.0) #> fansi 1.0.6 2023-12-08 [2] CRAN (R 4.5.0) #> farver 2.1.1 2022-07-06 [1] CRAN (R 4.4.0) #> fastmap 1.1.1 2023-02-24 [2] CRAN (R 4.5.0) #> foreach 1.5.2 2022-02-02 [1] CRAN (R 4.4.0) #> fs 1.6.3 2023-07-20 [2] CRAN (R 4.5.0) #> furrr 0.3.1 2022-08-15 [1] CRAN (R 4.4.0) #> future 1.33.2 2024-03-26 [1] CRAN (R 4.5.0) #> generics 0.1.3 2022-07-05 [1] CRAN (R 4.4.0) #> GenomeInfoDb 1.39.11 2024-04-03 [1] Bioconductor 3.19 (R 4.5.0) #> GenomeInfoDbData 1.2.12 2024-04-05 [1] Bioconductor #> ggplot2 3.5.0 2024-02-23 [1] CRAN (R 4.5.0) #> globals 0.16.3 2024-03-08 [1] CRAN (R 4.5.0) #> glue 1.7.0 2024-01-09 [2] CRAN (R 4.5.0) #> gridExtra 2.3 2017-09-09 [1] CRAN (R 4.4.0) #> gtable 0.3.4 2023-08-21 [1] CRAN (R 4.4.0) #> heatmaply 1.5.0 2023-10-06 [1] CRAN (R 4.4.0) #> highr 0.10 2022-12-22 [2] CRAN (R 4.5.0) #> htmltools 0.5.8.1 2024-04-04 [2] CRAN (R 4.5.0) #> htmlwidgets 1.6.4 2023-12-06 [2] CRAN (R 4.5.0) #> httpuv 1.6.15 2024-03-26 [2] CRAN (R 4.5.0) #> httr 1.4.7 2023-08-15 [2] CRAN (R 4.5.0) #> igraph 2.0.3 2024-03-13 [1] CRAN (R 4.5.0) #> IRanges 2.37.1 2024-01-19 [1] Bioconductor 3.19 (R 4.4.0) #> iterators 1.0.14 2022-02-05 [1] CRAN (R 4.4.0) #> jquerylib 0.1.4 2021-04-26 [2] CRAN (R 4.5.0) #> jsonlite 1.8.8 2023-12-04 [2] CRAN (R 4.5.0) #> knitr 1.45 2023-10-30 [2] CRAN (R 4.5.0) #> labeling 0.4.3 2023-08-29 [1] CRAN (R 4.4.0) #> later 1.3.2 2023-12-06 [2] CRAN (R 4.5.0) #> lattice 0.22-6 2024-03-20 [3] CRAN (R 4.5.0) #> lazyeval 0.2.2 2019-03-15 [1] CRAN (R 4.4.0) #> lifecycle 1.0.4 2023-11-07 [2] CRAN (R 4.5.0) #> listenv 0.9.1 2024-01-29 [1] CRAN (R 4.4.0) #> magrittr 2.0.3 2022-03-30 [2] CRAN (R 4.5.0) #> MASS 7.3-60.2 2024-03-29 [3] local #> Matrix 1.7-0 2024-03-22 [3] CRAN (R 4.5.0) #> memoise 2.0.1 2021-11-26 [2] CRAN (R 4.5.0) #> mgcv 1.9-1 2023-12-21 [3] CRAN (R 4.5.0) #> microbiome 1.25.0 2023-10-24 [1] Bioconductor #> mime 0.12 2021-09-28 [2] CRAN (R 4.5.0) #> miniUI 0.1.1.1 2018-05-18 [2] CRAN (R 4.5.0) #> multtest 2.59.0 2023-10-24 [1] Bioconductor #> munsell 0.5.1 2024-04-01 [1] CRAN (R 4.5.0) #> nlme 3.1-164 2023-11-27 [3] CRAN (R 4.5.0) #> parallelly 1.37.1 2024-02-29 [1] CRAN (R 4.5.0) #> permute 0.9-7 2022-01-27 [1] CRAN (R 4.4.0) #> phyloseq 1.47.0 2023-10-24 [1] Bioconductor #> pillar 1.9.0 2023-03-22 [2] CRAN (R 4.5.0) #> pkgbuild 1.4.4 2024-03-17 [2] CRAN (R 4.5.0) #> pkgconfig 2.0.3 2019-09-22 [2] CRAN (R 4.5.0) #> pkgdown 2.0.7.9000 2024-04-05 [1] Github (r-lib/pkgdown@9b928b2) #> pkgload 1.3.4 2024-01-16 [2] CRAN (R 4.5.0) #> plotly 4.10.4 2024-01-13 [1] CRAN (R 4.4.0) #> plyr 1.8.9 2023-10-02 [1] CRAN (R 4.4.0) #> profvis 0.3.8 2023-05-02 [2] CRAN (R 4.5.0) #> promises 1.2.1 2023-08-10 [2] CRAN (R 4.5.0) #> purrr 1.0.2 2023-08-10 [2] CRAN (R 4.5.0) #> R6 2.5.1 2021-08-19 [2] CRAN (R 4.5.0) #> ragg 1.3.0 2024-03-13 [2] CRAN (R 4.5.0) #> RColorBrewer 1.1-3 2022-04-03 [1] CRAN (R 4.4.0) #> Rcpp 1.0.12 2024-01-09 [2] CRAN (R 4.5.0) #> RCurl 1.98-1.14 2024-01-09 [1] CRAN (R 4.4.0) #> registry 0.5-1 2019-03-05 [1] CRAN (R 4.4.0) #> remotes 2.5.0 2024-03-17 [1] CRAN (R 4.5.0) #> reshape2 1.4.4 2020-04-09 [1] CRAN (R 4.4.0) #> rhdf5 2.47.6 2024-03-11 [1] Bioconductor 3.19 (R 4.5.0) #> rhdf5filters 1.15.4 2024-03-15 [1] Bioconductor 3.19 (R 4.5.0) #> Rhdf5lib 1.25.1 2023-12-11 [1] Bioconductor 3.19 (R 4.4.0) #> rlang 1.1.3 2024-01-10 [2] CRAN (R 4.5.0) #> rmarkdown 2.26 2024-03-05 [2] CRAN (R 4.5.0) #> Rtsne 0.17 2023-12-07 [1] CRAN (R 4.4.0) #> S4Vectors 0.41.5 2024-03-20 [1] Bioconductor 3.19 (R 4.5.0) #> sass 0.4.9 2024-03-15 [2] CRAN (R 4.5.0) #> scales 1.3.0 2023-11-28 [1] CRAN (R 4.4.0) #> seriation 1.5.4 2023-12-12 [1] CRAN (R 4.4.0) #> sessioninfo 1.2.2 2021-12-06 [2] CRAN (R 4.5.0) #> shiny 1.8.1.1 2024-04-02 [2] CRAN (R 4.5.0) #> stringi 1.8.3 2023-12-11 [2] CRAN (R 4.5.0) #> stringr 1.5.1 2023-11-14 [2] CRAN (R 4.5.0) #> survival 3.5-8 2024-02-14 [3] CRAN (R 4.5.0) #> systemfonts 1.0.6 2024-03-07 [2] CRAN (R 4.5.0) #> testthat 3.2.1 2023-12-02 [2] CRAN (R 4.5.0) #> textshaping 0.3.7 2023-10-09 [2] CRAN (R 4.5.0) #> tibble 3.2.1 2023-03-20 [2] CRAN (R 4.5.0) #> tidyr 1.3.1 2024-01-24 [1] CRAN (R 4.4.0) #> tidyselect 1.2.1 2024-03-11 [1] CRAN (R 4.5.0) #> TSP 1.2-4 2023-04-04 [1] CRAN (R 4.4.0) #> UpSetR 1.4.0 2019-05-22 [1] CRAN (R 4.4.0) #> urlchecker 1.0.1 2021-11-30 [2] CRAN (R 4.5.0) #> usethis 2.2.3 2024-02-19 [2] CRAN (R 4.5.0) #> utf8 1.2.4 2023-10-22 [2] CRAN (R 4.5.0) #> vctrs 0.6.5 2023-12-01 [2] CRAN (R 4.5.0) #> vegan 2.6-4 2022-10-11 [1] CRAN (R 4.4.0) #> viridis 0.6.5 2024-01-29 [1] CRAN (R 4.4.0) #> viridisLite 0.4.2 2023-05-02 [1] CRAN (R 4.4.0) #> webshot 0.5.5 2023-06-26 [1] CRAN (R 4.4.0) #> withr 3.0.0 2024-01-16 [2] CRAN (R 4.5.0) #> xfun 0.43 2024-03-25 [2] CRAN (R 4.5.0) #> xtable 1.8-4 2019-04-21 [2] CRAN (R 4.5.0) #> XVector 0.43.1 2024-01-10 [1] Bioconductor 3.19 (R 4.4.0) #> yaml 2.3.8 2023-12-11 [2] CRAN (R 4.5.0) #> zlibbioc 1.49.3 2024-03-13 [1] Bioconductor 3.19 (R 4.5.0) #> #> [1] /__w/_temp/Library #> [2] /usr/local/lib/R/site-library #> [3] /usr/local/lib/R/library #> #> ──────────────────────────────────────────────────────────────────────────────"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/articles/dar.html","id":"an-example","dir":"Articles","previous_headings":"","what":"An Example","title":"Introduction to dar","text":"package includes dataset study Noguera-Julian, M., et al. 2016, investigated differential abundance microbial species men sex men (MSM) non-MSM (hts). data stored object phyloseq class, standard input format creating recipes dar conjunction TreeSummarizedExperiment. begin analysis, first load inspect data:","code":"library(dar) data(\"metaHIV_phy\", package = \"dar\") metaHIV_phy #> phyloseq-class experiment-level object #> otu_table() OTU Table: [ 451 taxa and 156 samples ] #> sample_data() Sample Data: [ 156 samples by 3 sample variables ] #> tax_table() Taxonomy Table: [ 451 taxa by 7 taxonomic ranks ]"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/articles/dar.html","id":"an-initial-recipe","dir":"Articles","previous_headings":"","what":"An Initial Recipe","title":"Introduction to dar","text":"First, create recipe object original data specify processing differential analysis steps. Recipes can created manually sequentially adding roles variables data set. easiest way create initial recipe : var_info argument corresponds variable considered modeling process tax_info indicates taxonomic level used analyses.","code":"rec_obj <- recipe(metaHIV_phy, var_info = \"RiskGroup2\", tax_info = \"Species\") rec_obj #> ── DAR Recipe ────────────────────────────────────────────────────────────────── #> Inputs: #> #> ℹ phyloseq object with 451 taxa and 156 samples #> ℹ variable of interes RiskGroup2 (class: character, levels: hts, msm, pwid) #> ℹ taxonomic level Species"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/articles/dar.html","id":"preprocessing-steps","dir":"Articles","previous_headings":"","what":"Preprocessing Steps","title":"Introduction to dar","text":", preprocessing steps step X can added sequentially one two ways: Note step_ancom functions always return updated recipes. two types steps, charge processing (prepro) destined define methods differential analysis (da). prepro steps used modify data loaded recipe used da steps. dar package include 3 main preprocessing functionalities. step_subset_taxa: used subsetting columns values within tax_table. step_filter_taxa: used filtering OTUs recipe objects. step_rarefaction: used resample OTU table samples library size. Additionally, dar package provides convenient wrappers step_filter_taxa function, designed filter Operational Taxonomic Units (OTUs) based specific criteria: prevalence, variance, abundance, rarity. step_filter_by_prevalence: Filters OTUs according number samples OTU appears. step_filter_by_variance: Filters OTUs based variance OTU’s presence across samples. step_filter_by_abundance: Filters OTUs according OTU’s abundance across samples. step_filter_by_rarity: Filters OTUs based rarity OTU across samples. data, can add operation preprocessing data stored initial recpie. First, use step_subset_taxa retain Bacteria Archaea OTUs Kingdom taxonomic level. filter OTUs least 3% samples counts greater 0.","code":"rec_obj <- step_{X}(rec_obj, arguments) ## or rec_obj <- rec_obj |> step_{X}(arguments) rec_obj <- rec_obj |> step_subset_taxa(tax_level = \"Kingdom\", taxa = c(\"Bacteria\", \"Archaea\")) |> step_filter_by_prevalence(0.03) rec_obj #> ── DAR Recipe ────────────────────────────────────────────────────────────────── #> Inputs: #> #> ℹ phyloseq object with 451 taxa and 156 samples #> ℹ variable of interes RiskGroup2 (class: character, levels: hts, msm, pwid) #> ℹ taxonomic level Species #> #> Preporcessing steps: #> #> ◉ step_subset_taxa() id = subset_taxa__Puff_pastry #> ◉ step_filter_by_prevalence() id = filter_by_prevalence__Paris–Brest #> #> DA steps:"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/articles/dar.html","id":"differential-analysis","dir":"Articles","previous_headings":"","what":"Differential Analysis","title":"Introduction to dar","text":"Now defined preprocessing input data da methods used, need define . introduction use metagenomeSeq maaslin2 methods default parameters (defined authors method). dar package includes da steps defined . full list:","code":"rec_obj <- rec_obj |> step_deseq() |> step_metagenomeseq(rm_zeros = 0.01) |> step_maaslin() rec_obj #> ── DAR Recipe ────────────────────────────────────────────────────────────────── #> Inputs: #> #> ℹ phyloseq object with 451 taxa and 156 samples #> ℹ variable of interes RiskGroup2 (class: character, levels: hts, msm, pwid) #> ℹ taxonomic level Species #> #> Preporcessing steps: #> #> ◉ step_subset_taxa() id = subset_taxa__Puff_pastry #> ◉ step_filter_by_prevalence() id = filter_by_prevalence__Paris–Brest #> #> DA steps: #> #> ◉ step_deseq() id = deseq__Spina_santa #> ◉ step_metagenomeseq() id = metagenomeseq__Dutch_Baby_Pancake #> ◉ step_maaslin() id = maaslin__Knieküchle grep( \"_new|_to_expr|filter|subset|rarefaction\", grep(\"^step_\", ls(\"package:dar\"), value = TRUE), value = TRUE, invert = TRUE ) #> [1] \"step_aldex\" \"step_ancom\" \"step_corncob\" #> [4] \"step_deseq\" \"step_lefse\" \"step_maaslin\" #> [7] \"step_metagenomeseq\" \"step_wilcox\""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/articles/dar.html","id":"prep","dir":"Articles","previous_headings":"","what":"Prep","title":"Introduction to dar","text":"ensure reproducibility consistency generated results, steps defined recipe executed time using prep function. Note resulting object print shows information amount differentially abundant OTUs methods, well number OTUs detected methods (consensus).","code":"da_results <- prep(rec_obj, parallel = TRUE) da_results #> ── DAR Results ───────────────────────────────────────────────────────────────── #> Inputs: #> #> ℹ phyloseq object with 278 taxa and 156 samples #> ℹ variable of interes RiskGroup2 (class: character, levels: hts, msm, pwid) #> ℹ taxonomic level Species #> #> Results: #> #> ✔ deseq__Spina_santa diff_taxa = 166 #> ✔ metagenomeseq__Dutch_Baby_Pancake diff_taxa = 236 #> ✔ maaslin__Knieküchle diff_taxa = 146 #> #> ℹ 65 taxa are present in all tested methods"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/articles/dar.html","id":"bake-and-cool","dir":"Articles","previous_headings":"","what":"Bake and cool","title":"Introduction to dar","text":"Now results need extract , however first need define consensus strategy bake. example interested OTUs detected differentially abundant three methods used. Finally can extract table results using cool function.","code":"## Number of used methods count <- steps_ids(da_results, type = \"da\") |> length() ## Define the bake da_results <- bake(da_results, count_cutoff = count) cool(da_results) #> # A tibble: 65 × 2 #> taxa_id taxa #> #> 1 Otu_15 Bifidobacterium_catenulatum #> 2 Otu_34 Olsenella_scatoligenes #> 3 Otu_35 Collinsella_aerofaciens #> 4 Otu_37 Collinsella_stercoris #> 5 Otu_38 Enorma_massiliensis #> 6 Otu_45 Slackia_isoflavoniconvertens #> 7 Otu_47 Bacteroides_cellulosilyticus #> 8 Otu_48 Bacteroides_clarus #> 9 Otu_63 Bacteroides_plebeius #> 10 Otu_69 Bacteroides_sp_CAG_530 #> # ℹ 55 more rows"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/articles/dar.html","id":"session-info","dir":"Articles","previous_headings":"","what":"Session info","title":"Introduction to dar","text":"","code":"devtools::session_info() #> ─ Session info ─────────────────────────────────────────────────────────────── #> setting value #> version R Under development (unstable) (2024-03-28 r86224) #> os Ubuntu 22.04.4 LTS #> system x86_64, linux-gnu #> ui X11 #> language en #> collate en_US.UTF-8 #> ctype en_US.UTF-8 #> tz UTC #> date 2024-04-05 #> pandoc 3.1.1 @ /usr/local/bin/ (via rmarkdown) #> #> ─ Packages ─────────────────────────────────────────────────────────────────── #> package * version date (UTC) lib source #> ade4 1.7-22 2023-02-06 [1] CRAN (R 4.4.0) #> ape 5.7-1 2023-03-13 [1] CRAN (R 4.4.0) #> assertthat 0.2.1 2019-03-21 [1] CRAN (R 4.4.0) #> Biobase 2.63.1 2024-03-29 [1] Bioconductor 3.19 (R 4.5.0) #> BiocGenerics 0.49.1 2023-11-01 [1] Bioconductor #> biomformat 1.31.0 2023-10-24 [1] Bioconductor #> Biostrings 2.71.5 2024-03-22 [1] Bioconductor 3.19 (R 4.5.0) #> bitops 1.0-7 2021-04-24 [1] CRAN (R 4.4.0) #> brio 1.1.4 2023-12-10 [2] CRAN (R 4.5.0) #> bslib 0.7.0 2024-03-29 [2] CRAN (R 4.5.0) #> ca 0.71.1 2020-01-24 [1] CRAN (R 4.4.0) #> cachem 1.0.8 2023-05-01 [2] CRAN (R 4.5.0) #> cli 3.6.2 2023-12-11 [2] CRAN (R 4.5.0) #> cluster 2.1.6 2023-12-01 [3] CRAN (R 4.5.0) #> codetools 0.2-20 2024-03-31 [3] CRAN (R 4.5.0) #> colorspace 2.1-0 2023-01-23 [1] CRAN (R 4.4.0) #> crayon 1.5.2 2022-09-29 [2] CRAN (R 4.5.0) #> dar * 0.99.9 2024-04-05 [1] Bioconductor #> data.table 1.15.4 2024-03-30 [1] CRAN (R 4.5.0) #> dendextend 1.17.1 2023-03-25 [1] CRAN (R 4.4.0) #> desc 1.4.3 2023-12-10 [2] CRAN (R 4.5.0) #> devtools 2.4.5 2022-10-11 [2] CRAN (R 4.5.0) #> digest 0.6.35 2024-03-11 [2] CRAN (R 4.5.0) #> dplyr 1.1.4 2023-11-17 [1] CRAN (R 4.4.0) #> ellipsis 0.3.2 2021-04-29 [2] CRAN (R 4.5.0) #> evaluate 0.23 2023-11-01 [2] CRAN (R 4.5.0) #> fansi 1.0.6 2023-12-08 [2] CRAN (R 4.5.0) #> fastmap 1.1.1 2023-02-24 [2] CRAN (R 4.5.0) #> foreach 1.5.2 2022-02-02 [1] CRAN (R 4.4.0) #> fs 1.6.3 2023-07-20 [2] CRAN (R 4.5.0) #> furrr 0.3.1 2022-08-15 [1] CRAN (R 4.4.0) #> future 1.33.2 2024-03-26 [1] CRAN (R 4.5.0) #> generics 0.1.3 2022-07-05 [1] CRAN (R 4.4.0) #> GenomeInfoDb 1.39.11 2024-04-03 [1] Bioconductor 3.19 (R 4.5.0) #> GenomeInfoDbData 1.2.12 2024-04-05 [1] Bioconductor #> ggplot2 3.5.0 2024-02-23 [1] CRAN (R 4.5.0) #> globals 0.16.3 2024-03-08 [1] CRAN (R 4.5.0) #> glue 1.7.0 2024-01-09 [2] CRAN (R 4.5.0) #> gridExtra 2.3 2017-09-09 [1] CRAN (R 4.4.0) #> gtable 0.3.4 2023-08-21 [1] CRAN (R 4.4.0) #> heatmaply 1.5.0 2023-10-06 [1] CRAN (R 4.4.0) #> htmltools 0.5.8.1 2024-04-04 [2] CRAN (R 4.5.0) #> htmlwidgets 1.6.4 2023-12-06 [2] CRAN (R 4.5.0) #> httpuv 1.6.15 2024-03-26 [2] CRAN (R 4.5.0) #> httr 1.4.7 2023-08-15 [2] CRAN (R 4.5.0) #> igraph 2.0.3 2024-03-13 [1] CRAN (R 4.5.0) #> IRanges 2.37.1 2024-01-19 [1] Bioconductor 3.19 (R 4.4.0) #> iterators 1.0.14 2022-02-05 [1] CRAN (R 4.4.0) #> jquerylib 0.1.4 2021-04-26 [2] CRAN (R 4.5.0) #> jsonlite 1.8.8 2023-12-04 [2] CRAN (R 4.5.0) #> knitr 1.45 2023-10-30 [2] CRAN (R 4.5.0) #> later 1.3.2 2023-12-06 [2] CRAN (R 4.5.0) #> lattice 0.22-6 2024-03-20 [3] CRAN (R 4.5.0) #> lazyeval 0.2.2 2019-03-15 [1] CRAN (R 4.4.0) #> lifecycle 1.0.4 2023-11-07 [2] CRAN (R 4.5.0) #> listenv 0.9.1 2024-01-29 [1] CRAN (R 4.4.0) #> magrittr 2.0.3 2022-03-30 [2] CRAN (R 4.5.0) #> MASS 7.3-60.2 2024-03-29 [3] local #> Matrix 1.7-0 2024-03-22 [3] CRAN (R 4.5.0) #> memoise 2.0.1 2021-11-26 [2] CRAN (R 4.5.0) #> mgcv 1.9-1 2023-12-21 [3] CRAN (R 4.5.0) #> mime 0.12 2021-09-28 [2] CRAN (R 4.5.0) #> miniUI 0.1.1.1 2018-05-18 [2] CRAN (R 4.5.0) #> multtest 2.59.0 2023-10-24 [1] Bioconductor #> munsell 0.5.1 2024-04-01 [1] CRAN (R 4.5.0) #> nlme 3.1-164 2023-11-27 [3] CRAN (R 4.5.0) #> parallelly 1.37.1 2024-02-29 [1] CRAN (R 4.5.0) #> permute 0.9-7 2022-01-27 [1] CRAN (R 4.4.0) #> phyloseq 1.47.0 2023-10-24 [1] Bioconductor #> pillar 1.9.0 2023-03-22 [2] CRAN (R 4.5.0) #> pkgbuild 1.4.4 2024-03-17 [2] CRAN (R 4.5.0) #> pkgconfig 2.0.3 2019-09-22 [2] CRAN (R 4.5.0) #> pkgdown 2.0.7.9000 2024-04-05 [1] Github (r-lib/pkgdown@9b928b2) #> pkgload 1.3.4 2024-01-16 [2] CRAN (R 4.5.0) #> plotly 4.10.4 2024-01-13 [1] CRAN (R 4.4.0) #> plyr 1.8.9 2023-10-02 [1] CRAN (R 4.4.0) #> profvis 0.3.8 2023-05-02 [2] CRAN (R 4.5.0) #> promises 1.2.1 2023-08-10 [2] CRAN (R 4.5.0) #> purrr 1.0.2 2023-08-10 [2] CRAN (R 4.5.0) #> R6 2.5.1 2021-08-19 [2] CRAN (R 4.5.0) #> ragg 1.3.0 2024-03-13 [2] CRAN (R 4.5.0) #> RColorBrewer 1.1-3 2022-04-03 [1] CRAN (R 4.4.0) #> Rcpp 1.0.12 2024-01-09 [2] CRAN (R 4.5.0) #> RCurl 1.98-1.14 2024-01-09 [1] CRAN (R 4.4.0) #> registry 0.5-1 2019-03-05 [1] CRAN (R 4.4.0) #> remotes 2.5.0 2024-03-17 [1] CRAN (R 4.5.0) #> reshape2 1.4.4 2020-04-09 [1] CRAN (R 4.4.0) #> rhdf5 2.47.6 2024-03-11 [1] Bioconductor 3.19 (R 4.5.0) #> rhdf5filters 1.15.4 2024-03-15 [1] Bioconductor 3.19 (R 4.5.0) #> Rhdf5lib 1.25.1 2023-12-11 [1] Bioconductor 3.19 (R 4.4.0) #> rlang 1.1.3 2024-01-10 [2] CRAN (R 4.5.0) #> rmarkdown 2.26 2024-03-05 [2] CRAN (R 4.5.0) #> S4Vectors 0.41.5 2024-03-20 [1] Bioconductor 3.19 (R 4.5.0) #> sass 0.4.9 2024-03-15 [2] CRAN (R 4.5.0) #> scales 1.3.0 2023-11-28 [1] CRAN (R 4.4.0) #> seriation 1.5.4 2023-12-12 [1] CRAN (R 4.4.0) #> sessioninfo 1.2.2 2021-12-06 [2] CRAN (R 4.5.0) #> shiny 1.8.1.1 2024-04-02 [2] CRAN (R 4.5.0) #> stringi 1.8.3 2023-12-11 [2] CRAN (R 4.5.0) #> stringr 1.5.1 2023-11-14 [2] CRAN (R 4.5.0) #> survival 3.5-8 2024-02-14 [3] CRAN (R 4.5.0) #> systemfonts 1.0.6 2024-03-07 [2] CRAN (R 4.5.0) #> testthat 3.2.1 2023-12-02 [2] CRAN (R 4.5.0) #> textshaping 0.3.7 2023-10-09 [2] CRAN (R 4.5.0) #> tibble 3.2.1 2023-03-20 [2] CRAN (R 4.5.0) #> tidyr 1.3.1 2024-01-24 [1] CRAN (R 4.4.0) #> tidyselect 1.2.1 2024-03-11 [1] CRAN (R 4.5.0) #> TSP 1.2-4 2023-04-04 [1] CRAN (R 4.4.0) #> UpSetR 1.4.0 2019-05-22 [1] CRAN (R 4.4.0) #> urlchecker 1.0.1 2021-11-30 [2] CRAN (R 4.5.0) #> usethis 2.2.3 2024-02-19 [2] CRAN (R 4.5.0) #> utf8 1.2.4 2023-10-22 [2] CRAN (R 4.5.0) #> vctrs 0.6.5 2023-12-01 [2] CRAN (R 4.5.0) #> vegan 2.6-4 2022-10-11 [1] CRAN (R 4.4.0) #> viridis 0.6.5 2024-01-29 [1] CRAN (R 4.4.0) #> viridisLite 0.4.2 2023-05-02 [1] CRAN (R 4.4.0) #> webshot 0.5.5 2023-06-26 [1] CRAN (R 4.4.0) #> withr 3.0.0 2024-01-16 [2] CRAN (R 4.5.0) #> xfun 0.43 2024-03-25 [2] CRAN (R 4.5.0) #> xtable 1.8-4 2019-04-21 [2] CRAN (R 4.5.0) #> XVector 0.43.1 2024-01-10 [1] Bioconductor 3.19 (R 4.4.0) #> yaml 2.3.8 2023-12-11 [2] CRAN (R 4.5.0) #> zlibbioc 1.49.3 2024-03-13 [1] Bioconductor 3.19 (R 4.5.0) #> #> [1] /__w/_temp/Library #> [2] /usr/local/lib/R/site-library #> [3] /usr/local/lib/R/library #> #> ──────────────────────────────────────────────────────────────────────────────"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/articles/data_import.html","id":"importing-data-from-biome-format","dir":"Articles","previous_headings":"","what":"Importing Data from biome Format","title":"Converting Common Data Formats to Phyloseq and TreeSummarizedExperiment","text":"biome format commonly used format bioinformatics represent microbiome sequencing data. ’s can import data biome format phyloseq TreeSummarizedExperiment.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/articles/data_import.html","id":"to-phyloseq","dir":"Articles","previous_headings":"Importing Data from biome Format","what":"To Phyloseq","title":"Converting Common Data Formats to Phyloseq and TreeSummarizedExperiment","text":"convert data biome format phyloseq format, can use phyloseq::import_biom() function. ’s step--step example perform conversion:","code":"# Example of a rich dense biom file rich_dense_biom <- system.file(\"extdata\", \"rich_dense_otu_table.biom\", package = \"phyloseq\") # Import biom as a phyloseq-class object phy <- phyloseq::import_biom( rich_dense_biom, parseFunction = parse_taxonomy_greengenes ) phy #> phyloseq-class experiment-level object #> otu_table() OTU Table: [ 5 taxa and 6 samples ] #> sample_data() Sample Data: [ 6 samples by 4 sample variables ] #> tax_table() Taxonomy Table: [ 5 taxa by 7 taxonomic ranks ] # Print sample_data phyloseq::sample_data(phy) #> BarcodeSequence LinkerPrimerSequence BODY_SITE Description #> Sample1 CGCTTATCGAGA CATGCTGCCTCCCGTAGGAGT gut human gut #> Sample2 CATACCAGTAGC CATGCTGCCTCCCGTAGGAGT gut human gut #> Sample3 CTCTCTACCTGT CATGCTGCCTCCCGTAGGAGT gut human gut #> Sample4 CTCTCGGCCTGT CATGCTGCCTCCCGTAGGAGT skin human skin #> Sample5 CTCTCTACCAAT CATGCTGCCTCCCGTAGGAGT skin human skin #> Sample6 CTAACTACCAAT CATGCTGCCTCCCGTAGGAGT skin human skin # Print tax_table phyloseq::tax_table(phy) #> Taxonomy Table: [5 taxa by 7 taxonomic ranks]: #> Kingdom Phylum Class Order #> GG_OTU_1 \"Bacteria\" \"Proteobacteria\" \"Gammaproteobacteria\" \"Enterobacteriales\" #> GG_OTU_2 \"Bacteria\" \"Cyanobacteria\" \"Nostocophycideae\" \"Nostocales\" #> GG_OTU_3 \"Archaea\" \"Euryarchaeota\" \"Methanomicrobia\" \"Methanosarcinales\" #> GG_OTU_4 \"Bacteria\" \"Firmicutes\" \"Clostridia\" \"Halanaerobiales\" #> GG_OTU_5 \"Bacteria\" \"Proteobacteria\" \"Gammaproteobacteria\" \"Enterobacteriales\" #> Family Genus Species #> GG_OTU_1 \"Enterobacteriaceae\" \"Escherichia\" NA #> GG_OTU_2 \"Nostocaceae\" \"Dolichospermum\" NA #> GG_OTU_3 \"Methanosarcinaceae\" \"Methanosarcina\" NA #> GG_OTU_4 \"Halanaerobiaceae\" \"Halanaerobium\" \"Halanaerobiumsaccharolyticum\" #> GG_OTU_5 \"Enterobacteriaceae\" \"Escherichia\" NA # Recipe init rec <- dar::recipe(phy, var_info = \"BODY_SITE\", tax_info = \"Genus\") rec #> ── DAR Recipe ────────────────────────────────────────────────────────────────── #> Inputs: #> #> ℹ phyloseq object with 5 taxa and 6 samples #> ℹ variable of interes BODY_SITE (class: character, levels: gut, skin) #> ℹ taxonomic level Genus"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/articles/data_import.html","id":"to-treesummarizedexperiment","dir":"Articles","previous_headings":"Importing Data from biome Format","what":"To TreeSummarizedExperiment","title":"Converting Common Data Formats to Phyloseq and TreeSummarizedExperiment","text":"convert data biome format TreeSummarizedExperiment format, can use mia::loadFromBiom() function. ’s step--step example perform conversion:","code":"# Example of a rich dense biom file rich_dense_biom <- system.file(\"extdata\", \"rich_dense_otu_table.biom\", package = \"phyloseq\") # Import biom as a phyloseq-class object tse <- mia::loadFromBiom(rich_dense_biom) tse #> class: TreeSummarizedExperiment #> dim: 5 6 #> metadata(0): #> assays(1): counts #> rownames(5): GG_OTU_1 GG_OTU_2 GG_OTU_3 GG_OTU_4 GG_OTU_5 #> rowData names(7): taxonomy1 taxonomy2 ... taxonomy6 taxonomy7 #> colnames(6): Sample1 Sample2 ... Sample5 Sample6 #> colData names(4): BarcodeSequence LinkerPrimerSequence BODY_SITE #> Description #> reducedDimNames(0): #> mainExpName: NULL #> altExpNames(0): #> rowLinks: NULL #> rowTree: NULL #> colLinks: NULL #> colTree: NULL # Print sample_data colData(tse) #> DataFrame with 6 rows and 4 columns #> BarcodeSequence LinkerPrimerSequence BODY_SITE Description #> #> Sample1 CGCTTATCGAGA CATGCTGCCTCCCGTAGGAGT gut human gut #> Sample2 CATACCAGTAGC CATGCTGCCTCCCGTAGGAGT gut human gut #> Sample3 CTCTCTACCTGT CATGCTGCCTCCCGTAGGAGT gut human gut #> Sample4 CTCTCGGCCTGT CATGCTGCCTCCCGTAGGAGT skin human skin #> Sample5 CTCTCTACCAAT CATGCTGCCTCCCGTAGGAGT skin human skin #> Sample6 CTAACTACCAAT CATGCTGCCTCCCGTAGGAGT skin human skin # Print tax_table rowData(tse) #> DataFrame with 5 rows and 7 columns #> taxonomy1 taxonomy2 taxonomy3 #> #> GG_OTU_1 k__Bacteria p__Proteobacteria c__Gammaproteobacteria #> GG_OTU_2 k__Bacteria p__Cyanobacteria c__Nostocophycideae #> GG_OTU_3 k__Archaea p__Euryarchaeota c__Methanomicrobia #> GG_OTU_4 k__Bacteria p__Firmicutes c__Clostridia #> GG_OTU_5 k__Bacteria p__Proteobacteria c__Gammaproteobacteria #> taxonomy4 taxonomy5 taxonomy6 #> #> GG_OTU_1 o__Enterobacteriales f__Enterobacteriaceae g__Escherichia #> GG_OTU_2 o__Nostocales f__Nostocaceae g__Dolichospermum #> GG_OTU_3 o__Methanosarcinales f__Methanosarcinaceae g__Methanosarcina #> GG_OTU_4 o__Halanaerobiales f__Halanaerobiaceae g__Halanaerobium #> GG_OTU_5 o__Enterobacteriales f__Enterobacteriaceae g__Escherichia #> taxonomy7 #> #> GG_OTU_1 s__ #> GG_OTU_2 s__ #> GG_OTU_3 s__ #> GG_OTU_4 s__Halanaerobiumsacc.. #> GG_OTU_5 s__ # Change the column names of the tax_table colnames(rowData(tse)) <- c(\"Kingdom\", \"Phylum\", \"Class\", \"Order\", \"Family\", \"Genus\", \"Species\") rowData(tse) #> DataFrame with 5 rows and 7 columns #> Kingdom Phylum Class #> #> GG_OTU_1 k__Bacteria p__Proteobacteria c__Gammaproteobacteria #> GG_OTU_2 k__Bacteria p__Cyanobacteria c__Nostocophycideae #> GG_OTU_3 k__Archaea p__Euryarchaeota c__Methanomicrobia #> GG_OTU_4 k__Bacteria p__Firmicutes c__Clostridia #> GG_OTU_5 k__Bacteria p__Proteobacteria c__Gammaproteobacteria #> Order Family Genus #> #> GG_OTU_1 o__Enterobacteriales f__Enterobacteriaceae g__Escherichia #> GG_OTU_2 o__Nostocales f__Nostocaceae g__Dolichospermum #> GG_OTU_3 o__Methanosarcinales f__Methanosarcinaceae g__Methanosarcina #> GG_OTU_4 o__Halanaerobiales f__Halanaerobiaceae g__Halanaerobium #> GG_OTU_5 o__Enterobacteriales f__Enterobacteriaceae g__Escherichia #> Species #> #> GG_OTU_1 s__ #> GG_OTU_2 s__ #> GG_OTU_3 s__ #> GG_OTU_4 s__Halanaerobiumsacc.. #> GG_OTU_5 s__ # Recipe init rec <- dar::recipe(tse, var_info = \"BODY_SITE\", tax_info = \"Genus\") rec #> ── DAR Recipe ────────────────────────────────────────────────────────────────── #> Inputs: #> #> ℹ phyloseq object with 5 taxa and 6 samples #> ℹ variable of interes BODY_SITE (class: character, levels: gut, skin) #> ℹ taxonomic level Genus"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/articles/data_import.html","id":"importing-data-from-qiime-format","dir":"Articles","previous_headings":"","what":"Importing Data from qiime Format","title":"Converting Common Data Formats to Phyloseq and TreeSummarizedExperiment","text":"qiime format another commonly used format bioinformatics microbiome sequencing data. ’s can import data qiime format Phyloseq TreeSummarizedExperiment.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/articles/data_import.html","id":"to-phyloseq-1","dir":"Articles","previous_headings":"Importing Data from qiime Format","what":"To Phyloseq","title":"Converting Common Data Formats to Phyloseq and TreeSummarizedExperiment","text":"convert data qiime format Phyloseq format, can use phyloseq::import_qiime() function. ’s step--step example perform conversion:","code":"# Import QIIME data phy_qiime <- phyloseq::import_qiime( otufilename = system.file(\"extdata\", \"GP_otu_table_rand_short.txt.gz\", package = \"phyloseq\"), mapfilename = system.file(\"extdata\", \"master_map.txt\", package = \"phyloseq\"), treefilename = system.file(\"extdata\", \"GP_tree_rand_short.newick.gz\", package = \"phyloseq\") ) #> Processing map file... #> Processing otu/tax file... #> Reading file into memory prior to parsing... #> Detecting first header line... #> Header is on line 2 #> Converting input file to a table... #> Defining OTU table... #> Parsing taxonomy table... #> Processing phylogenetic tree... #> /__w/_temp/Library/phyloseq/extdata/GP_tree_rand_short.newick.gz ... phy_qiime #> phyloseq-class experiment-level object #> otu_table() OTU Table: [ 500 taxa and 26 samples ] #> sample_data() Sample Data: [ 26 samples by 7 sample variables ] #> tax_table() Taxonomy Table: [ 500 taxa by 7 taxonomic ranks ] #> phy_tree() Phylogenetic Tree: [ 500 tips and 499 internal nodes ] # Recipe init rec <- dar::recipe(phy_qiime, var_info = \"SampleType\", tax_info = \"Genus\") rec #> ── DAR Recipe ────────────────────────────────────────────────────────────────── #> Inputs: #> #> ℹ phyloseq object with 500 taxa and 26 samples #> ℹ variable of interes SampleType (class: character, levels: Feces, Freshwater, Freshwater (creek), Mock, Ocean, Sediment (estuary), Skin, Soil, Tongue) #> ℹ taxonomic level Genus"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/articles/data_import.html","id":"to-treesummarizedexperiment-1","dir":"Articles","previous_headings":"Importing Data from qiime Format","what":"To TreeSummarizedExperiment","title":"Converting Common Data Formats to Phyloseq and TreeSummarizedExperiment","text":"convert data qiime format TreeSummarizedExperiment format, can use mia::loadFromQIIME2() function. ’s step--step example perform conversion:","code":"# Import QIIME data to tse tse_qiime <- mia::loadFromQIIME2( featureTableFile = system.file(\"extdata\", \"table.qza\", package = \"mia\"), taxonomyTableFile = system.file(\"extdata\", \"taxonomy.qza\", package = \"mia\"), sampleMetaFile = system.file(\"extdata\", \"sample-metadata.tsv\", package = \"mia\"), refSeqFile = system.file(\"extdata\", \"refseq.qza\", package = \"mia\"), phyTreeFile = system.file(\"extdata\", \"tree.qza\", package = \"mia\") ) tse_qiime #> class: TreeSummarizedExperiment #> dim: 770 34 #> metadata(0): #> assays(1): counts #> rownames(770): 4b5eeb300368260019c1fbc7a3c718fc #> fe30ff0f71a38a39cf1717ec2be3a2fc ... 98d250a339a635f20e26397dafc6ced3 #> 1830c14ead81ad012f1db0e12f8ab6a4 #> rowData names(8): Kingdom Phylum ... Species Confidence #> colnames(34): L1S8 L1S57 ... L6S68 L6S93 #> colData names(9): sample.id barcode.sequence ... #> reported.antibiotic.usage days.since.experiment.start #> reducedDimNames(0): #> mainExpName: NULL #> altExpNames(0): #> rowLinks: a LinkDataFrame (770 rows) #> rowTree: 1 phylo tree(s) (770 leaves) #> colLinks: NULL #> colTree: NULL #> referenceSeq: a DNAStringSet (770 sequences) # Recipe init rec <- dar::recipe(tse_qiime, var_info = \"body.site\", tax_info = \"Genus\") rec #> ── DAR Recipe ────────────────────────────────────────────────────────────────── #> Inputs: #> #> ℹ phyloseq object with 770 taxa and 34 samples #> ℹ variable of interes body.site (class: character, levels: gut, left palm, right palm, tongue) #> ℹ taxonomic level Genus"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/articles/data_import.html","id":"importing-data-from-mothur-format","dir":"Articles","previous_headings":"","what":"Importing Data from mothur Format","title":"Converting Common Data Formats to Phyloseq and TreeSummarizedExperiment","text":"mothur format another commonly used format bioinformatics microbiome sequencing data. ’s can import data mothur format Phyloseq TreeSummarizedExperiment.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/articles/data_import.html","id":"to-phyloseq-2","dir":"Articles","previous_headings":"Importing Data from mothur Format","what":"To Phyloseq","title":"Converting Common Data Formats to Phyloseq and TreeSummarizedExperiment","text":"convert data mothur format Phyloseq format, can use phyloseq::import_mothur() function. ’s step--step example perform conversion:","code":"# Import Mothur data phy_mothur <- phyloseq::import_mothur( mothur_list_file = system.file(\"extdata\", \"esophagus.fn.list.gz\", package = \"phyloseq\"), mothur_group_file = system.file(\"extdata\", \"esophagus.good.groups.gz\", package = \"phyloseq\"), mothur_tree_file = system.file(\"extdata\", \"esophagus.tree.gz\", package = \"phyloseq\") ) phy_mothur #> phyloseq-class experiment-level object #> otu_table() OTU Table: [ 591 taxa and 3 samples ] #> phy_tree() Phylogenetic Tree: [ 591 tips and 590 internal nodes ] # Recipe init rec <- dar::recipe(phy_mothur) rec #> ── DAR Recipe ────────────────────────────────────────────────────────────────── #> Inputs: #> #> ℹ phyloseq object with 591 taxa and 3 samples #> ✖ undefined variable of interest. Use add_var() to add it to Recipe! #> ✖ undefined taxonomic level. Use add_tax() to add it to Recipe!"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/articles/data_import.html","id":"to-treesummarizedexperiment-2","dir":"Articles","previous_headings":"Importing Data from mothur Format","what":"To TreeSummarizedExperiment","title":"Converting Common Data Formats to Phyloseq and TreeSummarizedExperiment","text":"convert data mothur format TreeSummarizedExperiment format, can use mia::loadFromMothur() function. ’s step--step example perform conversion:","code":"# Import Mothur data to TreeSummarizedExperiment tse_mothur <- mia::loadFromMothur( sharedFile = system.file(\"extdata\", \"mothur_example.shared\", package = \"mia\"), taxonomyFile = system.file(\"extdata\", \"mothur_example.cons.taxonomy\", package = \"mia\"), designFile = system.file(\"extdata\", \"mothur_example.design\", package = \"mia\") ) |> methods::as(\"TreeSummarizedExperiment\") tse_mothur #> class: TreeSummarizedExperiment #> dim: 100 100 #> metadata(0): #> assays(1): counts #> rownames(100): Otu001 Otu002 ... Otu099 Otu100 #> rowData names(8): OTU Size ... Family Genus #> colnames(100): Sample1 Sample2 ... Sample99 Sample100 #> colData names(7): group sex ... numOtus Group #> reducedDimNames(0): #> mainExpName: NULL #> altExpNames(0): #> rowLinks: NULL #> rowTree: NULL #> colLinks: NULL #> colTree: NULL # Recipe init rec <- dar::recipe(tse_mothur, var_info = \"drug\", tax_info = \"Genus\") rec #> ── DAR Recipe ────────────────────────────────────────────────────────────────── #> Inputs: #> #> ℹ phyloseq object with 100 taxa and 100 samples #> ℹ variable of interes drug (class: character, levels: A, B) #> ℹ taxonomic level Genus"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/articles/data_import.html","id":"importing-data-from-metaphlan-format","dir":"Articles","previous_headings":"","what":"Importing Data from metaphlan Format","title":"Converting Common Data Formats to Phyloseq and TreeSummarizedExperiment","text":"metaphlan format another commonly used format bioinformatics microbiome sequencing data. ’s can import data metaphlan format TreeSummarizedExperiment.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/articles/data_import.html","id":"to-treesummarizedexperiment-3","dir":"Articles","previous_headings":"Importing Data from metaphlan Format","what":"To TreeSummarizedExperiment","title":"Converting Common Data Formats to Phyloseq and TreeSummarizedExperiment","text":"convert data metaphlan format TreeSummarizedExperiment format, can use mia::loadFromMetaphlan() function. ’s step--step example perform conversion:","code":"# Importing data from Metaphlan tse_metaphlan <- mia::loadFromMetaphlan( file = system.file(\"extdata\", \"merged_abundance_table.txt\", package = \"mia\"), ) tse_metaphlan #> class: TreeSummarizedExperiment #> dim: 16 6 #> metadata(0): #> assays(1): counts #> rownames(16): s__Corynebacterium_matruchotii s__Rothia_dentocariosa ... #> s__Haemophilus_haemolyticus s__Moraxella_nonliquefaciens #> rowData names(9): Kingdom Phylum ... clade_name NCBI_tax_id #> colnames(6): SRS014494-Posterior_fornix_profile #> SRS014476-Supragingival_plaque_profile ... #> SRS014464-Anterior_nares_profile SRS014459-Stool_profile #> colData names(0): #> reducedDimNames(0): #> mainExpName: NULL #> altExpNames(6): Kingdom Phylum ... Family Genus #> rowLinks: NULL #> rowTree: NULL #> colLinks: NULL #> colTree: NULL # Recipe init rec <- dar::recipe(tse_metaphlan) rec #> ── DAR Recipe ────────────────────────────────────────────────────────────────── #> Inputs: #> #> ℹ phyloseq object with 16 taxa and 6 samples #> ✖ undefined variable of interest. Use add_var() to add it to Recipe! #> ✖ undefined taxonomic level. Use add_tax() to add it to Recipe!"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/articles/data_import.html","id":"importing-data-from-humann-format","dir":"Articles","previous_headings":"","what":"Importing Data from humann Format","title":"Converting Common Data Formats to Phyloseq and TreeSummarizedExperiment","text":"humann format another commonly used format bioinformatics microbiome sequencing data. ’s can import data humann format TreeSummarizedExperiment.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/articles/data_import.html","id":"to-treesummarizedexperiment-4","dir":"Articles","previous_headings":"Importing Data from humann Format","what":"To TreeSummarizedExperiment","title":"Converting Common Data Formats to Phyloseq and TreeSummarizedExperiment","text":"convert data humann format TreeSummarizedExperiment format, can use mia::loadFromHumann() function. ’s step--step example perform conversion:","code":"# Importing data from HUMAnN tse_humann <- mia::loadFromHumann( file = system.file(\"extdata\", \"humann_output.tsv\", package = \"mia\") ) tse_humann #> class: TreeSummarizedExperiment #> dim: 12 3 #> metadata(0): #> assays(1): counts #> rownames(12): UNMAPPED UniRef50_unknown ... UniRef50_O83668: #> Fructose-bisphosphate #> aldolase|g__Bacteroides.s__Bacteroides_thetaiotaomicron #> UniRef50_O83668: Fructose-bisphosphate #> aldolase|g__Bacteroides.s__Bacteroides_stercoris #> rowData names(9): Gene_Family_long Gene_Family ... Genus Species #> colnames(3): sample1 sample2 sample3 #> colData names(0): #> reducedDimNames(0): #> mainExpName: NULL #> altExpNames(0): #> rowLinks: NULL #> rowTree: NULL #> colLinks: NULL #> colTree: NULL # Recipe init rec <- dar::recipe(tse_humann) rec #> ── DAR Recipe ────────────────────────────────────────────────────────────────── #> Inputs: #> #> ℹ phyloseq object with 12 taxa and 3 samples #> ✖ undefined variable of interest. Use add_var() to add it to Recipe! #> ✖ undefined taxonomic level. Use add_tax() to add it to Recipe!"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/articles/data_import.html","id":"conclusion","dir":"Articles","previous_headings":"","what":"Conclusion","title":"Converting Common Data Formats to Phyloseq and TreeSummarizedExperiment","text":"guide, explored various methods importing microbiome sequencing data different formats Phyloseq TreeSummarizedExperiment. ’ve covered biome, qiime, mothur, metaphlan, humann formats, providing step--step examples . flexibility tools allows smooth transition different data formats, making easier conduct analysis irrespective initial data format. following steps outlined guide, able successfully convert data carry differential abundance analysis. Remember, specific details data may require adjust parameters import functions. Always inspect data conversion ensure imported correctly.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/articles/data_import.html","id":"session-info","dir":"Articles","previous_headings":"","what":"Session info","title":"Converting Common Data Formats to Phyloseq and TreeSummarizedExperiment","text":"","code":"devtools::session_info() #> ─ Session info ─────────────────────────────────────────────────────────────── #> setting value #> version R Under development (unstable) (2024-03-28 r86224) #> os Ubuntu 22.04.4 LTS #> system x86_64, linux-gnu #> ui X11 #> language en #> collate en_US.UTF-8 #> ctype en_US.UTF-8 #> tz UTC #> date 2024-04-05 #> pandoc 3.1.1 @ /usr/local/bin/ (via rmarkdown) #> #> ─ Packages ─────────────────────────────────────────────────────────────────── #> package * version date (UTC) lib source #> abind 1.4-5 2016-07-21 [1] CRAN (R 4.4.0) #> ade4 1.7-22 2023-02-06 [1] CRAN (R 4.4.0) #> ape 5.7-1 2023-03-13 [1] CRAN (R 4.4.0) #> assertthat 0.2.1 2019-03-21 [1] CRAN (R 4.4.0) #> beachmat 2.19.4 2024-03-28 [1] Bioconductor 3.19 (R 4.5.0) #> beeswarm 0.4.0 2021-06-01 [1] CRAN (R 4.4.0) #> Biobase * 2.63.1 2024-03-29 [1] Bioconductor 3.19 (R 4.5.0) #> BiocGenerics * 0.49.1 2023-11-01 [1] Bioconductor #> BiocNeighbors 1.21.2 2023-12-19 [1] Bioconductor 3.19 (R 4.4.0) #> BiocParallel 1.37.1 2024-03-04 [1] Bioconductor 3.19 (R 4.5.0) #> BiocSingular 1.19.0 2023-10-24 [1] Bioconductor #> biomformat 1.31.0 2023-10-24 [1] Bioconductor #> Biostrings * 2.71.5 2024-03-22 [1] Bioconductor 3.19 (R 4.5.0) #> bitops 1.0-7 2021-04-24 [1] CRAN (R 4.4.0) #> bluster 1.13.0 2023-10-24 [1] Bioconductor #> bslib 0.7.0 2024-03-29 [2] CRAN (R 4.5.0) #> ca 0.71.1 2020-01-24 [1] CRAN (R 4.4.0) #> cachem 1.0.8 2023-05-01 [2] CRAN (R 4.5.0) #> cli 3.6.2 2023-12-11 [2] CRAN (R 4.5.0) #> cluster 2.1.6 2023-12-01 [3] CRAN (R 4.5.0) #> codetools 0.2-20 2024-03-31 [3] CRAN (R 4.5.0) #> colorspace 2.1-0 2023-01-23 [1] CRAN (R 4.4.0) #> crayon 1.5.2 2022-09-29 [2] CRAN (R 4.5.0) #> dar 0.99.9 2024-04-05 [1] Bioconductor #> data.table 1.15.4 2024-03-30 [1] CRAN (R 4.5.0) #> DBI 1.2.2 2024-02-16 [1] CRAN (R 4.5.0) #> DECIPHER 2.31.4 2024-03-29 [1] Bioconductor 3.19 (R 4.5.0) #> decontam 1.23.0 2023-10-24 [1] Bioconductor #> DelayedArray 0.29.9 2024-03-01 [1] Bioconductor 3.19 (R 4.5.0) #> DelayedMatrixStats 1.25.1 2023-11-09 [1] Bioconductor #> dendextend 1.17.1 2023-03-25 [1] CRAN (R 4.4.0) #> desc 1.4.3 2023-12-10 [2] CRAN (R 4.5.0) #> devtools 2.4.5 2022-10-11 [2] CRAN (R 4.5.0) #> digest 0.6.35 2024-03-11 [2] CRAN (R 4.5.0) #> DirichletMultinomial 1.45.0 2023-10-24 [1] Bioconductor #> dplyr 1.1.4 2023-11-17 [1] CRAN (R 4.4.0) #> ellipsis 0.3.2 2021-04-29 [2] CRAN (R 4.5.0) #> evaluate 0.23 2023-11-01 [2] CRAN (R 4.5.0) #> fansi 1.0.6 2023-12-08 [2] CRAN (R 4.5.0) #> fastmap 1.1.1 2023-02-24 [2] CRAN (R 4.5.0) #> foreach 1.5.2 2022-02-02 [1] CRAN (R 4.4.0) #> fs 1.6.3 2023-07-20 [2] CRAN (R 4.5.0) #> generics 0.1.3 2022-07-05 [1] CRAN (R 4.4.0) #> GenomeInfoDb * 1.39.11 2024-04-03 [1] Bioconductor 3.19 (R 4.5.0) #> GenomeInfoDbData 1.2.12 2024-04-05 [1] Bioconductor #> GenomicRanges * 1.55.4 2024-03-18 [1] Bioconductor 3.19 (R 4.5.0) #> ggbeeswarm 0.7.2 2023-04-29 [1] CRAN (R 4.4.0) #> ggplot2 3.5.0 2024-02-23 [1] CRAN (R 4.5.0) #> ggrepel 0.9.5 2024-01-10 [1] CRAN (R 4.4.0) #> glue 1.7.0 2024-01-09 [2] CRAN (R 4.5.0) #> gridExtra 2.3 2017-09-09 [1] CRAN (R 4.4.0) #> gtable 0.3.4 2023-08-21 [1] CRAN (R 4.4.0) #> heatmaply 1.5.0 2023-10-06 [1] CRAN (R 4.4.0) #> htmltools 0.5.8.1 2024-04-04 [2] CRAN (R 4.5.0) #> htmlwidgets 1.6.4 2023-12-06 [2] CRAN (R 4.5.0) #> httpuv 1.6.15 2024-03-26 [2] CRAN (R 4.5.0) #> httr 1.4.7 2023-08-15 [2] CRAN (R 4.5.0) #> igraph 2.0.3 2024-03-13 [1] CRAN (R 4.5.0) #> IRanges * 2.37.1 2024-01-19 [1] Bioconductor 3.19 (R 4.4.0) #> irlba 2.3.5.1 2022-10-03 [1] CRAN (R 4.4.0) #> iterators 1.0.14 2022-02-05 [1] CRAN (R 4.4.0) #> jquerylib 0.1.4 2021-04-26 [2] CRAN (R 4.5.0) #> jsonlite 1.8.8 2023-12-04 [2] CRAN (R 4.5.0) #> knitr 1.45 2023-10-30 [2] CRAN (R 4.5.0) #> later 1.3.2 2023-12-06 [2] CRAN (R 4.5.0) #> lattice 0.22-6 2024-03-20 [3] CRAN (R 4.5.0) #> lazyeval 0.2.2 2019-03-15 [1] CRAN (R 4.4.0) #> lifecycle 1.0.4 2023-11-07 [2] CRAN (R 4.5.0) #> magrittr 2.0.3 2022-03-30 [2] CRAN (R 4.5.0) #> MASS 7.3-60.2 2024-03-29 [3] local #> Matrix 1.7-0 2024-03-22 [3] CRAN (R 4.5.0) #> MatrixGenerics * 1.15.0 2023-10-24 [1] Bioconductor #> matrixStats * 1.2.0 2023-12-11 [1] CRAN (R 4.4.0) #> memoise 2.0.1 2021-11-26 [2] CRAN (R 4.5.0) #> mgcv 1.9-1 2023-12-21 [3] CRAN (R 4.5.0) #> mia * 1.11.9 2024-03-26 [1] Bioconductor 3.19 (R 4.5.0) #> mime 0.12 2021-09-28 [2] CRAN (R 4.5.0) #> miniUI 0.1.1.1 2018-05-18 [2] CRAN (R 4.5.0) #> MultiAssayExperiment * 1.29.1 2024-02-02 [1] Bioconductor 3.19 (R 4.4.0) #> multtest 2.59.0 2023-10-24 [1] Bioconductor #> munsell 0.5.1 2024-04-01 [1] CRAN (R 4.5.0) #> nlme 3.1-164 2023-11-27 [3] CRAN (R 4.5.0) #> permute 0.9-7 2022-01-27 [1] CRAN (R 4.4.0) #> phyloseq * 1.47.0 2023-10-24 [1] Bioconductor #> pillar 1.9.0 2023-03-22 [2] CRAN (R 4.5.0) #> pkgbuild 1.4.4 2024-03-17 [2] CRAN (R 4.5.0) #> pkgconfig 2.0.3 2019-09-22 [2] CRAN (R 4.5.0) #> pkgdown 2.0.7.9000 2024-04-05 [1] Github (r-lib/pkgdown@9b928b2) #> pkgload 1.3.4 2024-01-16 [2] CRAN (R 4.5.0) #> plotly 4.10.4 2024-01-13 [1] CRAN (R 4.4.0) #> plyr 1.8.9 2023-10-02 [1] CRAN (R 4.4.0) #> profvis 0.3.8 2023-05-02 [2] CRAN (R 4.5.0) #> promises 1.2.1 2023-08-10 [2] CRAN (R 4.5.0) #> purrr 1.0.2 2023-08-10 [2] CRAN (R 4.5.0) #> R6 2.5.1 2021-08-19 [2] CRAN (R 4.5.0) #> ragg 1.3.0 2024-03-13 [2] CRAN (R 4.5.0) #> RColorBrewer 1.1-3 2022-04-03 [1] CRAN (R 4.4.0) #> Rcpp 1.0.12 2024-01-09 [2] CRAN (R 4.5.0) #> RCurl 1.98-1.14 2024-01-09 [1] CRAN (R 4.4.0) #> registry 0.5-1 2019-03-05 [1] CRAN (R 4.4.0) #> remotes 2.5.0 2024-03-17 [1] CRAN (R 4.5.0) #> reshape2 1.4.4 2020-04-09 [1] CRAN (R 4.4.0) #> rhdf5 2.47.6 2024-03-11 [1] Bioconductor 3.19 (R 4.5.0) #> rhdf5filters 1.15.4 2024-03-15 [1] Bioconductor 3.19 (R 4.5.0) #> Rhdf5lib 1.25.1 2023-12-11 [1] Bioconductor 3.19 (R 4.4.0) #> rlang 1.1.3 2024-01-10 [2] CRAN (R 4.5.0) #> rmarkdown 2.26 2024-03-05 [2] CRAN (R 4.5.0) #> rsvd 1.0.5 2021-04-16 [1] CRAN (R 4.4.0) #> S4Arrays 1.3.6 2024-03-04 [1] Bioconductor 3.19 (R 4.5.0) #> S4Vectors * 0.41.5 2024-03-20 [1] Bioconductor 3.19 (R 4.5.0) #> sass 0.4.9 2024-03-15 [2] CRAN (R 4.5.0) #> ScaledMatrix 1.11.1 2024-03-01 [1] Bioconductor 3.19 (R 4.5.0) #> scales 1.3.0 2023-11-28 [1] CRAN (R 4.4.0) #> scater 1.31.2 2024-01-28 [1] Bioconductor 3.19 (R 4.4.0) #> scuttle 1.13.1 2024-03-06 [1] Bioconductor 3.19 (R 4.5.0) #> seriation 1.5.4 2023-12-12 [1] CRAN (R 4.4.0) #> sessioninfo 1.2.2 2021-12-06 [2] CRAN (R 4.5.0) #> shiny 1.8.1.1 2024-04-02 [2] CRAN (R 4.5.0) #> SingleCellExperiment * 1.25.1 2024-03-27 [1] Bioconductor 3.19 (R 4.5.0) #> SparseArray 1.3.4 2024-02-11 [1] Bioconductor 3.19 (R 4.5.0) #> sparseMatrixStats 1.15.0 2023-10-24 [1] Bioconductor #> stringi 1.8.3 2023-12-11 [2] CRAN (R 4.5.0) #> stringr 1.5.1 2023-11-14 [2] CRAN (R 4.5.0) #> SummarizedExperiment * 1.33.3 2024-01-23 [1] Bioconductor 3.19 (R 4.4.0) #> survival 3.5-8 2024-02-14 [3] CRAN (R 4.5.0) #> systemfonts 1.0.6 2024-03-07 [2] CRAN (R 4.5.0) #> textshaping 0.3.7 2023-10-09 [2] CRAN (R 4.5.0) #> tibble 3.2.1 2023-03-20 [2] CRAN (R 4.5.0) #> tidyr 1.3.1 2024-01-24 [1] CRAN (R 4.4.0) #> tidyselect 1.2.1 2024-03-11 [1] CRAN (R 4.5.0) #> tidytree 0.4.6 2023-12-12 [1] CRAN (R 4.4.0) #> treeio 1.27.0 2023-10-24 [1] Bioconductor #> TreeSummarizedExperiment * 2.11.0 2023-10-24 [1] Bioconductor #> TSP 1.2-4 2023-04-04 [1] CRAN (R 4.4.0) #> UpSetR 1.4.0 2019-05-22 [1] CRAN (R 4.4.0) #> urlchecker 1.0.1 2021-11-30 [2] CRAN (R 4.5.0) #> usethis 2.2.3 2024-02-19 [2] CRAN (R 4.5.0) #> utf8 1.2.4 2023-10-22 [2] CRAN (R 4.5.0) #> vctrs 0.6.5 2023-12-01 [2] CRAN (R 4.5.0) #> vegan 2.6-4 2022-10-11 [1] CRAN (R 4.4.0) #> vipor 0.4.7 2023-12-18 [1] CRAN (R 4.4.0) #> viridis 0.6.5 2024-01-29 [1] CRAN (R 4.4.0) #> viridisLite 0.4.2 2023-05-02 [1] CRAN (R 4.4.0) #> webshot 0.5.5 2023-06-26 [1] CRAN (R 4.4.0) #> withr 3.0.0 2024-01-16 [2] CRAN (R 4.5.0) #> xfun 0.43 2024-03-25 [2] CRAN (R 4.5.0) #> xtable 1.8-4 2019-04-21 [2] CRAN (R 4.5.0) #> XVector * 0.43.1 2024-01-10 [1] Bioconductor 3.19 (R 4.4.0) #> yaml 2.3.8 2023-12-11 [2] CRAN (R 4.5.0) #> yulab.utils 0.1.4 2024-01-28 [1] CRAN (R 4.4.0) #> zlibbioc 1.49.3 2024-03-13 [1] Bioconductor 3.19 (R 4.5.0) #> #> [1] /__w/_temp/Library #> [2] /usr/local/lib/R/site-library #> [3] /usr/local/lib/R/library #> #> ──────────────────────────────────────────────────────────────────────────────"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/articles/filtering_subsetting.html","id":"step_filter_taxa","dir":"Articles","previous_headings":"","what":"step_filter_taxa","title":"Filtering and Subsetting","text":"step_filter_taxa function applies arbitrary set functions OTUs across-sample criteria. takes phyloseq object input returns logical vector indicating whether OTU passed criteria. “prune” option set FALSE, returns already-trimmed version phyloseq object.","code":"library(dar) data(\"metaHIV_phy\") rec <- recipe(metaHIV_phy, \"RiskGroup2\", \"Species\") rec <- step_filter_taxa(rec, .f = \"function(x) sum(x > 0) >= (0 * length(x))\") |> prep()"},{"path":[]},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/articles/filtering_subsetting.html","id":"step_filter_by_abundance","dir":"Articles","previous_headings":"Convenience Wrappers","what":"step_filter_by_abundance","title":"Filtering and Subsetting","text":"function filters OTUs based abundance. taxa retained dataset sum abundance greater product total abundance provided threshold.","code":"rec <- recipe(metaHIV_phy, \"RiskGroup2\", \"Species\") rec <- step_filter_by_abundance(rec, threshold = 0.01) |> prep()"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/articles/filtering_subsetting.html","id":"step_filter_by_prevalence","dir":"Articles","previous_headings":"Convenience Wrappers","what":"step_filter_by_prevalence","title":"Filtering and Subsetting","text":"function filters OTUs based prevalence. taxa retained dataset prevalence greater provided threshold.","code":"rec <- recipe(metaHIV_phy, \"RiskGroup2\", \"Species\") rec <- step_filter_by_prevalence(rec, threshold = 0.01) |> prep()"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/articles/filtering_subsetting.html","id":"step_filter_by_rarity","dir":"Articles","previous_headings":"Convenience Wrappers","what":"step_filter_by_rarity","title":"Filtering and Subsetting","text":"function filters OTUs based rarity. taxa retained dataset sum rarity less provided threshold.","code":"rec <- recipe(metaHIV_phy, \"RiskGroup2\", \"Species\") rec <- step_filter_by_rarity(rec, threshold = 0.01) |> prep()"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/articles/filtering_subsetting.html","id":"step_filter_by_variance","dir":"Articles","previous_headings":"Convenience Wrappers","what":"step_filter_by_variance","title":"Filtering and Subsetting","text":"function filters OTUs based variance. taxa retained dataset variance abundance greater provided threshold.","code":"rec <- recipe(metaHIV_phy, \"RiskGroup2\", \"Species\") rec <- step_filter_by_variance(rec, threshold = 0.01) |> prep()"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/articles/filtering_subsetting.html","id":"subset_taxa","dir":"Articles","previous_headings":"","what":"subset_taxa","title":"Filtering and Subsetting","text":"subset_taxa function subsets taxa based taxonomic level. taxa retained dataset taxonomic level matches provided taxa.","code":"rec <- recipe(metaHIV_phy, \"RiskGroup2\", \"Species\") rec <- step_subset_taxa(rec, tax_level = \"Kingdom\", taxa = c(\"Bacteria\", \"Archaea\")) |> prep()"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/articles/filtering_subsetting.html","id":"conclusion","dir":"Articles","previous_headings":"","what":"Conclusion","title":"Filtering and Subsetting","text":"functions provide powerful flexible way filter subset OTUs phyloseq objects contained within recipe object, making easier work complex experimental data. understanding use functions effectively, can streamline data analysis workflow focus aspects data relevant research questions. dar package offers added convenience performing operations directly recipe object.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/articles/filtering_subsetting.html","id":"session-info","dir":"Articles","previous_headings":"","what":"Session info","title":"Filtering and Subsetting","text":"","code":"devtools::session_info() #> ─ Session info ─────────────────────────────────────────────────────────────── #> setting value #> version R Under development (unstable) (2024-03-28 r86224) #> os Ubuntu 22.04.4 LTS #> system x86_64, linux-gnu #> ui X11 #> language en #> collate en_US.UTF-8 #> ctype en_US.UTF-8 #> tz UTC #> date 2024-04-05 #> pandoc 3.1.1 @ /usr/local/bin/ (via rmarkdown) #> #> ─ Packages ─────────────────────────────────────────────────────────────────── #> package * version date (UTC) lib source #> ade4 1.7-22 2023-02-06 [1] CRAN (R 4.4.0) #> ape 5.7-1 2023-03-13 [1] CRAN (R 4.4.0) #> assertthat 0.2.1 2019-03-21 [1] CRAN (R 4.4.0) #> Biobase 2.63.1 2024-03-29 [1] Bioconductor 3.19 (R 4.5.0) #> BiocGenerics 0.49.1 2023-11-01 [1] Bioconductor #> biomformat 1.31.0 2023-10-24 [1] Bioconductor #> Biostrings 2.71.5 2024-03-22 [1] Bioconductor 3.19 (R 4.5.0) #> bitops 1.0-7 2021-04-24 [1] CRAN (R 4.4.0) #> bslib 0.7.0 2024-03-29 [2] CRAN (R 4.5.0) #> ca 0.71.1 2020-01-24 [1] CRAN (R 4.4.0) #> cachem 1.0.8 2023-05-01 [2] CRAN (R 4.5.0) #> cli 3.6.2 2023-12-11 [2] CRAN (R 4.5.0) #> cluster 2.1.6 2023-12-01 [3] CRAN (R 4.5.0) #> codetools 0.2-20 2024-03-31 [3] CRAN (R 4.5.0) #> colorspace 2.1-0 2023-01-23 [1] CRAN (R 4.4.0) #> crayon 1.5.2 2022-09-29 [2] CRAN (R 4.5.0) #> dar * 0.99.9 2024-04-05 [1] Bioconductor #> data.table 1.15.4 2024-03-30 [1] CRAN (R 4.5.0) #> dendextend 1.17.1 2023-03-25 [1] CRAN (R 4.4.0) #> desc 1.4.3 2023-12-10 [2] CRAN (R 4.5.0) #> devtools 2.4.5 2022-10-11 [2] CRAN (R 4.5.0) #> digest 0.6.35 2024-03-11 [2] CRAN (R 4.5.0) #> dplyr 1.1.4 2023-11-17 [1] CRAN (R 4.4.0) #> ellipsis 0.3.2 2021-04-29 [2] CRAN (R 4.5.0) #> evaluate 0.23 2023-11-01 [2] CRAN (R 4.5.0) #> fansi 1.0.6 2023-12-08 [2] CRAN (R 4.5.0) #> fastmap 1.1.1 2023-02-24 [2] CRAN (R 4.5.0) #> foreach 1.5.2 2022-02-02 [1] CRAN (R 4.4.0) #> fs 1.6.3 2023-07-20 [2] CRAN (R 4.5.0) #> furrr 0.3.1 2022-08-15 [1] CRAN (R 4.4.0) #> future 1.33.2 2024-03-26 [1] CRAN (R 4.5.0) #> generics 0.1.3 2022-07-05 [1] CRAN (R 4.4.0) #> GenomeInfoDb 1.39.11 2024-04-03 [1] Bioconductor 3.19 (R 4.5.0) #> GenomeInfoDbData 1.2.12 2024-04-05 [1] Bioconductor #> ggplot2 3.5.0 2024-02-23 [1] CRAN (R 4.5.0) #> globals 0.16.3 2024-03-08 [1] CRAN (R 4.5.0) #> glue 1.7.0 2024-01-09 [2] CRAN (R 4.5.0) #> gridExtra 2.3 2017-09-09 [1] CRAN (R 4.4.0) #> gtable 0.3.4 2023-08-21 [1] CRAN (R 4.4.0) #> heatmaply 1.5.0 2023-10-06 [1] CRAN (R 4.4.0) #> htmltools 0.5.8.1 2024-04-04 [2] CRAN (R 4.5.0) #> htmlwidgets 1.6.4 2023-12-06 [2] CRAN (R 4.5.0) #> httpuv 1.6.15 2024-03-26 [2] CRAN (R 4.5.0) #> httr 1.4.7 2023-08-15 [2] CRAN (R 4.5.0) #> igraph 2.0.3 2024-03-13 [1] CRAN (R 4.5.0) #> IRanges 2.37.1 2024-01-19 [1] Bioconductor 3.19 (R 4.4.0) #> iterators 1.0.14 2022-02-05 [1] CRAN (R 4.4.0) #> jquerylib 0.1.4 2021-04-26 [2] CRAN (R 4.5.0) #> jsonlite 1.8.8 2023-12-04 [2] CRAN (R 4.5.0) #> knitr 1.45 2023-10-30 [2] CRAN (R 4.5.0) #> later 1.3.2 2023-12-06 [2] CRAN (R 4.5.0) #> lattice 0.22-6 2024-03-20 [3] CRAN (R 4.5.0) #> lazyeval 0.2.2 2019-03-15 [1] CRAN (R 4.4.0) #> lifecycle 1.0.4 2023-11-07 [2] CRAN (R 4.5.0) #> listenv 0.9.1 2024-01-29 [1] CRAN (R 4.4.0) #> magrittr 2.0.3 2022-03-30 [2] CRAN (R 4.5.0) #> MASS 7.3-60.2 2024-03-29 [3] local #> Matrix 1.7-0 2024-03-22 [3] CRAN (R 4.5.0) #> memoise 2.0.1 2021-11-26 [2] CRAN (R 4.5.0) #> mgcv 1.9-1 2023-12-21 [3] CRAN (R 4.5.0) #> mime 0.12 2021-09-28 [2] CRAN (R 4.5.0) #> miniUI 0.1.1.1 2018-05-18 [2] CRAN (R 4.5.0) #> multtest 2.59.0 2023-10-24 [1] Bioconductor #> munsell 0.5.1 2024-04-01 [1] CRAN (R 4.5.0) #> nlme 3.1-164 2023-11-27 [3] CRAN (R 4.5.0) #> parallelly 1.37.1 2024-02-29 [1] CRAN (R 4.5.0) #> permute 0.9-7 2022-01-27 [1] CRAN (R 4.4.0) #> phyloseq 1.47.0 2023-10-24 [1] Bioconductor #> pillar 1.9.0 2023-03-22 [2] CRAN (R 4.5.0) #> pkgbuild 1.4.4 2024-03-17 [2] CRAN (R 4.5.0) #> pkgconfig 2.0.3 2019-09-22 [2] CRAN (R 4.5.0) #> pkgdown 2.0.7.9000 2024-04-05 [1] Github (r-lib/pkgdown@9b928b2) #> pkgload 1.3.4 2024-01-16 [2] CRAN (R 4.5.0) #> plotly 4.10.4 2024-01-13 [1] CRAN (R 4.4.0) #> plyr 1.8.9 2023-10-02 [1] CRAN (R 4.4.0) #> profvis 0.3.8 2023-05-02 [2] CRAN (R 4.5.0) #> promises 1.2.1 2023-08-10 [2] CRAN (R 4.5.0) #> purrr 1.0.2 2023-08-10 [2] CRAN (R 4.5.0) #> R6 2.5.1 2021-08-19 [2] CRAN (R 4.5.0) #> ragg 1.3.0 2024-03-13 [2] CRAN (R 4.5.0) #> RColorBrewer 1.1-3 2022-04-03 [1] CRAN (R 4.4.0) #> Rcpp 1.0.12 2024-01-09 [2] CRAN (R 4.5.0) #> RCurl 1.98-1.14 2024-01-09 [1] CRAN (R 4.4.0) #> registry 0.5-1 2019-03-05 [1] CRAN (R 4.4.0) #> remotes 2.5.0 2024-03-17 [1] CRAN (R 4.5.0) #> reshape2 1.4.4 2020-04-09 [1] CRAN (R 4.4.0) #> rhdf5 2.47.6 2024-03-11 [1] Bioconductor 3.19 (R 4.5.0) #> rhdf5filters 1.15.4 2024-03-15 [1] Bioconductor 3.19 (R 4.5.0) #> Rhdf5lib 1.25.1 2023-12-11 [1] Bioconductor 3.19 (R 4.4.0) #> rlang 1.1.3 2024-01-10 [2] CRAN (R 4.5.0) #> rmarkdown 2.26 2024-03-05 [2] CRAN (R 4.5.0) #> S4Vectors 0.41.5 2024-03-20 [1] Bioconductor 3.19 (R 4.5.0) #> sass 0.4.9 2024-03-15 [2] CRAN (R 4.5.0) #> scales 1.3.0 2023-11-28 [1] CRAN (R 4.4.0) #> seriation 1.5.4 2023-12-12 [1] CRAN (R 4.4.0) #> sessioninfo 1.2.2 2021-12-06 [2] CRAN (R 4.5.0) #> shiny 1.8.1.1 2024-04-02 [2] CRAN (R 4.5.0) #> stringi 1.8.3 2023-12-11 [2] CRAN (R 4.5.0) #> stringr 1.5.1 2023-11-14 [2] CRAN (R 4.5.0) #> survival 3.5-8 2024-02-14 [3] CRAN (R 4.5.0) #> systemfonts 1.0.6 2024-03-07 [2] CRAN (R 4.5.0) #> textshaping 0.3.7 2023-10-09 [2] CRAN (R 4.5.0) #> tibble 3.2.1 2023-03-20 [2] CRAN (R 4.5.0) #> tidyr 1.3.1 2024-01-24 [1] CRAN (R 4.4.0) #> tidyselect 1.2.1 2024-03-11 [1] CRAN (R 4.5.0) #> TSP 1.2-4 2023-04-04 [1] CRAN (R 4.4.0) #> UpSetR 1.4.0 2019-05-22 [1] CRAN (R 4.4.0) #> urlchecker 1.0.1 2021-11-30 [2] CRAN (R 4.5.0) #> usethis 2.2.3 2024-02-19 [2] CRAN (R 4.5.0) #> utf8 1.2.4 2023-10-22 [2] CRAN (R 4.5.0) #> vctrs 0.6.5 2023-12-01 [2] CRAN (R 4.5.0) #> vegan 2.6-4 2022-10-11 [1] CRAN (R 4.4.0) #> viridis 0.6.5 2024-01-29 [1] CRAN (R 4.4.0) #> viridisLite 0.4.2 2023-05-02 [1] CRAN (R 4.4.0) #> webshot 0.5.5 2023-06-26 [1] CRAN (R 4.4.0) #> withr 3.0.0 2024-01-16 [2] CRAN (R 4.5.0) #> xfun 0.43 2024-03-25 [2] CRAN (R 4.5.0) #> xtable 1.8-4 2019-04-21 [2] CRAN (R 4.5.0) #> XVector 0.43.1 2024-01-10 [1] Bioconductor 3.19 (R 4.4.0) #> yaml 2.3.8 2023-12-11 [2] CRAN (R 4.5.0) #> zlibbioc 1.49.3 2024-03-13 [1] Bioconductor 3.19 (R 4.5.0) #> #> [1] /__w/_temp/Library #> [2] /usr/local/lib/R/site-library #> [3] /usr/local/lib/R/library #> #> ──────────────────────────────────────────────────────────────────────────────"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/articles/import_export_recipes.html","id":"exporting-steps-of-a-recipe","dir":"Articles","previous_headings":"","what":"Exporting Steps of a Recipe","title":"Reproducibility in Microbiome Data Analysis","text":"export_steps function facilitates export recipe’s steps JSON file. useful documenting sharing parameters used analysis. ’s example use export_steps function: example, recipe multiple steps created, steps exported JSON file using export_steps function.","code":"library(dar) data(metaHIV_phy) # Create a recipe with steps rec <- recipe(metaHIV_phy, \"RiskGroup2\", \"Species\") |> step_subset_taxa(tax_level = \"Kingdom\", taxa = c(\"Bacteria\", \"Archaea\")) |> step_filter_taxa(.f = \"function(x) sum(x > 0) >= (0.3 * length(x))\") |> step_maaslin() # Export the steps to a JSON file out_file <- tempfile(fileext = \".json\") export_steps(rec, out_file)"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/articles/import_export_recipes.html","id":"importing-steps-from-a-json-file","dir":"Articles","previous_headings":"","what":"Importing Steps from a JSON File","title":"Reproducibility in Microbiome Data Analysis","text":"import_steps function allows import steps JSON file add existing recipe. useful want reuse previously saved set steps incorporate steps another recipe current analysis. ’s example use import_steps function: example, empty recipe initialized, steps imported JSON file using import_steps function. imported steps added existing recipe. recipe imported, can choose add steps execute code using prep function. case, choose execute prep directly.","code":"# Initialize a recipe with a phyloseq object rec <- recipe(metaHIV_phy, \"RiskGroup2\", \"Species\") # Import the steps from a JSON file json_file <- out_file rec <- import_steps(rec, json_file) rec #> ── DAR Recipe ────────────────────────────────────────────────────────────────── #> Inputs: #> #> ℹ phyloseq object with 451 taxa and 156 samples #> ℹ variable of interes RiskGroup2 (class: character, levels: hts, msm, pwid) #> ℹ taxonomic level Species #> #> Preporcessing steps: #> #> ◉ step_subset_taxa() id = subset_taxa__Puff_pastry #> ◉ step_filter_taxa() id = filter_taxa__Paris–Brest #> #> DA steps: #> #> ◉ step_maaslin() id = maaslin__Spina_santa ## Execute da_results <- prep(rec, parallel = FALSE) |> bake() da_results #> ── DAR Results ───────────────────────────────────────────────────────────────── #> Inputs: #> #> ℹ phyloseq object with 101 taxa and 156 samples #> ℹ variable of interes RiskGroup2 (class: character, levels: hts, msm, pwid) #> ℹ taxonomic level Species #> #> Results: #> #> ✔ maaslin__Spina_santa diff_taxa = 86 #> #> ℹ 86 taxa are present in all tested methods #> #> Bakes: #> #> ◉ 1 -> count_cutoff: NULL, weights: NULL, exclude: NULL, id: bake__Dutch_Baby_Pancake"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/articles/import_export_recipes.html","id":"limitations-and-considerations","dir":"Articles","previous_headings":"","what":"Limitations and Considerations","title":"Reproducibility in Microbiome Data Analysis","text":"’s important note limitations considerations using export_steps import_steps functions: JSON files generated export_steps contain parameters recipe steps bakes, original data used analysis. Therefore, importing steps JSON file, ensure access data originally used. export_steps import_steps functions specific dar package designed use microbiome data analysis. applicable types analyses packages. importing steps JSON file, ’s important check file contains “bake” steps. , recipe automatically prepared importing steps. may implications runtime resource requirements analysis. Make sure correct versions dependencies dar package exporting importing recipe steps. Updates dependencies can affect compatibility reproducibility analyses.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/articles/import_export_recipes.html","id":"conclusion","dir":"Articles","previous_headings":"","what":"Conclusion","title":"Reproducibility in Microbiome Data Analysis","text":"Reproducibility essential microbiome data analysis, dar package facilitates aspect providing export_steps import_steps functions. functions allow export steps recipe JSON file import reproduce analysis different environment. tools, can effectively document share analyses, increasing transparency reliability results.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/articles/import_export_recipes.html","id":"session-info","dir":"Articles","previous_headings":"","what":"Session info","title":"Reproducibility in Microbiome Data Analysis","text":"","code":"devtools::session_info() #> ─ Session info ─────────────────────────────────────────────────────────────── #> setting value #> version R Under development (unstable) (2024-03-28 r86224) #> os Ubuntu 22.04.4 LTS #> system x86_64, linux-gnu #> ui X11 #> language en #> collate en_US.UTF-8 #> ctype en_US.UTF-8 #> tz UTC #> date 2024-04-05 #> pandoc 3.1.1 @ /usr/local/bin/ (via rmarkdown) #> #> ─ Packages ─────────────────────────────────────────────────────────────────── #> package * version date (UTC) lib source #> ade4 1.7-22 2023-02-06 [1] CRAN (R 4.4.0) #> ape 5.7-1 2023-03-13 [1] CRAN (R 4.4.0) #> assertthat 0.2.1 2019-03-21 [1] CRAN (R 4.4.0) #> biglm 0.9-2.1 2020-11-27 [1] CRAN (R 4.4.0) #> Biobase 2.63.1 2024-03-29 [1] Bioconductor 3.19 (R 4.5.0) #> BiocGenerics 0.49.1 2023-11-01 [1] Bioconductor #> biomformat 1.31.0 2023-10-24 [1] Bioconductor #> Biostrings 2.71.5 2024-03-22 [1] Bioconductor 3.19 (R 4.5.0) #> bit 4.0.5 2022-11-15 [1] CRAN (R 4.4.0) #> bit64 4.0.5 2020-08-30 [1] CRAN (R 4.4.0) #> bitops 1.0-7 2021-04-24 [1] CRAN (R 4.4.0) #> brio 1.1.4 2023-12-10 [2] CRAN (R 4.5.0) #> bslib 0.7.0 2024-03-29 [2] CRAN (R 4.5.0) #> ca 0.71.1 2020-01-24 [1] CRAN (R 4.4.0) #> cachem 1.0.8 2023-05-01 [2] CRAN (R 4.5.0) #> cli 3.6.2 2023-12-11 [2] CRAN (R 4.5.0) #> cluster 2.1.6 2023-12-01 [3] CRAN (R 4.5.0) #> codetools 0.2-20 2024-03-31 [3] CRAN (R 4.5.0) #> colorspace 2.1-0 2023-01-23 [1] CRAN (R 4.4.0) #> crayon 1.5.2 2022-09-29 [2] CRAN (R 4.5.0) #> dar * 0.99.9 2024-04-05 [1] Bioconductor #> data.table 1.15.4 2024-03-30 [1] CRAN (R 4.5.0) #> DBI 1.2.2 2024-02-16 [1] CRAN (R 4.5.0) #> dendextend 1.17.1 2023-03-25 [1] CRAN (R 4.4.0) #> DEoptimR 1.1-3 2023-10-07 [1] CRAN (R 4.4.0) #> desc 1.4.3 2023-12-10 [2] CRAN (R 4.5.0) #> devtools 2.4.5 2022-10-11 [2] CRAN (R 4.5.0) #> digest 0.6.35 2024-03-11 [2] CRAN (R 4.5.0) #> dplyr 1.1.4 2023-11-17 [1] CRAN (R 4.4.0) #> ellipsis 0.3.2 2021-04-29 [2] CRAN (R 4.5.0) #> evaluate 0.23 2023-11-01 [2] CRAN (R 4.5.0) #> fansi 1.0.6 2023-12-08 [2] CRAN (R 4.5.0) #> fastmap 1.1.1 2023-02-24 [2] CRAN (R 4.5.0) #> foreach 1.5.2 2022-02-02 [1] CRAN (R 4.4.0) #> fs 1.6.3 2023-07-20 [2] CRAN (R 4.5.0) #> generics 0.1.3 2022-07-05 [1] CRAN (R 4.4.0) #> GenomeInfoDb 1.39.11 2024-04-03 [1] Bioconductor 3.19 (R 4.5.0) #> GenomeInfoDbData 1.2.12 2024-04-05 [1] Bioconductor #> getopt 1.20.4 2023-10-01 [1] CRAN (R 4.4.0) #> ggplot2 3.5.0 2024-02-23 [1] CRAN (R 4.5.0) #> glue 1.7.0 2024-01-09 [2] CRAN (R 4.5.0) #> gridExtra 2.3 2017-09-09 [1] CRAN (R 4.4.0) #> gtable 0.3.4 2023-08-21 [1] CRAN (R 4.4.0) #> hash 2.2.6.3 2023-08-19 [1] CRAN (R 4.4.0) #> heatmaply 1.5.0 2023-10-06 [1] CRAN (R 4.4.0) #> hms 1.1.3 2023-03-21 [1] CRAN (R 4.4.0) #> htmltools 0.5.8.1 2024-04-04 [2] CRAN (R 4.5.0) #> htmlwidgets 1.6.4 2023-12-06 [2] CRAN (R 4.5.0) #> httpuv 1.6.15 2024-03-26 [2] CRAN (R 4.5.0) #> httr 1.4.7 2023-08-15 [2] CRAN (R 4.5.0) #> igraph 2.0.3 2024-03-13 [1] CRAN (R 4.5.0) #> IRanges 2.37.1 2024-01-19 [1] Bioconductor 3.19 (R 4.4.0) #> iterators 1.0.14 2022-02-05 [1] CRAN (R 4.4.0) #> jquerylib 0.1.4 2021-04-26 [2] CRAN (R 4.5.0) #> jsonlite 1.8.8 2023-12-04 [2] CRAN (R 4.5.0) #> knitr 1.45 2023-10-30 [2] CRAN (R 4.5.0) #> later 1.3.2 2023-12-06 [2] CRAN (R 4.5.0) #> lattice 0.22-6 2024-03-20 [3] CRAN (R 4.5.0) #> lazyeval 0.2.2 2019-03-15 [1] CRAN (R 4.4.0) #> lifecycle 1.0.4 2023-11-07 [2] CRAN (R 4.5.0) #> logging 0.10-108 2019-07-14 [1] CRAN (R 4.4.0) #> Maaslin2 1.17.0 2023-10-24 [1] Bioconductor #> magrittr 2.0.3 2022-03-30 [2] CRAN (R 4.5.0) #> MASS 7.3-60.2 2024-03-29 [3] local #> Matrix 1.7-0 2024-03-22 [3] CRAN (R 4.5.0) #> memoise 2.0.1 2021-11-26 [2] CRAN (R 4.5.0) #> mgcv 1.9-1 2023-12-21 [3] CRAN (R 4.5.0) #> mime 0.12 2021-09-28 [2] CRAN (R 4.5.0) #> miniUI 0.1.1.1 2018-05-18 [2] CRAN (R 4.5.0) #> multtest 2.59.0 2023-10-24 [1] Bioconductor #> munsell 0.5.1 2024-04-01 [1] CRAN (R 4.5.0) #> mvtnorm 1.2-4 2023-11-27 [1] CRAN (R 4.4.0) #> nlme 3.1-164 2023-11-27 [3] CRAN (R 4.5.0) #> optparse 1.7.4 2024-01-16 [1] CRAN (R 4.4.0) #> pbapply 1.7-2 2023-06-27 [1] CRAN (R 4.4.0) #> pcaPP 2.0-4 2023-12-07 [1] CRAN (R 4.4.0) #> permute 0.9-7 2022-01-27 [1] CRAN (R 4.4.0) #> phyloseq 1.47.0 2023-10-24 [1] Bioconductor #> pillar 1.9.0 2023-03-22 [2] CRAN (R 4.5.0) #> pkgbuild 1.4.4 2024-03-17 [2] CRAN (R 4.5.0) #> pkgconfig 2.0.3 2019-09-22 [2] CRAN (R 4.5.0) #> pkgdown 2.0.7.9000 2024-04-05 [1] Github (r-lib/pkgdown@9b928b2) #> pkgload 1.3.4 2024-01-16 [2] CRAN (R 4.5.0) #> plotly 4.10.4 2024-01-13 [1] CRAN (R 4.4.0) #> plyr 1.8.9 2023-10-02 [1] CRAN (R 4.4.0) #> profvis 0.3.8 2023-05-02 [2] CRAN (R 4.5.0) #> promises 1.2.1 2023-08-10 [2] CRAN (R 4.5.0) #> purrr 1.0.2 2023-08-10 [2] CRAN (R 4.5.0) #> R6 2.5.1 2021-08-19 [2] CRAN (R 4.5.0) #> ragg 1.3.0 2024-03-13 [2] CRAN (R 4.5.0) #> RColorBrewer 1.1-3 2022-04-03 [1] CRAN (R 4.4.0) #> Rcpp 1.0.12 2024-01-09 [2] CRAN (R 4.5.0) #> RCurl 1.98-1.14 2024-01-09 [1] CRAN (R 4.4.0) #> readr 2.1.5 2024-01-10 [1] CRAN (R 4.4.0) #> registry 0.5-1 2019-03-05 [1] CRAN (R 4.4.0) #> remotes 2.5.0 2024-03-17 [1] CRAN (R 4.5.0) #> reshape2 1.4.4 2020-04-09 [1] CRAN (R 4.4.0) #> rhdf5 2.47.6 2024-03-11 [1] Bioconductor 3.19 (R 4.5.0) #> rhdf5filters 1.15.4 2024-03-15 [1] Bioconductor 3.19 (R 4.5.0) #> Rhdf5lib 1.25.1 2023-12-11 [1] Bioconductor 3.19 (R 4.4.0) #> rlang 1.1.3 2024-01-10 [2] CRAN (R 4.5.0) #> rmarkdown 2.26 2024-03-05 [2] CRAN (R 4.5.0) #> robustbase 0.99-2 2024-01-27 [1] CRAN (R 4.4.0) #> S4Vectors 0.41.5 2024-03-20 [1] Bioconductor 3.19 (R 4.5.0) #> sass 0.4.9 2024-03-15 [2] CRAN (R 4.5.0) #> scales 1.3.0 2023-11-28 [1] CRAN (R 4.4.0) #> seriation 1.5.4 2023-12-12 [1] CRAN (R 4.4.0) #> sessioninfo 1.2.2 2021-12-06 [2] CRAN (R 4.5.0) #> shiny 1.8.1.1 2024-04-02 [2] CRAN (R 4.5.0) #> stringi 1.8.3 2023-12-11 [2] CRAN (R 4.5.0) #> stringr 1.5.1 2023-11-14 [2] CRAN (R 4.5.0) #> survival 3.5-8 2024-02-14 [3] CRAN (R 4.5.0) #> systemfonts 1.0.6 2024-03-07 [2] CRAN (R 4.5.0) #> testthat 3.2.1 2023-12-02 [2] CRAN (R 4.5.0) #> textshaping 0.3.7 2023-10-09 [2] CRAN (R 4.5.0) #> tibble 3.2.1 2023-03-20 [2] CRAN (R 4.5.0) #> tidyr 1.3.1 2024-01-24 [1] CRAN (R 4.4.0) #> tidyselect 1.2.1 2024-03-11 [1] CRAN (R 4.5.0) #> TSP 1.2-4 2023-04-04 [1] CRAN (R 4.4.0) #> tzdb 0.4.0 2023-05-12 [1] CRAN (R 4.4.0) #> UpSetR 1.4.0 2019-05-22 [1] CRAN (R 4.4.0) #> urlchecker 1.0.1 2021-11-30 [2] CRAN (R 4.5.0) #> usethis 2.2.3 2024-02-19 [2] CRAN (R 4.5.0) #> utf8 1.2.4 2023-10-22 [2] CRAN (R 4.5.0) #> vctrs 0.6.5 2023-12-01 [2] CRAN (R 4.5.0) #> vegan 2.6-4 2022-10-11 [1] CRAN (R 4.4.0) #> viridis 0.6.5 2024-01-29 [1] CRAN (R 4.4.0) #> viridisLite 0.4.2 2023-05-02 [1] CRAN (R 4.4.0) #> vroom 1.6.5 2023-12-05 [1] CRAN (R 4.4.0) #> webshot 0.5.5 2023-06-26 [1] CRAN (R 4.4.0) #> withr 3.0.0 2024-01-16 [2] CRAN (R 4.5.0) #> xfun 0.43 2024-03-25 [2] CRAN (R 4.5.0) #> xtable 1.8-4 2019-04-21 [2] CRAN (R 4.5.0) #> XVector 0.43.1 2024-01-10 [1] Bioconductor 3.19 (R 4.4.0) #> yaml 2.3.8 2023-12-11 [2] CRAN (R 4.5.0) #> zlibbioc 1.49.3 2024-03-13 [1] Bioconductor 3.19 (R 4.5.0) #> #> [1] /__w/_temp/Library #> [2] /usr/local/lib/R/site-library #> [3] /usr/local/lib/R/library #> #> ──────────────────────────────────────────────────────────────────────────────"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/authors.html","id":null,"dir":"","previous_headings":"","what":"Authors","title":"Authors and Citation","text":"Francesc Catala-Moll. Author, maintainer.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/authors.html","id":"citation","dir":"","previous_headings":"","what":"Citation","title":"Authors and Citation","text":"Catala-Moll F (2024). dar: Differential Abundance Analysis Consensus. R package version 0.99.9, https://microbialgenomics-irsicaixaorg.github.io/dar/, https://github.com/MicrobialGenomics-IrsicaixaOrg/dar.","code":"@Manual{, title = {dar: Differential Abundance Analysis by Consensus}, author = {Francesc Catala-Moll}, year = {2024}, note = {R package version 0.99.9, https://microbialgenomics-irsicaixaorg.github.io/dar/}, url = {https://github.com/MicrobialGenomics-IrsicaixaOrg/dar}, }"},{"path":[]},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/index.html","id":"introduction","dir":"","previous_headings":"","what":"Introduction","title":"Differential Abundance Analysis by Consensus","text":"Differential abundance testing microbiome data challenges parametric non-parametric statistical methods, due sparsity, high variability compositional nature. Microbiome-specific statistical methods often assume classical distribution models take account compositional specifics. produce results range within specificity vs sensitivity space way type type II error difficult ascertain real microbiome data single method used. Recently, consensus approach based multiple differential abundance (DA) methods recently suggested order increase robustness. dar, can use dplyr-like pipeable sequences DA methods apply different consensus strategies. way can obtain reliable results fast, consistent reproducible way.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/index.html","id":"installation","dir":"","previous_headings":"","what":"Installation","title":"Differential Abundance Analysis by Consensus","text":"can install development version dar GitHub :","code":"# install.packages(\"devtools\") devtools::install_github(\"MicrobialGenomics-IrsicaixaOrg/dar\")"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/index.html","id":"usage","dir":"","previous_headings":"","what":"Usage","title":"Differential Abundance Analysis by Consensus","text":"","code":"library(dar) #> Registered S3 methods overwritten by 'vegan': #> method from #> reorder.hclust seriation #> rev.hclust dendextend data(\"metaHIV_phy\") ## Define recipe rec <- recipe(metaHIV_phy, var_info = \"RiskGroup2\", tax_info = \"Species\") %>% step_subset_taxa(expr = 'Kingdom %in% c(\"Bacteria\", \"Archaea\")') %>% step_filter_taxa(.f = \"function(x) sum(x > 0) >= (0.03 * length(x))\") %>% step_metagenomeseq(rm_zeros = 0.01) %>% step_maaslin() rec #> ── DAR Recipe ────────────────────────────────────────────────────────────────── #> Inputs: #> #> ℹ phyloseq object with 451 taxa and 156 samples #> ℹ variable of interes RiskGroup2 (class: character, levels: hts, msm, pwid) #> ℹ taxonomic level Species #> #> Preporcessing steps: #> #> ◉ step_subset_taxa() id = subset_taxa__Suncake #> ◉ step_filter_taxa() id = filter_taxa__Hot_water_crust_pastry #> #> DA steps: #> #> ◉ step_metagenomeseq() id = metagenomeseq__Crocetta_of_Caltanissetta #> ◉ step_maaslin() id = maaslin__Tortita_negra ## Prep recipe da_results <- prep(rec, parallel = TRUE) da_results #> ── DAR Results ───────────────────────────────────────────────────────────────── #> Inputs: #> #> ℹ phyloseq object with 278 taxa and 156 samples #> ℹ variable of interes RiskGroup2 (class: character, levels: hts, msm, pwid) #> ℹ taxonomic level Species #> #> Results: #> #> ✔ metagenomeseq__Crocetta_of_Caltanissetta diff_taxa = 236 #> ✔ maaslin__Tortita_negra diff_taxa = 146 #> #> ℹ 124 taxa are present in all tested methods ## Consensus strategy n_methods <- 2 da_results <- bake(da_results, count_cutoff = n_methods) da_results #> ── DAR Results ───────────────────────────────────────────────────────────────── #> Inputs: #> #> ℹ phyloseq object with 278 taxa and 156 samples #> ℹ variable of interes RiskGroup2 (class: character, levels: hts, msm, pwid) #> ℹ taxonomic level Species #> #> Results: #> #> ✔ metagenomeseq__Crocetta_of_Caltanissetta diff_taxa = 236 #> ✔ maaslin__Tortita_negra diff_taxa = 146 #> #> ℹ 124 taxa are present in all tested methods #> #> Bakes: #> #> ◉ 1 -> count_cutoff: 2, weights: NULL, exclude: NULL, id: bake__Kürtőskalács ## Results cool(da_results) #> ℹ Bake for count_cutoff = 2 #> # A tibble: 124 × 2 #> taxa_id taxa #> #> 1 Otu_63 Bacteroides_plebeius #> 2 Otu_216 Clostridium_sp_CAG_632 #> 3 Otu_441 Brachyspira_sp_CAG_700 #> 4 Otu_108 Prevotella_sp_CAG_520 #> 5 Otu_257 Butyrivibrio_sp_CAG_318 #> 6 Otu_104 Prevotella_sp_CAG_1092 #> 7 Otu_69 Bacteroides_sp_CAG_530 #> 8 Otu_102 Prevotella_sp_AM42_24 #> 9 Otu_159 Lactobacillus_ruminis #> 10 Otu_117 Alistipes_inops #> # ℹ 114 more rows"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/index.html","id":"contributing","dir":"","previous_headings":"","what":"Contributing","title":"Differential Abundance Analysis by Consensus","text":"think encountered bug, please submit issue. Either way, learn create share reprex (minimal, reproducible example), clearly communicate code. Working first Pull Request? can learn free series Contribute Open Source Project GitHub","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/index.html","id":"code-of-conduct","dir":"","previous_headings":"","what":"Code of Conduct","title":"Differential Abundance Analysis by Consensus","text":"Please note dar project released Contributor Code Conduct. contributing project, agree abide terms.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/PrepRecipe-class.html","id":null,"dir":"Reference","previous_headings":"","what":"PrepRecipe-class object — PrepRecipe-class","title":"PrepRecipe-class object — PrepRecipe-class","text":"PrepRecipe Recipe results corresponding steps defined Recipe.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/PrepRecipe-class.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"PrepRecipe-class object — PrepRecipe-class","text":"PrepRecipe-class object","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/PrepRecipe-class.html","id":"slots","dir":"Reference","previous_headings":"","what":"Slots","title":"PrepRecipe-class object — PrepRecipe-class","text":"results Contains results defined analysis Recipe. bakes Contains executed bakes.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/Recipe-class.html","id":null,"dir":"Reference","previous_headings":"","what":"Recipe-class object — phyloseq_or_null-class","title":"Recipe-class object — phyloseq_or_null-class","text":"Recipe description steps applied data set order prepare data analysis.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/Recipe-class.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Recipe-class object — phyloseq_or_null-class","text":"","code":"# S4 method for PrepRecipe show(object)"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/Recipe-class.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Recipe-class object — phyloseq_or_null-class","text":"object Recipe object.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/Recipe-class.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Recipe-class object — phyloseq_or_null-class","text":"Recipe-class object","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/Recipe-class.html","id":"slots","dir":"Reference","previous_headings":"","what":"Slots","title":"Recipe-class object — phyloseq_or_null-class","text":"phyloseq Phyloseq-class object. var_info tibble contains current set terms data set. initially defaults data contained var_info. tax_info tibble contains current set taxonomic levels used analysis. steps List step-class objects used DA.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/abundance_plt.html","id":null,"dir":"Reference","previous_headings":"","what":"Abundance boxplot — abundance_plt","title":"Abundance boxplot — abundance_plt","text":"Abundance boxplot","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/abundance_plt.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Abundance boxplot — abundance_plt","text":"","code":"abundance_plt( rec, taxa_ids = NULL, type = \"boxplot\", transform = \"compositional\", scale = 1, top_n = 20 ) # S4 method for Recipe abundance_plt( rec, taxa_ids = NULL, type = \"boxplot\", transform = \"compositional\", scale = 1, top_n = 20 ) # S4 method for PrepRecipe abundance_plt( rec, taxa_ids = NULL, type = \"boxplot\", transform = \"compositional\", scale = 1, top_n = 20 )"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/abundance_plt.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Abundance boxplot — abundance_plt","text":"rec Recipe Recipe step. taxa_ids Character vector taxa_ids plot. taxa_ids NULL significant characteristics present executed methods plotted. type Character vector indicating type result. Options: c(\"boxoplot\", \"heatmap\"). transform Transformation apply. options include: 'compositional' (ie relative abundance), 'Z', 'log10', 'log10p', 'hellinger', 'identity', 'clr', 'alr', method vegan::decostand function. value NULL, normalization applied works raw counts. scale Scaling constant abundance values transform = \"scale\". top_n Maximum number taxa represent. Default: 20.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/abundance_plt.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Abundance boxplot — abundance_plt","text":"ggplot2","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/abundance_plt.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Abundance boxplot — abundance_plt","text":"","code":"data(test_prep_rec) ## Running the function returns a boxplot, abundance_plt(test_prep_rec) #> ! Taxa present in all methods are greater than the cutoff top_n = 20 #> ℹ The top 20 significant taxa with the greatest overlap between methods will be used ## Giving the value \"heatmap\" to the type parameter, the resulting graph ## a heatmap. # abundance_plt(test_prep_rec, type = \"heatmap\") ## By default, those taxa significant in all methods are plotted. If you want ## to graph some determined features, you can pass them as vector through the ## taxa_ids parameter. # taxa_ids <- c(\"Otu_96\", \"Otu_78\", \"Otu_88\", \"Otu_35\", \"Otu_94\", \"Otu_34\") # abundance_plt(test_prep_rec, taxa_ids = taxa_ids) # abundance_plt(test_prep_rec, taxa_ids = taxa_ids, type = \"heatmap\") ## abundance_plt function needs a PrepRecipe. If you pass a a non-prep ## Recipe the output is an error. data(test_rec) err <- testthat::expect_error(abundance_plt(test_rec)) err #> #> Error in `abundance_plt()`: #> ! This function needs a PrepRecipe! #> • Run prep(rec) and then try with abundance_plt() #> --- #> Backtrace: #> ▆ #> 1. └─pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE) #> 2. └─pkgdown::build_site(...) #> 3. └─pkgdown:::build_site_local(...) #> 4. └─pkgdown::build_reference(...) #> 5. └─purrr::map(...) #> 6. └─purrr:::map_(\"list\", .x, .f, ..., .progress = .progress) #> 7. ├─purrr:::with_indexed_errors(...) #> 8. │ └─base::withCallingHandlers(...) #> 9. ├─purrr:::call_with_cleanup(...) #> 10. └─pkgdown (local) .f(.x[[i]], ...) #> 11. ├─base::withCallingHandlers(...) #> 12. └─pkgdown:::data_reference_topic(...) #> 13. └─pkgdown:::run_examples(...) #> 14. └─pkgdown:::highlight_examples(code, topic, env = env) #> 15. └─downlit::evaluate_and_highlight(...) #> 16. └─evaluate::evaluate(code, child_env(env), new_device = TRUE, output_handler = output_handler) #> 17. └─evaluate:::evaluate_call(...) #> 18. ├─evaluate (local) timing_fn(...) #> 19. ├─evaluate (local) handle(...) #> 20. │ └─base::try(f, silent = TRUE) #> 21. │ └─base::tryCatch(...) #> 22. │ └─base (local) tryCatchList(expr, classes, parentenv, handlers) #> 23. │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) #> 24. │ └─base (local) doTryCatch(return(expr), name, parentenv, handler) #> 25. ├─base::withCallingHandlers(...) #> 26. ├─base::withVisible(...) #> 27. └─evaluate:::eval_with_user_handlers(expr, envir, enclos, user_handlers) #> 28. └─base::eval(expr, envir, enclos) #> 29. └─base::eval(expr, envir, enclos) #> 30. ├─testthat::expect_error(abundance_plt(test_rec)) #> 31. │ └─testthat:::expect_condition_matching(...) #> 32. │ └─testthat:::quasi_capture(...) #> 33. │ ├─testthat (local) .capture(...) #> 34. │ │ └─base::withCallingHandlers(...) #> 35. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) #> 36. ├─dar::abundance_plt(test_rec) #> 37. └─dar::abundance_plt(test_rec)"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/add_step.html","id":null,"dir":"Reference","previous_headings":"","what":"Add a New Operation to the Current Recipe — add_step","title":"Add a New Operation to the Current Recipe — add_step","text":"add_step adds step last location Recipe. add_check checks.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/add_step.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Add a New Operation to the Current Recipe — add_step","text":"","code":"add_step(rec, object) # S4 method for Recipe add_step(rec, object) # S4 method for PrepRecipe add_step(rec, object)"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/add_step.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Add a New Operation to the Current Recipe — add_step","text":"rec Recipe(). object step check object.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/add_step.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Add a New Operation to the Current Recipe — add_step","text":"updated Recipe() new operation last slot.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/add_tax.html","id":null,"dir":"Reference","previous_headings":"","what":"Adds taxonomic level of interest in the Recipe. — add_tax","title":"Adds taxonomic level of interest in the Recipe. — add_tax","text":"Adds taxonomic level interest Recipe.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/add_tax.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Adds taxonomic level of interest in the Recipe. — add_tax","text":"","code":"add_tax(rec, tax_info) # S4 method for Recipe add_tax(rec, tax_info) # S4 method for PrepRecipe add_tax(rec, tax_info)"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/add_tax.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Adds taxonomic level of interest in the Recipe. — add_tax","text":"rec Recipe object. tax_info character string taxonomic levels used context.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/add_tax.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Adds taxonomic level of interest in the Recipe. — add_tax","text":"Recipe object.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/add_tax.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Adds taxonomic level of interest in the Recipe. — add_tax","text":"","code":"data(metaHIV_phy) ## Define recipe rec <- recipe(metaHIV_phy) ## add var info rec <- add_tax(rec, tax_info = \"Species\") rec #> ── DAR Recipe ────────────────────────────────────────────────────────────────── #> Inputs: #> #> ℹ phyloseq object with 451 taxa and 156 samples #> ✖ undefined variable of interest. Use add_var() to add it to Recipe! #> ℹ taxonomic level Species #> #> ## add tax info to a prep-Recipe returns an error data(test_prep_rec) err <- testthat::expect_error( add_tax(test_prep_rec, tax_info = \"Species\") ) err #> #> Error in `add_tax()`: #> ! tax_info can only be added to a non-PrepRecipe #> --- #> Backtrace: #> ▆ #> 1. └─pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE) #> 2. └─pkgdown::build_site(...) #> 3. └─pkgdown:::build_site_local(...) #> 4. └─pkgdown::build_reference(...) #> 5. └─purrr::map(...) #> 6. └─purrr:::map_(\"list\", .x, .f, ..., .progress = .progress) #> 7. ├─purrr:::with_indexed_errors(...) #> 8. │ └─base::withCallingHandlers(...) #> 9. ├─purrr:::call_with_cleanup(...) #> 10. └─pkgdown (local) .f(.x[[i]], ...) #> 11. ├─base::withCallingHandlers(...) #> 12. └─pkgdown:::data_reference_topic(...) #> 13. └─pkgdown:::run_examples(...) #> 14. └─pkgdown:::highlight_examples(code, topic, env = env) #> 15. └─downlit::evaluate_and_highlight(...) #> 16. └─evaluate::evaluate(code, child_env(env), new_device = TRUE, output_handler = output_handler) #> 17. └─evaluate:::evaluate_call(...) #> 18. ├─evaluate (local) timing_fn(...) #> 19. ├─evaluate (local) handle(...) #> 20. │ └─base::try(f, silent = TRUE) #> 21. │ └─base::tryCatch(...) #> 22. │ └─base (local) tryCatchList(expr, classes, parentenv, handlers) #> 23. │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) #> 24. │ └─base (local) doTryCatch(return(expr), name, parentenv, handler) #> 25. ├─base::withCallingHandlers(...) #> 26. ├─base::withVisible(...) #> 27. └─evaluate:::eval_with_user_handlers(expr, envir, enclos, user_handlers) #> 28. └─base::eval(expr, envir, enclos) #> 29. └─base::eval(expr, envir, enclos) #> 30. ├─testthat::expect_error(add_tax(test_prep_rec, tax_info = \"Species\")) #> 31. │ └─testthat:::expect_condition_matching(...) #> 32. │ └─testthat:::quasi_capture(...) #> 33. │ ├─testthat (local) .capture(...) #> 34. │ │ └─base::withCallingHandlers(...) #> 35. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) #> 36. ├─dar::add_tax(test_prep_rec, tax_info = \"Species\") #> 37. └─dar::add_tax(test_prep_rec, tax_info = \"Species\")"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/add_var.html","id":null,"dir":"Reference","previous_headings":"","what":"Adds variable of interest to the Recipe — add_var","title":"Adds variable of interest to the Recipe — add_var","text":"Adds variable interest Recipe","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/add_var.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Adds variable of interest to the Recipe — add_var","text":"","code":"add_var(rec, var_info) # S4 method for Recipe add_var(rec, var_info) # S4 method for PrepRecipe add_var(rec, var_info)"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/add_var.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Adds variable of interest to the Recipe — add_var","text":"rec Recipe object. var_info character string column names corresponding variables used context.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/add_var.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Adds variable of interest to the Recipe — add_var","text":"Recipe object.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/add_var.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Adds variable of interest to the Recipe — add_var","text":"","code":"data(metaHIV_phy) ## Define recipe rec <- recipe(metaHIV_phy) ## add var info rec <- add_var(rec, var_info = \"RiskGroup2\") rec #> ── DAR Recipe ────────────────────────────────────────────────────────────────── #> Inputs: #> #> ℹ phyloseq object with 451 taxa and 156 samples #> ℹ variable of interes RiskGroup2 (class: character, levels: hts, msm, pwid) #> ✖ undefined taxonomic level. Use add_tax() to add it to Recipe! #> ## add var info to a prep-recipe returns an error data(test_prep_rec) err <- testthat::expect_error( add_var(test_prep_rec, var_info = \"RiskGroup2\") ) err #> #> Error in `add_var()`: #> ! var_info can only be added to a non-PrepRecipe #> --- #> Backtrace: #> ▆ #> 1. └─pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE) #> 2. └─pkgdown::build_site(...) #> 3. └─pkgdown:::build_site_local(...) #> 4. └─pkgdown::build_reference(...) #> 5. └─purrr::map(...) #> 6. └─purrr:::map_(\"list\", .x, .f, ..., .progress = .progress) #> 7. ├─purrr:::with_indexed_errors(...) #> 8. │ └─base::withCallingHandlers(...) #> 9. ├─purrr:::call_with_cleanup(...) #> 10. └─pkgdown (local) .f(.x[[i]], ...) #> 11. ├─base::withCallingHandlers(...) #> 12. └─pkgdown:::data_reference_topic(...) #> 13. └─pkgdown:::run_examples(...) #> 14. └─pkgdown:::highlight_examples(code, topic, env = env) #> 15. └─downlit::evaluate_and_highlight(...) #> 16. └─evaluate::evaluate(code, child_env(env), new_device = TRUE, output_handler = output_handler) #> 17. └─evaluate:::evaluate_call(...) #> 18. ├─evaluate (local) timing_fn(...) #> 19. ├─evaluate (local) handle(...) #> 20. │ └─base::try(f, silent = TRUE) #> 21. │ └─base::tryCatch(...) #> 22. │ └─base (local) tryCatchList(expr, classes, parentenv, handlers) #> 23. │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) #> 24. │ └─base (local) doTryCatch(return(expr), name, parentenv, handler) #> 25. ├─base::withCallingHandlers(...) #> 26. ├─base::withVisible(...) #> 27. └─evaluate:::eval_with_user_handlers(expr, envir, enclos, user_handlers) #> 28. └─base::eval(expr, envir, enclos) #> 29. └─base::eval(expr, envir, enclos) #> 30. ├─testthat::expect_error(add_var(test_prep_rec, var_info = \"RiskGroup2\")) #> 31. │ └─testthat:::expect_condition_matching(...) #> 32. │ └─testthat:::quasi_capture(...) #> 33. │ ├─testthat (local) .capture(...) #> 34. │ │ └─base::withCallingHandlers(...) #> 35. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) #> 36. ├─dar::add_var(test_prep_rec, var_info = \"RiskGroup2\") #> 37. └─dar::add_var(test_prep_rec, var_info = \"RiskGroup2\")"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/bake.html","id":null,"dir":"Reference","previous_headings":"","what":"Define consensus strategies from a Recipe — bake","title":"Define consensus strategies from a Recipe — bake","text":"prep Recipe adds consensus strategies use result extraction.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/bake.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Define consensus strategies from a Recipe — bake","text":"","code":"bake( rec, count_cutoff = NULL, weights = NULL, exclude = NULL, id = rand_id(\"bake\") ) # S4 method for PrepRecipe bake( rec, count_cutoff = NULL, weights = NULL, exclude = NULL, id = rand_id(\"bake\") ) # S4 method for Recipe bake( rec, count_cutoff = NULL, weights = NULL, exclude = NULL, id = rand_id(\"bake\") )"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/bake.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Define consensus strategies from a Recipe — bake","text":"rec Recipe object. step added sequence operations Recipe. count_cutoff Indicates minimum number methods OTU must present (Default: NULL). count_cutoff NULL count_cutoff equal length(steps_ids(rec, \"da\")) - length(exclude) weights Named vector ponderation value method. exclude Method ids exclude. id character string unique step identify .","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/bake.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Define consensus strategies from a Recipe — bake","text":"object class PrepRecipe","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/bake.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Define consensus strategies from a Recipe — bake","text":"","code":"data(test_prep_rec) rec <- test_prep_rec ## Default bake extracts common OTUs in all DA tested methods ## (In this case the Recipe contains 3 methods) res <- bake(rec) cool(res) #> ℹ Bake for count_cutoff = 3 #> # A tibble: 23 × 2 #> taxa_id taxa #> #> 1 Otu_96 Prevotella #> 2 Otu_340 Holdemanella #> 3 Otu_332 Catenibacterium #> 4 Otu_119 Alistipes #> 5 Otu_45 Slackia #> 6 Otu_82 Barnesiella #> 7 Otu_78 Bacteroides #> 8 Otu_88 Odoribacter #> 9 Otu_259 Coprococcus #> 10 Otu_35 Collinsella #> # ℹ 13 more rows ## bake and cool methods needs a PrepRecipe. If you pass a non-PrepRecipe ## the output is an error. data(test_rec) err <- testthat::expect_error(bake(test_rec)) err #> #> Error in `bake()`: #> ! This function needs a PrepRecipe! #> • Run prep(rec) and then try with bake() #> --- #> Backtrace: #> ▆ #> 1. └─pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE) #> 2. └─pkgdown::build_site(...) #> 3. └─pkgdown:::build_site_local(...) #> 4. └─pkgdown::build_reference(...) #> 5. └─purrr::map(...) #> 6. └─purrr:::map_(\"list\", .x, .f, ..., .progress = .progress) #> 7. ├─purrr:::with_indexed_errors(...) #> 8. │ └─base::withCallingHandlers(...) #> 9. ├─purrr:::call_with_cleanup(...) #> 10. └─pkgdown (local) .f(.x[[i]], ...) #> 11. ├─base::withCallingHandlers(...) #> 12. └─pkgdown:::data_reference_topic(...) #> 13. └─pkgdown:::run_examples(...) #> 14. └─pkgdown:::highlight_examples(code, topic, env = env) #> 15. └─downlit::evaluate_and_highlight(...) #> 16. └─evaluate::evaluate(code, child_env(env), new_device = TRUE, output_handler = output_handler) #> 17. └─evaluate:::evaluate_call(...) #> 18. ├─evaluate (local) timing_fn(...) #> 19. ├─evaluate (local) handle(...) #> 20. │ └─base::try(f, silent = TRUE) #> 21. │ └─base::tryCatch(...) #> 22. │ └─base (local) tryCatchList(expr, classes, parentenv, handlers) #> 23. │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) #> 24. │ └─base (local) doTryCatch(return(expr), name, parentenv, handler) #> 25. ├─base::withCallingHandlers(...) #> 26. ├─base::withVisible(...) #> 27. └─evaluate:::eval_with_user_handlers(expr, envir, enclos, user_handlers) #> 28. └─base::eval(expr, envir, enclos) #> 29. └─base::eval(expr, envir, enclos) #> 30. ├─testthat::expect_error(bake(test_rec)) #> 31. │ └─testthat:::expect_condition_matching(...) #> 32. │ └─testthat:::quasi_capture(...) #> 33. │ ├─testthat (local) .capture(...) #> 34. │ │ └─base::withCallingHandlers(...) #> 35. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) #> 36. ├─dar::bake(test_rec) #> 37. └─dar::bake(test_rec) ## We can use the parameter `cout_cutoff` to for example select those OTUs ## shared with at least two methods res <- bake(rec, count_cutoff = 2) cool(res) #> ℹ Bake for count_cutoff = 2 #> # A tibble: 34 × 2 #> taxa_id taxa #> #> 1 Otu_96 Prevotella #> 2 Otu_340 Holdemanella #> 3 Otu_332 Catenibacterium #> 4 Otu_119 Alistipes #> 5 Otu_45 Slackia #> 6 Otu_82 Barnesiella #> 7 Otu_78 Bacteroides #> 8 Otu_88 Odoribacter #> 9 Otu_259 Coprococcus #> 10 Otu_35 Collinsella #> # ℹ 24 more rows ## Furthermore, we can exclude methods from the consensus strategy with the ## `exclude` parameter. res <- bake(rec, exclude = steps_ids(rec, \"da\")[1]) cool(res) #> ℹ Bake for count_cutoff = 2 #> ℹ Results from maaslin__ChaSan are excluded #> # A tibble: 34 × 2 #> taxa_id taxa #> #> 1 Otu_371 Megasphaera #> 2 Otu_361 Phascolarctobacterium #> 3 Otu_392 Parasutterella #> 4 Otu_214 Clostridium #> 5 Otu_365 Mitsuokella #> 6 Otu_332 Catenibacterium #> 7 Otu_34 Olsenella #> 8 Otu_119 Alistipes #> 9 Otu_397 Bilophila #> 10 Otu_407 Anaerobiospirillum #> # ℹ 24 more rows ## Finally, we can use the `weights` parameter to weigh each method. weights <- c(2, 1, 1) names(weights) <- steps_ids(rec, \"da\") res <- bake(rec, weights = weights) cool(res) #> ℹ Bake for count_cutoff = 3 #> # A tibble: 34 × 2 #> taxa_id taxa #> #> 1 Otu_96 Prevotella #> 2 Otu_340 Holdemanella #> 3 Otu_332 Catenibacterium #> 4 Otu_119 Alistipes #> 5 Otu_45 Slackia #> 6 Otu_82 Barnesiella #> 7 Otu_78 Bacteroides #> 8 Otu_88 Odoribacter #> 9 Otu_259 Coprococcus #> 10 Otu_35 Collinsella #> # ℹ 24 more rows"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/contains_rarefaction.html","id":null,"dir":"Reference","previous_headings":"","what":"Checks if Recipe contains a rarefaction step — contains_rarefaction","title":"Checks if Recipe contains a rarefaction step — contains_rarefaction","text":"Checks Recipe contains rarefaction step","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/contains_rarefaction.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Checks if Recipe contains a rarefaction step — contains_rarefaction","text":"","code":"contains_rarefaction(rec)"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/contains_rarefaction.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Checks if Recipe contains a rarefaction step — contains_rarefaction","text":"rec Recipe object. step added sequence operations recipe.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/contains_rarefaction.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Checks if Recipe contains a rarefaction step — contains_rarefaction","text":"boolean","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/contains_rarefaction.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Checks if Recipe contains a rarefaction step — contains_rarefaction","text":"","code":"data(GlobalPatterns, package = \"phyloseq\") rec <- phyloseq::subset_samples( GlobalPatterns, SampleType %in% c(\"Soil\", \"Skin\") ) |> recipe(var_info = \"SampleType\", tax_info = \"Genus\") |> step_rarefaction() contains_rarefaction(rec) #> [1] TRUE"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/cool.html","id":null,"dir":"Reference","previous_headings":"","what":"Extract results from defined bake — cool","title":"Extract results from defined bake — cool","text":"Extract results defined bake","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/cool.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Extract results from defined bake — cool","text":"","code":"cool(rec, bake = 1) # S4 method for Recipe cool(rec, bake = 1) # S4 method for PrepRecipe cool(rec, bake = 1)"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/cool.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Extract results from defined bake — cool","text":"rec Recipe object. bake Name index bake extract.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/cool.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Extract results from defined bake — cool","text":"tbl_df","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/cool.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Extract results from defined bake — cool","text":"","code":"data(test_prep_rec) ## First we need to add bakes (extraction strategies) to the PrepRecipe. rec <- bake(test_prep_rec) ## Finally we can extract the results with the cool method cool(rec) #> ℹ Bake for count_cutoff = 3 #> # A tibble: 23 × 2 #> taxa_id taxa #> #> 1 Otu_96 Prevotella #> 2 Otu_340 Holdemanella #> 3 Otu_332 Catenibacterium #> 4 Otu_119 Alistipes #> 5 Otu_45 Slackia #> 6 Otu_82 Barnesiella #> 7 Otu_78 Bacteroides #> 8 Otu_88 Odoribacter #> 9 Otu_259 Coprococcus #> 10 Otu_35 Collinsella #> # ℹ 13 more rows ## By default cool extracts the results of the first bake. If we have more ## bakes we can extract the one that you want with the bake parameter. rec <- bake(rec, count_cutoff = 1) cool(rec, 2) #> ℹ Bake for count_cutoff = 1 #> # A tibble: 88 × 2 #> taxa_id taxa #> #> 1 Otu_96 Prevotella #> 2 Otu_102 Prevotella #> 3 Otu_340 Holdemanella #> 4 Otu_332 Catenibacterium #> 5 Otu_108 Prevotella #> 6 Otu_115 Alistipes #> 7 Otu_119 Alistipes #> 8 Otu_45 Slackia #> 9 Otu_82 Barnesiella #> 10 Otu_113 Prevotella #> # ℹ 78 more rows ## bake and cool methods needs a prep-Recipe. If you pass a non-PrepRecipe ## the output is an error. data(test_rec) err <- testthat::expect_error(cool(test_rec)) err #> #> Error in `cool()`: #> ! This function needs a PrepRecipe! #> • Run prep(rec) and then try with cool() #> --- #> Backtrace: #> ▆ #> 1. └─pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE) #> 2. └─pkgdown::build_site(...) #> 3. └─pkgdown:::build_site_local(...) #> 4. └─pkgdown::build_reference(...) #> 5. └─purrr::map(...) #> 6. └─purrr:::map_(\"list\", .x, .f, ..., .progress = .progress) #> 7. ├─purrr:::with_indexed_errors(...) #> 8. │ └─base::withCallingHandlers(...) #> 9. ├─purrr:::call_with_cleanup(...) #> 10. └─pkgdown (local) .f(.x[[i]], ...) #> 11. ├─base::withCallingHandlers(...) #> 12. └─pkgdown:::data_reference_topic(...) #> 13. └─pkgdown:::run_examples(...) #> 14. └─pkgdown:::highlight_examples(code, topic, env = env) #> 15. └─downlit::evaluate_and_highlight(...) #> 16. └─evaluate::evaluate(code, child_env(env), new_device = TRUE, output_handler = output_handler) #> 17. └─evaluate:::evaluate_call(...) #> 18. ├─evaluate (local) timing_fn(...) #> 19. ├─evaluate (local) handle(...) #> 20. │ └─base::try(f, silent = TRUE) #> 21. │ └─base::tryCatch(...) #> 22. │ └─base (local) tryCatchList(expr, classes, parentenv, handlers) #> 23. │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) #> 24. │ └─base (local) doTryCatch(return(expr), name, parentenv, handler) #> 25. ├─base::withCallingHandlers(...) #> 26. ├─base::withVisible(...) #> 27. └─evaluate:::eval_with_user_handlers(expr, envir, enclos, user_handlers) #> 28. └─base::eval(expr, envir, enclos) #> 29. └─base::eval(expr, envir, enclos) #> 30. ├─testthat::expect_error(cool(test_rec)) #> 31. │ └─testthat:::expect_condition_matching(...) #> 32. │ └─testthat:::quasi_capture(...) #> 33. │ ├─testthat (local) .capture(...) #> 34. │ │ └─base::withCallingHandlers(...) #> 35. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) #> 36. ├─dar::cool(test_rec) #> 37. └─dar::cool(test_rec)"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/corr_heatmap.html","id":null,"dir":"Reference","previous_headings":"","what":"Plot otuput of the overlap_df function as a heatmap. — corr_heatmap","title":"Plot otuput of the overlap_df function as a heatmap. — corr_heatmap","text":"Plot otuput overlap_df function heatmap.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/corr_heatmap.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Plot otuput of the overlap_df function as a heatmap. — corr_heatmap","text":"","code":"corr_heatmap(rec, steps = steps_ids(rec, \"da\"), font_size = 15, type = \"all\") # S4 method for Recipe corr_heatmap(rec, steps = steps_ids(rec, \"da\"), font_size = 15, type = \"all\") # S4 method for PrepRecipe corr_heatmap(rec, steps = steps_ids(rec, \"da\"), font_size = 15, type = \"all\")"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/corr_heatmap.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Plot otuput of the overlap_df function as a heatmap. — corr_heatmap","text":"rec Recipe object. steps Character vector step_ids take account. font_size Size axis font. type Indicates whether use taxa (\"\") differentially abundant least one method (\"da\"). Default \"\".","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/corr_heatmap.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Plot otuput of the overlap_df function as a heatmap. — corr_heatmap","text":"heatmap","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/corr_heatmap.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Plot otuput of the overlap_df function as a heatmap. — corr_heatmap","text":"","code":"data(test_prep_rec) ## Running the function returns a UpSet plot ordered by frequency. corr_heatmap(test_prep_rec) {\"x\":{\"data\":[{\"x\":[1.75,1,null,1,1,null,1.75,2.5,null,2.5,2.5,null,2.5,2,null,2,2,null,2.5,3,null,3,3],\"y\":[0.93861177256733785,0.93861177256733785,null,0.93861177256733785,0,null,0.93861177256733785,0.93861177256733785,null,0.93861177256733785,0.18229656078734624,null,0.18229656078734624,0.18229656078734624,null,0.18229656078734624,0,null,0.18229656078734624,0.18229656078734624,null,0.18229656078734624,0],\"text\":[\"y: 0.9386118\",\"y: 0.9386118\",null,\"y: 0.9386118\",\"y: 0.9386118\",null,\"y: 0.9386118\",\"y: 0.9386118\",null,\"y: 0.9386118\",\"y: 0.9386118\",null,\"y: 0.1822966\",\"y: 0.1822966\",null,\"y: 0.1822966\",\"y: 0.1822966\",null,\"y: 0.1822966\",\"y: 0.1822966\",null,\"y: 0.1822966\",\"y: 0.1822966\"],\"type\":\"scatter\",\"mode\":\"lines\",\"line\":{\"width\":2.2677165354330708,\"color\":\"rgba(0,0,0,1)\",\"dash\":\"solid\"},\"hoveron\":\"points\",\"showlegend\":false,\"xaxis\":\"x\",\"yaxis\":\"y\",\"hoverinfo\":\"text\",\"frame\":null},{\"x\":[1.75,1,2.5,2,3],\"y\":[0.93861177256733785,0,0.18229656078734624,0,0],\"text\":[\"y: 0.9386118\",\"y: 0.0000000\",\"y: 0.1822966\",\"y: 0.0000000\",\"y: 0.0000000\"],\"type\":\"scatter\",\"mode\":\"markers\",\"marker\":{\"autocolorscale\":false,\"color\":\"transparent\",\"opacity\":1,\"size\":null,\"symbol\":null,\"line\":{\"width\":1.8897637795275593,\"color\":\"transparent\"}},\"hoveron\":\"points\",\"showlegend\":false,\"xaxis\":\"x\",\"yaxis\":\"y\",\"hoverinfo\":\"text\",\"frame\":null},{\"type\":\"scatter\",\"mode\":\"markers\",\"marker\":{\"color\":\"rgba(44,160,44,1)\",\"line\":{\"color\":\"rgba(44,160,44,1)\"}},\"error_y\":{\"color\":\"rgba(44,160,44,1)\"},\"error_x\":{\"color\":\"rgba(44,160,44,1)\"},\"line\":{\"color\":\"rgba(44,160,44,1)\"},\"xaxis\":\"x2\",\"yaxis\":\"y\",\"frame\":null},{\"x\":[1,1,1,2,2,2,3,3,3],\"y\":[1,2,3,1,2,3,1,2,3],\"text\":[\"row: maaslin__ChaSancolumn: maaslin__ChaSanvalue: 1.0000 Point size : 1.0000\",\"row: metagenomeseq__Zlebiacolumn: maaslin__ChaSanvalue: 0.4257 Point size : 0.4257\",\"row: deseq__Linzer_tortecolumn: maaslin__ChaSanvalue: 0.4158 Point size : 0.4158\",\"row: maaslin__ChaSancolumn: metagenomeseq__Zlebiavalue: 0.4257 Point size : 0.4257\",\"row: metagenomeseq__Zlebiacolumn: metagenomeseq__Zlebiavalue: 1.0000 Point size : 1.0000\",\"row: deseq__Linzer_tortecolumn: metagenomeseq__Zlebiavalue: 0.8713 Point size : 0.8713\",\"row: maaslin__ChaSancolumn: deseq__Linzer_tortevalue: 0.4158 Point size : 0.4158\",\"row: metagenomeseq__Zlebiacolumn: deseq__Linzer_tortevalue: 0.8713 Point size : 0.8713\",\"row: deseq__Linzer_tortecolumn: deseq__Linzer_tortevalue: 1.0000 Point size : 1.0000\"],\"type\":\"scatter\",\"mode\":\"markers\",\"marker\":{\"autocolorscale\":false,\"color\":[\"rgba(165,0,38,1)\",\"rgba(227,243,152,1)\",\"rgba(223,242,147,1)\",\"rgba(227,243,152,1)\",\"rgba(165,0,38,1)\",\"rgba(224,68,47,1)\",\"rgba(223,242,147,1)\",\"rgba(224,68,47,1)\",\"rgba(165,0,38,1)\"],\"opacity\":1,\"size\":[22.677165354330711,6.2397904437321055,3.7795275590551185,6.2397904437321055,22.677165354330711,20.465842288170109,3.7795275590551185,20.465842288170109,22.677165354330711],\"symbol\":\"circle\",\"line\":{\"width\":1.8897637795275593,\"color\":[\"rgba(165,0,38,1)\",\"rgba(227,243,152,1)\",\"rgba(223,242,147,1)\",\"rgba(227,243,152,1)\",\"rgba(165,0,38,1)\",\"rgba(224,68,47,1)\",\"rgba(223,242,147,1)\",\"rgba(224,68,47,1)\",\"rgba(165,0,38,1)\"]}},\"hoveron\":\"points\",\"showlegend\":false,\"xaxis\":\"x\",\"yaxis\":\"y2\",\"hoverinfo\":\"text\",\"frame\":null},{\"x\":[1],\"y\":[1],\"name\":\"9fd1a829bc79f58faf1a621f1a26f9fc\",\"type\":\"scatter\",\"mode\":\"markers\",\"opacity\":0,\"hoverinfo\":\"skip\",\"showlegend\":false,\"marker\":{\"color\":[0,1],\"colorscale\":[[0,\"#006837\"],[0.0033444816053511705,\"#016A38\"],[0.006688963210702341,\"#016B39\"],[0.010033444816053512,\"#026D39\"],[0.013377926421404682,\"#036E3A\"],[0.016722408026755852,\"#04703B\"],[0.020066889632107024,\"#04713C\"],[0.023411371237458192,\"#05733D\"],[0.026755852842809364,\"#06753E\"],[0.030100334448160536,\"#07763E\"],[0.033444816053511704,\"#08783F\"],[0.036789297658862873,\"#097940\"],[0.040133779264214048,\"#0A7B41\"],[0.043478260869565216,\"#0B7C42\"],[0.046822742474916385,\"#0C7E43\"],[0.05016722408026756,\"#0D8043\"],[0.053511705685618728,\"#0E8144\"],[0.056856187290969896,\"#0F8345\"],[0.060200668896321072,\"#108546\"],[0.06354515050167224,\"#118647\"],[0.066889632107023408,\"#128848\"],[0.070234113712374577,\"#128948\"],[0.073578595317725745,\"#138B49\"],[0.076923076923076927,\"#148D4A\"],[0.080267558528428096,\"#158E4B\"],[0.083612040133779264,\"#16904C\"],[0.086956521739130432,\"#17924D\"],[0.090301003344481601,\"#18934E\"],[0.093645484949832769,\"#18954E\"],[0.096989966555183951,\"#19974F\"],[0.10033444816053512,\"#1A9850\"],[0.10367892976588629,\"#1F9951\"],[0.10702341137123746,\"#229B51\"],[0.11036789297658862,\"#269C52\"],[0.11371237458193979,\"#299D53\"],[0.11705685618729096,\"#2C9E53\"],[0.12040133779264214,\"#2F9F54\"],[0.12374581939799331,\"#32A154\"],[0.12709030100334448,\"#35A255\"],[0.13043478260869565,\"#38A356\"],[0.13377926421404682,\"#3AA456\"],[0.13712374581939799,\"#3DA657\"],[0.14046822742474915,\"#3FA758\"],[0.14381270903010032,\"#42A858\"],[0.14715719063545149,\"#44A959\"],[0.15050167224080269,\"#46AB5A\"],[0.15384615384615385,\"#49AC5A\"],[0.15719063545150502,\"#4BAD5B\"],[0.16053511705685619,\"#4DAE5B\"],[0.16387959866220736,\"#4FB05C\"],[0.16722408026755853,\"#52B15D\"],[0.1705685618729097,\"#54B25D\"],[0.17391304347826086,\"#56B35E\"],[0.17725752508361203,\"#58B55F\"],[0.1806020066889632,\"#5AB65F\"],[0.18394648829431437,\"#5CB760\"],[0.18729096989966554,\"#5EB861\"],[0.19063545150501671,\"#60B961\"],[0.1939799331103679,\"#62BB62\"],[0.19732441471571907,\"#64BC62\"],[0.20066889632107024,\"#66BD63\"],[0.20401337792642141,\"#69BE63\"],[0.20735785953177258,\"#6BBF64\"],[0.21070234113712374,\"#6DC064\"],[0.21404682274247491,\"#70C164\"],[0.21739130434782608,\"#72C264\"],[0.22073578595317725,\"#74C364\"],[0.22408026755852842,\"#76C465\"],[0.22742474916387959,\"#79C565\"],[0.23076923076923075,\"#7BC665\"],[0.23411371237458192,\"#7DC765\"],[0.23745819397993312,\"#7FC766\"],[0.24080267558528429,\"#81C866\"],[0.24414715719063546,\"#83C966\"],[0.24749163879598662,\"#86CA66\"],[0.25083612040133779,\"#88CB67\"],[0.25418060200668896,\"#8ACC67\"],[0.25752508361204013,\"#8CCD67\"],[0.2608695652173913,\"#8ECE67\"],[0.26421404682274247,\"#90CF68\"],[0.26755852842809363,\"#92D068\"],[0.2709030100334448,\"#94D168\"],[0.27424749163879597,\"#96D268\"],[0.27759197324414714,\"#98D368\"],[0.28093645484949831,\"#9AD469\"],[0.28428093645484948,\"#9CD569\"],[0.28762541806020064,\"#9FD669\"],[0.29096989966555181,\"#A1D669\"],[0.29431438127090298,\"#A3D76A\"],[0.29765886287625415,\"#A5D86A\"],[0.30100334448160537,\"#A7D96A\"],[0.30434782608695654,\"#A8DA6B\"],[0.30769230769230771,\"#AADB6D\"],[0.31103678929765888,\"#ACDB6E\"],[0.31438127090301005,\"#ADDC6F\"],[0.31772575250836121,\"#AFDD70\"],[0.32107023411371238,\"#B1DE71\"],[0.32441471571906355,\"#B3DE72\"],[0.32775919732441472,\"#B4DF73\"],[0.33110367892976589,\"#B6E074\"],[0.33444816053511706,\"#B8E175\"],[0.33779264214046822,\"#B9E176\"],[0.34113712374581939,\"#BBE278\"],[0.34448160535117056,\"#BDE379\"],[0.34782608695652173,\"#BFE47A\"],[0.3511705685618729,\"#C0E47B\"],[0.35451505016722407,\"#C2E57C\"],[0.35785953177257523,\"#C4E67D\"],[0.3612040133779264,\"#C5E77E\"],[0.36454849498327757,\"#C7E77F\"],[0.36789297658862874,\"#C9E880\"],[0.37123745819397991,\"#CAE981\"],[0.37458193979933108,\"#CCE983\"],[0.37792642140468224,\"#CEEA84\"],[0.38127090301003341,\"#D0EB85\"],[0.38461538461538458,\"#D1EC86\"],[0.38795986622073581,\"#D3EC87\"],[0.39130434782608697,\"#D5ED88\"],[0.39464882943143814,\"#D6EE89\"],[0.39799331103678931,\"#D8EF8A\"],[0.40133779264214048,\"#DAEF8C\"],[0.40468227424749165,\"#DBF08D\"],[0.40802675585284282,\"#DCF08F\"],[0.41137123745819398,\"#DDF191\"],[0.41471571906354515,\"#DFF193\"],[0.41806020066889632,\"#E0F294\"],[0.42140468227424749,\"#E1F296\"],[0.42474916387959866,\"#E3F398\"],[0.42809364548494983,\"#E4F49A\"],[0.43143812709030099,\"#E5F49B\"],[0.43478260869565216,\"#E6F59D\"],[0.43812709030100333,\"#E8F59F\"],[0.4414715719063545,\"#E9F6A1\"],[0.44481605351170567,\"#EAF6A2\"],[0.44816053511705684,\"#EBF7A4\"],[0.451505016722408,\"#EDF7A6\"],[0.45484949832775917,\"#EEF8A8\"],[0.45819397993311034,\"#EFF8A9\"],[0.46153846153846151,\"#F1F9AB\"],[0.46488294314381268,\"#F2F9AD\"],[0.46822742474916385,\"#F3FAAF\"],[0.47157190635451507,\"#F4FAB0\"],[0.47491638795986624,\"#F6FBB2\"],[0.47826086956521741,\"#F7FCB4\"],[0.48160535117056857,\"#F8FCB5\"],[0.48494983277591974,\"#F9FDB7\"],[0.48829431438127091,\"#FBFDB9\"],[0.49163879598662208,\"#FCFEBB\"],[0.49498327759197325,\"#FDFEBC\"],[0.49832775919732442,\"#FEFFBE\"],[0.50167224080267558,\"#FFFEBE\"],[0.50501672240802675,\"#FFFDBC\"],[0.50836120401337792,\"#FFFCBB\"],[0.51170568561872909,\"#FFFBB9\"],[0.51505016722408026,\"#FFFAB7\"],[0.51839464882943143,\"#FFF9B5\"],[0.52173913043478259,\"#FFF8B4\"],[0.52508361204013376,\"#FFF7B2\"],[0.52842809364548493,\"#FFF6B0\"],[0.5317725752508361,\"#FFF5AE\"],[0.53511705685618727,\"#FFF4AD\"],[0.53846153846153844,\"#FFF3AB\"],[0.5418060200668896,\"#FFF2A9\"],[0.54515050167224077,\"#FFF1A7\"],[0.54849498327759194,\"#FFF0A6\"],[0.55183946488294311,\"#FFEFA4\"],[0.55518394648829428,\"#FFEEA2\"],[0.55852842809364545,\"#FFEDA1\"],[0.56187290969899661,\"#FFEC9F\"],[0.56521739130434778,\"#FFEB9D\"],[0.56856187290969895,\"#FFEA9B\"],[0.57190635451505012,\"#FFE99A\"],[0.57525083612040129,\"#FFE898\"],[0.57859531772575246,\"#FFE796\"],[0.58193979933110362,\"#FFE694\"],[0.58528428093645479,\"#FEE593\"],[0.58862876254180596,\"#FEE391\"],[0.59197324414715713,\"#FEE28F\"],[0.5953177257525083,\"#FEE18D\"],[0.59866220735785947,\"#FEE08C\"],[0.60200668896321075,\"#FEDF8A\"],[0.60535117056856191,\"#FEDD89\"],[0.60869565217391308,\"#FEDC87\"],[0.61204013377926425,\"#FEDA86\"],[0.61538461538461542,\"#FED884\"],[0.61872909698996659,\"#FED783\"],[0.62207357859531776,\"#FED582\"],[0.62541806020066892,\"#FED380\"],[0.62876254180602009,\"#FED27F\"],[0.63210702341137126,\"#FED07D\"],[0.63545150501672243,\"#FECE7C\"],[0.6387959866220736,\"#FECD7B\"],[0.64214046822742477,\"#FECB79\"],[0.64548494983277593,\"#FEC978\"],[0.6488294314381271,\"#FEC876\"],[0.65217391304347827,\"#FEC675\"],[0.65551839464882944,\"#FEC473\"],[0.65886287625418061,\"#FEC372\"],[0.66220735785953178,\"#FEC171\"],[0.66555183946488294,\"#FEBF6F\"],[0.66889632107023411,\"#FEBE6E\"],[0.67224080267558528,\"#FEBC6C\"],[0.67558528428093645,\"#FEBA6B\"],[0.67892976588628762,\"#FEB96A\"],[0.68227424749163879,\"#FEB768\"],[0.68561872909698995,\"#FEB567\"],[0.68896321070234112,\"#FDB466\"],[0.69230769230769229,\"#FDB264\"],[0.69565217391304346,\"#FDB063\"],[0.69899665551839463,\"#FDAF61\"],[0.7023411371237458,\"#FDAD60\"],[0.70568561872909696,\"#FDAB5F\"],[0.70903010033444813,\"#FCA85E\"],[0.7123745819397993,\"#FCA65D\"],[0.71571906354515047,\"#FCA45C\"],[0.71906354515050164,\"#FCA25B\"],[0.72240802675585281,\"#FCA05A\"],[0.72575250836120397,\"#FB9E59\"],[0.72909698996655514,\"#FB9C58\"],[0.73244147157190631,\"#FB9A57\"],[0.73578595317725748,\"#FB9856\"],[0.73913043478260865,\"#FA9655\"],[0.74247491638795982,\"#FA9354\"],[0.74581939799331098,\"#FA9153\"],[0.74916387959866215,\"#F98F52\"],[0.75250836120401332,\"#F98D51\"],[0.75585284280936449,\"#F98B50\"],[0.75919732441471566,\"#F8894F\"],[0.76254180602006683,\"#F8874E\"],[0.76588628762541799,\"#F8844D\"],[0.76923076923076916,\"#F7824C\"],[0.77257525083612044,\"#F7804B\"],[0.77591973244147161,\"#F77E4A\"],[0.77926421404682278,\"#F67B49\"],[0.78260869565217395,\"#F67948\"],[0.78595317725752512,\"#F67747\"],[0.78929765886287628,\"#F57546\"],[0.79264214046822745,\"#F57245\"],[0.79598662207357862,\"#F47044\"],[0.79933110367892979,\"#F46D43\"],[0.80267558528428096,\"#F36C42\"],[0.80602006688963213,\"#F26A41\"],[0.80936454849498329,\"#F16840\"],[0.81270903010033446,\"#F0663F\"],[0.81605351170568563,\"#EF643E\"],[0.8193979933110368,\"#EF633D\"],[0.82274247491638797,\"#EE613C\"],[0.82608695652173914,\"#ED5F3B\"],[0.8294314381270903,\"#EC5D3A\"],[0.83277591973244147,\"#EB5B3A\"],[0.83612040133779264,\"#EA5939\"],[0.83946488294314381,\"#E95738\"],[0.84280936454849498,\"#E85537\"],[0.84615384615384615,\"#E75336\"],[0.84949832775919731,\"#E65135\"],[0.85284280936454848,\"#E54F34\"],[0.85618729096989965,\"#E44D33\"],[0.85953177257525082,\"#E34B32\"],[0.86287625418060199,\"#E24931\"],[0.86622073578595316,\"#E14730\"],[0.86956521739130432,\"#E0452F\"],[0.87290969899665549,\"#DF432E\"],[0.87625418060200666,\"#DE412D\"],[0.87959866220735783,\"#DD3F2C\"],[0.882943143812709,\"#DC3C2C\"],[0.88628762541806017,\"#DB3A2B\"],[0.88963210702341133,\"#DA382A\"],[0.8929765886287625,\"#D93529\"],[0.89632107023411367,\"#D83328\"],[0.89966555183946484,\"#D73027\"],[0.90301003344481601,\"#D52F27\"],[0.90635451505016718,\"#D42E27\"],[0.90969899665551834,\"#D22C27\"],[0.91304347826086951,\"#D02B27\"],[0.91638795986622068,\"#CF2A27\"],[0.91973244147157185,\"#CD2927\"],[0.92307692307692302,\"#CB2727\"],[0.92642140468227419,\"#CA2627\"],[0.92976588628762535,\"#C82527\"],[0.93311036789297652,\"#C62427\"],[0.93645484949832769,\"#C52227\"],[0.93979933110367886,\"#C32127\"],[0.94314381270903014,\"#C11F27\"],[0.94648829431438131,\"#BF1E27\"],[0.94983277591973247,\"#BE1D27\"],[0.95317725752508364,\"#BC1B27\"],[0.95652173913043481,\"#BA1A27\"],[0.95986622073578598,\"#B91827\"],[0.96321070234113715,\"#B71627\"],[0.96655518394648832,\"#B51527\"],[0.96989966555183948,\"#B41327\"],[0.97324414715719065,\"#B21127\"],[0.97658862876254182,\"#B10F27\"],[0.97993311036789299,\"#AF0D26\"],[0.98327759197324416,\"#AD0B26\"],[0.98662207357859533,\"#AC0926\"],[0.98996655518394649,\"#AA0726\"],[0.99331103678929766,\"#A80426\"],[0.99665551839464883,\"#A70226\"],[1,\"#A50026\"]],\"colorbar\":{\"bgcolor\":\"rgba(255,255,255,1)\",\"bordercolor\":\"transparent\",\"borderwidth\":1.8897637795275593,\"thickness\":23.039999999999996,\"title\":\"value\",\"titlefont\":{\"color\":\"rgba(0,0,0,1)\",\"family\":\"\",\"size\":14.611872146118724},\"tickmode\":\"array\",\"ticktext\":[\"0.00\",\"0.25\",\"0.50\",\"0.75\",\"1.00\"],\"tickvals\":[0.0016666666666666668,0.2508333333333333,0.49999999999999994,0.74916666666666665,0.99833333333333329],\"tickfont\":{\"color\":\"rgba(0,0,0,1)\",\"family\":\"\",\"size\":11.68949771689498},\"ticklen\":2,\"len\":0.5}},\"xaxis\":\"x\",\"yaxis\":\"y2\",\"frame\":null},{\"x\":[0.93861177256733785,0.93861177256733785,null,0.93861177256733785,0,null,0.93861177256733785,0.93861177256733785,null,0.93861177256733785,0.18229656078734624,null,0.18229656078734624,0.18229656078734624,null,0.18229656078734624,0,null,0.18229656078734624,0.18229656078734624,null,0.18229656078734624,0],\"y\":[1.75,1,null,1,1,null,1.75,2.5,null,2.5,2.5,null,2.5,2,null,2,2,null,2.5,3,null,3,3],\"text\":[\"y: 0.9386118\",\"y: 0.9386118\",null,\"y: 0.9386118\",\"y: 0.9386118\",null,\"y: 0.9386118\",\"y: 0.9386118\",null,\"y: 0.9386118\",\"y: 0.9386118\",null,\"y: 0.1822966\",\"y: 0.1822966\",null,\"y: 0.1822966\",\"y: 0.1822966\",null,\"y: 0.1822966\",\"y: 0.1822966\",null,\"y: 0.1822966\",\"y: 0.1822966\"],\"type\":\"scatter\",\"mode\":\"lines\",\"line\":{\"width\":2.2677165354330708,\"color\":\"rgba(0,0,0,1)\",\"dash\":\"solid\"},\"hoveron\":\"points\",\"showlegend\":false,\"xaxis\":\"x2\",\"yaxis\":\"y2\",\"hoverinfo\":\"text\",\"frame\":null},{\"x\":[0.93861177256733785,0,0.18229656078734624,0,0],\"y\":[1.75,1,2.5,2,3],\"text\":[\"y: 0.9386118\",\"y: 0.0000000\",\"y: 0.1822966\",\"y: 0.0000000\",\"y: 0.0000000\"],\"type\":\"scatter\",\"mode\":\"markers\",\"marker\":{\"autocolorscale\":false,\"color\":\"transparent\",\"opacity\":1,\"size\":null,\"symbol\":null,\"line\":{\"width\":1.8897637795275593,\"color\":\"transparent\"}},\"hoveron\":\"points\",\"showlegend\":false,\"xaxis\":\"x2\",\"yaxis\":\"y2\",\"hoverinfo\":\"text\",\"frame\":null}],\"layout\":{\"xaxis\":{\"domain\":[0,0.80000000000000004],\"automargin\":true,\"type\":\"linear\",\"autorange\":false,\"range\":[0.40000000000000002,3.6000000000000001],\"tickmode\":\"array\",\"ticktext\":[\"maaslin__ChaSan\",\"metagenomeseq__Zlebia\",\"deseq__Linzer_torte\"],\"tickvals\":[1,2,3],\"categoryorder\":\"array\",\"categoryarray\":[\"maaslin__ChaSan\",\"metagenomeseq__Zlebia\",\"deseq__Linzer_torte\"],\"nticks\":null,\"ticks\":\"outside\",\"tickcolor\":\"rgba(51,51,51,1)\",\"ticklen\":3.6529680365296811,\"tickwidth\":0.66417600664176002,\"showticklabels\":true,\"tickfont\":{\"color\":\"rgba(0,0,0,1)\",\"family\":\"Arial\",\"size\":19.9252801992528},\"tickangle\":-45,\"showline\":true,\"linecolor\":\"rgba(0,0,0,1)\",\"linewidth\":0.66417600664176002,\"showgrid\":false,\"gridcolor\":null,\"gridwidth\":0,\"zeroline\":false,\"anchor\":\"y2\",\"title\":\"\",\"hoverformat\":\".2f\"},\"xaxis2\":{\"domain\":[0.80000000000000004,1],\"automargin\":true,\"showticklabels\":false,\"showgrid\":false,\"zeroline\":false,\"anchor\":\"y2\",\"type\":\"linear\",\"autorange\":false,\"range\":[0,0.93861177256733785],\"tickmode\":\"array\",\"ticktext\":[\"0.00\",\"0.25\",\"0.50\",\"0.75\"],\"tickvals\":[0,0.25,0.5,0.75],\"categoryorder\":\"array\",\"categoryarray\":[\"0.00\",\"0.25\",\"0.50\",\"0.75\"],\"nticks\":null,\"ticks\":\"\",\"tickcolor\":null,\"ticklen\":3.6529680365296811,\"tickwidth\":0,\"tickfont\":{\"color\":null,\"family\":null,\"size\":0},\"tickangle\":-0,\"showline\":false,\"linecolor\":null,\"linewidth\":0,\"gridcolor\":null,\"gridwidth\":0,\"title\":{\"text\":\"\",\"font\":{\"color\":null,\"family\":null,\"size\":0}},\"hoverformat\":\".2f\"},\"yaxis2\":{\"domain\":[0,0.80000000000000004],\"automargin\":true,\"type\":\"linear\",\"autorange\":false,\"range\":[0.40000000000000002,3.6000000000000001],\"tickmode\":\"array\",\"ticktext\":[\"maaslin__ChaSan\",\"metagenomeseq__Zlebia\",\"deseq__Linzer_torte\"],\"tickvals\":[1,2,3],\"categoryorder\":\"array\",\"categoryarray\":[\"maaslin__ChaSan\",\"metagenomeseq__Zlebia\",\"deseq__Linzer_torte\"],\"nticks\":null,\"ticks\":\"outside\",\"tickcolor\":\"rgba(51,51,51,1)\",\"ticklen\":3.6529680365296811,\"tickwidth\":0.66417600664176002,\"showticklabels\":true,\"tickfont\":{\"color\":\"rgba(0,0,0,1)\",\"family\":\"Arial\",\"size\":19.9252801992528},\"tickangle\":-0,\"showline\":true,\"linecolor\":\"rgba(0,0,0,1)\",\"linewidth\":0.66417600664176002,\"showgrid\":false,\"gridcolor\":null,\"gridwidth\":0,\"zeroline\":false,\"anchor\":\"x\",\"title\":\"\",\"hoverformat\":\".2f\"},\"yaxis\":{\"domain\":[0.80000000000000004,1],\"automargin\":true,\"showticklabels\":false,\"showgrid\":false,\"zeroline\":false,\"anchor\":\"x\",\"type\":\"linear\",\"autorange\":false,\"range\":[0,0.93861177256733785],\"tickmode\":\"array\",\"ticktext\":[\"0.00\",\"0.25\",\"0.50\",\"0.75\"],\"tickvals\":[0,0.25,0.5,0.75],\"categoryorder\":\"array\",\"categoryarray\":[\"0.00\",\"0.25\",\"0.50\",\"0.75\"],\"nticks\":null,\"ticks\":\"\",\"tickcolor\":null,\"ticklen\":3.6529680365296811,\"tickwidth\":0,\"tickfont\":{\"color\":null,\"family\":null,\"size\":0},\"tickangle\":-0,\"showline\":false,\"linecolor\":null,\"linewidth\":0,\"gridcolor\":null,\"gridwidth\":0,\"title\":{\"text\":\"\",\"font\":{\"color\":null,\"family\":null,\"size\":0}},\"hoverformat\":\".2f\"},\"annotations\":[],\"shapes\":[{\"type\":\"rect\",\"fillcolor\":null,\"line\":{\"color\":null,\"width\":0,\"linetype\":[]},\"yref\":\"paper\",\"xref\":\"paper\",\"x0\":0,\"x1\":0.80000000000000004,\"y0\":0.80000000000000004,\"y1\":1},{\"type\":\"rect\",\"fillcolor\":null,\"line\":{\"color\":null,\"width\":0,\"linetype\":[]},\"yref\":\"paper\",\"xref\":\"paper\",\"x0\":0,\"x1\":0.80000000000000004,\"y0\":0,\"y1\":0.80000000000000004},{\"type\":\"rect\",\"fillcolor\":null,\"line\":{\"color\":null,\"width\":0,\"linetype\":[]},\"yref\":\"paper\",\"xref\":\"paper\",\"x0\":0.80000000000000004,\"x1\":1,\"y0\":0,\"y1\":0.80000000000000004}],\"images\":[],\"margin\":{\"t\":0,\"r\":null,\"b\":251.05853051058529,\"l\":251.05853051058529},\"font\":{\"color\":\"rgba(0,0,0,1)\",\"family\":\"\",\"size\":14.611872146118724},\"showlegend\":false,\"legend\":{\"bgcolor\":\"rgba(255,255,255,1)\",\"bordercolor\":\"transparent\",\"borderwidth\":1.8897637795275593,\"font\":{\"color\":\"rgba(0,0,0,1)\",\"family\":\"\",\"size\":11.68949771689498},\"title\":{\"text\":\"Point sizevalue\",\"font\":{\"color\":\"rgba(0,0,0,1)\",\"family\":\"\",\"size\":14.611872146118724}},\"y\":1,\"yanchor\":\"top\"},\"hovermode\":\"closest\",\"barmode\":\"relative\",\"paper_bgcolor\":\"rgba(255,255,255,1)\",\"title\":\"\"},\"attrs\":{\"8b5b22b83acb\":{\"xend\":{},\"yend\":{},\"colour\":{},\"linetype\":{},\"size\":{},\"x\":{},\"y\":{},\"type\":\"scatter\"},\"8b5b32b8859f\":{\"colour\":{},\"shape\":{},\"size\":{},\"x\":{},\"y\":{}},\"8b5b2ed79202\":{\"alpha_stroke\":1,\"sizes\":[10,100],\"spans\":[1,20]},\"8b5b4308f836\":{\"x\":{},\"y\":{},\"colour\":{},\"text\":{},\"size\":{},\"type\":\"scatter\"},\"8b5b6df5f949\":{\"xend\":{},\"yend\":{},\"colour\":{},\"linetype\":{},\"size\":{},\"x\":{},\"y\":{},\"type\":\"scatter\"},\"8b5b6b5a02d1\":{\"colour\":{},\"shape\":{},\"size\":{},\"x\":{},\"y\":{}}},\"source\":\"A\",\"config\":{\"doubleClick\":\"reset\",\"modeBarButtonsToAdd\":[\"hoverclosest\",\"hovercompare\"],\"showSendToCloud\":false,\"displaylogo\":false,\"modeBarButtonsToRemove\":[\"sendDataToCloud\",\"select2d\",\"lasso2d\",\"autoScale2d\",\"hoverClosestCartesian\",\"hoverCompareCartesian\",\"sendDataToCloud\"]},\"highlight\":{\"on\":\"plotly_click\",\"persistent\":false,\"dynamic\":false,\"selectize\":false,\"opacityDim\":0.20000000000000001,\"selected\":{\"opacity\":1},\"debounce\":0},\"subplot\":true,\"shinyEvents\":[\"plotly_hover\",\"plotly_click\",\"plotly_selected\",\"plotly_relayout\",\"plotly_brushed\",\"plotly_brushing\",\"plotly_clickannotation\",\"plotly_doubleclick\",\"plotly_deselect\",\"plotly_afterplot\",\"plotly_sunburstclick\"],\"base_url\":\"https://plot.ly\"},\"evals\":[],\"jsHooks\":[]} ## If you want to exclude a method for the plot, you can remove it with the ## step parameter. In the following example we eliminate from the graph the ## results of maaslin corr_heatmap(test_prep_rec, steps = steps_ids(test_prep_rec, \"da\")[-1]) {\"x\":{\"data\":[{\"x\":[1.5,1,null,1,1,null,1.5,2,null,2,2],\"y\":[0.18202748822623996,0.18202748822623996,null,0.18202748822623996,0,null,0.18202748822623996,0.18202748822623996,null,0.18202748822623996,0],\"text\":\"y: 0.1820275\",\"type\":\"scatter\",\"mode\":\"lines\",\"line\":{\"width\":2.2677165354330708,\"color\":\"rgba(0,0,0,1)\",\"dash\":\"solid\"},\"hoveron\":\"points\",\"showlegend\":false,\"xaxis\":\"x\",\"yaxis\":\"y\",\"hoverinfo\":\"text\",\"frame\":null},{\"x\":[1.5,1,2],\"y\":[0.18202748822623996,0,0],\"text\":[\"y: 0.1820275\",\"y: 0.0000000\",\"y: 0.0000000\"],\"type\":\"scatter\",\"mode\":\"markers\",\"marker\":{\"autocolorscale\":false,\"color\":\"transparent\",\"opacity\":1,\"size\":null,\"symbol\":null,\"line\":{\"width\":1.8897637795275593,\"color\":\"transparent\"}},\"hoveron\":\"points\",\"showlegend\":false,\"xaxis\":\"x\",\"yaxis\":\"y\",\"hoverinfo\":\"text\",\"frame\":null},{\"type\":\"scatter\",\"mode\":\"markers\",\"marker\":{\"color\":\"rgba(44,160,44,1)\",\"line\":{\"color\":\"rgba(44,160,44,1)\"}},\"error_y\":{\"color\":\"rgba(44,160,44,1)\"},\"error_x\":{\"color\":\"rgba(44,160,44,1)\"},\"line\":{\"color\":\"rgba(44,160,44,1)\"},\"xaxis\":\"x2\",\"yaxis\":\"y\",\"frame\":null},{\"x\":[1,1,2,2],\"y\":[1,2,1,2],\"text\":[\"row: metagenomeseq__Zlebiacolumn: metagenomeseq__Zlebiavalue: 1.0000 Point size : 1.0000\",\"row: deseq__Linzer_tortecolumn: metagenomeseq__Zlebiavalue: 0.8713 Point size : 0.8713\",\"row: metagenomeseq__Zlebiacolumn: deseq__Linzer_tortevalue: 0.8713 Point size : 0.8713\",\"row: deseq__Linzer_tortecolumn: deseq__Linzer_tortevalue: 1.0000 Point size : 1.0000\"],\"type\":\"scatter\",\"mode\":\"markers\",\"marker\":{\"autocolorscale\":false,\"color\":[\"rgba(165,0,38,1)\",\"rgba(224,68,47,1)\",\"rgba(224,68,47,1)\",\"rgba(165,0,38,1)\"],\"opacity\":1,\"size\":[22.677165354330711,3.7795275590551185,3.7795275590551185,22.677165354330711],\"symbol\":\"circle\",\"line\":{\"width\":1.8897637795275593,\"color\":[\"rgba(165,0,38,1)\",\"rgba(224,68,47,1)\",\"rgba(224,68,47,1)\",\"rgba(165,0,38,1)\"]}},\"hoveron\":\"points\",\"showlegend\":false,\"xaxis\":\"x\",\"yaxis\":\"y2\",\"hoverinfo\":\"text\",\"frame\":null},{\"x\":[1],\"y\":[1],\"name\":\"9fd1a829bc79f58faf1a621f1a26f9fc\",\"type\":\"scatter\",\"mode\":\"markers\",\"opacity\":0,\"hoverinfo\":\"skip\",\"showlegend\":false,\"marker\":{\"color\":[0,1],\"colorscale\":[[0,\"#006837\"],[0.0033444816053511705,\"#016A38\"],[0.006688963210702341,\"#016B39\"],[0.010033444816053512,\"#026D39\"],[0.013377926421404682,\"#036E3A\"],[0.016722408026755852,\"#04703B\"],[0.020066889632107024,\"#04713C\"],[0.023411371237458192,\"#05733D\"],[0.026755852842809364,\"#06753E\"],[0.030100334448160536,\"#07763E\"],[0.033444816053511704,\"#08783F\"],[0.036789297658862873,\"#097940\"],[0.040133779264214048,\"#0A7B41\"],[0.043478260869565216,\"#0B7C42\"],[0.046822742474916385,\"#0C7E43\"],[0.05016722408026756,\"#0D8043\"],[0.053511705685618728,\"#0E8144\"],[0.056856187290969896,\"#0F8345\"],[0.060200668896321072,\"#108546\"],[0.06354515050167224,\"#118647\"],[0.066889632107023408,\"#128848\"],[0.070234113712374577,\"#128948\"],[0.073578595317725745,\"#138B49\"],[0.076923076923076927,\"#148D4A\"],[0.080267558528428096,\"#158E4B\"],[0.083612040133779264,\"#16904C\"],[0.086956521739130432,\"#17924D\"],[0.090301003344481601,\"#18934E\"],[0.093645484949832769,\"#18954E\"],[0.096989966555183951,\"#19974F\"],[0.10033444816053512,\"#1A9850\"],[0.10367892976588629,\"#1F9951\"],[0.10702341137123746,\"#229B51\"],[0.11036789297658862,\"#269C52\"],[0.11371237458193979,\"#299D53\"],[0.11705685618729096,\"#2C9E53\"],[0.12040133779264214,\"#2F9F54\"],[0.12374581939799331,\"#32A154\"],[0.12709030100334448,\"#35A255\"],[0.13043478260869565,\"#38A356\"],[0.13377926421404682,\"#3AA456\"],[0.13712374581939799,\"#3DA657\"],[0.14046822742474915,\"#3FA758\"],[0.14381270903010032,\"#42A858\"],[0.14715719063545149,\"#44A959\"],[0.15050167224080269,\"#46AB5A\"],[0.15384615384615385,\"#49AC5A\"],[0.15719063545150502,\"#4BAD5B\"],[0.16053511705685619,\"#4DAE5B\"],[0.16387959866220736,\"#4FB05C\"],[0.16722408026755853,\"#52B15D\"],[0.1705685618729097,\"#54B25D\"],[0.17391304347826086,\"#56B35E\"],[0.17725752508361203,\"#58B55F\"],[0.1806020066889632,\"#5AB65F\"],[0.18394648829431437,\"#5CB760\"],[0.18729096989966554,\"#5EB861\"],[0.19063545150501671,\"#60B961\"],[0.1939799331103679,\"#62BB62\"],[0.19732441471571907,\"#64BC62\"],[0.20066889632107024,\"#66BD63\"],[0.20401337792642141,\"#69BE63\"],[0.20735785953177258,\"#6BBF64\"],[0.21070234113712374,\"#6DC064\"],[0.21404682274247491,\"#70C164\"],[0.21739130434782608,\"#72C264\"],[0.22073578595317725,\"#74C364\"],[0.22408026755852842,\"#76C465\"],[0.22742474916387959,\"#79C565\"],[0.23076923076923075,\"#7BC665\"],[0.23411371237458192,\"#7DC765\"],[0.23745819397993312,\"#7FC766\"],[0.24080267558528429,\"#81C866\"],[0.24414715719063546,\"#83C966\"],[0.24749163879598662,\"#86CA66\"],[0.25083612040133779,\"#88CB67\"],[0.25418060200668896,\"#8ACC67\"],[0.25752508361204013,\"#8CCD67\"],[0.2608695652173913,\"#8ECE67\"],[0.26421404682274247,\"#90CF68\"],[0.26755852842809363,\"#92D068\"],[0.2709030100334448,\"#94D168\"],[0.27424749163879597,\"#96D268\"],[0.27759197324414714,\"#98D368\"],[0.28093645484949831,\"#9AD469\"],[0.28428093645484948,\"#9CD569\"],[0.28762541806020064,\"#9FD669\"],[0.29096989966555181,\"#A1D669\"],[0.29431438127090298,\"#A3D76A\"],[0.29765886287625415,\"#A5D86A\"],[0.30100334448160537,\"#A7D96A\"],[0.30434782608695654,\"#A8DA6B\"],[0.30769230769230771,\"#AADB6D\"],[0.31103678929765888,\"#ACDB6E\"],[0.31438127090301005,\"#ADDC6F\"],[0.31772575250836121,\"#AFDD70\"],[0.32107023411371238,\"#B1DE71\"],[0.32441471571906355,\"#B3DE72\"],[0.32775919732441472,\"#B4DF73\"],[0.33110367892976589,\"#B6E074\"],[0.33444816053511706,\"#B8E175\"],[0.33779264214046822,\"#B9E176\"],[0.34113712374581939,\"#BBE278\"],[0.34448160535117056,\"#BDE379\"],[0.34782608695652173,\"#BFE47A\"],[0.3511705685618729,\"#C0E47B\"],[0.35451505016722407,\"#C2E57C\"],[0.35785953177257523,\"#C4E67D\"],[0.3612040133779264,\"#C5E77E\"],[0.36454849498327757,\"#C7E77F\"],[0.36789297658862874,\"#C9E880\"],[0.37123745819397991,\"#CAE981\"],[0.37458193979933108,\"#CCE983\"],[0.37792642140468224,\"#CEEA84\"],[0.38127090301003341,\"#D0EB85\"],[0.38461538461538458,\"#D1EC86\"],[0.38795986622073581,\"#D3EC87\"],[0.39130434782608697,\"#D5ED88\"],[0.39464882943143814,\"#D6EE89\"],[0.39799331103678931,\"#D8EF8A\"],[0.40133779264214048,\"#DAEF8C\"],[0.40468227424749165,\"#DBF08D\"],[0.40802675585284282,\"#DCF08F\"],[0.41137123745819398,\"#DDF191\"],[0.41471571906354515,\"#DFF193\"],[0.41806020066889632,\"#E0F294\"],[0.42140468227424749,\"#E1F296\"],[0.42474916387959866,\"#E3F398\"],[0.42809364548494983,\"#E4F49A\"],[0.43143812709030099,\"#E5F49B\"],[0.43478260869565216,\"#E6F59D\"],[0.43812709030100333,\"#E8F59F\"],[0.4414715719063545,\"#E9F6A1\"],[0.44481605351170567,\"#EAF6A2\"],[0.44816053511705684,\"#EBF7A4\"],[0.451505016722408,\"#EDF7A6\"],[0.45484949832775917,\"#EEF8A8\"],[0.45819397993311034,\"#EFF8A9\"],[0.46153846153846151,\"#F1F9AB\"],[0.46488294314381268,\"#F2F9AD\"],[0.46822742474916385,\"#F3FAAF\"],[0.47157190635451507,\"#F4FAB0\"],[0.47491638795986624,\"#F6FBB2\"],[0.47826086956521741,\"#F7FCB4\"],[0.48160535117056857,\"#F8FCB5\"],[0.48494983277591974,\"#F9FDB7\"],[0.48829431438127091,\"#FBFDB9\"],[0.49163879598662208,\"#FCFEBB\"],[0.49498327759197325,\"#FDFEBC\"],[0.49832775919732442,\"#FEFFBE\"],[0.50167224080267558,\"#FFFEBE\"],[0.50501672240802675,\"#FFFDBC\"],[0.50836120401337792,\"#FFFCBB\"],[0.51170568561872909,\"#FFFBB9\"],[0.51505016722408026,\"#FFFAB7\"],[0.51839464882943143,\"#FFF9B5\"],[0.52173913043478259,\"#FFF8B4\"],[0.52508361204013376,\"#FFF7B2\"],[0.52842809364548493,\"#FFF6B0\"],[0.5317725752508361,\"#FFF5AE\"],[0.53511705685618727,\"#FFF4AD\"],[0.53846153846153844,\"#FFF3AB\"],[0.5418060200668896,\"#FFF2A9\"],[0.54515050167224077,\"#FFF1A7\"],[0.54849498327759194,\"#FFF0A6\"],[0.55183946488294311,\"#FFEFA4\"],[0.55518394648829428,\"#FFEEA2\"],[0.55852842809364545,\"#FFEDA1\"],[0.56187290969899661,\"#FFEC9F\"],[0.56521739130434778,\"#FFEB9D\"],[0.56856187290969895,\"#FFEA9B\"],[0.57190635451505012,\"#FFE99A\"],[0.57525083612040129,\"#FFE898\"],[0.57859531772575246,\"#FFE796\"],[0.58193979933110362,\"#FFE694\"],[0.58528428093645479,\"#FEE593\"],[0.58862876254180596,\"#FEE391\"],[0.59197324414715713,\"#FEE28F\"],[0.5953177257525083,\"#FEE18D\"],[0.59866220735785947,\"#FEE08C\"],[0.60200668896321075,\"#FEDF8A\"],[0.60535117056856191,\"#FEDD89\"],[0.60869565217391308,\"#FEDC87\"],[0.61204013377926425,\"#FEDA86\"],[0.61538461538461542,\"#FED884\"],[0.61872909698996659,\"#FED783\"],[0.62207357859531776,\"#FED582\"],[0.62541806020066892,\"#FED380\"],[0.62876254180602009,\"#FED27F\"],[0.63210702341137126,\"#FED07D\"],[0.63545150501672243,\"#FECE7C\"],[0.6387959866220736,\"#FECD7B\"],[0.64214046822742477,\"#FECB79\"],[0.64548494983277593,\"#FEC978\"],[0.6488294314381271,\"#FEC876\"],[0.65217391304347827,\"#FEC675\"],[0.65551839464882944,\"#FEC473\"],[0.65886287625418061,\"#FEC372\"],[0.66220735785953178,\"#FEC171\"],[0.66555183946488294,\"#FEBF6F\"],[0.66889632107023411,\"#FEBE6E\"],[0.67224080267558528,\"#FEBC6C\"],[0.67558528428093645,\"#FEBA6B\"],[0.67892976588628762,\"#FEB96A\"],[0.68227424749163879,\"#FEB768\"],[0.68561872909698995,\"#FEB567\"],[0.68896321070234112,\"#FDB466\"],[0.69230769230769229,\"#FDB264\"],[0.69565217391304346,\"#FDB063\"],[0.69899665551839463,\"#FDAF61\"],[0.7023411371237458,\"#FDAD60\"],[0.70568561872909696,\"#FDAB5F\"],[0.70903010033444813,\"#FCA85E\"],[0.7123745819397993,\"#FCA65D\"],[0.71571906354515047,\"#FCA45C\"],[0.71906354515050164,\"#FCA25B\"],[0.72240802675585281,\"#FCA05A\"],[0.72575250836120397,\"#FB9E59\"],[0.72909698996655514,\"#FB9C58\"],[0.73244147157190631,\"#FB9A57\"],[0.73578595317725748,\"#FB9856\"],[0.73913043478260865,\"#FA9655\"],[0.74247491638795982,\"#FA9354\"],[0.74581939799331098,\"#FA9153\"],[0.74916387959866215,\"#F98F52\"],[0.75250836120401332,\"#F98D51\"],[0.75585284280936449,\"#F98B50\"],[0.75919732441471566,\"#F8894F\"],[0.76254180602006683,\"#F8874E\"],[0.76588628762541799,\"#F8844D\"],[0.76923076923076916,\"#F7824C\"],[0.77257525083612044,\"#F7804B\"],[0.77591973244147161,\"#F77E4A\"],[0.77926421404682278,\"#F67B49\"],[0.78260869565217395,\"#F67948\"],[0.78595317725752512,\"#F67747\"],[0.78929765886287628,\"#F57546\"],[0.79264214046822745,\"#F57245\"],[0.79598662207357862,\"#F47044\"],[0.79933110367892979,\"#F46D43\"],[0.80267558528428096,\"#F36C42\"],[0.80602006688963213,\"#F26A41\"],[0.80936454849498329,\"#F16840\"],[0.81270903010033446,\"#F0663F\"],[0.81605351170568563,\"#EF643E\"],[0.8193979933110368,\"#EF633D\"],[0.82274247491638797,\"#EE613C\"],[0.82608695652173914,\"#ED5F3B\"],[0.8294314381270903,\"#EC5D3A\"],[0.83277591973244147,\"#EB5B3A\"],[0.83612040133779264,\"#EA5939\"],[0.83946488294314381,\"#E95738\"],[0.84280936454849498,\"#E85537\"],[0.84615384615384615,\"#E75336\"],[0.84949832775919731,\"#E65135\"],[0.85284280936454848,\"#E54F34\"],[0.85618729096989965,\"#E44D33\"],[0.85953177257525082,\"#E34B32\"],[0.86287625418060199,\"#E24931\"],[0.86622073578595316,\"#E14730\"],[0.86956521739130432,\"#E0452F\"],[0.87290969899665549,\"#DF432E\"],[0.87625418060200666,\"#DE412D\"],[0.87959866220735783,\"#DD3F2C\"],[0.882943143812709,\"#DC3C2C\"],[0.88628762541806017,\"#DB3A2B\"],[0.88963210702341133,\"#DA382A\"],[0.8929765886287625,\"#D93529\"],[0.89632107023411367,\"#D83328\"],[0.89966555183946484,\"#D73027\"],[0.90301003344481601,\"#D52F27\"],[0.90635451505016718,\"#D42E27\"],[0.90969899665551834,\"#D22C27\"],[0.91304347826086951,\"#D02B27\"],[0.91638795986622068,\"#CF2A27\"],[0.91973244147157185,\"#CD2927\"],[0.92307692307692302,\"#CB2727\"],[0.92642140468227419,\"#CA2627\"],[0.92976588628762535,\"#C82527\"],[0.93311036789297652,\"#C62427\"],[0.93645484949832769,\"#C52227\"],[0.93979933110367886,\"#C32127\"],[0.94314381270903014,\"#C11F27\"],[0.94648829431438131,\"#BF1E27\"],[0.94983277591973247,\"#BE1D27\"],[0.95317725752508364,\"#BC1B27\"],[0.95652173913043481,\"#BA1A27\"],[0.95986622073578598,\"#B91827\"],[0.96321070234113715,\"#B71627\"],[0.96655518394648832,\"#B51527\"],[0.96989966555183948,\"#B41327\"],[0.97324414715719065,\"#B21127\"],[0.97658862876254182,\"#B10F27\"],[0.97993311036789299,\"#AF0D26\"],[0.98327759197324416,\"#AD0B26\"],[0.98662207357859533,\"#AC0926\"],[0.98996655518394649,\"#AA0726\"],[0.99331103678929766,\"#A80426\"],[0.99665551839464883,\"#A70226\"],[1,\"#A50026\"]],\"colorbar\":{\"bgcolor\":\"rgba(255,255,255,1)\",\"bordercolor\":\"transparent\",\"borderwidth\":1.8897637795275593,\"thickness\":23.039999999999996,\"title\":\"value\",\"titlefont\":{\"color\":\"rgba(0,0,0,1)\",\"family\":\"\",\"size\":14.611872146118724},\"tickmode\":\"array\",\"ticktext\":[\"0.00\",\"0.25\",\"0.50\",\"0.75\",\"1.00\"],\"tickvals\":[0.0016666666666666668,0.2508333333333333,0.49999999999999994,0.74916666666666665,0.99833333333333329],\"tickfont\":{\"color\":\"rgba(0,0,0,1)\",\"family\":\"\",\"size\":11.68949771689498},\"ticklen\":2,\"len\":0.5}},\"xaxis\":\"x\",\"yaxis\":\"y2\",\"frame\":null},{\"x\":[0.18202748822623996,0.18202748822623996,null,0.18202748822623996,0,null,0.18202748822623996,0.18202748822623996,null,0.18202748822623996,0],\"y\":[1.5,1,null,1,1,null,1.5,2,null,2,2],\"text\":\"y: 0.1820275\",\"type\":\"scatter\",\"mode\":\"lines\",\"line\":{\"width\":2.2677165354330708,\"color\":\"rgba(0,0,0,1)\",\"dash\":\"solid\"},\"hoveron\":\"points\",\"showlegend\":false,\"xaxis\":\"x2\",\"yaxis\":\"y2\",\"hoverinfo\":\"text\",\"frame\":null},{\"x\":[0.18202748822623996,0,0],\"y\":[1.5,1,2],\"text\":[\"y: 0.1820275\",\"y: 0.0000000\",\"y: 0.0000000\"],\"type\":\"scatter\",\"mode\":\"markers\",\"marker\":{\"autocolorscale\":false,\"color\":\"transparent\",\"opacity\":1,\"size\":null,\"symbol\":null,\"line\":{\"width\":1.8897637795275593,\"color\":\"transparent\"}},\"hoveron\":\"points\",\"showlegend\":false,\"xaxis\":\"x2\",\"yaxis\":\"y2\",\"hoverinfo\":\"text\",\"frame\":null}],\"layout\":{\"xaxis\":{\"domain\":[0,0.80000000000000004],\"automargin\":true,\"type\":\"linear\",\"autorange\":false,\"range\":[0.40000000000000002,2.6000000000000001],\"tickmode\":\"array\",\"ticktext\":[\"metagenomeseq__Zlebia\",\"deseq__Linzer_torte\"],\"tickvals\":[1,2],\"categoryorder\":\"array\",\"categoryarray\":[\"metagenomeseq__Zlebia\",\"deseq__Linzer_torte\"],\"nticks\":null,\"ticks\":\"outside\",\"tickcolor\":\"rgba(51,51,51,1)\",\"ticklen\":3.6529680365296811,\"tickwidth\":0.66417600664176002,\"showticklabels\":true,\"tickfont\":{\"color\":\"rgba(0,0,0,1)\",\"family\":\"Arial\",\"size\":19.9252801992528},\"tickangle\":-45,\"showline\":true,\"linecolor\":\"rgba(0,0,0,1)\",\"linewidth\":0.66417600664176002,\"showgrid\":false,\"gridcolor\":null,\"gridwidth\":0,\"zeroline\":false,\"anchor\":\"y2\",\"title\":\"\",\"hoverformat\":\".2f\"},\"xaxis2\":{\"domain\":[0.80000000000000004,1],\"automargin\":true,\"showticklabels\":false,\"showgrid\":false,\"zeroline\":false,\"anchor\":\"y2\",\"type\":\"linear\",\"autorange\":false,\"range\":[0,0.18202748822623996],\"tickmode\":\"array\",\"ticktext\":[\"0.00\",\"0.05\",\"0.10\",\"0.15\"],\"tickvals\":[0,0.050000000000000003,0.10000000000000001,0.15000000000000002],\"categoryorder\":\"array\",\"categoryarray\":[\"0.00\",\"0.05\",\"0.10\",\"0.15\"],\"nticks\":null,\"ticks\":\"\",\"tickcolor\":null,\"ticklen\":3.6529680365296811,\"tickwidth\":0,\"tickfont\":{\"color\":null,\"family\":null,\"size\":0},\"tickangle\":-0,\"showline\":false,\"linecolor\":null,\"linewidth\":0,\"gridcolor\":null,\"gridwidth\":0,\"title\":{\"text\":\"\",\"font\":{\"color\":null,\"family\":null,\"size\":0}},\"hoverformat\":\".2f\"},\"yaxis2\":{\"domain\":[0,0.80000000000000004],\"automargin\":true,\"type\":\"linear\",\"autorange\":false,\"range\":[0.40000000000000002,2.6000000000000001],\"tickmode\":\"array\",\"ticktext\":[\"metagenomeseq__Zlebia\",\"deseq__Linzer_torte\"],\"tickvals\":[1,2],\"categoryorder\":\"array\",\"categoryarray\":[\"metagenomeseq__Zlebia\",\"deseq__Linzer_torte\"],\"nticks\":null,\"ticks\":\"outside\",\"tickcolor\":\"rgba(51,51,51,1)\",\"ticklen\":3.6529680365296811,\"tickwidth\":0.66417600664176002,\"showticklabels\":true,\"tickfont\":{\"color\":\"rgba(0,0,0,1)\",\"family\":\"Arial\",\"size\":19.9252801992528},\"tickangle\":-0,\"showline\":true,\"linecolor\":\"rgba(0,0,0,1)\",\"linewidth\":0.66417600664176002,\"showgrid\":false,\"gridcolor\":null,\"gridwidth\":0,\"zeroline\":false,\"anchor\":\"x\",\"title\":\"\",\"hoverformat\":\".2f\"},\"yaxis\":{\"domain\":[0.80000000000000004,1],\"automargin\":true,\"showticklabels\":false,\"showgrid\":false,\"zeroline\":false,\"anchor\":\"x\",\"type\":\"linear\",\"autorange\":false,\"range\":[0,0.18202748822623996],\"tickmode\":\"array\",\"ticktext\":[\"0.00\",\"0.05\",\"0.10\",\"0.15\"],\"tickvals\":[0,0.050000000000000003,0.10000000000000001,0.15000000000000002],\"categoryorder\":\"array\",\"categoryarray\":[\"0.00\",\"0.05\",\"0.10\",\"0.15\"],\"nticks\":null,\"ticks\":\"\",\"tickcolor\":null,\"ticklen\":3.6529680365296811,\"tickwidth\":0,\"tickfont\":{\"color\":null,\"family\":null,\"size\":0},\"tickangle\":-0,\"showline\":false,\"linecolor\":null,\"linewidth\":0,\"gridcolor\":null,\"gridwidth\":0,\"title\":{\"text\":\"\",\"font\":{\"color\":null,\"family\":null,\"size\":0}},\"hoverformat\":\".2f\"},\"annotations\":[],\"shapes\":[{\"type\":\"rect\",\"fillcolor\":null,\"line\":{\"color\":null,\"width\":0,\"linetype\":[]},\"yref\":\"paper\",\"xref\":\"paper\",\"x0\":0,\"x1\":0.80000000000000004,\"y0\":0.80000000000000004,\"y1\":1},{\"type\":\"rect\",\"fillcolor\":null,\"line\":{\"color\":null,\"width\":0,\"linetype\":[]},\"yref\":\"paper\",\"xref\":\"paper\",\"x0\":0,\"x1\":0.80000000000000004,\"y0\":0,\"y1\":0.80000000000000004},{\"type\":\"rect\",\"fillcolor\":null,\"line\":{\"color\":null,\"width\":0,\"linetype\":[]},\"yref\":\"paper\",\"xref\":\"paper\",\"x0\":0.80000000000000004,\"x1\":1,\"y0\":0,\"y1\":0.80000000000000004}],\"images\":[],\"margin\":{\"t\":0,\"r\":null,\"b\":251.05853051058529,\"l\":251.05853051058529},\"font\":{\"color\":\"rgba(0,0,0,1)\",\"family\":\"\",\"size\":14.611872146118724},\"showlegend\":false,\"legend\":{\"bgcolor\":\"rgba(255,255,255,1)\",\"bordercolor\":\"transparent\",\"borderwidth\":1.8897637795275593,\"font\":{\"color\":\"rgba(0,0,0,1)\",\"family\":\"\",\"size\":11.68949771689498},\"title\":{\"text\":\"valuePoint size\",\"font\":{\"color\":\"rgba(0,0,0,1)\",\"family\":\"\",\"size\":14.611872146118724}},\"y\":1,\"yanchor\":\"top\"},\"hovermode\":\"closest\",\"barmode\":\"relative\",\"paper_bgcolor\":\"rgba(255,255,255,1)\",\"title\":\"\"},\"attrs\":{\"8b5ba0e54bf\":{\"xend\":{},\"yend\":{},\"colour\":{},\"linetype\":{},\"size\":{},\"x\":{},\"y\":{},\"type\":\"scatter\"},\"8b5b75215c8\":{\"colour\":{},\"shape\":{},\"size\":{},\"x\":{},\"y\":{}},\"8b5b7be62d58\":{\"alpha_stroke\":1,\"sizes\":[10,100],\"spans\":[1,20]},\"8b5b76c49004\":{\"x\":{},\"y\":{},\"colour\":{},\"text\":{},\"size\":{},\"type\":\"scatter\"},\"8b5b2653d56d\":{\"xend\":{},\"yend\":{},\"colour\":{},\"linetype\":{},\"size\":{},\"x\":{},\"y\":{},\"type\":\"scatter\"},\"8b5b19517ecf\":{\"colour\":{},\"shape\":{},\"size\":{},\"x\":{},\"y\":{}}},\"source\":\"A\",\"config\":{\"doubleClick\":\"reset\",\"modeBarButtonsToAdd\":[\"hoverclosest\",\"hovercompare\"],\"showSendToCloud\":false,\"displaylogo\":false,\"modeBarButtonsToRemove\":[\"sendDataToCloud\",\"select2d\",\"lasso2d\",\"autoScale2d\",\"hoverClosestCartesian\",\"hoverCompareCartesian\",\"sendDataToCloud\"]},\"highlight\":{\"on\":\"plotly_click\",\"persistent\":false,\"dynamic\":false,\"selectize\":false,\"opacityDim\":0.20000000000000001,\"selected\":{\"opacity\":1},\"debounce\":0},\"subplot\":true,\"shinyEvents\":[\"plotly_hover\",\"plotly_click\",\"plotly_selected\",\"plotly_relayout\",\"plotly_brushed\",\"plotly_brushing\",\"plotly_clickannotation\",\"plotly_doubleclick\",\"plotly_deselect\",\"plotly_afterplot\",\"plotly_sunburstclick\"],\"base_url\":\"https://plot.ly\"},\"evals\":[],\"jsHooks\":[]} ## corr_heatmap function needs a PrepRecipe. If you pass a a non-prep ## Recipe the output is an error. data(test_rec) err <- testthat::expect_error(corr_heatmap(test_rec)) err #> #> Error in `corr_heatmap()`: #> ! This function needs a PrepRecipe! #> • Run prep(rec) and then try with corr_heatmap() #> --- #> Backtrace: #> ▆ #> 1. └─pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE) #> 2. └─pkgdown::build_site(...) #> 3. └─pkgdown:::build_site_local(...) #> 4. └─pkgdown::build_reference(...) #> 5. └─purrr::map(...) #> 6. └─purrr:::map_(\"list\", .x, .f, ..., .progress = .progress) #> 7. ├─purrr:::with_indexed_errors(...) #> 8. │ └─base::withCallingHandlers(...) #> 9. ├─purrr:::call_with_cleanup(...) #> 10. └─pkgdown (local) .f(.x[[i]], ...) #> 11. ├─base::withCallingHandlers(...) #> 12. └─pkgdown:::data_reference_topic(...) #> 13. └─pkgdown:::run_examples(...) #> 14. └─pkgdown:::highlight_examples(code, topic, env = env) #> 15. └─downlit::evaluate_and_highlight(...) #> 16. └─evaluate::evaluate(code, child_env(env), new_device = TRUE, output_handler = output_handler) #> 17. └─evaluate:::evaluate_call(...) #> 18. ├─evaluate (local) timing_fn(...) #> 19. ├─evaluate (local) handle(...) #> 20. │ └─base::try(f, silent = TRUE) #> 21. │ └─base::tryCatch(...) #> 22. │ └─base (local) tryCatchList(expr, classes, parentenv, handlers) #> 23. │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) #> 24. │ └─base (local) doTryCatch(return(expr), name, parentenv, handler) #> 25. ├─base::withCallingHandlers(...) #> 26. ├─base::withVisible(...) #> 27. └─evaluate:::eval_with_user_handlers(expr, envir, enclos, user_handlers) #> 28. └─base::eval(expr, envir, enclos) #> 29. └─base::eval(expr, envir, enclos) #> 30. ├─testthat::expect_error(corr_heatmap(test_rec)) #> 31. │ └─testthat:::expect_condition_matching(...) #> 32. │ └─testthat:::quasi_capture(...) #> 33. │ ├─testthat (local) .capture(...) #> 34. │ │ └─base::withCallingHandlers(...) #> 35. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) #> 36. ├─dar::corr_heatmap(test_rec) #> 37. └─dar::corr_heatmap(test_rec)"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/dar-package.html","id":null,"dir":"Reference","previous_headings":"","what":"dar: Differential Abundance Analysis by Consensus — dar-package","title":"dar: Differential Abundance Analysis by Consensus — dar-package","text":"learn dar, start vignettes: browseVignettes(package = \"dar\")","code":""},{"path":[]},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/dar-package.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"dar: Differential Abundance Analysis by Consensus — dar-package","text":"Maintainer: Francesc Catala-Moll fcatala@irsicaixa.es (ORCID)","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/exclusion_plt.html","id":null,"dir":"Reference","previous_headings":"","what":"Plot the number of shared DA OTUs between methods. — exclusion_plt","title":"Plot the number of shared DA OTUs between methods. — exclusion_plt","text":"Plot number shared DA OTUs methods.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/exclusion_plt.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Plot the number of shared DA OTUs between methods. — exclusion_plt","text":"","code":"exclusion_plt(rec, steps = steps_ids(rec, \"da\")) # S4 method for Recipe exclusion_plt(rec, steps = steps_ids(rec, \"da\")) # S4 method for PrepRecipe exclusion_plt(rec, steps = steps_ids(rec, \"da\"))"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/exclusion_plt.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Plot the number of shared DA OTUs between methods. — exclusion_plt","text":"rec Recipe object. steps Character vector step_ids take account.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/exclusion_plt.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Plot the number of shared DA OTUs between methods. — exclusion_plt","text":"ggplot2-class object","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/exclusion_plt.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Plot the number of shared DA OTUs between methods. — exclusion_plt","text":"","code":"data(test_prep_rec) ## Running the function returns a barplot plot, exclusion_plt(test_prep_rec) ## If you want to exclude a method for the plot, you can remove it with the ## step parameter. In the following example we eliminate from the graph the ## results of maaslin exclusion_plt(test_prep_rec, steps = steps_ids(test_prep_rec, \"da\")[-1]) ## intersection_plt function needs a PrepRecipe. If you pass a a non-prep ## Recipe the output is an error. data(test_rec) err <- testthat::expect_error(exclusion_plt(test_rec)) err #> #> Error in `exclusion_plt()`: #> ! This function needs a PrepRecipe! #> • Run prep(rec) and then try with exclusion_plt() #> --- #> Backtrace: #> ▆ #> 1. └─pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE) #> 2. └─pkgdown::build_site(...) #> 3. └─pkgdown:::build_site_local(...) #> 4. └─pkgdown::build_reference(...) #> 5. └─purrr::map(...) #> 6. └─purrr:::map_(\"list\", .x, .f, ..., .progress = .progress) #> 7. ├─purrr:::with_indexed_errors(...) #> 8. │ └─base::withCallingHandlers(...) #> 9. ├─purrr:::call_with_cleanup(...) #> 10. └─pkgdown (local) .f(.x[[i]], ...) #> 11. ├─base::withCallingHandlers(...) #> 12. └─pkgdown:::data_reference_topic(...) #> 13. └─pkgdown:::run_examples(...) #> 14. └─pkgdown:::highlight_examples(code, topic, env = env) #> 15. └─downlit::evaluate_and_highlight(...) #> 16. └─evaluate::evaluate(code, child_env(env), new_device = TRUE, output_handler = output_handler) #> 17. └─evaluate:::evaluate_call(...) #> 18. ├─evaluate (local) timing_fn(...) #> 19. ├─evaluate (local) handle(...) #> 20. │ └─base::try(f, silent = TRUE) #> 21. │ └─base::tryCatch(...) #> 22. │ └─base (local) tryCatchList(expr, classes, parentenv, handlers) #> 23. │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) #> 24. │ └─base (local) doTryCatch(return(expr), name, parentenv, handler) #> 25. ├─base::withCallingHandlers(...) #> 26. ├─base::withVisible(...) #> 27. └─evaluate:::eval_with_user_handlers(expr, envir, enclos, user_handlers) #> 28. └─base::eval(expr, envir, enclos) #> 29. └─base::eval(expr, envir, enclos) #> 30. ├─testthat::expect_error(exclusion_plt(test_rec)) #> 31. │ └─testthat:::expect_condition_matching(...) #> 32. │ └─testthat:::quasi_capture(...) #> 33. │ ├─testthat (local) .capture(...) #> 34. │ │ └─base::withCallingHandlers(...) #> 35. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) #> 36. ├─dar::exclusion_plt(test_rec) #> 37. └─dar::exclusion_plt(test_rec)"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/export_steps.html","id":null,"dir":"Reference","previous_headings":"","what":"Export step parameters as json. — export_steps","title":"Export step parameters as json. — export_steps","text":"Export step parameters json.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/export_steps.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Export step parameters as json. — export_steps","text":"","code":"export_steps(rec, file_name)"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/export_steps.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Export step parameters as json. — export_steps","text":"rec Recipe object. file_name path file name optout file.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/export_steps.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Export step parameters as json. — export_steps","text":"invisible","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/export_steps.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Export step parameters as json. — export_steps","text":"","code":"data(metaHIV_phy) ## Create a Recipe with steps rec <- recipe(metaHIV_phy, \"RiskGroup2\", \"Species\") |> step_subset_taxa(tax_level = \"Kingdom\", taxa = c(\"Bacteria\", \"Archaea\")) |> step_filter_taxa(.f = \"function(x) sum(x > 0) >= (0.3 * length(x))\") |> step_filter_by_prevalence(0.4) |> step_maaslin() ## Prep Recipe rec <- prep(rec, parallel = TRUE) ## Export to json file export_steps(rec, tempfile(fileext = \".json\"))"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/find_intersections.html","id":null,"dir":"Reference","previous_headings":"","what":"Finds common OTU between method results — find_intersections","title":"Finds common OTU between method results — find_intersections","text":"Finds common OTU method results","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/find_intersections.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Finds common OTU between method results — find_intersections","text":"","code":"find_intersections(rec, steps = steps_ids(rec, \"da\"))"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/find_intersections.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Finds common OTU between method results — find_intersections","text":"rec Recipe object. steps character vector step ids take account","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/find_intersections.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Finds common OTU between method results — find_intersections","text":"tibble","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/find_intersections.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Finds common OTU between method results — find_intersections","text":"","code":"data(test_prep_rec) ## From a PrepRecipe we can extract a tibble with all intersections intersections <- find_intersections(test_prep_rec) intersections #> # A tibble: 88 × 4 #> taxa_id taxa step_ids sum_methods #> #> 1 Otu_34 Olsenella maaslin__ChaSan, metagenomeseq__Zlebia, … 3 #> 2 Otu_35 Collinsella maaslin__ChaSan, metagenomeseq__Zlebia, … 3 #> 3 Otu_45 Slackia maaslin__ChaSan, metagenomeseq__Zlebia, … 3 #> 4 Otu_78 Bacteroides maaslin__ChaSan, metagenomeseq__Zlebia, … 3 #> 5 Otu_82 Barnesiella maaslin__ChaSan, metagenomeseq__Zlebia, … 3 #> 6 Otu_88 Odoribacter maaslin__ChaSan, metagenomeseq__Zlebia, … 3 #> 7 Otu_94 Paraprevotella maaslin__ChaSan, metagenomeseq__Zlebia, … 3 #> 8 Otu_96 Prevotella maaslin__ChaSan, metagenomeseq__Zlebia, … 3 #> 9 Otu_119 Alistipes maaslin__ChaSan, metagenomeseq__Zlebia, … 3 #> 10 Otu_125 Parabacteroides maaslin__ChaSan, metagenomeseq__Zlebia, … 3 #> # ℹ 78 more rows ## Additionally, we can exclude some methods form the table intersections <- find_intersections( test_prep_rec, steps = steps_ids(test_prep_rec, \"da\")[-1] ) intersections #> # A tibble: 36 × 4 #> taxa_id taxa step_ids sum_methods #> #> 1 Otu_34 Olsenella metagenomeseq__Zlebia, deseq__Linzer_tor… 2 #> 2 Otu_35 Collinsella metagenomeseq__Zlebia, deseq__Linzer_tor… 2 #> 3 Otu_45 Slackia metagenomeseq__Zlebia, deseq__Linzer_tor… 2 #> 4 Otu_78 Bacteroides metagenomeseq__Zlebia, deseq__Linzer_tor… 2 #> 5 Otu_82 Barnesiella metagenomeseq__Zlebia, deseq__Linzer_tor… 2 #> 6 Otu_88 Odoribacter metagenomeseq__Zlebia, deseq__Linzer_tor… 2 #> 7 Otu_94 Paraprevotella metagenomeseq__Zlebia, deseq__Linzer_tor… 2 #> 8 Otu_96 Prevotella metagenomeseq__Zlebia, deseq__Linzer_tor… 2 #> 9 Otu_119 Alistipes metagenomeseq__Zlebia, deseq__Linzer_tor… 2 #> 10 Otu_125 Parabacteroides metagenomeseq__Zlebia, deseq__Linzer_tor… 2 #> # ℹ 26 more rows"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/get_comparisons.html","id":null,"dir":"Reference","previous_headings":"","what":"Generate all unique contrasts between levels of a categorical variable. — get_comparisons","title":"Generate all unique contrasts between levels of a categorical variable. — get_comparisons","text":"Generate unique contrasts levels categorical variable.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/get_comparisons.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Generate all unique contrasts between levels of a categorical variable. — get_comparisons","text":"","code":"get_comparisons(var, phy, as_list = TRUE, n_cut = 1)"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/get_comparisons.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Generate all unique contrasts between levels of a categorical variable. — get_comparisons","text":"var categorical variable phy phyloseq object as_list boolean indicating output must returned list. n_cut minimum observations level.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/get_comparisons.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Generate all unique contrasts between levels of a categorical variable. — get_comparisons","text":"tibble list","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/get_comparisons.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Generate all unique contrasts between levels of a categorical variable. — get_comparisons","text":"","code":"data(test_rec) dar:::get_comparisons(\"RiskGroup2\", get_phy(test_rec)) #> [[1]] #> [1] \"hts\" \"msm\" #> #> [[2]] #> [1] \"hts\" \"pwid\" #> #> [[3]] #> [1] \"msm\" \"pwid\" #>"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/get_phy.html","id":null,"dir":"Reference","previous_headings":"","what":"Returns phyloseq from Recipe-class object — get_phy","title":"Returns phyloseq from Recipe-class object — get_phy","text":"Returns phyloseq Recipe-class object","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/get_phy.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Returns phyloseq from Recipe-class object — get_phy","text":"","code":"get_phy(rec) # S4 method for Recipe get_phy(rec)"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/get_phy.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Returns phyloseq from Recipe-class object — get_phy","text":"rec Recipe object","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/get_phy.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Returns phyloseq from Recipe-class object — get_phy","text":"Phyloseq class object","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/get_phy.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Returns phyloseq from Recipe-class object — get_phy","text":"","code":"data(metaHIV_phy) ## Define recipe rec <- recipe(metaHIV_phy, var_info = \"RiskGroup2\", tax_info = \"Species\") ## Extract phyloseq object get_phy(rec) #> phyloseq-class experiment-level object #> otu_table() OTU Table: [ 451 taxa and 156 samples ] #> sample_data() Sample Data: [ 156 samples by 3 sample variables ] #> tax_table() Taxonomy Table: [ 451 taxa by 7 taxonomic ranks ]"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/get_tax.html","id":null,"dir":"Reference","previous_headings":"","what":"Returns tax_info from Recipe-class object — get_tax","title":"Returns tax_info from Recipe-class object — get_tax","text":"Returns tax_info Recipe-class object","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/get_tax.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Returns tax_info from Recipe-class object — get_tax","text":"","code":"get_tax(rec) # S4 method for Recipe get_tax(rec)"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/get_tax.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Returns tax_info from Recipe-class object — get_tax","text":"rec Recipe object","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/get_tax.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Returns tax_info from Recipe-class object — get_tax","text":"Tibble containing tax_info.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/get_tax.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Returns tax_info from Recipe-class object — get_tax","text":"","code":"data(metaHIV_phy) ## Define recipe rec <- recipe(metaHIV_phy, var_info = \"RiskGroup2\", tax_info = \"Species\") ## Extract taxonomic level get_tax(rec) #> # A tibble: 1 × 1 #> tax_lev #> #> 1 Species"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/get_var.html","id":null,"dir":"Reference","previous_headings":"","what":"Returns var_info from Recipe-class object — get_var","title":"Returns var_info from Recipe-class object — get_var","text":"Returns var_info Recipe-class object","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/get_var.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Returns var_info from Recipe-class object — get_var","text":"","code":"get_var(rec) # S4 method for Recipe get_var(rec)"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/get_var.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Returns var_info from Recipe-class object — get_var","text":"rec Recipe object","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/get_var.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Returns var_info from Recipe-class object — get_var","text":"Tibble containing var_info.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/get_var.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Returns var_info from Recipe-class object — get_var","text":"","code":"data(metaHIV_phy) ## Define recipe rec <- recipe(metaHIV_phy, var_info = \"RiskGroup2\", tax_info = \"Species\") ## Extract variable of interest get_var(rec) #> # A tibble: 1 × 1 #> vars #> #> 1 RiskGroup2"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/grapes-greater-than-grapes.html","id":null,"dir":"Reference","previous_headings":"","what":"Pipe operator — %>%","title":"Pipe operator — %>%","text":"Pipe operator","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/grapes-greater-than-grapes.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Pipe operator — %>%","text":"result calling rhs(lhs).","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/import_steps.html","id":null,"dir":"Reference","previous_headings":"","what":"Import steps from json file — import_steps","title":"Import steps from json file — import_steps","text":"Import steps json file","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/import_steps.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Import steps from json file — import_steps","text":"","code":"import_steps(rec, file, parallel = TRUE, workers = 4)"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/import_steps.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Import steps from json file — import_steps","text":"rec Recipe object. file Path input file. parallel FALSE, palatalization. TRUE, parallel execution using future furrr packages. workers Number workers palatalization.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/import_steps.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Import steps from json file — import_steps","text":"recipe-class object","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/import_steps.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Import steps from json file — import_steps","text":"","code":"data(metaHIV_phy) ## Initialize the Recipe with a phyloseq object rec <- recipe(metaHIV_phy, \"RiskGroup2\", \"Species\") rec #> ── DAR Recipe ────────────────────────────────────────────────────────────────── #> Inputs: #> #> ℹ phyloseq object with 451 taxa and 156 samples #> ℹ variable of interes RiskGroup2 (class: character, levels: hts, msm, pwid) #> ℹ taxonomic level Species #> #> ## Import steps json_file <- system.file(\"extdata\", \"test.json\", package = \"dar\") rec <- import_steps(rec, json_file) rec #> ── DAR Recipe ────────────────────────────────────────────────────────────────── #> Inputs: #> #> ℹ phyloseq object with 451 taxa and 156 samples #> ℹ variable of interes RiskGroup2 (class: character, levels: hts, msm, pwid) #> ℹ taxonomic level Species #> #> Preporcessing steps: #> #> ◉ step_subset_taxa() id = subset_taxa__Boyoz #> ◉ step_filter_taxa() id = filter_taxa__Charlotte #> #> DA steps: #> #> ◉ step_maaslin() id = maaslin__ChaSan #> ◉ step_metagenomeseq() id = metagenomeseq__Zlebia #> ◉ step_deseq() id = deseq__Linzer_torte ## If the json file contains 'bake', the Recipe is automatically prepared. json_file <- system.file(\"extdata\", \"test_bake.json\", package = \"dar\") rec <- recipe(metaHIV_phy, \"RiskGroup2\", \"Species\") |> import_steps(json_file) #> ! bakes found in imported recipe #> ℹ running prep() rec #> ── DAR Results ───────────────────────────────────────────────────────────────── #> Inputs: #> #> ℹ phyloseq object with 101 taxa and 156 samples #> ℹ variable of interes RiskGroup2 (class: character, levels: hts, msm, pwid) #> ℹ taxonomic level Species #> #> Results: #> #> ✔ maaslin__ChaSan diff_taxa = 86 #> ✔ metagenomeseq__Zlebia diff_taxa = 69 #> ✔ deseq__Linzer_torte diff_taxa = 53 #> #> ℹ 46 taxa are present in all tested methods #> #> Bakes: #> #> ◉ 1 -> count_cutoff: NULL, weights: NULL, exclude: NULL, id: bake__Trdelník cool(rec) #> ℹ Bake for count_cutoff = 3 #> # A tibble: 46 × 2 #> taxa_id taxa #> #> 1 Otu_96 Prevotella_copri #> 2 Otu_102 Prevotella_sp_AM42_24 #> 3 Otu_340 Holdemanella_biformis #> 4 Otu_332 Catenibacterium_mitsuokai #> 5 Otu_108 Prevotella_sp_CAG_520 #> 6 Otu_115 Alistipes_finegoldii #> 7 Otu_119 Alistipes_putredinis #> 8 Otu_45 Slackia_isoflavoniconvertens #> 9 Otu_82 Barnesiella_intestinihominis #> 10 Otu_113 Prevotella_stercorea #> # ℹ 36 more rows"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/intersection_df.html","id":null,"dir":"Reference","previous_headings":"","what":"Returns data.frame with OTU intersection between methods — intersection_df","title":"Returns data.frame with OTU intersection between methods — intersection_df","text":"Returns data.frame OTU intersection methods","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/intersection_df.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Returns data.frame with OTU intersection between methods — intersection_df","text":"","code":"intersection_df(rec, steps = steps_ids(rec, \"da\"), tidy = FALSE) # S4 method for Recipe intersection_df(rec, steps = steps_ids(rec, \"da\"), tidy = FALSE) # S4 method for PrepRecipe intersection_df(rec, steps = steps_ids(rec, \"da\"), tidy = FALSE)"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/intersection_df.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Returns data.frame with OTU intersection between methods — intersection_df","text":"rec Recipe object. steps character vector step_ids take account. tidy Boolan indicating result must tidy format.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/intersection_df.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Returns data.frame with OTU intersection between methods — intersection_df","text":"data.frame class object","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/intersection_df.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Returns data.frame with OTU intersection between methods — intersection_df","text":"","code":"data(test_prep_rec) df <- intersection_df(test_prep_rec) head(df) #> taxa_id maaslin__ChaSan metagenomeseq__Zlebia deseq__Linzer_torte #> 1 Otu_1 1 0 0 #> 2 Otu_10 1 0 0 #> 3 Otu_18 1 0 0 #> 4 Otu_34 1 1 1 #> 5 Otu_35 1 1 1 #> 6 Otu_37 1 0 0 ## intersection_df function needs a prep-Recipe. If you pass a a non-prep ## recipe the output is an error. data(test_rec) err <- testthat::expect_error(intersection_df(test_rec)) err #> #> Error in `intersection_df()`: #> ! This function needs a PrepRecipe! #> • Run prep(rec) and then retry last command. #> --- #> Backtrace: #> ▆ #> 1. └─pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE) #> 2. └─pkgdown::build_site(...) #> 3. └─pkgdown:::build_site_local(...) #> 4. └─pkgdown::build_reference(...) #> 5. └─purrr::map(...) #> 6. └─purrr:::map_(\"list\", .x, .f, ..., .progress = .progress) #> 7. ├─purrr:::with_indexed_errors(...) #> 8. │ └─base::withCallingHandlers(...) #> 9. ├─purrr:::call_with_cleanup(...) #> 10. └─pkgdown (local) .f(.x[[i]], ...) #> 11. ├─base::withCallingHandlers(...) #> 12. └─pkgdown:::data_reference_topic(...) #> 13. └─pkgdown:::run_examples(...) #> 14. └─pkgdown:::highlight_examples(code, topic, env = env) #> 15. └─downlit::evaluate_and_highlight(...) #> 16. └─evaluate::evaluate(code, child_env(env), new_device = TRUE, output_handler = output_handler) #> 17. └─evaluate:::evaluate_call(...) #> 18. ├─evaluate (local) timing_fn(...) #> 19. ├─evaluate (local) handle(...) #> 20. │ └─base::try(f, silent = TRUE) #> 21. │ └─base::tryCatch(...) #> 22. │ └─base (local) tryCatchList(expr, classes, parentenv, handlers) #> 23. │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) #> 24. │ └─base (local) doTryCatch(return(expr), name, parentenv, handler) #> 25. ├─base::withCallingHandlers(...) #> 26. ├─base::withVisible(...) #> 27. └─evaluate:::eval_with_user_handlers(expr, envir, enclos, user_handlers) #> 28. └─base::eval(expr, envir, enclos) #> 29. └─base::eval(expr, envir, enclos) #> 30. ├─testthat::expect_error(intersection_df(test_rec)) #> 31. │ └─testthat:::expect_condition_matching(...) #> 32. │ └─testthat:::quasi_capture(...) #> 33. │ ├─testthat (local) .capture(...) #> 34. │ │ └─base::withCallingHandlers(...) #> 35. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) #> 36. ├─dar::intersection_df(test_rec) #> 37. └─dar::intersection_df(test_rec)"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/intersection_plt.html","id":null,"dir":"Reference","previous_headings":"","what":"Plot results using UpSet plot — intersection_plt","title":"Plot results using UpSet plot — intersection_plt","text":"Plot results using UpSet plot","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/intersection_plt.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Plot results using UpSet plot — intersection_plt","text":"","code":"intersection_plt( rec, steps = steps_ids(rec, \"da\"), ordered_by = c(\"freq\", \"degree\"), font_size = 2 ) # S4 method for Recipe intersection_plt(rec, steps, font_size) # S4 method for PrepRecipe intersection_plt( rec, steps = steps_ids(rec, \"da\"), ordered_by = c(\"freq\", \"degree\"), font_size = 2 )"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/intersection_plt.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Plot results using UpSet plot — intersection_plt","text":"rec Recipe object. steps Character vector step_ids take account. ordered_by intersections matrix ordered . Options include frequency (entered \"freq\"), degree, order. font_size Size font.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/intersection_plt.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Plot results using UpSet plot — intersection_plt","text":"UpSet plot","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/intersection_plt.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Plot results using UpSet plot — intersection_plt","text":"","code":"data(test_prep_rec) ## Running the function returns a UpSet plot ordered by frequency. intersection_plt(test_prep_rec) ## Alternatively, you can order the plot by degree intersection_plt(test_prep_rec, ordered_by = \"degree\") ## If you want to exclude a method for the plot, you can remove it with the ## step parameter. In the following example we eliminate from the graph the ## results of maaslin intersection_plt(test_prep_rec, steps = steps_ids(test_prep_rec, \"da\")[-1]) ## intersection_plt function needs a PrepRecipe. If you pass a a non-prep ## Recipe the output is an error. data(test_rec) err <- testthat::expect_error(intersection_plt(test_rec)) err #> #> Error in `.local()`: #> ! This function needs a PrepRecipe! #> • Run prep(rec) and then try with intersection_plt() #> --- #> Backtrace: #> ▆ #> 1. └─pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE) #> 2. └─pkgdown::build_site(...) #> 3. └─pkgdown:::build_site_local(...) #> 4. └─pkgdown::build_reference(...) #> 5. └─purrr::map(...) #> 6. └─purrr:::map_(\"list\", .x, .f, ..., .progress = .progress) #> 7. ├─purrr:::with_indexed_errors(...) #> 8. │ └─base::withCallingHandlers(...) #> 9. ├─purrr:::call_with_cleanup(...) #> 10. └─pkgdown (local) .f(.x[[i]], ...) #> 11. ├─base::withCallingHandlers(...) #> 12. └─pkgdown:::data_reference_topic(...) #> 13. └─pkgdown:::run_examples(...) #> 14. └─pkgdown:::highlight_examples(code, topic, env = env) #> 15. └─downlit::evaluate_and_highlight(...) #> 16. └─evaluate::evaluate(code, child_env(env), new_device = TRUE, output_handler = output_handler) #> 17. └─evaluate:::evaluate_call(...) #> 18. ├─evaluate (local) timing_fn(...) #> 19. ├─evaluate (local) handle(...) #> 20. │ └─base::try(f, silent = TRUE) #> 21. │ └─base::tryCatch(...) #> 22. │ └─base (local) tryCatchList(expr, classes, parentenv, handlers) #> 23. │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) #> 24. │ └─base (local) doTryCatch(return(expr), name, parentenv, handler) #> 25. ├─base::withCallingHandlers(...) #> 26. ├─base::withVisible(...) #> 27. └─evaluate:::eval_with_user_handlers(expr, envir, enclos, user_handlers) #> 28. └─base::eval(expr, envir, enclos) #> 29. └─base::eval(expr, envir, enclos) #> 30. ├─testthat::expect_error(intersection_plt(test_rec)) #> 31. │ └─testthat:::expect_condition_matching(...) #> 32. │ └─testthat:::quasi_capture(...) #> 33. │ ├─testthat (local) .capture(...) #> 34. │ │ └─base::withCallingHandlers(...) #> 35. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) #> 36. ├─dar::intersection_plt(test_rec) #> 37. └─dar::intersection_plt(test_rec) #> 38. └─dar (local) .local(rec, steps, font_size)"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/metaHIV_phy.html","id":null,"dir":"Reference","previous_headings":"","what":"Phyloseq object from metaHIV project — metaHIV_phy","title":"Phyloseq object from metaHIV project — metaHIV_phy","text":"Phyloseq object containing abundance counts sample_data metaHIV project. Count reads annotated Metaphlan3.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/metaHIV_phy.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Phyloseq object from metaHIV project — metaHIV_phy","text":"","code":"data(\"metaHIV_phy\")"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/metaHIV_phy.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"Phyloseq object from metaHIV project — metaHIV_phy","text":"phyloseq object 451 taxas, 30 samples, 3 sample variables 7 taxonomic ranks.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/metaHIV_phy.html","id":"source","dir":"Reference","previous_headings":"","what":"Source","title":"Phyloseq object from metaHIV project — metaHIV_phy","text":"s3://fcatala-09142020-eu-west-1/cloud_test/SpeciesQuantification/Kraken2","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/mutual_plt.html","id":null,"dir":"Reference","previous_headings":"","what":"Mutual finding plot — mutual_plt","title":"Mutual finding plot — mutual_plt","text":"Plots number differentially abundant features mutually found defined number methods, colored differential abundance direction separated comparison.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/mutual_plt.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Mutual finding plot — mutual_plt","text":"","code":"mutual_plt( rec, count_cutoff = NULL, comparisons = NULL, steps = steps_ids(rec, type = \"da\"), top_n = 20 ) # S4 method for Recipe mutual_plt( rec, count_cutoff = NULL, comparisons = NULL, steps = steps_ids(rec, type = \"da\"), top_n = 20 ) # S4 method for PrepRecipe mutual_plt( rec, count_cutoff = NULL, comparisons = NULL, steps = steps_ids(rec, type = \"da\"), top_n = 20 )"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/mutual_plt.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Mutual finding plot — mutual_plt","text":"rec Recipe Recipe step. count_cutoff Indicates minimum number methods OTU must present (Default: NULL). count_cutoff NULL count_cutoff equal length(steps_ids(rec, \"da\")) * 2 / 3. comparisons default, function plots comparisons. However, user indicates comparison comparisons interest, selected ones plotted. steps Character vector step_ids take account. Default \"da\" methods. top_n Maximum number taxa represent. Default: 20.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/mutual_plt.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Mutual finding plot — mutual_plt","text":"ggplot2","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/mutual_plt.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Mutual finding plot — mutual_plt","text":"","code":"data(test_prep_rec) ## Running the function returns a tile plot, mutual_plt(test_prep_rec) #> ℹ count_cutoff set to 2 #> ! Taxa present in selected methods are greater than the cutoff top_n = 20 #> ℹ The top 20 significant taxa with the greatest overlap between methods will be used ## The count_cutoff indicates the minimum number of methods in which an OTU ## must be present. By default the value is equal to ## length(steps_ids(rec, \"da\")) * 2 / 3 but it is customizable. mutual_plt( test_prep_rec, count_cutoff = length(steps_ids(test_prep_rec, \"da\")) ) #> ! Taxa present in selected methods are greater than the cutoff top_n = 20 #> ℹ The top 20 significant taxa with the greatest overlap between methods will be used ## A single comparisons can be plotted through the comparison parameter. mutual_plt(test_prep_rec, comparisons = c(\"hts_msm\")) #> ℹ count_cutoff set to 2 #> ! Taxa present in selected methods are greater than the cutoff top_n = 20 #> ℹ The top 20 significant taxa with the greatest overlap between methods will be used ## If you want to exclude a method for the plot, you can remove it with the ## step parameter. In the following example we eliminate from the graph the ## results of maaslin. mutual_plt(test_prep_rec, steps = steps_ids(test_prep_rec, \"da\")[-1]) #> ℹ count_cutoff set to 1 #> ! Taxa present in selected methods are greater than the cutoff top_n = 20 #> ℹ The top 20 significant taxa with the greatest overlap between methods will be used ## mutual_plt function needs a PrepRecipe. If you pass a a non-PrepRecipe ## the output is an error. data(test_rec) err <- testthat::expect_error(mutual_plt(test_rec)) err #> #> Error in `mutual_plt()`: #> ! This function needs a PrepRecipe! #> • Run prep(rec) and then try with mutual_plt() #> --- #> Backtrace: #> ▆ #> 1. └─pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE) #> 2. └─pkgdown::build_site(...) #> 3. └─pkgdown:::build_site_local(...) #> 4. └─pkgdown::build_reference(...) #> 5. └─purrr::map(...) #> 6. └─purrr:::map_(\"list\", .x, .f, ..., .progress = .progress) #> 7. ├─purrr:::with_indexed_errors(...) #> 8. │ └─base::withCallingHandlers(...) #> 9. ├─purrr:::call_with_cleanup(...) #> 10. └─pkgdown (local) .f(.x[[i]], ...) #> 11. ├─base::withCallingHandlers(...) #> 12. └─pkgdown:::data_reference_topic(...) #> 13. └─pkgdown:::run_examples(...) #> 14. └─pkgdown:::highlight_examples(code, topic, env = env) #> 15. └─downlit::evaluate_and_highlight(...) #> 16. └─evaluate::evaluate(code, child_env(env), new_device = TRUE, output_handler = output_handler) #> 17. └─evaluate:::evaluate_call(...) #> 18. ├─evaluate (local) timing_fn(...) #> 19. ├─evaluate (local) handle(...) #> 20. │ └─base::try(f, silent = TRUE) #> 21. │ └─base::tryCatch(...) #> 22. │ └─base (local) tryCatchList(expr, classes, parentenv, handlers) #> 23. │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) #> 24. │ └─base (local) doTryCatch(return(expr), name, parentenv, handler) #> 25. ├─base::withCallingHandlers(...) #> 26. ├─base::withVisible(...) #> 27. └─evaluate:::eval_with_user_handlers(expr, envir, enclos, user_handlers) #> 28. └─base::eval(expr, envir, enclos) #> 29. └─base::eval(expr, envir, enclos) #> 30. ├─testthat::expect_error(mutual_plt(test_rec)) #> 31. │ └─testthat:::expect_condition_matching(...) #> 32. │ └─testthat:::quasi_capture(...) #> 33. │ ├─testthat (local) .capture(...) #> 34. │ │ └─base::withCallingHandlers(...) #> 35. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) #> 36. ├─dar::mutual_plt(test_rec) #> 37. └─dar::mutual_plt(test_rec)"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/otu_table.html","id":null,"dir":"Reference","previous_headings":"","what":"Extracts otu_table from phyloseq inside a Recipe — otu_table","title":"Extracts otu_table from phyloseq inside a Recipe — otu_table","text":"Extracts otu_table phyloseq inside Recipe","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/otu_table.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Extracts otu_table from phyloseq inside a Recipe — otu_table","text":"","code":"otu_table(rec) # S4 method for Recipe otu_table(rec)"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/otu_table.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Extracts otu_table from phyloseq inside a Recipe — otu_table","text":"rec Recipe Recipe step.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/otu_table.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Extracts otu_table from phyloseq inside a Recipe — otu_table","text":"tibble","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/otu_table.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Extracts otu_table from phyloseq inside a Recipe — otu_table","text":"","code":"data(metaHIV_phy) ## Define recipe rec <- recipe(metaHIV_phy, var_info = \"RiskGroup2\", tax_info = \"Species\") ## Extract otu_table from phyloseq object otu_table(rec) #> # A tibble: 451 × 157 #> taxa_id Sample_186 Sample_185 Sample_184 Sample_182 Sample_181 Sample_170 #> #> 1 Otu_1 2538 0 9026 12049 22126 15374 #> 2 Otu_2 0 0 0 609 2543 988 #> 3 Otu_3 0 0 0 0 0 0 #> 4 Otu_4 0 0 0 0 0 0 #> 5 Otu_5 0 0 0 0 0 0 #> 6 Otu_6 0 0 0 0 0 0 #> 7 Otu_7 0 0 0 0 0 0 #> 8 Otu_8 0 0 0 0 0 0 #> 9 Otu_9 0 0 0 0 0 351 #> 10 Otu_10 0 0 10575 10764 504 0 #> # ℹ 441 more rows #> # ℹ 150 more variables: Sample_169 , Sample_168 , Sample_167 , #> # Sample_166 , Sample_165 , Sample_164 , Sample_163 , #> # Sample_162 , Sample_160 , Sample_159 , Sample_158 , #> # Sample_157 , Sample_156 , Sample_155 , Sample_153 , #> # Sample_152 , Sample_151 , Sample_150 , Sample_149 , #> # Sample_148 , Sample_147 , Sample_146 , Sample_145 , …"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/overlap_df.html","id":null,"dir":"Reference","previous_headings":"","what":"Overlap of significant OTUs between tested methods. — overlap_df","title":"Overlap of significant OTUs between tested methods. — overlap_df","text":"Overlap significant OTUs tested methods.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/overlap_df.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Overlap of significant OTUs between tested methods. — overlap_df","text":"","code":"overlap_df(rec, steps = steps_ids(rec, \"da\"), type = \"all\") # S4 method for Recipe overlap_df(rec, steps = steps_ids(rec, \"da\"), type = \"all\") # S4 method for PrepRecipe overlap_df(rec, steps = steps_ids(rec, \"da\"), type = \"all\")"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/overlap_df.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Overlap of significant OTUs between tested methods. — overlap_df","text":"rec Recipe object. steps Character vector step_ids take account. type Indicates whether use taxa (\"\") differentially abundant least one method (\"da\"). Default \"\".","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/overlap_df.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Overlap of significant OTUs between tested methods. — overlap_df","text":"df","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/overlap_df.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Overlap of significant OTUs between tested methods. — overlap_df","text":"","code":"data(test_prep_rec) ## Running the function returns a UpSet plot ordered by frequency. df <- overlap_df(test_prep_rec, steps_ids(test_prep_rec, \"da\")) head(df) #> maaslin__ChaSan metagenomeseq__Zlebia deseq__Linzer_torte #> maaslin__ChaSan 1.0000000 0.4257426 0.4158416 #> metagenomeseq__Zlebia 0.4257426 1.0000000 0.8712871 #> deseq__Linzer_torte 0.4158416 0.8712871 1.0000000 ## If you want to exclude a method for the plot, you can remove it with the ## step parameter. In the following example we eliminate from the graph the ## results of maaslin overlap_df(test_prep_rec, steps = steps_ids(test_prep_rec, \"da\")[-1]) #> metagenomeseq__Zlebia deseq__Linzer_torte #> metagenomeseq__Zlebia 1.0000000 0.8712871 #> deseq__Linzer_torte 0.8712871 1.0000000 ## overlap_df function needs a prep-Recipe. If you pass a a non-prep ## Recipe the output is an error. data(test_rec) err <- testthat::expect_error(overlap_df(test_rec)) err #> #> Error in `overlap_df()`: #> ! This function needs a PrepRecipe! #> • Run prep(rec) and then try with overlap_df() #> --- #> Backtrace: #> ▆ #> 1. └─pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE) #> 2. └─pkgdown::build_site(...) #> 3. └─pkgdown:::build_site_local(...) #> 4. └─pkgdown::build_reference(...) #> 5. └─purrr::map(...) #> 6. └─purrr:::map_(\"list\", .x, .f, ..., .progress = .progress) #> 7. ├─purrr:::with_indexed_errors(...) #> 8. │ └─base::withCallingHandlers(...) #> 9. ├─purrr:::call_with_cleanup(...) #> 10. └─pkgdown (local) .f(.x[[i]], ...) #> 11. ├─base::withCallingHandlers(...) #> 12. └─pkgdown:::data_reference_topic(...) #> 13. └─pkgdown:::run_examples(...) #> 14. └─pkgdown:::highlight_examples(code, topic, env = env) #> 15. └─downlit::evaluate_and_highlight(...) #> 16. └─evaluate::evaluate(code, child_env(env), new_device = TRUE, output_handler = output_handler) #> 17. └─evaluate:::evaluate_call(...) #> 18. ├─evaluate (local) timing_fn(...) #> 19. ├─evaluate (local) handle(...) #> 20. │ └─base::try(f, silent = TRUE) #> 21. │ └─base::tryCatch(...) #> 22. │ └─base (local) tryCatchList(expr, classes, parentenv, handlers) #> 23. │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) #> 24. │ └─base (local) doTryCatch(return(expr), name, parentenv, handler) #> 25. ├─base::withCallingHandlers(...) #> 26. ├─base::withVisible(...) #> 27. └─evaluate:::eval_with_user_handlers(expr, envir, enclos, user_handlers) #> 28. └─base::eval(expr, envir, enclos) #> 29. └─base::eval(expr, envir, enclos) #> 30. ├─testthat::expect_error(overlap_df(test_rec)) #> 31. │ └─testthat:::expect_condition_matching(...) #> 32. │ └─testthat:::quasi_capture(...) #> 33. │ ├─testthat (local) .capture(...) #> 34. │ │ └─base::withCallingHandlers(...) #> 35. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) #> 36. ├─dar::overlap_df(test_rec) #> 37. └─dar::overlap_df(test_rec)"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/pastry_df.html","id":null,"dir":"Reference","previous_headings":"","what":"Pastery data for step id generation — pastry_df","title":"Pastery data for step id generation — pastry_df","text":"Tibble contain","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/pastry_df.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"Pastery data for step id generation — pastry_df","text":"tbl_df object 228 unique pasteries.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/pastry_df.html","id":"source","dir":"Reference","previous_headings":"","what":"Source","title":"Pastery data for step id generation — pastry_df","text":"https://raw.githubusercontent.com/prasertcbs/basic-dataset/master/pastry.csv","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/pastry_df.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Pastery data for step id generation — pastry_df","text":"tibble pastry names","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/phy_qc.html","id":null,"dir":"Reference","previous_headings":"","what":"Phyloseq Quality Control Metrics — phy_qc","title":"Phyloseq Quality Control Metrics — phy_qc","text":"phy_qc() returns tibble. information important metrics sparsity count matrix. content table follows: var_levels: levels categorical variable interest. \"\" refers rows dataset (without splitting categorical levels). n: total number values count matrix. n_zero: number zeros count matrix. pct_zero: percentage zeros count matrix. pct_all_zero: percentage taxa zero counts samples. pct_singletons: percentage taxa counts single sample. pct_doubletons: percentage taxa counts two samples. count_mean: average mean counts per sample. count_min: average min counts per sample. count_max: average max counts per sample.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/phy_qc.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Phyloseq Quality Control Metrics — phy_qc","text":"","code":"phy_qc(rec) # S4 method for Recipe phy_qc(rec)"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/phy_qc.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Phyloseq Quality Control Metrics — phy_qc","text":"rec Recipe Recipe step.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/phy_qc.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Phyloseq Quality Control Metrics — phy_qc","text":"tibble","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/phy_qc.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Phyloseq Quality Control Metrics — phy_qc","text":"","code":"data(metaHIV_phy) ## Define Recipe rec <- recipe(metaHIV_phy, var_info = \"RiskGroup2\", tax_info = \"Species\") phy_qc(rec) #> # A tibble: 4 × 10 #> var_levels n n_zero pct_zero pct_all_zero pct_singletons pct_doubletons #> #> 1 all 70356 57632 81.9 0 20.6 8.87 #> 2 hts 18491 15108 81.7 24.2 22.8 8.43 #> 3 msm 45100 37019 82.1 16.0 20.2 9.53 #> 4 pwid 6765 5505 81.4 41.2 16.6 9.31 #> # ℹ 3 more variables: count_mean , count_min , count_max "},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/prep.html","id":null,"dir":"Reference","previous_headings":"","what":"Performs all the steps defined in a Recipe — prep","title":"Performs all the steps defined in a Recipe — prep","text":"Recipe least one preprocessing DA operation run steps convenient order.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/prep.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Performs all the steps defined in a Recipe — prep","text":"","code":"prep(rec, parallel = TRUE, workers = 4, force = FALSE) # S4 method for Recipe prep(rec, parallel = TRUE, workers = 4, force = FALSE)"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/prep.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Performs all the steps defined in a Recipe — prep","text":"rec Recipe object. furrr packages. parallel FALSE, palatalization. TRUE, parallel execution using future furrr packages. workers Number workers palatalization. force Force reexecution steps. remove previous results.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/prep.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Performs all the steps defined in a Recipe — prep","text":"PrepRecipe object.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/prep.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Performs all the steps defined in a Recipe — prep","text":"","code":"data(metaHIV_phy) ## Define Recipe rec <- recipe(metaHIV_phy, var_info = \"RiskGroup2\", tax_info = \"Class\") |> step_subset_taxa(tax_level = \"Kingdom\", taxa = c(\"Bacteria\", \"Archaea\")) |> step_filter_taxa(.f = \"function(x) sum(x > 0) >= (0.03 * length(x))\") |> step_maaslin() ## Prep Recipe da_results <- prep(rec) ## If you try ## Consensus strategy n_methods <- 2 da_results <- bake(da_results, count_cutoff = n_methods) da_results #> ── DAR Results ───────────────────────────────────────────────────────────────── #> Inputs: #> #> ℹ phyloseq object with 278 taxa and 156 samples #> ℹ variable of interes RiskGroup2 (class: character, levels: hts, msm, pwid) #> ℹ taxonomic level Class #> #> Results: #> #> ✔ maaslin__Sad_cake diff_taxa = 146 #> #> ℹ 146 taxa are present in all tested methods #> #> Bakes: #> #> ◉ 1 -> count_cutoff: 2, weights: NULL, exclude: NULL, id: bake__Dutch_letter ## If you try to run prep on an object of class PrepRecipe it returns an ## error. err <- testthat::expect_error(prep(da_results)) err #> #> Error in `prep()`: #> ! The input Recipe has already been prep! #> ℹ To force the rerun of all steps plese run prep(rec, force = T) #> --- #> Backtrace: #> ▆ #> 1. └─pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE) #> 2. └─pkgdown::build_site(...) #> 3. └─pkgdown:::build_site_local(...) #> 4. └─pkgdown::build_reference(...) #> 5. └─purrr::map(...) #> 6. └─purrr:::map_(\"list\", .x, .f, ..., .progress = .progress) #> 7. ├─purrr:::with_indexed_errors(...) #> 8. │ └─base::withCallingHandlers(...) #> 9. ├─purrr:::call_with_cleanup(...) #> 10. └─pkgdown (local) .f(.x[[i]], ...) #> 11. ├─base::withCallingHandlers(...) #> 12. └─pkgdown:::data_reference_topic(...) #> 13. └─pkgdown:::run_examples(...) #> 14. └─pkgdown:::highlight_examples(code, topic, env = env) #> 15. └─downlit::evaluate_and_highlight(...) #> 16. └─evaluate::evaluate(code, child_env(env), new_device = TRUE, output_handler = output_handler) #> 17. └─evaluate:::evaluate_call(...) #> 18. ├─evaluate (local) timing_fn(...) #> 19. ├─evaluate (local) handle(...) #> 20. │ └─base::try(f, silent = TRUE) #> 21. │ └─base::tryCatch(...) #> 22. │ └─base (local) tryCatchList(expr, classes, parentenv, handlers) #> 23. │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) #> 24. │ └─base (local) doTryCatch(return(expr), name, parentenv, handler) #> 25. ├─base::withCallingHandlers(...) #> 26. ├─base::withVisible(...) #> 27. └─evaluate:::eval_with_user_handlers(expr, envir, enclos, user_handlers) #> 28. └─base::eval(expr, envir, enclos) #> 29. └─base::eval(expr, envir, enclos) #> 30. ├─testthat::expect_error(prep(da_results)) #> 31. │ └─testthat:::expect_condition_matching(...) #> 32. │ └─testthat:::quasi_capture(...) #> 33. │ ├─testthat (local) .capture(...) #> 34. │ │ └─base::withCallingHandlers(...) #> 35. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) #> 36. ├─dar::prep(da_results) #> 37. └─dar::prep(da_results) ## You can force the overwrite with: prep(rec, force = TRUE) #> ── DAR Results ───────────────────────────────────────────────────────────────── #> Inputs: #> #> ℹ phyloseq object with 278 taxa and 156 samples #> ℹ variable of interes RiskGroup2 (class: character, levels: hts, msm, pwid) #> ℹ taxonomic level Class #> #> Results: #> #> ✔ maaslin__Sad_cake diff_taxa = 146 #> #> ℹ 146 taxa are present in all tested methods #> ## This function can operate in parallel thanks to future and furrr packages. prep(rec, parallel = TRUE, workers = 2) #> ── DAR Results ───────────────────────────────────────────────────────────────── #> Inputs: #> #> ℹ phyloseq object with 278 taxa and 156 samples #> ℹ variable of interes RiskGroup2 (class: character, levels: hts, msm, pwid) #> ℹ taxonomic level Class #> #> Results: #> #> ✔ maaslin__Sad_cake diff_taxa = 146 #> #> ℹ 146 taxa are present in all tested methods #>"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/prep_recipe.html","id":null,"dir":"Reference","previous_headings":"","what":"Create a PrepRecipe. — prep_recipe","title":"Create a PrepRecipe. — prep_recipe","text":"PrepRecipe Recipe results corresponding steps defined Recipe.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/prep_recipe.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Create a PrepRecipe. — prep_recipe","text":"","code":"prep_recipe(rec, results, bakes)"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/prep_recipe.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Create a PrepRecipe. — prep_recipe","text":"rec Recipe object. results list results bakes list saved bakes","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/prep_recipe.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Create a PrepRecipe. — prep_recipe","text":"object class PrepRecipe.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/rand_id.html","id":null,"dir":"Reference","previous_headings":"","what":"Make a random identification field for steps — rand_id","title":"Make a random identification field for steps — rand_id","text":"Make random identification field steps","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/rand_id.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Make a random identification field for steps — rand_id","text":"","code":"rand_id(prefix = \"step\")"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/rand_id.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Make a random identification field for steps — rand_id","text":"prefix single character string","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/rand_id.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Make a random identification field for steps — rand_id","text":"character string prefix random letters separated underscore.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/rand_id.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Make a random identification field for steps — rand_id","text":"","code":"rand_id(\"step\") #> [1] \"step__Rustico\""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/read_data.html","id":null,"dir":"Reference","previous_headings":"","what":"Loads Phyloseq data — read_data","title":"Loads Phyloseq data — read_data","text":"function returns validated Phyloseq object loading directly file .rds extension. Alternatively, function can also take three text files input used construct validate Phyloseq object: - Counts matrix otu_id first column. - Taxonomic annotation matrix otu_id first column. - Metadata annotation sample_id first column.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/read_data.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Loads Phyloseq data — read_data","text":"","code":"read_data(data_path) validate_otu(otu) validate_sample_data(sample_data) validate_tax_table(tax_table) validate_phyloseq(phy, slots = c(\"sample_data\", \"tax_table\")) read_phyloseq(file_path) read_file(file_path, ext = c(\".txt|.csv|.tsv\"))"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/read_data.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Loads Phyloseq data — read_data","text":"data_path List length 1 3, paths input files.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/read_data.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Loads Phyloseq data — read_data","text":"phylseq-class object","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/read_data.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Loads Phyloseq data — read_data","text":"","code":"# From a phyloseq object saved with .rds extension. system.file(\"extdata\", \"metaHIV_phy.rds\", package = \"dar\") |> read_data() #> phyloseq-class experiment-level object #> otu_table() OTU Table: [ 451 taxa and 156 samples ] #> sample_data() Sample Data: [ 156 samples by 3 sample variables ] #> tax_table() Taxonomy Table: [ 451 taxa by 7 taxonomic ranks ] # From the three components of a phyloseq object saved as a plain text. data_path <- c( system.file(\"extdata\", \"metaHIV_counts.txt\", package = \"dar\"), system.file(\"extdata\", \"metaHIV_metadata.txt\", package = \"dar\"), system.file(\"extdata\", \"metaHIV_taxas.txt\", package = \"dar\") ) read_data(data_path) #> Rows: 451 Columns: 157 #> ── Column specification ──────────────────────────────────────────────────────── #> Delimiter: \",\" #> chr (1): otu_id #> dbl (156): Sample_186, Sample_185, Sample_184, Sample_182, Sample_181, Sampl... #> #> ℹ Use `spec()` to retrieve the full column specification for this data. #> ℹ Specify the column types or set `show_col_types = FALSE` to quiet this message. #> Rows: 156 Columns: 4 #> ── Column specification ──────────────────────────────────────────────────────── #> Delimiter: \",\" #> chr (4): sample_id, RiskGroup2, Cluster, HIV_Status #> #> ℹ Use `spec()` to retrieve the full column specification for this data. #> ℹ Specify the column types or set `show_col_types = FALSE` to quiet this message. #> Rows: 451 Columns: 8 #> ── Column specification ──────────────────────────────────────────────────────── #> Delimiter: \",\" #> chr (8): otu_id, Kingdom, Phylum, Class, Order, Family, Genus, Species #> #> ℹ Use `spec()` to retrieve the full column specification for this data. #> ℹ Specify the column types or set `show_col_types = FALSE` to quiet this message. #> phyloseq-class experiment-level object #> otu_table() OTU Table: [ 451 taxa and 156 samples ] #> sample_data() Sample Data: [ 156 samples by 3 sample variables ] #> tax_table() Taxonomy Table: [ 451 taxa by 7 taxonomic ranks ]"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/recipe.html","id":null,"dir":"Reference","previous_headings":"","what":"Create a Recipe for preprocessing data — recipe","title":"Create a Recipe for preprocessing data — recipe","text":"Recipe description steps applied data set order prepare data analysis.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/recipe.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Create a Recipe for preprocessing data — recipe","text":"","code":"recipe( microbiome_object = NULL, var_info = NULL, tax_info = NULL, steps = list() )"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/recipe.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Create a Recipe for preprocessing data — recipe","text":"microbiome_object Phyloseq-class object TreeSummarizedExperiment-class object. var_info character string column names corresponding variables used context. tax_info character string taxonomic levels used context. steps list steps.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/recipe.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Create a Recipe for preprocessing data — recipe","text":"object class Recipe sub-objects: phyloseq object class phyloseq taxa abundance information. var_info tibble contains current set terms data set. initially defaults data contained var_info. tax_info tibble contains current set taxonomic levels used analysis.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/recipe.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Create a Recipe for preprocessing data — recipe","text":"","code":"data(metaHIV_phy) ## Define recipe rec <- recipe(metaHIV_phy, var_info = \"RiskGroup2\", tax_info = \"Phylum\") |> step_subset_taxa(tax_level = \"Kingdom\", taxa = c(\"Bacteria\", \"Archaea\")) |> step_filter_taxa(.f = \"function(x) sum(x > 0) >= (0.3 * length(x))\") |> step_metagenomeseq(rm_zeros = 0.01) |> step_maaslin() ## Prep recipe da_results <- prep(rec) ## Consensus strategy n_methods <- 2 da_results <- bake(da_results, count_cutoff = n_methods) ## Results cool(da_results) #> ℹ Bake for count_cutoff = 2 #> # A tibble: 3 × 2 #> taxa_id taxa #> #> 1 Otu_96 Bacteroidetes #> 2 Otu_391 Lentisphaerae #> 3 Otu_1 Euryarchaeota ## You can also crate a recipe without var and tax info rec <- recipe(metaHIV_phy) rec #> ── DAR Recipe ────────────────────────────────────────────────────────────────── #> Inputs: #> #> ℹ phyloseq object with 451 taxa and 156 samples #> ✖ undefined variable of interest. Use add_var() to add it to Recipe! #> ✖ undefined taxonomic level. Use add_tax() to add it to Recipe! #> ## And define them later rec <- rec |> add_var(\"RiskGroup2\") |> add_tax(\"Genus\") rec #> ── DAR Recipe ────────────────────────────────────────────────────────────────── #> Inputs: #> #> ℹ phyloseq object with 451 taxa and 156 samples #> ℹ variable of interes RiskGroup2 (class: character, levels: hts, msm, pwid) #> ℹ taxonomic level Genus #> #> ## When trying to add an identical step to an existing one, the system ## returns an information message. rec <- step_ancom(rec) rec <- step_ancom(rec) #> ! This step is already defined with the same parameters and will be skipped: #> rec %>% step_ancom(fix_formula = c('RiskGroup2'), rand_formula = NULL, p_adj_method = c('holm'), prv_cut = 0.1, lib_cut = 0, s0_perc = 0.05, group = NULL, struc_zero = FALSE, neg_lb = FALSE, alpha = 0.05, n_cl = 1, verbose = FALSE, global = FALSE, pairwise = FALSE, dunnet = FALSE, trend = FALSE, rarefy = FALSE) ## The same with bake da_results <- bake(da_results) da_results <- bake(da_results) #> ! This step is already defined with the same parameters and will be skipped: #> rec %>% step_bake(count_cutoff = NULL, weights = NULL, exclude = NULL)"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/recipes_pkg_check.html","id":null,"dir":"Reference","previous_headings":"","what":"Update packages — recipes_pkg_check","title":"Update packages — recipes_pkg_check","text":"check see required packages installed.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/recipes_pkg_check.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Update packages — recipes_pkg_check","text":"","code":"recipes_pkg_check(pkg = NULL, step_name, ...)"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/recipes_pkg_check.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Update packages — recipes_pkg_check","text":"pkg character string package checked step_name Name step. ... Extra arguments pass utils::install.packages()","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/recipes_pkg_check.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Update packages — recipes_pkg_check","text":"Nothing returned message printed console packages () installed along code .","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/required_deps.html","id":null,"dir":"Reference","previous_headings":"","what":"Returns required pakcages for Recipe object — required_deps","title":"Returns required pakcages for Recipe object — required_deps","text":"Returns required pakcages Recipe object","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/required_deps.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Returns required pakcages for Recipe object — required_deps","text":"","code":"required_deps(rec) # S4 method for Recipe required_deps(rec)"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/required_deps.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Returns required pakcages for Recipe object — required_deps","text":"rec Recipe object","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/required_deps.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Returns required pakcages for Recipe object — required_deps","text":"character","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/required_deps.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Returns required pakcages for Recipe object — required_deps","text":"","code":"data(test_rec) ## The function returns instructions to install any uninstalled dependencies ## needed to run the Recipe steps dar:::required_deps(test_rec) ## The function also works with PrepRecipe-class objects data(test_prep_rec) dar:::required_deps(test_prep_rec)"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/sample_data.html","id":null,"dir":"Reference","previous_headings":"","what":"Extracts sample_data from phyloseq inside a Recipe — sample_data","title":"Extracts sample_data from phyloseq inside a Recipe — sample_data","text":"Extracts sample_data phyloseq inside Recipe","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/sample_data.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Extracts sample_data from phyloseq inside a Recipe — sample_data","text":"","code":"sample_data(rec) # S4 method for Recipe sample_data(rec)"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/sample_data.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Extracts sample_data from phyloseq inside a Recipe — sample_data","text":"rec Recipe Recipe step.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/sample_data.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Extracts sample_data from phyloseq inside a Recipe — sample_data","text":"tibble","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/sample_data.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Extracts sample_data from phyloseq inside a Recipe — sample_data","text":"","code":"data(metaHIV_phy) ## Define recipe rec <- recipe(metaHIV_phy, var_info = \"RiskGroup2\", tax_info = \"Species\") ## Extract sample_data from phyloseq object sample_data(rec) #> # A tibble: 156 × 2 #> sample_id RiskGroup2 #> #> 1 Sample_186 msm #> 2 Sample_185 msm #> 3 Sample_184 hts #> 4 Sample_182 pwid #> 5 Sample_181 msm #> 6 Sample_170 msm #> 7 Sample_169 msm #> 8 Sample_168 pwid #> 9 Sample_167 hts #> 10 Sample_166 msm #> # ℹ 146 more rows"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/step.html","id":null,"dir":"Reference","previous_headings":"","what":"Overall Wrappers to Make New step_X or check_Y Objects — step","title":"Overall Wrappers to Make New step_X or check_Y Objects — step","text":"step sets class step check checks.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/step.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Overall Wrappers to Make New step_X or check_Y Objects — step","text":"","code":"step(subclass, ..., .prefix = \"step_\") check(subclass, ..., .prefix = \"check_\")"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/step.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Overall Wrappers to Make New step_X or check_Y Objects — step","text":"subclass character string resulting class. example, subclass = \"blah\" step object returned class step_blah check_blah depending context. ... arguments operator returned. .prefix Prefix subclass created.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/step.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Overall Wrappers to Make New step_X or check_Y Objects — step","text":"updated step check new class.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/step_aldex.html","id":null,"dir":"Reference","previous_headings":"","what":"ALDEx2 analysis — step_aldex","title":"ALDEx2 analysis — step_aldex","text":"differential abundance analysis comparison two conditions. example, single-organism meta-RNA-seq high-throughput sequencing assays, selected unselected values -vitro sequence selections. Uses Dirichlet-multinomial model infer abundance counts, optimized three experimental replicates. Infers sampling variation calculates expected false discovery rate given biological sampling variation using Wilcox rank test Welches t-test (aldex.ttest) glm Kruskal Wallis tests (aldex.glm). Reports P fdr values calculated Benjamini Hochberg correction (supported dar package).","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/step_aldex.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"ALDEx2 analysis — step_aldex","text":"","code":"step_aldex( rec, max_significance = 0.05, mc.samples = 128, denom = \"all\", rarefy = FALSE, id = rand_id(\"aldex\") ) # S4 method for Recipe step_aldex( rec, max_significance = 0.05, mc.samples = 128, denom = \"all\", rarefy = FALSE, id = rand_id(\"aldex\") ) # S4 method for PrepRecipe step_aldex( rec, max_significance = 0.05, mc.samples = 128, denom = \"all\", rarefy = FALSE, id = rand_id(\"aldex\") )"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/step_aldex.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"ALDEx2 analysis — step_aldex","text":"rec Recipe object. step added sequence operations Recipe. max_significance Benjamini-Hochberg corrected P value Welch’s t test cutoff. mc.samples number Monte Carlo instances use estimate underlying distributions; since estimating central tendencies, 128 usually sufficient, larger numbers may . denom variable (, iqlr, zero, lvha, median, user) indicating features use denominator Geometric Mean calculation default \"\" uses geometric mean abundance features. Using \"median\" returns median abundance features. Using \"iqlr\" uses features first third quartile variance clr values across samples. Using \"zero\" uses non-zero features grop denominator. approach extreme case many nonzero features one condition many zeros another. Using \"lvha\" uses features low variance (bottom quartile) high relative abundance (top quartile every sample). also possible supply vector row indices use denominator. , experimentalist determining -priori rows thought invariant. case RNA-seq, include ribosomal protein genes house-keeping genes. used caution offsets may different original data data used function features 0 samples removed aldex.clr. rarefy Boolean indicating OTU counts must rarefyed. rarefaction uses standard R sample function resample abundance values otu_table component first argument, physeq. Often one major goals procedure achieve parity total number counts samples, alternative formal normalization procedures, single value sample.size expected. 'no_seed', rarefaction performed without set seed. id character string unique step identify .","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/step_aldex.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"ALDEx2 analysis — step_aldex","text":"object class Recipe","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/step_aldex.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"ALDEx2 analysis — step_aldex","text":"run_aldex function wrapper performs log-ratio transformation statistical testing single line code. Specifically, function: () generates Monte Carlo samples Dirichlet distribution sample, (b) converts instance using log-ratio transform, (c) returns test results two sample (Welch's t, Wilcoxon) test. function also estimates effect size two sample analyses.","code":""},{"path":[]},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/step_aldex.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"ALDEx2 analysis — step_aldex","text":"","code":"data(metaHIV_phy) ## Init Recipe rec <- recipe(metaHIV_phy, \"RiskGroup2\", \"Phylum\") |> step_subset_taxa(tax_level = \"Kingdom\", taxa = c(\"Bacteria\", \"Archaea\")) |> step_filter_taxa(.f = \"function(x) sum(x > 0) >= (0.4 * length(x))\") rec #> ── DAR Recipe ────────────────────────────────────────────────────────────────── #> Inputs: #> #> ℹ phyloseq object with 451 taxa and 156 samples #> ℹ variable of interes RiskGroup2 (class: character, levels: hts, msm, pwid) #> ℹ taxonomic level Phylum #> #> Preporcessing steps: #> #> ◉ step_subset_taxa() id = subset_taxa__Burek #> ◉ step_filter_taxa() id = filter_taxa__Reuzenbol #> #> DA steps: #> ## Define ALDEX step with default parameters and prep rec <- step_aldex(rec) |> prep(parallel = FALSE) rec #> ── DAR Results ───────────────────────────────────────────────────────────────── #> Inputs: #> #> ℹ phyloseq object with 76 taxa and 156 samples #> ℹ variable of interes RiskGroup2 (class: character, levels: hts, msm, pwid) #> ℹ taxonomic level Phylum #> #> Results: #> #> ✔ aldex__Fig_roll diff_taxa = 43 #> #> ℹ 43 taxa are present in all tested methods #> ## Wearing rarefaction only for this step rec <- recipe(metaHIV_phy, \"RiskGroup2\", \"Species\") |> step_aldex(rarefy = TRUE) rec #> ── DAR Recipe ────────────────────────────────────────────────────────────────── #> Inputs: #> #> ℹ phyloseq object with 451 taxa and 156 samples #> ℹ variable of interes RiskGroup2 (class: character, levels: hts, msm, pwid) #> ℹ taxonomic level Species #> #> Preporcessing steps: #> #> #> DA steps: #> #> ◉ step_aldex() id = aldex__Belekoy"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/step_ancom.html","id":null,"dir":"Reference","previous_headings":"","what":"ANCOM analysis — step_ancom","title":"ANCOM analysis — step_ancom","text":"Determine taxa whose absolute abundances, per unit volume, ecosystem (e.g., gut) significantly different changes covariate interest (e.g., group). current version ancombc2 function implements Analysis Compositions Microbiomes Bias Correction (ANCOM-BC2) cross-sectional repeated measurements data. addition two-group comparison, ANCOM-BC2 also supports testing continuous covariates multi-group comparisons, including global test, pairwise directional test, Dunnett's type test, trend test.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/step_ancom.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"ANCOM analysis — step_ancom","text":"","code":"step_ancom( rec, fix_formula = get_var(rec)[[1]], rand_formula = NULL, p_adj_method = \"holm\", prv_cut = 0.1, lib_cut = 0, s0_perc = 0.05, group = NULL, struc_zero = FALSE, neg_lb = FALSE, alpha = 0.05, n_cl = 1, verbose = FALSE, global = FALSE, pairwise = FALSE, dunnet = FALSE, trend = FALSE, rarefy = FALSE, id = rand_id(\"ancom\") ) # S4 method for Recipe step_ancom( rec, fix_formula = get_var(rec)[[1]], rand_formula = NULL, p_adj_method = \"holm\", prv_cut = 0.1, lib_cut = 0, s0_perc = 0.05, group = NULL, struc_zero = FALSE, neg_lb = FALSE, alpha = 0.05, n_cl = 1, verbose = FALSE, global = FALSE, pairwise = FALSE, dunnet = FALSE, trend = FALSE, rarefy = FALSE, id = rand_id(\"ancom\") ) # S4 method for PrepRecipe step_ancom( rec, fix_formula = get_var(rec)[[1]], rand_formula = NULL, p_adj_method = \"holm\", prv_cut = 0.1, lib_cut = 0, s0_perc = 0.05, group = NULL, struc_zero = FALSE, neg_lb = FALSE, alpha = 0.05, n_cl = 1, verbose = FALSE, global = FALSE, pairwise = FALSE, dunnet = FALSE, trend = FALSE, rarefy = FALSE, id = rand_id(\"ancom\") )"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/step_ancom.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"ANCOM analysis — step_ancom","text":"rec Recipe object. step added sequence operations Recipe. fix_formula character string expresses microbial absolute abundances taxon depend fixed effects metadata. specifying fix_formula, make sure include group variable formula NULL. rand_formula character string expresses microbial absolute abundances taxon depend random effects metadata. ANCOM-BC2 follows lmerTest package formulating random effects. See ?lmerTest::lmer details. Default NULL. p_adj_method character. method adjust p-values. Default \"holm\". Options include \"holm\", \"hochberg\", \"hommel\", \"bonferroni\", \"BH\", \"\", \"fdr\", \"none\". See ?stats::p.adjust details. prv_cut numerical fraction 0 1. Taxa prevalences less prv_cut excluded analysis. instance, suppose 100 samples, taxon nonzero counts presented less 10 samples, analyzed. Default 0.10. lib_cut numerical threshold filtering samples based library sizes. Samples library sizes less lib_cut excluded analysis. Default 0, .e. discard sample. s0_perc numerical fraction 0 1. Inspired Significance Analysis Microarrays (SAM) methodology, small positive constant added denominator ANCOM-BC2 test statistic corresponding taxon avoid significance due extremely small standard errors, especially rare taxa. small positive constant chosen s0_perc-th percentile standard error values fixed effect. Default 0.05 (5th percentile). group character. name group variable metadata. group discrete. Specifying group required detecting structural zeros performing multi-group comparisons (global test, pairwise directional test, Dunnett's type test, trend test). Default NULL. group interest contains two categories, leave NULL. struc_zero logical. Whether detect structural zeros based group. Default FALSE. See Details comprehensive discussion structural zeros. neg_lb logical. Whether classify taxon structural zero using asymptotic lower bound. Default FALSE. alpha numeric. Level significance. Default 0.05. n_cl numeric. number nodes forked. details, see ?parallel::makeCluster. Default 1 (parallel computing). verbose logical. Whether generate verbose output ANCOM-BC2 fitting process. Default FALSE. global logical. Whether perform global test. Default FALSE. pairwise logical. Whether perform pairwise directional test. Default FALSE. dunnet logical. Whether perform Dunnett's type test. Default FALSE. trend logical. Whether perform trend test. Default FALSE. rarefy Boolean indicating OTU counts must rarefyed. rarefaction uses standard R sample function resample abundance values otu_table component first argument, physeq. Often one major goals procedure achieve parity total number counts samples, alternative formal normalization procedures, single value sample.size expected. 'no_seed', rarefaction performed without set seed. id character string unique step identify .","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/step_ancom.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"ANCOM analysis — step_ancom","text":"object class Recipe","code":""},{"path":[]},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/step_ancom.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"ANCOM analysis — step_ancom","text":"","code":"data(metaHIV_phy) ## Init Recipe rec <- recipe(metaHIV_phy, \"RiskGroup2\", \"Phylum\") |> step_subset_taxa(tax_level = \"Kingdom\", taxa = c(\"Bacteria\", \"Archaea\")) |> step_filter_taxa(.f = \"function(x) sum(x > 0) >= (0.4 * length(x))\") rec #> ── DAR Recipe ────────────────────────────────────────────────────────────────── #> Inputs: #> #> ℹ phyloseq object with 451 taxa and 156 samples #> ℹ variable of interes RiskGroup2 (class: character, levels: hts, msm, pwid) #> ℹ taxonomic level Phylum #> #> Preporcessing steps: #> #> ◉ step_subset_taxa() id = subset_taxa__Roti_tissue #> ◉ step_filter_taxa() id = filter_taxa__Linzer_torte #> #> DA steps: #> ## Define step with default parameters and prep rec <- step_ancom(rec) |> prep(parallel = FALSE) #> Registered S3 methods overwritten by 'proxy': #> method from #> print.registry_field registry #> print.registry_entry registry #> Warning: The number of taxa used for estimating sample-specific biases is: 6 #> A large number of taxa (>50) is required for the consistent estimation of biases #> Loading required package: foreach #> Loading required package: rngtools #> Warning: The number of taxa used for estimating sample-specific biases is: 6 #> A large number of taxa (>50) is required for the consistent estimation of biases #> Warning: The number of taxa used for estimating sample-specific biases is: 6 #> A large number of taxa (>50) is required for the consistent estimation of biases rec #> ── DAR Results ───────────────────────────────────────────────────────────────── #> Inputs: #> #> ℹ phyloseq object with 76 taxa and 156 samples #> ℹ variable of interes RiskGroup2 (class: character, levels: hts, msm, pwid) #> ℹ taxonomic level Phylum #> #> Results: #> #> ✔ ancom__Trdelník diff_taxa = 24 #> #> ℹ 24 taxa are present in all tested methods #> ## Wearing rarefaction only for this step rec <- recipe(metaHIV_phy, \"RiskGroup2\", \"Species\") |> step_ancom(rarefy = TRUE) rec #> ── DAR Recipe ────────────────────────────────────────────────────────────────── #> Inputs: #> #> ℹ phyloseq object with 451 taxa and 156 samples #> ℹ variable of interes RiskGroup2 (class: character, levels: hts, msm, pwid) #> ℹ taxonomic level Species #> #> Preporcessing steps: #> #> #> DA steps: #> #> ◉ step_ancom() id = ancom__Pineapple_cake"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/step_corncob.html","id":null,"dir":"Reference","previous_headings":"","what":"corncob analysis — step_corncob","title":"corncob analysis — step_corncob","text":"Corncob individual taxon regression model uses abundance tables sample data. corncob able model differential abundance differential variability, addresses challenges presented :","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/step_corncob.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"corncob analysis — step_corncob","text":"","code":"step_corncob( rec, phi.formula = stats::formula(~1), formula_null = stats::formula(~1), phi.formula_null = stats::formula(~1), link = \"logit\", phi.link = \"logit\", test = \"Wald\", boot = FALSE, B = 1000, filter_discriminant = TRUE, fdr_cutoff = 0.05, fdr = \"fdr\", log2FC = 0, rarefy = FALSE, id = rand_id(\"corncob\") ) # S4 method for Recipe step_corncob( rec, phi.formula = stats::formula(~1), formula_null = stats::formula(~1), phi.formula_null = stats::formula(~1), link = \"logit\", phi.link = \"logit\", test = \"Wald\", boot = FALSE, B = 1000, filter_discriminant = TRUE, fdr_cutoff = 0.05, fdr = \"fdr\", log2FC = 0, rarefy = FALSE, id = rand_id(\"corncob\") ) # S4 method for PrepRecipe step_corncob( rec, phi.formula = stats::formula(~1), formula_null = stats::formula(~1), phi.formula_null = stats::formula(~1), link = \"logit\", phi.link = \"logit\", test = \"Wald\", boot = FALSE, B = 1000, filter_discriminant = TRUE, fdr_cutoff = 0.05, fdr = \"fdr\", log2FC = 0, rarefy = FALSE, id = rand_id(\"corncob\") )"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/step_corncob.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"corncob analysis — step_corncob","text":"rec Recipe object. step added sequence operations Recipe. phi.formula object class formula without response: symbolic description model fitted dispersion. formula_null Formula mean null, without response. phi.formula_null Formula overdispersion null, without response. link Link function abundance covariates, defaults \"logit\". phi.link Link function dispersion covariates, defaults \"logit\". test Character. Hypothesis testing procedure use. One \"Wald\" \"LRT\" (likelihood ratio test). boot Boolean. Defaults FALSE. Indicator whether use parametric bootstrap algorithm. (See pbWald pbLRT). B Optional integer. Number bootstrap iterations. Ignored boot FALSE. Otherwise, defaults 1000. filter_discriminant Boolean. Defaults TRUE. FALSE, discriminant taxa filtered . fdr_cutoff Integer. Defaults 0.05. Desired type 1 error rate. fdr Character. Defaults \"fdr\". False discovery rate control method, see p.adjust options. log2FC log2FC cutoff. rarefy Boolean indicating OTU counts must rarefyed. rarefaction uses standard R sample function resample abundance values otu_table component first argument, physeq. Often one major goals procedure achieve parity total number counts samples, alternative formal normalization procedures, single value sample.size expected. 'no_seed', rarefaction performed without set seed. id character string unique step identify .","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/step_corncob.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"corncob analysis — step_corncob","text":"object class Recipe","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/step_corncob.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"corncob analysis — step_corncob","text":"different sequencing depth excessive zeros unobserved taxa high variability empirical relative abundances (overdispersion) within-taxon correlation hypothesis testing categorical continuous covariates","code":""},{"path":[]},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/step_corncob.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"corncob analysis — step_corncob","text":"","code":"data(metaHIV_phy) ## Init Recipe rec <- recipe(metaHIV_phy, \"RiskGroup2\", \"Phylum\") |> step_subset_taxa(tax_level = \"Kingdom\", taxa = c(\"Bacteria\", \"Archaea\")) |> step_filter_taxa(.f = \"function(x) sum(x > 0) >= (0.3 * length(x))\") rec #> ── DAR Recipe ────────────────────────────────────────────────────────────────── #> Inputs: #> #> ℹ phyloseq object with 451 taxa and 156 samples #> ℹ variable of interes RiskGroup2 (class: character, levels: hts, msm, pwid) #> ℹ taxonomic level Phylum #> #> Preporcessing steps: #> #> ◉ step_subset_taxa() id = subset_taxa__Coca #> ◉ step_filter_taxa() id = filter_taxa__Profiterole #> #> DA steps: #> ## Define step with default parameters and prep rec <- step_corncob(rec) |> prep(parallel = FALSE) rec #> ── DAR Results ───────────────────────────────────────────────────────────────── #> Inputs: #> #> ℹ phyloseq object with 101 taxa and 156 samples #> ℹ variable of interes RiskGroup2 (class: character, levels: hts, msm, pwid) #> ℹ taxonomic level Phylum #> #> Results: #> #> ✔ corncob__Briouat diff_taxa = 4 #> #> ℹ 4 taxa are present in all tested methods #>"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/step_deseq.html","id":null,"dir":"Reference","previous_headings":"","what":"DESeq2 analysis — step_deseq","title":"DESeq2 analysis — step_deseq","text":"Differential expression analysis based Negative Binomial (.k.. Gamma-Poisson) distribution. function performs default analysis steps: 1) estimation size factors: estimateSizeFactors. 2) estimation dispersion: estimateDispersions. 3) Negative Binomial GLM fitting Wald statistics: nbinomWaldTest. complete details step, see manual pages respective functions. DESeq function returns DESeqDataSet object, results tables (log2 fold changes p-values) can generated using results function. Shrunken LFC can generated using lfcShrink function.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/step_deseq.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"DESeq2 analysis — step_deseq","text":"","code":"step_deseq( rec, test = \"Wald\", fitType = \"local\", betaPrior = FALSE, type = \"ashr\", max_significance = 0.05, log2FC = 0, rarefy = FALSE, id = rand_id(\"deseq\") ) # S4 method for Recipe step_deseq( rec, test = \"Wald\", fitType = \"local\", betaPrior = FALSE, type = \"ashr\", max_significance = 0.05, log2FC = 0, rarefy = FALSE, id = rand_id(\"deseq\") ) # S4 method for PrepRecipe step_deseq( rec, test = \"Wald\", fitType = \"local\", betaPrior = FALSE, type = \"ashr\", max_significance = 0.05, log2FC = 0, rarefy = FALSE, id = rand_id(\"deseq\") )"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/step_deseq.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"DESeq2 analysis — step_deseq","text":"rec Recipe object. step added sequence operations Recipe. test Either \"Wald\" \"LRT\", use either Wald significance tests (defined nbinomWaldTest), likelihood ratio test difference deviance full reduced model formula (defined nbinomLRT). fitType either \"parametric\", \"local\", \"mean\", \"glmGamPoi\" type fitting dispersions mean intensity. See estimateDispersions description. betaPrior whether put zero-mean normal prior non-intercept coefficients See nbinomWaldTest description calculation beta prior. versions >=1.16, default set FALSE, shrunken LFCs obtained afterwards using lfcShrink. type \"apeglm\" adaptive Student's t prior shrinkage estimator 'apeglm' package; \"ashr\" adaptive shrinkage estimator 'ashr' package, using fitted mixture normals prior - see Stephens (2016) reference citation; \"normal\" 2014 DESeq2 shrinkage estimator using Normal prior. max_significance q-value threshold significance. log2FC log2FC cutoff. rarefy Boolean indicating OTU counts must rarefyed. rarefaction uses standard R sample function resample abundance values otu_table component first argument, physeq. Often one major goals procedure achieve parity total number counts samples, alternative formal normalization procedures, single value sample.size expected. 'no_seed', rarefaction performed without set seed. id character string unique step identify .","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/step_deseq.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"DESeq2 analysis — step_deseq","text":"object class Recipe","code":""},{"path":[]},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/step_deseq.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"DESeq2 analysis — step_deseq","text":"","code":"data(metaHIV_phy) ## Init Recipe rec <- recipe(metaHIV_phy, \"RiskGroup2\", \"Phylum\") |> step_subset_taxa(tax_level = \"Kingdom\", taxa = c(\"Bacteria\", \"Archaea\")) |> step_filter_taxa(.f = \"function(x) sum(x > 0) >= (0.4 * length(x))\") rec #> ── DAR Recipe ────────────────────────────────────────────────────────────────── #> Inputs: #> #> ℹ phyloseq object with 451 taxa and 156 samples #> ℹ variable of interes RiskGroup2 (class: character, levels: hts, msm, pwid) #> ℹ taxonomic level Phylum #> #> Preporcessing steps: #> #> ◉ step_subset_taxa() id = subset_taxa__Haddekuche #> ◉ step_filter_taxa() id = filter_taxa__Schuxen #> #> DA steps: #> ## Define step with default parameters and prep rec <- step_deseq(rec) |> prep(parallel = FALSE) rec #> ── DAR Results ───────────────────────────────────────────────────────────────── #> Inputs: #> #> ℹ phyloseq object with 76 taxa and 156 samples #> ℹ variable of interes RiskGroup2 (class: character, levels: hts, msm, pwid) #> ℹ taxonomic level Phylum #> #> Results: #> #> ✔ deseq__Viennoiserie diff_taxa = 2 #> #> ℹ 2 taxa are present in all tested methods #> ## Wearing rarefaction only for this step rec <- recipe(metaHIV_phy, \"RiskGroup2\", \"Species\") |> step_deseq(rarefy = TRUE) rec #> ── DAR Recipe ────────────────────────────────────────────────────────────────── #> Inputs: #> #> ℹ phyloseq object with 451 taxa and 156 samples #> ℹ variable of interes RiskGroup2 (class: character, levels: hts, msm, pwid) #> ℹ taxonomic level Species #> #> Preporcessing steps: #> #> #> DA steps: #> #> ◉ step_deseq() id = deseq__Chatti_Pathiri"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/step_filter_by_abundance.html","id":null,"dir":"Reference","previous_headings":"","what":"Filter taxa by abundance — step_filter_by_abundance","title":"Filter taxa by abundance — step_filter_by_abundance","text":"convenience wrapper around filter_taxa function. intended speed filtering complex experimental objects one function call. case filter_by_abundance, filtering based relative abundance taxon. taxa retained dataset sum abundance greater product total abundance provided threshold.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/step_filter_by_abundance.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Filter taxa by abundance — step_filter_by_abundance","text":"","code":"step_filter_by_abundance( rec, threshold = 0.01, id = rand_id(\"filter_by_abundance\") ) # S4 method for Recipe step_filter_by_abundance( rec, threshold = 0.01, id = rand_id(\"filter_by_abundance\") ) # S4 method for PrepRecipe step_filter_by_abundance( rec, threshold = 0.01, id = rand_id(\"filter_by_abundance\") )"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/step_filter_by_abundance.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Filter taxa by abundance — step_filter_by_abundance","text":"rec Recipe object. step added sequence operations Recipe. threshold relative abundance threshold filtering taxa, expressed proportion total abundance. example, threshold 0.01 means taxon must make least 1% total abundance retained. default value 0.01. id character string unique step identify .","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/step_filter_by_abundance.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Filter taxa by abundance — step_filter_by_abundance","text":"Recipe object filtered based abundance.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/step_filter_by_abundance.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Filter taxa by abundance — step_filter_by_abundance","text":"function calculates total abundance taxa phyloseq object. compares total abundance abundance individual taxon. taxon's abundance less threshold times total abundance, taxon removed phyloseq object.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/step_filter_by_abundance.html","id":"note","dir":"Reference","previous_headings":"","what":"Note","title":"Filter taxa by abundance — step_filter_by_abundance","text":"function modifies rec place, might want make copy rec modifying need preserve original object.","code":""},{"path":[]},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/step_filter_by_abundance.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Filter taxa by abundance — step_filter_by_abundance","text":"","code":"data(metaHIV_phy) ## Init Recipe rec <- recipe(metaHIV_phy, \"RiskGroup2\", \"Phylum\") rec #> ── DAR Recipe ────────────────────────────────────────────────────────────────── #> Inputs: #> #> ℹ phyloseq object with 451 taxa and 156 samples #> ℹ variable of interes RiskGroup2 (class: character, levels: hts, msm, pwid) #> ℹ taxonomic level Phylum #> #> ## Define filter_by_abundance step with default parameters rec <- step_filter_by_abundance(rec, threshold = 0.01) rec #> ── DAR Recipe ────────────────────────────────────────────────────────────────── #> Inputs: #> #> ℹ phyloseq object with 451 taxa and 156 samples #> ℹ variable of interes RiskGroup2 (class: character, levels: hts, msm, pwid) #> ℹ taxonomic level Phylum #> #> Preporcessing steps: #> #> ◉ step_filter_by_abundance() id = filter_by_abundance__Bougatsa #> #> DA steps: #>"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/step_filter_by_prevalence.html","id":null,"dir":"Reference","previous_headings":"","what":"Filter taxa by prevalence — step_filter_by_prevalence","title":"Filter taxa by prevalence — step_filter_by_prevalence","text":"convenience function around filter_taxa function. designed speed filtering complex experimental objects one function call. case run_filter_by_prevalence, filtering based prevalence taxon. taxa retained dataset prevalence greater provided threshold.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/step_filter_by_prevalence.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Filter taxa by prevalence — step_filter_by_prevalence","text":"","code":"step_filter_by_prevalence( rec, threshold = 0.01, id = rand_id(\"filter_by_prevalence\") ) # S4 method for Recipe step_filter_by_prevalence( rec, threshold = 0.01, id = rand_id(\"filter_by_prevalence\") ) # S4 method for PrepRecipe step_filter_by_prevalence( rec, threshold = 0.01, id = rand_id(\"filter_by_prevalence\") )"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/step_filter_by_prevalence.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Filter taxa by prevalence — step_filter_by_prevalence","text":"rec Recipe object. step added sequence operations Recipe. threshold prevalence threshold filtering taxa, expressed proportion total number samples. example, threshold 0.01 means taxon must present least 1% samples retained. default value 0.01. id character string unique step identify .","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/step_filter_by_prevalence.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Filter taxa by prevalence — step_filter_by_prevalence","text":"Recipe object filtered based prevalence.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/step_filter_by_prevalence.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Filter taxa by prevalence — step_filter_by_prevalence","text":"function calculates prevalence taxa phyloseq object proportion samples present. compares prevalence threshold. taxon's prevalence less threshold, taxon removed phyloseq object.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/step_filter_by_prevalence.html","id":"note","dir":"Reference","previous_headings":"","what":"Note","title":"Filter taxa by prevalence — step_filter_by_prevalence","text":"function modifies rec place, might want make copy rec modifying need preserve original object.","code":""},{"path":[]},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/step_filter_by_prevalence.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Filter taxa by prevalence — step_filter_by_prevalence","text":"","code":"data(metaHIV_phy) ## Init Recipe rec <- recipe(metaHIV_phy, \"RiskGroup2\", \"Phylum\") rec #> ── DAR Recipe ────────────────────────────────────────────────────────────────── #> Inputs: #> #> ℹ phyloseq object with 451 taxa and 156 samples #> ℹ variable of interes RiskGroup2 (class: character, levels: hts, msm, pwid) #> ℹ taxonomic level Phylum #> #> ## Define step_filter_by_prevalence step with default parameters rec <- step_filter_by_prevalence(rec, threshold = 0.01) rec #> ── DAR Recipe ────────────────────────────────────────────────────────────────── #> Inputs: #> #> ℹ phyloseq object with 451 taxa and 156 samples #> ℹ variable of interes RiskGroup2 (class: character, levels: hts, msm, pwid) #> ℹ taxonomic level Phylum #> #> Preporcessing steps: #> #> ◉ step_filter_by_prevalence() id = filter_by_prevalence__Sad_cake #> #> DA steps: #>"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/step_filter_by_rarity.html","id":null,"dir":"Reference","previous_headings":"","what":"Filter taxa by rarity — step_filter_by_rarity","title":"Filter taxa by rarity — step_filter_by_rarity","text":"convenience function around filter_taxa function. designed speed filtering complex experimental objects one function call. case run_filter_by_rarity, filtering based rarity taxon. taxa retained dataset sum rarity less provided threshold.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/step_filter_by_rarity.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Filter taxa by rarity — step_filter_by_rarity","text":"","code":"step_filter_by_rarity(rec, threshold = 0.01, id = rand_id(\"filter_by_rarity\")) # S4 method for Recipe step_filter_by_rarity(rec, threshold = 0.01, id = rand_id(\"filter_by_rarity\")) # S4 method for PrepRecipe step_filter_by_rarity(rec, threshold = 0.01, id = rand_id(\"filter_by_rarity\"))"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/step_filter_by_rarity.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Filter taxa by rarity — step_filter_by_rarity","text":"rec Recipe object. step added sequence operations Recipe. threshold rarity threshold filtering taxa, expressed proportion total number samples. example, threshold 0.01 means taxon must present less 1% samples retained. default value 0.01. id character string unique step identify .","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/step_filter_by_rarity.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Filter taxa by rarity — step_filter_by_rarity","text":"Recipe object filtered based rarity.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/step_filter_by_rarity.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Filter taxa by rarity — step_filter_by_rarity","text":"function calculates rarity taxa phyloseq object proportion samples present. compares rarity threshold. taxon's rarity greater threshold, taxon removed phyloseq object.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/step_filter_by_rarity.html","id":"note","dir":"Reference","previous_headings":"","what":"Note","title":"Filter taxa by rarity — step_filter_by_rarity","text":"function modifies rec place, might want make copy rec modifying need preserve original object.","code":""},{"path":[]},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/step_filter_by_rarity.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Filter taxa by rarity — step_filter_by_rarity","text":"","code":"data(metaHIV_phy) ## Init Recipe rec <- recipe(metaHIV_phy, \"RiskGroup2\", \"Phylum\") rec #> ── DAR Recipe ────────────────────────────────────────────────────────────────── #> Inputs: #> #> ℹ phyloseq object with 451 taxa and 156 samples #> ℹ variable of interes RiskGroup2 (class: character, levels: hts, msm, pwid) #> ℹ taxonomic level Phylum #> #> ## Define step_filter_by_rarity step with default parameters rec <- step_filter_by_rarity(rec, threshold = 0.01) rec #> ── DAR Recipe ────────────────────────────────────────────────────────────────── #> Inputs: #> #> ℹ phyloseq object with 451 taxa and 156 samples #> ℹ variable of interes RiskGroup2 (class: character, levels: hts, msm, pwid) #> ℹ taxonomic level Phylum #> #> Preporcessing steps: #> #> ◉ step_filter_by_rarity() id = filter_by_rarity__Gibanica #> #> DA steps: #>"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/step_filter_by_variance.html","id":null,"dir":"Reference","previous_headings":"","what":"Filter taxa by variance — step_filter_by_variance","title":"Filter taxa by variance — step_filter_by_variance","text":"convenience function around filter_taxa function. designed speed filtering complex experimental objects one function call. case run_filter_by_variance, filtering based variance taxon. taxa retained dataset variance abundance greater provided threshold.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/step_filter_by_variance.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Filter taxa by variance — step_filter_by_variance","text":"","code":"step_filter_by_variance( rec, threshold = 0.01, id = rand_id(\"filter_by_variance\") ) # S4 method for Recipe step_filter_by_variance( rec, threshold = 0.01, id = rand_id(\"filter_by_variance\") ) # S4 method for PrepRecipe step_filter_by_variance( rec, threshold = 0.01, id = rand_id(\"filter_by_variance\") )"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/step_filter_by_variance.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Filter taxa by variance — step_filter_by_variance","text":"rec Recipe object. step added sequence operations Recipe. threshold variance threshold filtering taxa. default value 0.01. id character string unique step identify .","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/step_filter_by_variance.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Filter taxa by variance — step_filter_by_variance","text":"Recipe object filtered based variance.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/step_filter_by_variance.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Filter taxa by variance — step_filter_by_variance","text":"function calculates variance taxa phyloseq object. compares variance variance individual taxon. taxon's variance less threshold, taxon removed phyloseq object.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/step_filter_by_variance.html","id":"note","dir":"Reference","previous_headings":"","what":"Note","title":"Filter taxa by variance — step_filter_by_variance","text":"function modifies rec place, might want make copy rec modifying need preserve original object.","code":""},{"path":[]},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/step_filter_by_variance.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Filter taxa by variance — step_filter_by_variance","text":"","code":"data(metaHIV_phy) ## Init Recipe rec <- recipe(metaHIV_phy, \"RiskGroup2\", \"Phylum\") rec #> ── DAR Recipe ────────────────────────────────────────────────────────────────── #> Inputs: #> #> ℹ phyloseq object with 451 taxa and 156 samples #> ℹ variable of interes RiskGroup2 (class: character, levels: hts, msm, pwid) #> ℹ taxonomic level Phylum #> #> ## Define step_filter_by_variance step with default parameters rec <- step_filter_by_variance(rec, threshold = 0.01) rec #> ── DAR Recipe ────────────────────────────────────────────────────────────────── #> Inputs: #> #> ℹ phyloseq object with 451 taxa and 156 samples #> ℹ variable of interes RiskGroup2 (class: character, levels: hts, msm, pwid) #> ℹ taxonomic level Phylum #> #> Preporcessing steps: #> #> ◉ step_filter_by_variance() id = filter_by_variance__Carac #> #> DA steps: #>"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/step_filter_taxa.html","id":null,"dir":"Reference","previous_headings":"","what":"Filter taxa based on across-sample OTU abundance criteria — step_filter_taxa","title":"Filter taxa based on across-sample OTU abundance criteria — step_filter_taxa","text":"function directly analogous genefilter function microarray filtering, used filtering OTUs phyloseq objects. applies arbitrary set functions — function list, instance, created filterfun — across-sample criteria, one OTU time. takes input phyloseq object, returns logical vector indicating whether OTU passed criteria. Alternatively, \"prune\" option set FALSE, returns already-trimmed version phyloseq object.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/step_filter_taxa.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Filter taxa based on across-sample OTU abundance criteria — step_filter_taxa","text":"","code":"step_filter_taxa(rec, .f, id = rand_id(\"filter_taxa\")) # S4 method for Recipe step_filter_taxa(rec, .f, id = rand_id(\"filter_taxa\"))"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/step_filter_taxa.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Filter taxa based on across-sample OTU abundance criteria — step_filter_taxa","text":"rec Recipe object. step added sequence operations Recipe. .f function list functions take vector abundance values return logical. canned useful function types included genefilter-package. id character string unique step identify .","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/step_filter_taxa.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Filter taxa based on across-sample OTU abundance criteria — step_filter_taxa","text":"object class Recipe","code":""},{"path":[]},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/step_filter_taxa.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Filter taxa based on across-sample OTU abundance criteria — step_filter_taxa","text":"","code":"data(metaHIV_phy) ## Init Recipe rec <- recipe(metaHIV_phy, \"RiskGroup2\", \"Phylum\") rec #> ── DAR Recipe ────────────────────────────────────────────────────────────────── #> Inputs: #> #> ℹ phyloseq object with 451 taxa and 156 samples #> ℹ variable of interes RiskGroup2 (class: character, levels: hts, msm, pwid) #> ℹ taxonomic level Phylum #> #> ## Define filter taxa step with default parameters rec <- step_filter_taxa(rec, .f = \"function(x) sum(x > 0) >= (0.03 * length(x))\") rec #> ── DAR Recipe ────────────────────────────────────────────────────────────────── #> Inputs: #> #> ℹ phyloseq object with 451 taxa and 156 samples #> ℹ variable of interes RiskGroup2 (class: character, levels: hts, msm, pwid) #> ℹ taxonomic level Phylum #> #> Preporcessing steps: #> #> ◉ step_filter_taxa() id = filter_taxa__Beaver_Tail #> #> DA steps: #>"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/step_lefse.html","id":null,"dir":"Reference","previous_headings":"","what":"lefse analysis — step_lefse","title":"lefse analysis — step_lefse","text":"Lefser metagenomic biomarker discovery tool based LEfSe tool published Huttenhower et al. 2011. Lefser R implementation LEfSe method. Using statistical analyses, lefser compares microbial populations healthy diseased subjects discover differencially expressed microorganisms. Lefser computes effect size, estimates magnitude differential expression populations differentially expressed microorganism. Subclasses classes can also assigned used within analysis.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/step_lefse.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"lefse analysis — step_lefse","text":"","code":"step_lefse( rec, kruskal.threshold = 0.05, wilcox.threshold = 0.05, lda.threshold = 2, blockCol = NULL, assay = 1L, trim.names = FALSE, rarefy = TRUE, id = rand_id(\"lefse\") ) # S4 method for Recipe step_lefse( rec, kruskal.threshold = 0.05, wilcox.threshold = 0.05, lda.threshold = 2, blockCol = NULL, assay = 1L, trim.names = FALSE, rarefy = TRUE, id = rand_id(\"lefse\") ) # S4 method for PrepRecipe step_lefse( rec, kruskal.threshold = 0.05, wilcox.threshold = 0.05, lda.threshold = 2, blockCol = NULL, assay = 1L, trim.names = FALSE, rarefy = TRUE, id = rand_id(\"lefse\") )"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/step_lefse.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"lefse analysis — step_lefse","text":"rec Recipe object. step added sequence operations Recipe. kruskal.threshold numeric(1) p-value Kruskal-Wallis Rank Sum Test (default 0.05). wilcox.threshold numeric(1) p-value Wilcoxon Rank-Sum Test 'blockCol' present (default 0.05). lda.threshold numeric(1) effect size threshold (default 2.0). blockCol character(1) Optional column name 'colData(expr)' indicating blocks, usually factor two levels (e.g., 'c(\"adult\", \"senior\")'; default NULL). assay -th assay matrix ‘SummarizedExperiment' (’expr'; default 1). trim.names 'TRUE' extracts specific taxonomic rank organism. rarefy Boolean indicating OTU counts must rarefyed. rarefaction uses standard R sample function resample abundance values otu_table component first argument, physeq. Often one major goals procedure achieve parity total number counts samples, alternative formal normalization procedures, single value sample.size expected. 'no_seed', rarefaction performed without set seed. id character string unique step identify .","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/step_lefse.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"lefse analysis — step_lefse","text":"object class Recipe","code":""},{"path":[]},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/step_lefse.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"lefse analysis — step_lefse","text":"","code":"data(metaHIV_phy) ## Init Recipe rec <- recipe(metaHIV_phy, \"RiskGroup2\", \"Phylum\") |> step_subset_taxa(tax_level = \"Kingdom\", taxa = c(\"Bacteria\", \"Archaea\")) |> step_filter_taxa(.f = \"function(x) sum(x > 0) >= (0.3 * length(x))\") rec #> ── DAR Recipe ────────────────────────────────────────────────────────────────── #> Inputs: #> #> ℹ phyloseq object with 451 taxa and 156 samples #> ℹ variable of interes RiskGroup2 (class: character, levels: hts, msm, pwid) #> ℹ taxonomic level Phylum #> #> Preporcessing steps: #> #> ◉ step_subset_taxa() id = subset_taxa__Empanada #> ◉ step_filter_taxa() id = filter_taxa__Rugelach #> #> DA steps: #> ## Define step with default parameters rec <- step_lefse(rec) rec #> ── DAR Recipe ────────────────────────────────────────────────────────────────── #> Inputs: #> #> ℹ phyloseq object with 451 taxa and 156 samples #> ℹ variable of interes RiskGroup2 (class: character, levels: hts, msm, pwid) #> ℹ taxonomic level Phylum #> #> Preporcessing steps: #> #> ◉ step_subset_taxa() id = subset_taxa__Empanada #> ◉ step_filter_taxa() id = filter_taxa__Rugelach #> #> DA steps: #> #> ◉ step_lefse() id = lefse__Kolache ## Running lefse without rarefaction (not recommended) rec <- recipe(metaHIV_phy, \"RiskGroup2\", \"Species\") |> step_lefse(rarefy = FALSE) #> ! Run lefse without rarefaction is not recommended (id = lefse__Leipziger_Lerche) rec #> ── DAR Recipe ────────────────────────────────────────────────────────────────── #> Inputs: #> #> ℹ phyloseq object with 451 taxa and 156 samples #> ℹ variable of interes RiskGroup2 (class: character, levels: hts, msm, pwid) #> ℹ taxonomic level Species #> #> Preporcessing steps: #> #> #> DA steps: #> #> ◉ step_lefse() id = lefse__Leipziger_Lerche"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/step_maaslin.html","id":null,"dir":"Reference","previous_headings":"","what":"MaAsLin2 analysis — step_maaslin","title":"MaAsLin2 analysis — step_maaslin","text":"MaAsLin2 finds associations microbiome meta-omics features complex metadata population-scale epidemiological studies. software includes multiple analysis methods (including support multiple covariates repeated measures), filtering, normalization, transform options customize analysis specific study.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/step_maaslin.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"MaAsLin2 analysis — step_maaslin","text":"","code":"step_maaslin( rec, min_abundance = 0, min_prevalence = 0.1, min_variance = 0, normalization = \"TSS\", transform = \"LOG\", analysis_method = \"LM\", max_significance = 0.25, random_effects = NULL, correction = \"BH\", standardize = TRUE, reference = NULL, rarefy = FALSE, id = rand_id(\"maaslin\") ) # S4 method for Recipe step_maaslin( rec, min_abundance = 0, min_prevalence = 0.1, min_variance = 0, normalization = \"TSS\", transform = \"LOG\", analysis_method = \"LM\", max_significance = 0.25, random_effects = NULL, correction = \"BH\", standardize = TRUE, reference = NULL, rarefy = FALSE, id = rand_id(\"maaslin\") ) # S4 method for PrepRecipe step_maaslin( rec, min_abundance = 0, min_prevalence = 0.1, min_variance = 0, normalization = \"TSS\", transform = \"LOG\", analysis_method = \"LM\", max_significance = 0.25, random_effects = NULL, correction = \"BH\", standardize = TRUE, reference = NULL, rarefy = FALSE, id = rand_id(\"maaslin\") )"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/step_maaslin.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"MaAsLin2 analysis — step_maaslin","text":"rec Recipe object. step added sequence operations Recipe. min_abundance minimum abundance feature. min_prevalence minimum percent samples feature detected minimum abundance. min_variance Keep features variance greater . normalization normalization method apply. Default: \"TSS\". Choices: \"TSS\", \"CLR\", \"CSS\", \"NONE\", \"TMM\". transform transform apply. Default: \"LOG\". Choices: \"LOG\", \"LOGIT\", \"AST\", \"NONE\". analysis_method analysis method apply. Default: \"LM\". Choices: \"LM\", \"CPLM\", \"ZICP\", \"NEGBIN\", \"ZINB\". max_significance q-value threshold significance. random_effects random effects model, comma-delimited multiple effects. correction correction method computing q-value. standardize Apply z-score continuous metadata scale. reference factor use reference variable two levels provided string 'variable,reference' semi-colon delimited multiple variables. rarefy Boolean indicating OTU counts must rarefyed. rarefaction uses standard R sample function resample abundance values otu_table component first argument, physeq. Often one major goals procedure achieve parity total number counts samples, alternative formal normalization procedures, single value sample.size expected. 'no_seed', rarefaction performed without set seed. id character string unique step identify .","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/step_maaslin.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"MaAsLin2 analysis — step_maaslin","text":"object class Recipe","code":""},{"path":[]},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/step_maaslin.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"MaAsLin2 analysis — step_maaslin","text":"","code":"data(metaHIV_phy) ## Init Recipe rec <- recipe(metaHIV_phy, \"RiskGroup2\", \"Phylum\") |> step_subset_taxa(tax_level = \"Kingdom\", taxa = c(\"Bacteria\", \"Archaea\")) |> step_filter_taxa(.f = \"function(x) sum(x > 0) >= (0.4 * length(x))\") rec #> ── DAR Recipe ────────────────────────────────────────────────────────────────── #> Inputs: #> #> ℹ phyloseq object with 451 taxa and 156 samples #> ℹ variable of interes RiskGroup2 (class: character, levels: hts, msm, pwid) #> ℹ taxonomic level Phylum #> #> Preporcessing steps: #> #> ◉ step_subset_taxa() id = subset_taxa__Mandelkubb #> ◉ step_filter_taxa() id = filter_taxa__Joulutorttu #> #> DA steps: #> ## Define step with default parameters and prep rec <- step_maaslin(rec) |> prep(parallel = FALSE) rec #> ── DAR Results ───────────────────────────────────────────────────────────────── #> Inputs: #> #> ℹ phyloseq object with 76 taxa and 156 samples #> ℹ variable of interes RiskGroup2 (class: character, levels: hts, msm, pwid) #> ℹ taxonomic level Phylum #> #> Results: #> #> ✔ maaslin__Knish diff_taxa = 65 #> #> ℹ 65 taxa are present in all tested methods #> ## Wearing rarefaction only for this step rec <- recipe(metaHIV_phy, \"RiskGroup2\", \"Species\") |> step_maaslin(rarefy = TRUE) rec #> ── DAR Recipe ────────────────────────────────────────────────────────────────── #> Inputs: #> #> ℹ phyloseq object with 451 taxa and 156 samples #> ℹ variable of interes RiskGroup2 (class: character, levels: hts, msm, pwid) #> ℹ taxonomic level Species #> #> Preporcessing steps: #> #> #> DA steps: #> #> ◉ step_maaslin() id = maaslin__Tortita_negra"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/step_metagenomeseq.html","id":null,"dir":"Reference","previous_headings":"","what":"MetagenomeSeq analysis — step_metagenomeseq","title":"MetagenomeSeq analysis — step_metagenomeseq","text":"metagenomeSeq designed determine features (Operational Taxanomic Unit (OTU), species, etc.) differentially abundant two groups multiple samples. metagenomeSeq designed address effects normalization -sampling microbial communities disease association detection testing feature correlations.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/step_metagenomeseq.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"MetagenomeSeq analysis — step_metagenomeseq","text":"","code":"step_metagenomeseq( rec, zeroMod = NULL, useCSSoffset = TRUE, useMixedModel = FALSE, max_significance = 0.05, log2FC = 0, rarefy = FALSE, rm_zeros = 0, id = rand_id(\"metagenomeseq\") ) # S4 method for Recipe step_metagenomeseq( rec, zeroMod = NULL, useCSSoffset = TRUE, useMixedModel = FALSE, max_significance = 0.05, log2FC = 0, rarefy = FALSE, rm_zeros = 0, id = rand_id(\"metagenomeseq\") ) # S4 method for PrepRecipe step_metagenomeseq( rec, zeroMod = NULL, useCSSoffset = TRUE, useMixedModel = FALSE, max_significance = 0.05, log2FC = 0, rarefy = FALSE, rm_zeros = 0, id = rand_id(\"metagenomeseq\") )"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/step_metagenomeseq.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"MetagenomeSeq analysis — step_metagenomeseq","text":"rec Recipe object. step added sequence operations Recipe. zeroMod zero model, model account change number OTUs observed linear effect depth coverage. useCSSoffset Boolean, whether include default scaling parameters model . useMixedModel Estimate correlation duplicate features replicates using duplicateCorrelation. max_significance q-value threshold significance. log2FC log2FC cutoff. rarefy Boolean indicating OTU counts must rarefyed. rarefaction uses standard R sample function resample abundance values otu_table component first argument, physeq. Often one major goals procedure achieve parity total number counts samples, alternative formal normalization procedures, single value sample.size expected. 'no_seed', rarefaction performed without set seed. rm_zeros Proportion samples categorical level 0 counts. id character string unique step identify .","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/step_metagenomeseq.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"MetagenomeSeq analysis — step_metagenomeseq","text":"object class Recipe","code":""},{"path":[]},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/step_metagenomeseq.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"MetagenomeSeq analysis — step_metagenomeseq","text":"","code":"data(metaHIV_phy) ## Init Recipe rec <- recipe(metaHIV_phy, \"RiskGroup2\", \"Phylum\") |> step_subset_taxa(tax_level = \"Kingdom\", taxa = c(\"Bacteria\", \"Archaea\")) |> step_filter_taxa(.f = \"function(x) sum(x > 0) >= (0.02 * length(x))\") rec #> ── DAR Recipe ────────────────────────────────────────────────────────────────── #> Inputs: #> #> ℹ phyloseq object with 451 taxa and 156 samples #> ℹ variable of interes RiskGroup2 (class: character, levels: hts, msm, pwid) #> ℹ taxonomic level Phylum #> #> Preporcessing steps: #> #> ◉ step_subset_taxa() id = subset_taxa__Trdelník #> ◉ step_filter_taxa() id = filter_taxa__Cronut #> #> DA steps: #> ## Define step with default parameters and prep rec <- step_metagenomeseq(rec, rm_zeros = 0.01) |> prep(parallel = FALSE) #> Registered S3 method overwritten by 'gplots': #> method from #> reorder.factor DescTools #> Warning: NaNs produced rec #> ── DAR Results ───────────────────────────────────────────────────────────────── #> Inputs: #> #> ℹ phyloseq object with 291 taxa and 156 samples #> ℹ variable of interes RiskGroup2 (class: character, levels: hts, msm, pwid) #> ℹ taxonomic level Phylum #> #> Results: #> #> ✔ metagenomeseq__Schneeball diff_taxa = 8 #> #> ℹ 8 taxa are present in all tested methods #> ## Wearing rarefaction only for this step rec <- recipe(metaHIV_phy, \"RiskGroup2\", \"Species\") |> step_metagenomeseq(rarefy = TRUE) rec #> ── DAR Recipe ────────────────────────────────────────────────────────────────── #> Inputs: #> #> ℹ phyloseq object with 451 taxa and 156 samples #> ℹ variable of interes RiskGroup2 (class: character, levels: hts, msm, pwid) #> ℹ taxonomic level Species #> #> Preporcessing steps: #> #> #> DA steps: #> #> ◉ step_metagenomeseq() id = metagenomeseq__Croissant"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/step_rarefaction.html","id":null,"dir":"Reference","previous_headings":"","what":"Resample an OTU table such that all samples have the same library size. — step_rarefaction","title":"Resample an OTU table such that all samples have the same library size. — step_rarefaction","text":"Please note authors phyloseq advocate using normalization procedure, despite recent popularity. justifications using alternative approaches address disparities library sizes made available article PLoS Computational Biology. See phyloseq_to_deseq2 recommended alternative rarefying directly supported phyloseq package, well supplemental materials PLoS-CB article phyloseq extensions repository GitHub. Nevertheless, comparison demonstration, rarefying procedure implemented good faith options hope useful. function uses standard R sample function resample abundance values otu_table component first argument, physeq. Often one major goals procedure achieve parity total number counts samples, alternative formal normalization procedures, single value sample.size expected. kind resampling can performed without replacement, replacement computationally-efficient, default setting. See replace parameter documentation details. recommended explicitly select random number generator seed invoking function, , alternatively, explicitly provide single positive integer argument rngseed.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/step_rarefaction.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Resample an OTU table such that all samples have the same library size. — step_rarefaction","text":"","code":"step_rarefaction(rec, id = rand_id(\"rarefaction\")) # S4 method for Recipe step_rarefaction(rec, id = rand_id(\"rarefaction\")) # S4 method for PrepRecipe step_rarefaction(rec, id = rand_id(\"rarefaction\"))"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/step_rarefaction.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Resample an OTU table such that all samples have the same library size. — step_rarefaction","text":"rec Recipe object. step added sequence operations Recipe. id character string unique step identify .","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/step_rarefaction.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Resample an OTU table such that all samples have the same library size. — step_rarefaction","text":"object class Recipe","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/step_rarefaction.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Resample an OTU table such that all samples have the same library size. — step_rarefaction","text":"","code":"data(metaHIV_phy) ## Init Recipe rec <- recipe(metaHIV_phy, var_info = \"RiskGroup2\", tax_info = \"Phylum\") |> step_subset_taxa(tax_level = \"Kingdom\", taxa = c(\"Bacteria\", \"Archaea\")) |> step_filter_taxa(.f = \"function(x) sum(x > 0) >= (0.03 * length(x))\") rec #> ── DAR Recipe ────────────────────────────────────────────────────────────────── #> Inputs: #> #> ℹ phyloseq object with 451 taxa and 156 samples #> ℹ variable of interes RiskGroup2 (class: character, levels: hts, msm, pwid) #> ℹ taxonomic level Phylum #> #> Preporcessing steps: #> #> ◉ step_subset_taxa() id = subset_taxa__Pan_dulce #> ◉ step_filter_taxa() id = filter_taxa__Flaky_pastry #> #> DA steps: #> ## Define step with default parameters and prep rec <- step_rarefaction(rec) rec #> ── DAR Recipe ────────────────────────────────────────────────────────────────── #> Inputs: #> #> ℹ phyloseq object with 451 taxa and 156 samples #> ℹ variable of interes RiskGroup2 (class: character, levels: hts, msm, pwid) #> ℹ taxonomic level Phylum #> #> Preporcessing steps: #> #> ◉ step_subset_taxa() id = subset_taxa__Pan_dulce #> ◉ step_filter_taxa() id = filter_taxa__Flaky_pastry #> ◉ step_rarefaction() id = rarefaction__Alfajor #> #> DA steps: #>"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/step_subset_taxa.html","id":null,"dir":"Reference","previous_headings":"","what":"Subset taxa by taxonomic level — step_subset_taxa","title":"Subset taxa by taxonomic level — step_subset_taxa","text":"convenience function around subset_taxa function phyloseq package. designed speed subsetting complex experimental objects one function call. case run_subset_taxa, subsetting based taxonomic level taxon. taxa retained dataset taxonomic level matches provided taxa.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/step_subset_taxa.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Subset taxa by taxonomic level — step_subset_taxa","text":"","code":"step_subset_taxa(rec, tax_level, taxa, id = rand_id(\"subset_taxa\")) # S4 method for Recipe step_subset_taxa(rec, tax_level, taxa, id = rand_id(\"subset_taxa\")) # S4 method for PrepRecipe step_subset_taxa(rec, tax_level, taxa, id = rand_id(\"subset_taxa\"))"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/step_subset_taxa.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Subset taxa by taxonomic level — step_subset_taxa","text":"rec Recipe object. step added sequence operations Recipe. tax_level taxonomic level subsetting taxa. taxa taxa retained dataset. id character string unique step identify .","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/step_subset_taxa.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Subset taxa by taxonomic level — step_subset_taxa","text":"Recipe object subsetted based taxonomic level.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/step_subset_taxa.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Subset taxa by taxonomic level — step_subset_taxa","text":"function subsets taxa phyloseq object based provided taxonomic level taxa. taxa match provided taxa given taxonomic level retained phyloseq object.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/step_subset_taxa.html","id":"note","dir":"Reference","previous_headings":"","what":"Note","title":"Subset taxa by taxonomic level — step_subset_taxa","text":"function modifies rec place, might want make copy rec modifying need preserve original object.","code":""},{"path":[]},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/step_subset_taxa.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Subset taxa by taxonomic level — step_subset_taxa","text":"","code":"data(metaHIV_phy) ## Init Recipe rec <- recipe(metaHIV_phy, \"RiskGroup2\", \"Species\") rec #> ── DAR Recipe ────────────────────────────────────────────────────────────────── #> Inputs: #> #> ℹ phyloseq object with 451 taxa and 156 samples #> ℹ variable of interes RiskGroup2 (class: character, levels: hts, msm, pwid) #> ℹ taxonomic level Species #> #> ## Define step_subset_taxa step with default parameters rec <- step_subset_taxa( rec, tax_level = \"Kingdom\", taxa = c(\"Bacteria\", \"Archaea\") ) rec #> ── DAR Recipe ────────────────────────────────────────────────────────────────── #> Inputs: #> #> ℹ phyloseq object with 451 taxa and 156 samples #> ℹ variable of interes RiskGroup2 (class: character, levels: hts, msm, pwid) #> ℹ taxonomic level Species #> #> Preporcessing steps: #> #> ◉ step_subset_taxa() id = subset_taxa__Schnecken #> #> DA steps: #>"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/step_to_expr.html","id":null,"dir":"Reference","previous_headings":"","what":"Extracts parameters from steps and makes a character vector with the expression to evaluate — step_to_expr","title":"Extracts parameters from steps and makes a character vector with the expression to evaluate — step_to_expr","text":"Extracts parameters steps makes character vector expression evaluate","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/step_to_expr.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Extracts parameters from steps and makes a character vector with the expression to evaluate — step_to_expr","text":"","code":"step_to_expr(step)"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/step_to_expr.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Extracts parameters from steps and makes a character vector with the expression to evaluate — step_to_expr","text":"step object class step","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/step_to_expr.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Extracts parameters from steps and makes a character vector with the expression to evaluate — step_to_expr","text":"character vector","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/step_wilcox.html","id":null,"dir":"Reference","previous_headings":"","what":"Wilcox analysis — step_wilcox","title":"Wilcox analysis — step_wilcox","text":"Performs wilcox test determine features (Operational Taxanomic Unit (OTU), species, etc.) differentially abundant two groups multiple samples.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/step_wilcox.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Wilcox analysis — step_wilcox","text":"","code":"step_wilcox( rec, norm_method = \"compositional\", max_significance = 0.05, p_adj_method = \"BH\", rarefy = FALSE, id = rand_id(\"wilcox\") ) # S4 method for Recipe step_wilcox( rec, norm_method = \"compositional\", max_significance = 0.05, p_adj_method = \"BH\", rarefy = FALSE, id = rand_id(\"wilcox\") ) # S4 method for PrepRecipe step_wilcox( rec, norm_method = \"compositional\", max_significance = 0.05, p_adj_method = \"BH\", rarefy = FALSE, id = rand_id(\"wilcox\") )"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/step_wilcox.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Wilcox analysis — step_wilcox","text":"rec Recipe object. step added sequence operations Recipe. norm_method Transformation apply. options include: 'compositional' (ie relative abundance), 'Z', 'log10', 'log10p', 'hellinger', 'identity', 'clr', 'alr', method vegan::decostand function. max_significance q-value threshold significance. p_adj_method Character. Specifying method adjust p-values multiple comparisons. Default “BH” (Benjamini-Hochberg procedure). rarefy Boolean indicating OTU counts must rarefyed. rarefaction uses standard R sample function resample abundance values otu_table component first argument, physeq. Often one major goals procedure achieve parity total number counts samples, alternative formal normalization procedures, single value sample.size expected. 'no_seed', rarefaction performed without set seed. id character string unique step identify .","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/step_wilcox.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Wilcox analysis — step_wilcox","text":"object class Recipe","code":""},{"path":[]},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/step_wilcox.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Wilcox analysis — step_wilcox","text":"","code":"data(metaHIV_phy) ## Init Recipe rec <- recipe(metaHIV_phy, \"RiskGroup2\", \"Phylum\") |> step_subset_taxa(tax_level = \"Kingdom\", taxa = c(\"Bacteria\", \"Archaea\")) |> step_filter_taxa(.f = \"function(x) sum(x > 0) >= (0.4 * length(x))\") rec #> ── DAR Recipe ────────────────────────────────────────────────────────────────── #> Inputs: #> #> ℹ phyloseq object with 451 taxa and 156 samples #> ℹ variable of interes RiskGroup2 (class: character, levels: hts, msm, pwid) #> ℹ taxonomic level Phylum #> #> Preporcessing steps: #> #> ◉ step_subset_taxa() id = subset_taxa__Linzer_torte #> ◉ step_filter_taxa() id = filter_taxa__Malsouka #> #> DA steps: #> ## Define step with default parameters and prep rec <- step_wilcox(rec) |> prep(parallel = FALSE) rec #> ── DAR Results ───────────────────────────────────────────────────────────────── #> Inputs: #> #> ℹ phyloseq object with 76 taxa and 156 samples #> ℹ variable of interes RiskGroup2 (class: character, levels: hts, msm, pwid) #> ℹ taxonomic level Phylum #> #> Results: #> #> ✔ wilcox__Dutch_Baby_Pancake diff_taxa = 5 #> #> ℹ 5 taxa are present in all tested methods #> ## Wearing rarefaction only for this step rec <- recipe(metaHIV_phy, \"RiskGroup2\", \"Species\") |> step_wilcox(rarefy = TRUE) #> ! Run wilcox without rarefaction is not recommended (id = wilcox__Masan) rec #> ── DAR Recipe ────────────────────────────────────────────────────────────────── #> Inputs: #> #> ℹ phyloseq object with 451 taxa and 156 samples #> ℹ variable of interes RiskGroup2 (class: character, levels: hts, msm, pwid) #> ℹ taxonomic level Species #> #> Preporcessing steps: #> #> #> DA steps: #> #> ◉ step_wilcox() id = wilcox__Masan"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/steps_ids.html","id":null,"dir":"Reference","previous_headings":"","what":"Get step_ids from recipe — steps_ids","title":"Get step_ids from recipe — steps_ids","text":"Get step_ids recipe","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/steps_ids.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Get step_ids from recipe — steps_ids","text":"","code":"steps_ids(rec, type = \"all\")"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/steps_ids.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Get step_ids from recipe — steps_ids","text":"rec Recipe object. type character vector indicating type class. Options c(\"\", \"da\", \"prepro\").","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/steps_ids.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Get step_ids from recipe — steps_ids","text":"character vector","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/steps_ids.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Get step_ids from recipe — steps_ids","text":"","code":"data(test_rec) ## We can extract the step identifiers from a Recipe with `step_ids` ids <- steps_ids(test_rec) ids #> [1] \"subset_taxa__Boyoz\" \"filter_taxa__Charlotte\" \"maaslin__ChaSan\" #> [4] \"metagenomeseq__Zlebia\" \"deseq__Linzer_torte\" ## With the `type` parameter, extract the prepro and da steps separately. da_ids <- steps_ids(test_rec, type = \"da\") da_ids #> [1] \"maaslin__ChaSan\" \"metagenomeseq__Zlebia\" \"deseq__Linzer_torte\" prepro_ids <- steps_ids(test_rec, type = \"prepro\") prepro_ids #> [1] \"subset_taxa__Boyoz\" \"filter_taxa__Charlotte\""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/tax_table.html","id":null,"dir":"Reference","previous_headings":"","what":"Extracts tax_table from phyloseq inside a Recipe — tax_table","title":"Extracts tax_table from phyloseq inside a Recipe — tax_table","text":"Extracts tax_table phyloseq inside Recipe","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/tax_table.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Extracts tax_table from phyloseq inside a Recipe — tax_table","text":"","code":"tax_table(rec) # S4 method for Recipe tax_table(rec)"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/tax_table.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Extracts tax_table from phyloseq inside a Recipe — tax_table","text":"rec Recipe Recipe step.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/tax_table.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Extracts tax_table from phyloseq inside a Recipe — tax_table","text":"tibble","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/tax_table.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Extracts tax_table from phyloseq inside a Recipe — tax_table","text":"","code":"data(metaHIV_phy) ## Define recipe rec <- recipe(metaHIV_phy, var_info = \"RiskGroup2\", tax_info = \"Species\") ## Extract tax_table from phyloseq object tax_table(rec) #> # A tibble: 451 × 2 #> taxa_id taxa #> #> 1 Otu_1 Methanobrevibacter_smithii #> 2 Otu_2 Methanosphaera_stadtmanae #> 3 Otu_3 Actinomyces_odontolyticus #> 4 Otu_4 Actinomyces_radicidentis #> 5 Otu_5 Actinomyces_sp_HPA0247 #> 6 Otu_6 Actinomyces_sp_oral_taxon_181 #> 7 Otu_7 Actinomyces_turicensis #> 8 Otu_8 Aeriscardovia_aeriphila #> 9 Otu_9 Alloscardovia_omnicolens #> 10 Otu_10 Bifidobacterium_adolescentis #> # ℹ 441 more rows"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/test_prep_rec.html","id":null,"dir":"Reference","previous_headings":"","what":"PrepRecipe for metaHIV_phy data — test_prep_rec","title":"PrepRecipe for metaHIV_phy data — test_prep_rec","text":"Recipe created metaHIV_phy object uning \"Riskgroup2\" var_info \"Genus\" tax_info. Also includes step_deseq, step_maaslin step_metagenomeSeq.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/test_prep_rec.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"PrepRecipe for metaHIV_phy data — test_prep_rec","text":"","code":"data(\"test_prep_rec\")"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/test_prep_rec.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"PrepRecipe for metaHIV_phy data — test_prep_rec","text":"PrepRecipe object.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/test_rec.html","id":null,"dir":"Reference","previous_headings":"","what":"Recipe for metaHIV_phy data — test_rec","title":"Recipe for metaHIV_phy data — test_rec","text":"Recipe created metaHIV_phy object uning \"Riskgroup2\" var_info \"Genus\" tax_info.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/test_rec.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Recipe for metaHIV_phy data — test_rec","text":"","code":"data(\"test_rec\")"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/test_rec.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"Recipe for metaHIV_phy data — test_rec","text":"Recipe object.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/tidyeval.html","id":null,"dir":"Reference","previous_headings":"","what":"Tidy eval helpers — tidyeval","title":"Tidy eval helpers — tidyeval","text":"page lists tidy eval tools reexported package rlang. learn using tidy eval scripts packages high level, see dplyr programming vignette ggplot2 packages vignette. Metaprogramming section Advanced R may also useful deeper dive. tidy eval operators {{, !!, !!! syntactic constructs specially interpreted tidy eval functions. mostly need {{, !! !!! advanced operators use simple cases. curly-curly operator {{ allows tunnel data-variables passed function arguments inside tidy eval functions. {{ designed individual arguments. pass multiple arguments contained dots, use ... normal way. enquo() enquos() delay execution one several function arguments. former returns single expression, latter returns list expressions. defused, expressions longer evaluate . must injected back evaluation context !! (single expression) !!! (list expressions). simple case, code equivalent usage {{ ... . Defusing enquo() enquos() needed complex cases, instance need inspect modify expressions way. .data pronoun object represents current slice data. variable name string, use .data pronoun subset variable [[. Another tidy eval operator :=. makes possible use glue curly-curly syntax LHS =. technical reasons, R language support complex expressions left =, use := workaround. Many tidy eval functions like dplyr::mutate() dplyr::summarise() give automatic name unnamed inputs. need create sort automatic names , use as_label(). instance, glue-tunnelling syntax can reproduced manually : Expressions defused enquo() (tunnelled {{) need simple column names, can arbitrarily complex. as_label() handles cases gracefully. code assumes simple column name, use as_name() instead. safer throws error input name expected.","code":"my_function <- function(data, var, ...) { data %>% group_by(...) %>% summarise(mean = mean({{ var }})) } my_function <- function(data, var, ...) { # Defuse var <- enquo(var) dots <- enquos(...) # Inject data %>% group_by(!!!dots) %>% summarise(mean = mean(!!var)) } my_var <- \"disp\" mtcars %>% summarise(mean = mean(.data[[my_var]])) my_function <- function(data, var, suffix = \"foo\") { # Use `{{` to tunnel function arguments and the usual glue # operator `{` to interpolate plain strings. data %>% summarise(\"{{ var }}_mean_{suffix}\" := mean({{ var }})) } my_function <- function(data, var, suffix = \"foo\") { var <- enquo(var) prefix <- as_label(var) data %>% summarise(\"{prefix}_mean_{suffix}\" := mean(!!var)) }"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/tidyeval.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Tidy eval helpers — tidyeval","text":"function return value explicitly.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/tidyeval.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Tidy eval helpers — tidyeval","text":"","code":"# `enquo()` defuses the expression supplied by your user f <- function(arg) { rlang::enquo(arg) } f(1 + 1) #> #> expr: ^1 + 1 #> env: 0x557293c52560 # `enquos()` works with arguments and dots. It returns a list of # expressions f <- function(...) { rlang::enquos(...) } f(1 + 1, 2 * 10) #> > #> #> [[1]] #> #> expr: ^1 + 1 #> env: 0x557293c52560 #> #> [[2]] #> #> expr: ^2 * 10 #> env: 0x557293c52560 #> # Let's create some symbols: foo <- quote(foo) bar <- rlang::sym(\"bar\") # as_name() converts symbols to strings: foo #> foo rlang::as_name(foo) #> [1] \"foo\" typeof(bar) #> [1] \"symbol\" typeof(rlang::as_name(bar)) #> [1] \"character\" # as_name() unwraps quosured symbols automatically: rlang::as_name(rlang::quo(foo)) #> [1] \"foo\" # as_label() is useful with quoted expressions: rlang::as_label(rlang::expr(foo(bar))) #> [1] \"foo(bar)\" rlang::as_label(rlang::expr(foobar)) #> [1] \"foobar\" # It works with any R object. This is also useful for quoted # arguments because the user might unquote constant objects: rlang::as_label(1:3) #> [1] \"\" rlang::as_label(base::list) #> [1] \"\""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/to_tibble.html","id":null,"dir":"Reference","previous_headings":"","what":"Wrapper to convert phyloseq slots to tibble — to_tibble","title":"Wrapper to convert phyloseq slots to tibble — to_tibble","text":"Wrapper convert phyloseq slots tibble","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/to_tibble.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Wrapper to convert phyloseq slots to tibble — to_tibble","text":"","code":"to_tibble(df, id_name = \"otu_id\")"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/to_tibble.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Wrapper to convert phyloseq slots to tibble — to_tibble","text":"df output otu_table(), sample_data() tax_table() phyloseq functions. id_name Name new column generated rownames","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/to_tibble.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Wrapper to convert phyloseq slots to tibble — to_tibble","text":"tibble","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/to_tibble.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Wrapper to convert phyloseq slots to tibble — to_tibble","text":"","code":"data(test_rec) otu_table <- get_phy(test_rec) |> phyloseq::otu_table() dar:::to_tibble(otu_table) #> # A tibble: 451 × 157 #> otu_id Sample_186 Sample_185 Sample_184 Sample_182 Sample_181 Sample_170 #> #> 1 Otu_1 2538 0 9026 12049 22126 15374 #> 2 Otu_2 0 0 0 609 2543 988 #> 3 Otu_3 0 0 0 0 0 0 #> 4 Otu_4 0 0 0 0 0 0 #> 5 Otu_5 0 0 0 0 0 0 #> 6 Otu_6 0 0 0 0 0 0 #> 7 Otu_7 0 0 0 0 0 0 #> 8 Otu_8 0 0 0 0 0 0 #> 9 Otu_9 0 0 0 0 0 351 #> 10 Otu_10 0 0 10575 10764 504 0 #> # ℹ 441 more rows #> # ℹ 150 more variables: Sample_169 , Sample_168 , Sample_167 , #> # Sample_166 , Sample_165 , Sample_164 , Sample_163 , #> # Sample_162 , Sample_160 , Sample_159 , Sample_158 , #> # Sample_157 , Sample_156 , Sample_155 , Sample_153 , #> # Sample_152 , Sample_151 , Sample_150 , Sample_149 , #> # Sample_148 , Sample_147 , Sample_146 , Sample_145 , …"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/use_rarefy.html","id":null,"dir":"Reference","previous_headings":"","what":"Perform Rarefaction on Phyloseq Object — use_rarefy","title":"Perform Rarefaction on Phyloseq Object — use_rarefy","text":"function performs rarefaction phyloseq object rarefy parameter set TRUE. Rarefaction process randomly subsamples data specified depth. done account differences sequencing depth samples. However, process without controversy. Rarefaction can lead loss information can also lead false positives differential abundance testing. information, see https://microbiomejournal.biomedcentral.com/articles/10.1186/s40168-019-0650-2","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/use_rarefy.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Perform Rarefaction on Phyloseq Object — use_rarefy","text":"","code":"use_rarefy(phy, rarefy)"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/use_rarefy.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Perform Rarefaction on Phyloseq Object — use_rarefy","text":"phy phyloseq object. rarefy logical value indicating whether perform rarefaction. 'no_seed', rarefaction performed without set seed. FALSE, rarefaction performed.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/use_rarefy.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Perform Rarefaction on Phyloseq Object — use_rarefy","text":"phyloseq object rarefaction rarefy TRUE \"no_seed\", otherwise original phyloseq object returned.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/use_rarefy.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Perform Rarefaction on Phyloseq Object — use_rarefy","text":"","code":"data(metaHIV_phy) ## With seed # phy_rarefied <- dar:::use_rarefy(metaHIV_phy, TRUE) ## Witout seed # phy_rarefied <- dar:::use_rarefy(metaHIV_phy, \"no_seed\")"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/zero_otu.html","id":null,"dir":"Reference","previous_headings":"","what":"Extract outs with all 0 values in at least on level of the variable — zero_otu","title":"Extract outs with all 0 values in at least on level of the variable — zero_otu","text":"Extract outs 0 values least level variable","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/zero_otu.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Extract outs with all 0 values in at least on level of the variable — zero_otu","text":"","code":"zero_otu(obj, var = NULL, pct_cutoff = 0) # S4 method for Recipe zero_otu(obj, var = NULL, pct_cutoff = 0) # S4 method for phyloseq zero_otu(obj, var = NULL, pct_cutoff = 0)"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/zero_otu.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Extract outs with all 0 values in at least on level of the variable — zero_otu","text":"obj Recipe phyloseq object. var Variable interest. Must present metadata. pct_cutoff Minimum pct counts samples counts taxa.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/zero_otu.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Extract outs with all 0 values in at least on level of the variable — zero_otu","text":"character vector","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/reference/zero_otu.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Extract outs with all 0 values in at least on level of the variable — zero_otu","text":"","code":"data(metaHIV_phy) ## Init Recipe rec <- recipe(metaHIV_phy, \"RiskGroup2\", \"Species\") ## Extract outs with all 0 values zero_otu(rec) #> # A tibble: 1,353 × 5 #> taxa_id RiskGroup2 no_zero total pct #> #> 1 Otu_100 hts 0 41 0 #> 2 Otu_100 pwid 0 15 0 #> 3 Otu_103 msm 0 100 0 #> 4 Otu_103 pwid 0 15 0 #> 5 Otu_104 pwid 0 15 0 #> 6 Otu_105 hts 0 41 0 #> 7 Otu_105 msm 0 100 0 #> 8 Otu_108 pwid 0 15 0 #> 9 Otu_109 pwid 0 15 0 #> 10 Otu_11 pwid 0 15 0 #> # ℹ 1,343 more rows"},{"path":[]},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/news/index.html","id":"bug-fixes-0-99-9","dir":"Changelog","previous_headings":"","what":"Bug Fixes","title":"dar 0.99.9","text":"Set workers parameter 4 order avoid issues BBS builds","code":""},{"path":[]},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/news/index.html","id":"improvements-0-99-8","dir":"Changelog","previous_headings":"","what":"Improvements","title":"dar 0.99.8","text":"Reducing examples computation time","code":""},{"path":[]},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/news/index.html","id":"improvements-0-99-7","dir":"Changelog","previous_headings":"","what":"Improvements","title":"dar 0.99.7","text":"Reducing examples computation time","code":""},{"path":[]},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/news/index.html","id":"improvements-0-99-6","dir":"Changelog","previous_headings":"","what":"Improvements","title":"dar 0.99.6","text":"Suggest using BiocManager::install() install dar dependencies","code":""},{"path":[]},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/news/index.html","id":"improvements-0-99-5","dir":"Changelog","previous_headings":"","what":"Improvements","title":"dar 0.99.5","text":"Reducing vignettes computation time","code":""},{"path":[]},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/news/index.html","id":"improvements-0-99-4","dir":"Changelog","previous_headings":"","what":"Improvements","title":"dar 0.99.4","text":"Reducing tests examples computation time","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/news/index.html","id":"bug-fixes-0-99-4","dir":"Changelog","previous_headings":"","what":"Bug Fixes","title":"dar 0.99.4","text":"Fixing bug Github Actions Linux rlang installation.","code":""},{"path":[]},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/news/index.html","id":"new-features-0-99-3","dir":"Changelog","previous_headings":"","what":"New Features","title":"dar 0.99.3","text":"dar package now accepts phyloseq class objects TreeSummarizedExperiment inputs. tutorial refocused become tutorial import biom, qiime, mothur, metaphlan, humann TreeSummarizedExperiment phyloseq class objects. Recipe PrepRecipe classes introduced, replacing previous recipe prep_recipe classes. subset filter operations updated allow steps recipe defined chainable manner. functions step_filter_by_abundance, step_filter_by_prevalence, step_filter_by_rarity, step_filter_by_variance added enhance filtering functionality.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/news/index.html","id":"improvements-0-99-3","dir":"Changelog","previous_headings":"","what":"Improvements","title":"dar 0.99.3","text":"R version dependency updated 4.4.0. dependency data.table removed. re-export %>% := removed. Now code examples vignettes use |>. required_deps function longer exported. package now recommends commonly used installation methods, BiocManager::install() install.packages(). warning message now displayed whenever rarefy = TRUE option used, informing users fixed seed used impact results. package coverage increased 82.33%.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/news/index.html","id":"bug-fixes-0-99-3","dir":"Changelog","previous_headings":"","what":"Bug Fixes","title":"dar 0.99.3","text":"Unconventional package installation methods avoided, example, pak::pkg_install. setting seed within function (run_aldex) addressed. name data R/data.R documentation corrected NA.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/news/index.html","id":"dar-0990","dir":"Changelog","previous_headings":"","what":"dar 0.99.0","title":"dar 0.99.0","text":"Initial Bioconductor submission.","code":""}] +[{"path":[]},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/CODE_OF_CONDUCT.html","id":"our-pledge","dir":"","previous_headings":"","what":"Our Pledge","title":"Contributor Covenant Code of Conduct","text":"members, contributors, leaders pledge make participation community harassment-free experience everyone, regardless age, body size, visible invisible disability, ethnicity, sex characteristics, gender identity expression, level experience, education, socio-economic status, nationality, personal appearance, race, religion, sexual identity orientation. pledge act interact ways contribute open, welcoming, diverse, inclusive, healthy community.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/CODE_OF_CONDUCT.html","id":"our-standards","dir":"","previous_headings":"","what":"Our Standards","title":"Contributor Covenant Code of Conduct","text":"Examples behavior contributes positive environment community include: Demonstrating empathy kindness toward people respectful differing opinions, viewpoints, experiences Giving gracefully accepting constructive feedback Accepting responsibility apologizing affected mistakes, learning experience Focusing best just us individuals, overall community Examples unacceptable behavior include: use sexualized language imagery, sexual attention advances kind Trolling, insulting derogatory comments, personal political attacks Public private harassment Publishing others’ private information, physical email address, without explicit permission conduct reasonably considered inappropriate professional setting","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/CODE_OF_CONDUCT.html","id":"enforcement-responsibilities","dir":"","previous_headings":"","what":"Enforcement Responsibilities","title":"Contributor Covenant Code of Conduct","text":"Community leaders responsible clarifying enforcing standards acceptable behavior take appropriate fair corrective action response behavior deem inappropriate, threatening, offensive, harmful. Community leaders right responsibility remove, edit, reject comments, commits, code, wiki edits, issues, contributions aligned Code Conduct, communicate reasons moderation decisions appropriate.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/CODE_OF_CONDUCT.html","id":"scope","dir":"","previous_headings":"","what":"Scope","title":"Contributor Covenant Code of Conduct","text":"Code Conduct applies within community spaces, also applies individual officially representing community public spaces. Examples representing community include using official e-mail address, posting via official social media account, acting appointed representative online offline event.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/CODE_OF_CONDUCT.html","id":"enforcement","dir":"","previous_headings":"","what":"Enforcement","title":"Contributor Covenant Code of Conduct","text":"Instances abusive, harassing, otherwise unacceptable behavior may reported community leaders responsible enforcement fcatala@iriscaixa.es. complaints reviewed investigated promptly fairly. community leaders obligated respect privacy security reporter incident.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/CODE_OF_CONDUCT.html","id":"enforcement-guidelines","dir":"","previous_headings":"","what":"Enforcement Guidelines","title":"Contributor Covenant Code of Conduct","text":"Community leaders follow Community Impact Guidelines determining consequences action deem violation Code Conduct:","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/CODE_OF_CONDUCT.html","id":"id_1-correction","dir":"","previous_headings":"Enforcement Guidelines","what":"1. Correction","title":"Contributor Covenant Code of Conduct","text":"Community Impact: Use inappropriate language behavior deemed unprofessional unwelcome community. Consequence: private, written warning community leaders, providing clarity around nature violation explanation behavior inappropriate. public apology may requested.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/CODE_OF_CONDUCT.html","id":"id_2-warning","dir":"","previous_headings":"Enforcement Guidelines","what":"2. Warning","title":"Contributor Covenant Code of Conduct","text":"Community Impact: violation single incident series actions. Consequence: warning consequences continued behavior. interaction people involved, including unsolicited interaction enforcing Code Conduct, specified period time. includes avoiding interactions community spaces well external channels like social media. Violating terms may lead temporary permanent ban.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/CODE_OF_CONDUCT.html","id":"id_3-temporary-ban","dir":"","previous_headings":"Enforcement Guidelines","what":"3. Temporary Ban","title":"Contributor Covenant Code of Conduct","text":"Community Impact: serious violation community standards, including sustained inappropriate behavior. Consequence: temporary ban sort interaction public communication community specified period time. public private interaction people involved, including unsolicited interaction enforcing Code Conduct, allowed period. Violating terms may lead permanent ban.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/CODE_OF_CONDUCT.html","id":"id_4-permanent-ban","dir":"","previous_headings":"Enforcement Guidelines","what":"4. Permanent Ban","title":"Contributor Covenant Code of Conduct","text":"Community Impact: Demonstrating pattern violation community standards, including sustained inappropriate behavior, harassment individual, aggression toward disparagement classes individuals. Consequence: permanent ban sort public interaction within community.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/CODE_OF_CONDUCT.html","id":"attribution","dir":"","previous_headings":"","what":"Attribution","title":"Contributor Covenant Code of Conduct","text":"Code Conduct adapted Contributor Covenant, version 2.0, available https://www.contributor-covenant.org/version/2/0/code_of_conduct.html. Community Impact Guidelines inspired Mozilla’s code conduct enforcement ladder. answers common questions code conduct, see FAQ https://www.contributor-covenant.org/faq. Translations available https://www.contributor-covenant.org/translations.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/CONTRIBUTING.html","id":null,"dir":"","previous_headings":"","what":"Contributing to dar","title":"Contributing to dar","text":"outlines propose change dar. detailed info contributing , tidyverse packages, please see development contributing guide.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/CONTRIBUTING.html","id":"fixing-typos","dir":"","previous_headings":"","what":"Fixing typos","title":"Contributing to dar","text":"can fix typos, spelling mistakes, grammatical errors documentation directly using GitHub web interface, long changes made source file. generally means ’ll need edit roxygen2 comments .R, .Rd file. can find .R file generates .Rd reading comment first line.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/CONTRIBUTING.html","id":"bigger-changes","dir":"","previous_headings":"","what":"Bigger changes","title":"Contributing to dar","text":"want make bigger change, ’s good idea first file issue make sure someone team agrees ’s needed. ’ve found bug, please file issue illustrates bug minimal reprex (also help write unit test, needed).","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/CONTRIBUTING.html","id":"pull-request-process","dir":"","previous_headings":"Bigger changes","what":"Pull request process","title":"Contributing to dar","text":"Fork package clone onto computer. haven’t done , recommend using usethis::create_from_github(\"MicrobialGenomics-IrsicaixaOrg/dar\", fork = TRUE). Install development dependencies devtools::install_dev_deps(), make sure package passes R CMD check running devtools::check(). R CMD check doesn’t pass cleanly, ’s good idea ask help continuing. Create Git branch pull request (PR). recommend using usethis::pr_init(\"brief-description--change\"). Make changes, commit git, create PR running usethis::pr_push(), following prompts browser. title PR briefly describe change. body PR contain Fixes #issue-number. user-facing changes, add bullet top NEWS.md (.e. just first header). Follow style described https://style.tidyverse.org/news.html.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/CONTRIBUTING.html","id":"code-style","dir":"","previous_headings":"Bigger changes","what":"Code style","title":"Contributing to dar","text":"New code follow tidyverse style guide. can use styler package apply styles, please don’t restyle code nothing PR. use roxygen2, Markdown syntax, documentation. use testthat unit tests. Contributions test cases included easier accept.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/CONTRIBUTING.html","id":"code-of-conduct","dir":"","previous_headings":"","what":"Code of Conduct","title":"Contributing to dar","text":"Please note dar project released Contributor Code Conduct. contributing project agree abide terms.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/LICENSE.html","id":null,"dir":"","previous_headings":"","what":"MIT License","title":"MIT License","text":"Copyright (c) 2022 Francesc Català-Moll Permission hereby granted, free charge, person obtaining copy software associated documentation files (“Software”), deal Software without restriction, including without limitation rights use, copy, modify, merge, publish, distribute, sublicense, /sell copies Software, permit persons Software furnished , subject following conditions: copyright notice permission notice shall included copies substantial portions Software. SOFTWARE PROVIDED “”, WITHOUT WARRANTY KIND, EXPRESS IMPLIED, INCLUDING LIMITED WARRANTIES MERCHANTABILITY, FITNESS PARTICULAR PURPOSE NONINFRINGEMENT. EVENT SHALL AUTHORS COPYRIGHT HOLDERS LIABLE CLAIM, DAMAGES LIABILITY, WHETHER ACTION CONTRACT, TORT OTHERWISE, ARISING , CONNECTION SOFTWARE USE DEALINGS SOFTWARE.","code":""},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/articles/article.html","id":"load-dar-package-and-data","dir":"Articles","previous_headings":"","what":"Load dar package and data","title":"Workflow with real data","text":"","code":"library(dar) # suppressPackageStartupMessages(library(plotly)) data(\"metaHIV_phy\") metaHIV_phy #> phyloseq-class experiment-level object #> otu_table() OTU Table: [ 451 taxa and 156 samples ] #> sample_data() Sample Data: [ 156 samples by 3 sample variables ] #> tax_table() Taxonomy Table: [ 451 taxa by 7 taxonomic ranks ]"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/articles/article.html","id":"recipe-initialization","dir":"Articles","previous_headings":"","what":"Recipe initialization","title":"Workflow with real data","text":"begin analysis process dar package, first step initialize Recipe object, S4 class. recipe object serves blueprint data preparation steps required differential abundance analysis. initialization recipe object done function recipe(), takes inputs phyloseq TreeSummarizedExperiment (TSE) object, name categorical variable interest taxonomic level differential abundance analyses performed. previously mentioned, use data set (Noguera-Julian, M., et al. 2016) variable interest “RiskGroup2” containing categories: men sex men (msm), non-MSM (hts) people inject drugs (pwid) perform analysis species level.","code":"## Recipe initialization rec <- recipe(metaHIV_phy, var_info = \"RiskGroup2\", tax_info = \"Species\") rec #> ── DAR Recipe ────────────────────────────────────────────────────────────────── #> Inputs: #> #> ℹ phyloseq object with 451 taxa and 156 samples #> ℹ variable of interes RiskGroup2 (class: character, levels: hts, msm, pwid) #> ℹ taxonomic level Species"},{"path":"https://microbialgenomics-irsicaixaorg.github.io/dar/articles/article.html","id":"recipe-qc-and-preprocessing-steps-definition","dir":"Articles","previous_headings":"","what":"Recipe QC and preprocessing steps definition","title":"Workflow with real data","text":"recipe object initialized, next step populate steps. Steps methods applied data stored recipe. two types steps: preprocessing (prepro) differential abundance (da) steps. Initially, focus prepro steps used modify data loaded recipe, used da steps. ‘dar’ package includes 3 main preprocessing functionalities: step_subset_taxa, used subsetting columns values taxon table connected phyloseq object, step_filter_taxa, used filter OTUs, step_rarefaction, used resample OTU table ensure samples library size. functionalities allow high level flexibility customization data preparation process performing differential abundance analysis. dar package provides convenient wrappers step_filter_taxa function, designed filter Operational Taxonomic Units (OTUs) based specific criteria: prevalence, variance, abundance, rarity. step_filter_by_prevalence: Filters OTUs according number samples OTU appears. step_filter_by_variance: Filters OTUs based variance OTU’s presence across samples. step_filter_by_abundance: Filters OTUs according OTU’s abundance across samples. step_filter_by_rarity: Filters OTUs based rarity OTU across samples. addition preprocessing steps, dar package also incorporates function phy_qc returns table set metrics allow informed decisions made data preprocessing done. case, decided use step_subset_taxa function retain observations annotated within realm Bacteria Archaea. also used step_filter_by_prevalence function retain OTUs least 1% samples values greater 0. approach ensured working high-quality, informative subset data, improved overall accuracy reliability differential abundance analysis.","code":"## QC phy_qc(rec) #> # A tibble: 4 × 10 #> var_levels n n_zero pct_zero pct_all_zero pct_singletons pct_doubletons #> #> 1 all 70356 57632 81.9 0 20.6 8.87 #> 2 hts 18491 15108 81.7 24.2 22.8 8.43 #> 3 msm 45100 37019 82.1 16.0 20.2 9.53 #> 4 pwid 6765 5505 81.4 41.2 16.6 9.31 #> # ℹ 3 more variables: count_mean , count_min
Finally, dar also includes the function +
dar
Finally, dar also includes the function mutual_plt(), which plots the number of differential abundant features mutually found by a defined number of methods, colored by the differential abundance direction and separated by comparison. The @@ -513,7 +513,7 @@
mutual_plt()
Catala-Moll F (2024). dar: Differential Abundance Analysis by Consensus. -R package version 0.99.9, +R package version 0.99.10, https://microbialgenomics-irsicaixaorg.github.io/dar/, https://github.com/MicrobialGenomics-IrsicaixaOrg/dar.
@Manual{, title = {dar: Differential Abundance Analysis by Consensus}, author = {Francesc Catala-Moll}, year = {2024}, - note = {R package version 0.99.9, + note = {R package version 0.99.10, https://microbialgenomics-irsicaixaorg.github.io/dar/}, url = {https://github.com/MicrobialGenomics-IrsicaixaOrg/dar}, }
NEWS.md
step_corncob