betatest: PERMANOVA test for phyloseq

View source: R/Functions.R

betatestR Documentation

PERMANOVA test for phyloseq

Description

PERMANOVA test for phyloseq

Usage

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

{
data("Physeq")
phy<-normalize(physeq)
beta <-betatest(phy,group="SampleType")
}

guokai8/microbial documentation built on Oct. 15, 2024, 11:32 p.m.