% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/format_signatures.R
\name{format_signatures}
\alias{format_signatures}
\title{Transform Signature Data into List Format}
\usage{
format_signatures(sig_data, save_signature = FALSE, output_path = NULL)
}
\arguments{
\item{sig_data}{Data frame with signature names as columns and genes in
rows. Use `NA` for missing values.}

\item{save_signature}{Logical. Whether to save the signature list as RData.
Default is `FALSE`.}

\item{output_path}{Character. Full path (without extension) for output file.
Required if `save_signature = TRUE`. Default is `NULL`.}
}
\value{
List of signatures.
}
\description{
Converts signature data from a data frame (with signatures as columns and
genes as rows) into a list format suitable for IOBR functions. Handles
NA values appropriately.
}
\examples{
sig_data <- data.frame(
  Signature1 = c("Gene1", "Gene2", "Gene3", NA),
  Signature2 = c("Gene4", "Gene5", NA, NA)
)
format_signatures(sig_data)
}
\author{
Dongqiang Zeng
}
