#' getPathList internal function
#'
#' Takes in a nested list of paths in dataframe format and returns a top-level path assignment
#' @param df The FASTMAP dataframe row
#' @keywords prettify path list
#' @export
getPathList <- function(df) {
ugly_paths <- getAllPaths(df,root,"")
formatted <- lapply(unlist(ugly_paths), function(x) { gsub(" unclassified ","",x)})
formatted <- lapply(formatted, function(x) { gsub(" unclassified","unclassified",x) } )
to_v <- lapply(formatted,function(x) { gsub(" "," -> ",x)})
getFinalPathList(unlist(to_v))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.