Identify the most frequently recurring taxa in bugsigdb

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()
#> Using cached version from 2025-01-30 21:57:36
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)
#>  1301   838  1578   816 29465  1678   848  1350  1485  1654 
#>   299   276   259   198   195   179   157   149   143   122