testAssociation: Test association of a taxon with a certain category of a...

View source: R/curation_contents.R

testAssociationR Documentation

Test association of a taxon with a certain category of a column

Description

Test association of a taxon with a certain category of a column

Usage

testAssociation(
  dat,
  taxon,
  column = "Condition",
  category = "",
  direction = c("BOTH", "UP", "DOWN")
)

Arguments

dat

a data.frame storing BugSigDB data

taxon

character. A taxonomic name.

column

character. A column of dat that contains the category thats hould be tested for association.

category

character. One or more categories that should be tested for association.

direction

character. Indicates direction of abundance change for signatures to be included. Use "UP" to restrict computation to signatures with increased abundance in the exposed group. Use "DOWN" to restrict to signatures with decreased abundance in the exposed group. Defaults to "BOTH" which will not filter signatures by direction of abundance change.

Value

A sorted table with taxon stats for the chosen metadata column


waldronlab/BugSigDBStats documentation built on Oct. 21, 2023, 6:11 a.m.