% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/select_method.R
\name{select_method}
\alias{select_method}
\title{Select a Signature Scoring Method Subset}
\usage{
select_method(data, method = c("ssGSEA", "PCA", "zscore"))
}
\arguments{
\item{data}{Data frame or matrix. Integrated signature score matrix.}

\item{method}{Character. One of "PCA", "ssGSEA", or "zscore" (case-insensitive).
Default is "ssGSEA".}
}
\value{
Matrix or data frame containing only the selected method's scores.
}
\description{
Filters an integrated signature score matrix to retain results from a
specified method (PCA, ssGSEA, or zscore) and strips method suffixes from
column names.
}
\examples{
# Simulate data with multiple method columns
set.seed(123)
sim_res <- data.frame(
  ID = paste0("Sample", 1:10),
  Sig1_PCA = rnorm(10),
  Sig1_ssGSEA = rnorm(10),
  Sig1_zscore = rnorm(10),
  Sig2_PCA = rnorm(10),
  Sig2_ssGSEA = rnorm(10),
  Sig2_zscore = rnorm(10)
)
# Select PCA method columns only
pca_res <- select_method(sim_res, method = "PCA")
print(colnames(pca_res))
}
\author{
Dongqiang Zeng
}
