% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ggnetview_modularity_heatmaps.R
\name{get_module_abundance}
\alias{get_module_abundance}
\title{Compute module relative abundance index}
\usage{
get_module_abundance(
  otu_mat,
  graph_obj,
  module_col = "Modularity",
  type = c("sum", "mean"),
  exclude_others = TRUE
)
}
\arguments{
\item{otu_mat}{Numeric matrix. Rows = OTUs, columns = samples.}

\item{graph_obj}{A tbl_graph with \code{name} and module column.}

\item{module_col}{Character. Module column name.}

\item{type}{Character. \code{"sum"} (total abundance) or \code{"mean"}
(average abundance per OTU).}

\item{exclude_others}{Logical. Exclude "Others" module.}
}
\value{
A data frame with samples as rows and modules as columns.
}
\description{
For each module, computes the sum or mean of member OTU abundances
per sample. Simpler than eigengene but more "abundance-focused".
}
\keyword{internal}
