nmarker-methods: Get the number of microbiome markers

nmarkerR Documentation

Get the number of microbiome markers

Description

Get the number of microbiome markers

Usage

nmarker(object)

## S4 method for signature 'microbiomeMarker'
nmarker(object)

## S4 method for signature 'marker_table'
nmarker(object)

Arguments

object

a microbiomeMarker or marker_table object

Value

an integer, the number of microbiome markers

Examples


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)


HuaZou/MicrobiomeAnalysis documentation built on May 13, 2024, 11:10 a.m.