getMostFrequentTaxa: Get the most frequently occurring taxa in a table of...

View source: R/simple.R

getMostFrequentTaxaR Documentation

Get the most frequently occurring taxa in a table of signatures

Description

Get the most frequently occurring taxa in a table of signatures

Usage

getMostFrequentTaxa(
  dat,
  n = 10,
  sig.type = c("both", "increased", "decreased"),
  direction.column = "Abundance in Group 1"
)

Arguments

dat

A table such as output by importBugSigDB

n

Number of most frequently occurring taxa to return

sig.type

increased for increased in cases relative to controls, decreased for decreased in cases relative to controls, both for either

direction.column

column containing direction information in dat

Value

A list of signatures, with PMIDs for list element names

Examples

full.dat <- bugsigdbr::importBugSigDB()
getMostFrequentTaxa(full.dat)

waldronlab/bugSigSimple documentation built on Feb. 1, 2024, 12:22 a.m.