betatest: PERMANOVA test for phyloseq

Description Usage Arguments Value Author(s) Examples

View source: R/Functions.R

Description

PERMANOVA test for phyloseq

Usage

1
betatest(physeq, group, distance = "bray")

Arguments

physeq

A phyloseq object containing merged information of abundance, taxonomic assignment, sample data including the measured variables and categorical information of the samples, and / or phylogenetic tree if available.

group

(Required). Character string specifying name of a categorical variable that is preferred for grouping the information. information.

distance

A string character specifying dissimilarity index to be used in calculating pairwise distances (Default index is "bray".). "unifrac","wunifrac","manhattan", "euclidean", "canberra", "bray", "kulczynski", "jaccard", "gower", "altGower", "morisita", "horn", "mountford", "raup" , "binomial", "chao", "cao" or "mahalanobis".

Value

PERMANOVA test result

Author(s)

Kai Guo

Examples

1
2
3
4
5
{
data("Physeq")
phy<-normalize(physeq)
beta <-betatest(phy,group="SampleType")
}

guokai8/microbial documentation built on Nov. 10, 2021, 1:43 a.m.