Error in midpoint(data.obj$tree) : could not find function "midpoint" #49
Labels
Not a Bug - Solution Provided
This behavior is intentional as part of our design. However, we've provided a solution to accommodat
Dear developer,
Congratulations for this great tool.
I have a problem while trying to convert my phyloseq object to microbiomeStat object.
It seems it does not found midpoint function.
I installed all the dependencies following the installation guide. Then, I execute the code below.
Do you have any clue of what is going on here?
Thank you for your time!
library(MicrobiomeStat)
library(tidyverse)
library(phyloseq)
Required package
library(microbiome)
library(ape)
setwd("/Users/virginia/Dropbox/rrr/emu_phyloseq/") # mac
################################################################################
load Phyloseq object
################################################################################
ps <- readRDS(file= "./phylo_obj/ps.rds")
Check if taxa are rows in the Phyloseq object
phyloseq::taxa_are_rows(ps)
str(ps)
Convert the Phyloseq object to a MicrobiomeStat data object
data.obj <- mStat_convert_phyloseq_to_data_obj(ps)
output:
``
The text was updated successfully, but these errors were encountered: