% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils-accessors.R
\name{get_de_table}
\alias{get_de_table}
\title{Get Differential Expression Table}
\usage{
get_de_table(obj, contrast_id)
}
\arguments{
\item{obj}{A GseaRes object containing differential expression results.}

\item{contrast_id}{Character string specifying the contrast ID (e.g., "A_vs_B").
If the reverse contrast exists in storage, it will be retrieved and
logFC/stat signs will be inverted.}
}
\value{
A data frame containing at minimum: gene_symbol, logFC, and p-value
  columns. Additional columns (stat, pvalue, padj, t) may be present depending
  on the analysis backend.
}
\description{
Extract differential expression results for a specific contrast
  from the stored results. Automatically handles reverse contrasts (e.g.,
  B_vs_A) by retrieving the forward contrast and flipping the sign of logFC.
}
\examples{
# Load a pre-computed GseaRes shipped with the package
data(precomputed_gseares, package = "GSEAlens")

gsea_res <- precomputed_gseares
de_result <- get_de_table(gsea_res, contrast_id = "untrt_vs_trt")
head(de_result)
}
