Get the number of microbiome markers
nmarker(object)
# S4 method for microbiomeMarker
nmarker(object)
# S4 method for marker_table
nmarker(object)
a microbiomeMarker
or marker_table
object
an integer, the number of microbiome markers
mt <- marker_table(data.frame(
feature = c("speciesA", "speciesB"),
enrich_group = c("groupA", "groupB"),
ef_logFC = c(-2, 2),
pvalue = c(0.01, 0.01),
padj = c(0.01, 0.01),
row.names = c("marker1", "marker2")
))
nmarker(mt)
#> [1] 2