Learn R Programming

LorMe (version 1.1.0)

indicator_analysis: Indicator Analysis

Description

Performs the indicator analysis based on taxonomic summary object

Usage

indicator_analysis(taxobj, taxlevel, func = "r.g", reads = FALSE)

Value

A data frame with the results of the indicator analysis, including adjusted p-values, tags and taxonomic information.

Arguments

taxobj

Configured tax summary objects.See in object_config.

taxlevel

taxonomy levels used for visualization.Must be one of c("Domain","Phylum","Class","Order","Family","Genus","Species","Base").

func

Default: "r.g".The function to use for the indicator analysis, see in multipatt

reads

A logical value indicating whether the input data is in terms of raw reads (TRUE) or relative abundance (FALSE)

See Also

multipatt, how

Examples

Run this code
data("Two_group")
if (requireNamespace("indicspecies", quietly = TRUE) &&
    requireNamespace("permute", quietly = TRUE)) {
  set.seed(999)
  indicator_results <- indicator_analysis(
    taxobj = Two_group,
    taxlevel = "Genus"
  )
  head(indicator_results)
}

Run the code above in your browser using DataLab