% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/15_code_generator.R
\name{extract_boxplot_data}
\alias{extract_boxplot_data}
\title{Extract Boxplot Data (Long and Wide)}
\usage{
extract_boxplot_data(
  GSEAlens_res,
  contrast_id,
  gene_symbol,
  expr_type = "logcpm"
)
}
\arguments{
\item{GSEAlens_res}{A \code{GseaRes} object.}

\item{contrast_id}{Character. Contrast ID (e.g. \code{"Treat_vs_Control"}).}

\item{gene_symbol}{Character. Gene symbol as shown in the boxplot title.}

\item{expr_type}{Character. Expression matrix type passed to
\code{get_expr_matrix()}. Default \code{"logcpm"}.}
}
\value{
A named list with elements \code{long}, \code{wide}, \code{gene},
  \code{contrast_id}, \code{expr_type}, \code{left_group},
  \code{right_group}, \code{sample_order}.
}
\description{
Internal helper used by the Quadrant module's "Export Boxplot
  Data" button. Computes the exact per-sample expression data frame that
  the Shiny boxplot (panel 4) is built on, and returns it in two formats:
\describe{
  \item{long}{Tidy data frame with columns \code{Sample}, \code{Group},
    \code{Expression}. One row per sample. Suitable for GraphPad Prism
    ("Grouped" data table) and Excel.}
  \item{wide}{A one-row data frame. The first column holds the gene
    symbol (column name \code{Gene}); the remaining columns hold the
    expression value of that gene in each sample (column names are the
    sample IDs, in the expression matrix's original column order).
    Suitable for direct copy-paste into Prism ("Column" data table) or
    any spreadsheet.}
}
}
\keyword{internal}
