Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add reference page and vignettes for pkgdown site (#56) #56

Merged
merged 81 commits into from
Jan 5, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
81 commits
Select commit Hold shift + click to select a range
42d0203
Initial commit of package docs.
grabear Dec 28, 2018
995507a
Added initial description.
grabear Dec 28, 2018
d1efc7d
Updated with details section.
grabear Dec 28, 2018
6ec1388
Updated bad NAMESPACE imports.
grabear Dec 28, 2018
d780a4c
Added Other Documentation section to package docs.
grabear Dec 28, 2018
df79e96
updated NAMESPACE
grabear Dec 28, 2018
fbe4d30
Started vignettes setup.
grabear Dec 28, 2018
a30a949
Started vignettes setup.
grabear Dec 28, 2018
66f4ec7
Initialized introduction vignette.
grabear Dec 28, 2018
8e56c91
Added MicrobiomeR Formats section to the introduction vignette.
grabear Dec 28, 2018
090d7da
Added start to the data-wrangling vignette.
grabear Dec 28, 2018
08dc65e
Updated the data-wrangling vignette.
grabear Dec 28, 2018
ee69d3c
Updated docs.
grabear Dec 28, 2018
7454fc3
Made a function for creating a rooted phylogenetic tree from a phylos…
grabear Dec 31, 2018
7dd0031
Updated the roxygen documentation for the new function.
grabear Dec 31, 2018
c63bfa5
Updated the get_phyloseq_obj function.
grabear Dec 31, 2018
c891168
Added an import section to the data-wrangling vignette.
grabear Dec 31, 2018
432298f
Added a Formatting section to the data-wrangling vignette.
grabear Dec 31, 2018
c075590
Updated data-wrangling vignette.
grabear Dec 31, 2018
7783d4a
Updated introduction vignette.
grabear Dec 31, 2018
53c8ec3
Added initial commit to workflow vignette.
grabear Dec 31, 2018
ad4d19a
Added a Data Wrangling section to the workflow vignette.
grabear Dec 31, 2018
50b0ecd
Added a Basic Filtering section to the workflow vignette.
grabear Dec 31, 2018
df25902
Added the Advanced Filtering section to the workflow vignette.
grabear Dec 31, 2018
345f508
Renamed workflow vignette to filtering vignette.
grabear Dec 31, 2018
3e3a0fd
Added some minor fixes to vignette docs.
grabear Jan 2, 2019
3b04153
Updated bug in transposer function.
grabear Jan 2, 2019
b4a633f
Added the Other Filtering section.
grabear Jan 2, 2019
ed09379
Added the Transposing subsection.
grabear Jan 2, 2019
5964418
Updated transformer function.
grabear Jan 2, 2019
72e1be9
Added the Transforming subsection.
grabear Jan 2, 2019
70b96ce
Updated vlookup function with more pragmatic parameter names.
grabear Jan 2, 2019
01e93df
Added Vlookup sub section, and reformatted other sections.
grabear Jan 2, 2019
813ab4e
Initial commit of analysis vignette.
grabear Jan 2, 2019
859da31
Added Data Wrangling section to analysis vignette.
grabear Jan 2, 2019
aa793f0
Added Filtering section to analysis vignette.
grabear Jan 2, 2019
5577c6e
Added the Statistics sub-section, and updated the Analysis overview.
grabear Jan 2, 2019
fcd9f32
Fixed get_output_dir logic flow.
grabear Jan 2, 2019
0ac7fb8
Added output message for corr-plot generation, and added palette cust…
grabear Jan 3, 2019
38b76c1
Fixed palette bugs and added the rev parameter to get_color_palette f…
grabear Jan 3, 2019
7de073c
Added a Visualization sub-section to the analysis vignette.
grabear Jan 3, 2019
ac774bd
Updated package after build and install.
grabear Jan 3, 2019
bd78e8a
Merge pull request #55 from vallenderlab/dev-master
grabear Jan 3, 2019
30eec65
Fixed inconsistent @family names.
grabearummc Jan 4, 2019
33e1d2a
Removed get-started vignette.
grabearummc Jan 4, 2019
0cb39f5
Made relevent updates including adding the Data Import reference sect…
grabearummc Jan 4, 2019
64bfb02
Added the Data Formatting reference section.
grabearummc Jan 4, 2019
b396565
Updated reference sections using has_concept to identify family of fu…
grabearummc Jan 4, 2019
b484aba
Added Validation reference section.
grabearummc Jan 4, 2019
5ef635a
Added Filtering reference section.
grabearummc Jan 4, 2019
5adb643
Fixed spelling error in data-wrangling vignette.
grabearummc Jan 4, 2019
f7007af
Added Visualization reference section.
grabearummc Jan 4, 2019
d315e9c
Fixed bug.
grabearummc Jan 4, 2019
10f4d4a
Updated package after build and install.
grabearummc Jan 4, 2019
28d87bb
Bumped version to 0.1.4
grabearummc Jan 4, 2019
2b20fda
Added a NEWS section for 0.1.4
grabearummc Jan 4, 2019
9f7aefc
Updated README.
grabearummc Jan 4, 2019
b1fd853
Updated analysis vignette.
grabearummc Jan 4, 2019
731f281
Changed sample_filter function, and updated the @family tags.
grabearummc Jan 4, 2019
5e4bf25
Bumped to 0.2.3.
grabearummc Jan 4, 2019
69185c4
Reverted to 0.2.0.
grabearummc Jan 4, 2019
c28ce5d
Changed get_phyloseq_obj to create_phyloseq.
grabearummc Jan 4, 2019
8d279a2
Converted get_phyloseq_obj to create_phyloseq.
grabearummc Jan 4, 2019
ddb4935
Updated pkgdown.
grabearummc Jan 4, 2019
f46905c
Added Visualization family to save_barplot function.
grabearummc Jan 4, 2019
54f11b9
Reorganized formatting functions and changed format_mc_obj to as_cust…
grabearummc Jan 4, 2019
84f5ed1
Added the Formatting family to the MicrobiomeR_Formats section.
grabearummc Jan 4, 2019
f3b0a8e
Fixed roxygen build bugs.
grabearummc Jan 4, 2019
8cde9b7
Updated roxygen for heat-tree.
grabearummc Jan 4, 2019
bd7bfe9
Updated NEWS.md.
grabearummc Jan 5, 2019
2f6cd2f
Fixed build errors.
grabearummc Jan 5, 2019
d055579
Added built pkgdown site.
grabearummc Jan 5, 2019
2c9840a
Added about and color-palette vignettes.
grabearummc Jan 5, 2019
6c51a64
Updated package after build and install.
grabearummc Jan 5, 2019
784fa3f
Added missing dependecies.
grabearummc Jan 5, 2019
b469eb2
Update README.md
sdhutchins Jan 5, 2019
4398800
Update NEWS.md
sdhutchins Jan 5, 2019
d6a7882
Update R/phyloseq.R
sdhutchins Jan 5, 2019
48e2a6b
Update R/phyloseq.R
sdhutchins Jan 5, 2019
108f73f
Updated package after build and install.
grabearummc Jan 5, 2019
203ed6b
Updated pkgdown after build_site
grabearummc Jan 5, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: MicrobiomeR
Title: Analyze Microbiome Data
Version: 0.1.2
Version: 0.2.0
Authors@R: c(
person("Robert", "Gilmore", email = "[email protected]", role = "cre"),
person("Shaurita", "Hutchins", email = "[email protected]", role = "aut"))
Expand Down Expand Up @@ -48,7 +48,9 @@ Imports:
forcats,
ggrepel,
scales,
vegan
vegan,
leaflet,
htmlwidgets
Suggests:
knitr,
testthat,
Expand Down
7 changes: 4 additions & 3 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,20 @@ export(alpha_diversity_plot)
export(as_MicrobiomeR_format)
export(as_analyzed_format)
export(as_basic_format)
export(as_custom_format)
export(as_phyloseq_format)
export(as_raw_format)
export(combination_palette)
export(correlation_plot)
export(cov_filter)
export(create_phyloseq)
export(create_pub_table)
export(format_metacoder_object)
export(get_alpha_diversity_measures)
export(get_color_palette)
export(get_correlation_plots)
export(get_heat_tree_parameters)
export(get_heat_tree_plots)
export(get_output_dir)
export(get_phyloseq_obj)
export(is_analyzed_format)
export(is_basic_format)
export(is_phyloseq_format)
Expand All @@ -34,7 +34,8 @@ export(otu_proportion_filter)
export(parse_taxonomy_silva_128)
export(pick_new_outgroup)
export(root_by_longest_edge)
export(sample_filter)
export(root_phyloseq_tree)
export(sample_id_filter)
export(save_barplot)
export(save_correlation_plots)
export(save_heat_tree_plots)
Expand Down
27 changes: 27 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,30 @@
# MicrobiomeR 0.2.0

## Documentation Updates

* Added vignettes to package and pkgdown config.
* About
* Introduction
* Data Wrangling
* Filtering
* Analysis
* Added reference sections to pkgdown config corresponding to @family tag.
* Import
* Formatting
* Validation
* Filtering (Basic, Advanced, Other)
* Visualization
* Color Palettes

## Functional Changes

* Renamed `sample_filter` to `sample_id_filter`.
* Renamed `get_phyloseq_obj` to `create_phyloseq`.
* Renamed `format_metacoder_object` to `as_custom_format`.
* Updated `vlookup` and `get_color_palette` parameters.
* Added the `root_phyloseq_tree` function.
* Fixed minor bugs in code and docs.

# MicrobiomeR 0.1.3

* Added custom css for pkgdown.
Expand Down
27 changes: 27 additions & 0 deletions R/MicrobiomeR-package.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#' MicrobiomeR
#'
#' A microbiome workflow package using phyloseq for data import, metacoder for data analysis,
#' and ggplot2 for data visualization.
#'
#' The goal of this package is to enhance the use of the \code{\link[metacoder:metacoder]{metacoder}} package by
#' providing tools that mimic the \code{\link[phyloseq:phyloseq-package]{phyloseq}} package. The only difference being that
#' the main data object is a \code{\link[taxa:taxmap]{taxmap object}} instead of a \code{\link[phyloseq:phyloseq-class]{phyloseq object}}.
#'
#' @section Other Documentation:
#' Below are some links to helpful R package used, while developing this package.
#'
#' \describe{
#' \item{metacoder}{\url{https://grunwaldlab.github.io/metacoder_documentation/}}
#' \item{taxa}{\url{https://github.com/ropensci/taxa}}
#' \item{phyloseq}{\url{http://joey711.github.io/phyloseq/}}
#' \item{microbiome}{\url{http://microbiome.github.io/microbiome/}}
#' \item{MicrobiomeR}{\url{https://github.com/vallenderlab/MicrobiomeR}
#' }}
#' The [MicrobiomeR_Workflow] and [MicrobiomeR_Formats] help sections are also useful for understanding the
#' package.
#'
#'
#' @author Rob Gilmore and Shaurita Hutchins
#' @name MicrobiomeR
#' @docType package
NULL
1 change: 1 addition & 0 deletions R/barplot.R
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ stacked_barplot <- function(obj, tax_level = "Phylum", fill = "Phylum", xlabel =
#' }
#' }
#' @export
#' @family Visualizations
#' @rdname save_barplot
#' @seealso
#'
Expand Down
20 changes: 16 additions & 4 deletions R/correlation-plot.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#' @param secondary_rank The secondary rank used to color the points. Can be an integer specifying
#' the number of supertaxon ranks above the primary rank or the name of a supertaxon rank. Default: TRUE
#' @param wp_value The Wilcoxian P-Value used to represent significant points. Default: 0.05
#' @param pal_func A palette function that returns grDevices::colorRampPalette.
#' @return A 1:1 correlation plot built with ggplot2.
#' @pretty_print TRUE
#' @details Correlation plots help to better explain the heat tree findings.
Expand Down Expand Up @@ -36,7 +37,7 @@
#' @importFrom ggrepel geom_label_repel
#' @importFrom crayon yellow
correlation_plot <- function(obj, primary_rank, secondary_rank = TRUE,
wp_value = 0.05) {
wp_value = 0.05, pal_func = NULL) {
metacoder_object <- object_handler(obj)
metacoder_object <- validate_MicrobiomeR_format(obj = metacoder_object,
valid_formats = c("analyzed_format"))
Expand Down Expand Up @@ -99,7 +100,17 @@ correlation_plot <- function(obj, primary_rank, secondary_rank = TRUE,
background_limits <- data.frame(id = c("1", "1", "1", "2", "2", "2"), x = c(0, Inf, 0, 0, Inf, Inf), y = c(0, Inf, Inf, 0, 0, Inf))
# Get a color palette
secondary_taxa <- length(unique(primary_data[[(secondary_rank)]]))
myPal <- get_color_palette(color_no = secondary_taxa, display = FALSE)
if (is.null(pal_func)) {
pal_func <- combination_palette(
magma = list(palette = viridis::magma, args = list(n=500), range=450:500, rev=TRUE),
inferno = list(palette = viridis::inferno, args = list(n=500), range=100:400, rev=TRUE),
cividis = list(palette = viridis::cividis, args = list(n=500), range=100:200, rev=TRUE),
viridis = list(palette = viridis::viridis, args = list(n=500), range=100:480))
}
myPal <- get_color_palette(
pal_func = pal_func,
color_no = secondary_taxa,
display = FALSE)

# Start ggplot2 workflow
corr <- ggplot2::ggplot(primary_data, ggplot2::aes(x = mean_treat1, y = mean_treat2)) +
Expand All @@ -115,14 +126,15 @@ correlation_plot <- function(obj, primary_rank, secondary_rank = TRUE,
ggplot2::scale_fill_manual(values = c("red", "blue", myPal), guide = FALSE) +
ggplot2::scale_color_manual(values = c(myPal), name = sprintf("%s:", c(secondary_rank)), guide = ggplot2::guide_legend(ncol = 2)) +
ggplot2::geom_abline(slope = 1, intercept = 0, linetype = "dashed")
message(crayon::green(sprintf("Generating Correlation Plot for %s with color based on %s", crayon::bgWhite(primary_rank), crayon::bgWhite(secondary_rank))))
return(corr)
}

#' @title Get Multiple Correlation Plots
#' @description This function allows the user to create a list of multiple correlation plots.
#' @param obj PARAM_DESCRIPTION
#' @param primary_rank A vector of primary ranks used to label the points.
#' @param secondary_rank The secondary rank used to color the points. Can be an integer specifying
#' @param primary_ranks A vector of primary ranks used to label the points.
#' @param secondary_ranks The secondary rank used to color the points. Can be an integer specifying
#' the number of supertaxon ranks above the primary rank or the name of a supertaxon rank. Default: TRUE
#' @param pairwise This does a pairwise comparison of the primary and secondary ranks. Default: FALSE
#' @param ... An optional list of parameters to use in the correlation_plot function.
Expand Down
2 changes: 1 addition & 1 deletion R/heat-tree.R
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ get_heat_tree_plots <- function(obj, rank_list = NULL, ...) {
#'
#' \code{\link[purrr]{list_modify}}
#'
#' \code{\link[rlang]{enquos}}, \code{\link[rlang]{is_quosure}}, \code{\link[rlang]{eval_tidy}}
#' \code{\link[rlang:quotation]{enquos}}, \code{\link[rlang:quosure]{is_quosure}}, \code{\link[rlang]{eval_tidy}}
#' @importFrom taxa n_obs taxon_names
#' @importFrom purrr list_modify
#' @importFrom rlang enquos is_quosure eval_tidy
Expand Down
102 changes: 51 additions & 51 deletions R/metacoder-formatting.R
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,7 @@ is_raw_format <- function(obj) {
#' print(sprintf("It's %s!", fmt))
#' }
#' }
#' }
#' }
#'}
#' @export
#' @family Validation
#' @rdname is_basic_format
Expand Down Expand Up @@ -138,7 +137,6 @@ is_basic_format <- function(obj) {
#' print(sprintf("It's %s!", fmt))
#' }
#' }
#' }
#' }
#' @export
#' @family Validation
Expand Down Expand Up @@ -212,6 +210,51 @@ order_metacoder_data <- function(obj) {
return(mo_clone)
}

#' @title Validate MicrobiomeR Format
#' @description This funciton validates that taxmap/metacoder objects are in a valid format MicrobiomeR format.
#' @param obj A Taxmap/metacoder object.
#' @param validated This parameter provides a way to override validation steps. Use carefully. Default: FALSE
#' @param valid_formats A vector of formats that are used for validation.
#' @param force_format A logical denoting if the selected format is to be forced. Default: FALSE
#' @param min_or_max A base function (min or max) that determines which format is to be forced.
#' This is particularly useful if you provide multiple \emph{valid_formats}. Min will choose the lowest
#' level format, while max will choose the highest level format. Default: base::max
#' @param ... An optional list of parameters to use in \code{\link[MicrobiomeR]{as_MicrobiomeR_format}}.
#' @return If the object is validated, a Taxmap/metacoder object.
#' @details This function can provide a way to check if a taxmap object has undergone a
#' \code{\link[MicrobiomeR:MicrobiomeR_Workflow]{MicrobiomeR Style Workflow}}.
#' @export
#' @family Validation
#' @rdname validate_MicrobiomeR_format
#' @seealso
#' \code{\link[MicrobiomeR]{which_format}}, \code{\link[MicrobiomeR]{as_MicrobiomeR_format}}
#' @importFrom glue glue
#' @importFrom crayon bgWhite green yellow red
validate_MicrobiomeR_format <- function(obj, validated = FALSE, valid_formats, force_format = FALSE, min_or_max = base::max, ...) {
mo_clone <- obj$clone()
format_list <- pkg.private$format_level_list
if (validated == TRUE) {
return(mo_clone)
}
fmt <- which_format(obj = mo_clone)
rank_list <- c(format_list[[fmt]])
high_rank <- fmt
if (fmt %in% valid_formats) {
return(mo_clone)
} else if (force_format == TRUE) {
for (v_fmt in valid_formats) {
rank_list <- c(rank_list, format_list[[v_fmt]])
high_rank <- ifelse(format_list[[v_fmt]] >= min_or_max(rank_list), v_fmt, high_rank)
}
message(crayon::yellow(glue::glue("Forcing the metacoder object from the ", crayon::bgWhite(crayon::red({fmt})), " to the ",
crayon::bgWhite(crayon::green({high_rank})),".")))
mo_clone <- as_MicrobiomeR_format(obj = mo_clone, format = high_rank, ...)
return(mo_clone)
} else {
stop(glue::glue("The metacoder object is not in one of the valid formats: {valid_formats}." ))
}
}

#' @title As Raw MicrobiomeR Format
#' @description Converts a metacoder object to the raw_format.
#' @param obj An object to be converted to a metacoder object with \code{\link[MicrobiomeR]{object_handler}}.
Expand Down Expand Up @@ -392,7 +435,7 @@ as_analyzed_format <- function(obj, cols = NULL, groups = NULL, combinations = N
#' @family Formatting
#' @rdname as_MicrobiomeR_format
#' @seealso
#' \code{\link[MicrobiomeR]{which_format}}, \code{\link[MicrobiomeR]{as_raw_format}}, \code{\link[MicrobiomeR]{as_basic_format}}, \code{\link[MicrobiomeR]{as_analyzed_format}}, \code{\link[MicrobiomeR]{as_phyloseq_format}}, \link[MicrobiomeR]{object_handler}}, \code{\link[MicrobiomeR]{order_metacoder_data}}
#' \code{\link[MicrobiomeR]{which_format}}, \code{\link[MicrobiomeR]{as_raw_format}}, \code{\link[MicrobiomeR]{as_basic_format}}, \code{\link[MicrobiomeR]{as_analyzed_format}}, \code{\link[MicrobiomeR]{as_phyloseq_format}}, \code{\link[MicrobiomeR]{object_handler}}, \code{\link[MicrobiomeR]{order_metacoder_data}}
#' @importFrom glue glue
#' @importFrom crayon silver green red
as_MicrobiomeR_format <- function(obj, format, ...) {
Expand Down Expand Up @@ -458,7 +501,7 @@ as_phyloseq_format <- function(obj, otu_table="otu_abundance", tax_data="otu_ann
return(mo_clone)
}

#' @title Format Metacoder Objects
#' @title As Custom MicrobiomeR Format
#' @description A function for formatting metacoder objects in the MicrobiomeR format. This function
#' attempts to give more customization than the as_*_format functions.
#' @param obj An object to be converted to a metacoder object with \code{\link[MicrobiomeR]{object_handler}}.
Expand All @@ -471,12 +514,12 @@ as_phyloseq_format <- function(obj, otu_table="otu_abundance", tax_data="otu_ann
#' @details This function is meant to be more helpful for customizing the metacoder object.
#' @export
#' @family Formatting
#' @rdname format_metacoder_object
#' @rdname as_custom_format
#' @seealso
#' \code{\link[MicrobiomeR]{object_handler}}, \code{\link[MicrobiomeR]{which_format}}, \code{\link[MicrobiomeR]{order_metacoder_data}}, \code{\link[MicrobiomeR]{as_MicrobiomeR_format}}
#' @importFrom glue glue
#' @importFrom crayon red
format_metacoder_object <- function(obj, format, change_name_list = NULL, ...) {
as_custom_format <- function(obj, format, change_name_list = NULL, ...) {

# Metacoder Objects
obj <- object_handler(obj = obj)
Expand Down Expand Up @@ -538,48 +581,5 @@ format_metacoder_object <- function(obj, format, change_name_list = NULL, ...) {
return(mo_clone)
}

#' @title Validate MicrobiomeR Format
#' @description This funciton validates that taxmap/metacoder objects are in a valid format MicrobiomeR format.
#' @param obj A Taxmap/metacoder object.
#' @param validated This parameter provides a way to override validation steps. Use carefully. Default: FALSE
#' @param valid_formats A vector of formats that are used for validation.
#' @param force_format A logical denoting if the selected format is to be forced. Default: FALSE
#' @param min_or_max A base function (min or max) that determines which format is to be forced.
#' This is particularly useful if you provide multiple \emph{valid_formats}. Min will choose the lowest
#' level format, while max will choose the highest level format. Default: base::max
#' @param ... An optional list of parameters to use in \code{\link[MicrobiomeR]{as_MicrobiomeR_format}}.
#' @return If the object is validated, a Taxmap/metacoder object.
#' @details This function can provide a way to check if a taxmap object has undergone a
#' \code{\link[MicrobiomeR:MicrobiomeR_Workflow]{MicrobiomeR Style Workflow}}.
#' @export
#' @family Validation
#' @rdname validate_MicrobiomeR_format
#' @seealso
#' \code{\link[MicrobiomeR]{which_format}}, \code{\link[MicrobiomeR]{as_MicrobiomeR_format}}
#' @importFrom glue glue
#' @importFrom crayon bgWhite green yellow red
validate_MicrobiomeR_format <- function(obj, validated = FALSE, valid_formats, force_format = FALSE, min_or_max = base::max, ...) {
mo_clone <- obj$clone()
format_list <- pkg.private$format_level_list
if (validated == TRUE) {
return(mo_clone)
}
fmt <- which_format(obj = mo_clone)
rank_list <- c(format_list[[fmt]])
high_rank <- fmt
if (fmt %in% valid_formats) {
return(mo_clone)
} else if (force_format == TRUE) {
for (v_fmt in valid_formats) {
rank_list <- c(rank_list, format_list[[v_fmt]])
high_rank <- ifelse(format_list[[v_fmt]] >= min_or_max(rank_list), v_fmt, high_rank)
}
message(crayon::yellow(glue::glue("Forcing the metacoder object from the ", crayon::bgWhite(crayon::red({fmt})), " to the ",
crayon::bgWhite(crayon::green({high_rank})),".")))
mo_clone <- as_MicrobiomeR_format(obj = mo_clone, format = high_rank, ...)
return(mo_clone)
} else {
stop(glue::glue("The metacoder object is not in one of the valid formats: {valid_formats}." ))
}
}


Loading