Note that this function is quite time-consuming due to high dimensionality in metabarcoding community matrix.
Arguments
- physeq
(required): a
phyloseq-class
object obtained using thephyloseq
package.- merge_sample_by
(default: NULL) if not
NULL
samples of physeq are merged using the vector set bymerge_sample_by
. This merging used themerge_samples2()
. In the case ofbiplot_pq()
this must be a factor with two levels only.- ...
Other arguments for the
iNEXT::iNEXT()
function
Value
see iNEXT::iNEXT()
documentation
Author
Adrien Taudière
This function is mainly a wrapper of the work of others.
Please make a reference to iNEXT::iNEXT()
if you
use this function.
Examples
# \donttest{
if (requireNamespace("iNEXT")) {
data("GlobalPatterns", package = "phyloseq")
GPsubset <- subset_taxa(
GlobalPatterns,
GlobalPatterns@tax_table[, 1] == "Bacteria"
)
GPsubset <- subset_taxa(
GPsubset,
rowSums(GPsubset@otu_table) > 20000
)
GPsubset <- subset_taxa(
GPsubset,
rowSums(is.na(GPsubset@tax_table)) == 0
)
GPsubset@sam_data$human <- GPsubset@sam_data$SampleType %in%
c("Skin", "Feces", "Tong")
res_iNEXT <- iNEXT_pq(
GPsubset,
merge_sample_by = "human",
q = 1,
datatype = "abundance",
nboot = 2
)
iNEXT::ggiNEXT(res_iNEXT)
iNEXT::ggiNEXT(res_iNEXT, type = 2)
iNEXT::ggiNEXT(res_iNEXT, type = 3)
}
#> Found more than one class "phylo" in cache; using the first, from namespace 'phyloseq'
#> Also defined by ‘RNeXML’ ‘tidytree’
#> Found more than one class "phylo" in cache; using the first, from namespace 'phyloseq'
#> Also defined by ‘RNeXML’ ‘tidytree’
#> Found more than one class "phylo" in cache; using the first, from namespace 'phyloseq'
#> Also defined by ‘RNeXML’ ‘tidytree’
#> Found more than one class "phylo" in cache; using the first, from namespace 'phyloseq'
#> Also defined by ‘RNeXML’ ‘tidytree’
#> Error in eval(e, x, parent.frame()): object 'GPsubset' not found
# }