frequencySigs: Identify the most frequently recurring taxa in bugsigdb

View source: R/montecarlo.R

frequencySigsR Documentation

Identify the most frequently recurring taxa in bugsigdb

Description

Identify the most frequently recurring taxa in bugsigdb

Usage

frequencySigs(sigs, n = 10)

Arguments

sigs

data.frame produced by importBugSigDB

n

Number of top taxa to return

Value

integer vector of top most recurrent taxa

Examples

dat <- bugsigdbr::importBugSigDB()
dat.select <- bugsigdbr::getSignatures(dat, tax.level = "genus", exact.tax.level=TRUE)
dat.select <- dat.select[grep("UP", names(dat.select))] #only "UP" signatures
frequencySigs(sigs=dat.select, n = 10)

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