% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/output_sig.R
\name{output_sig}
\alias{output_sig}
\title{Save Signature Data to File}
\usage{
output_sig(signatures, format = c("csv", "rdata"), file.name)
}
\arguments{
\item{signatures}{Signature data: a list or single string of signatures.}

\item{format}{Character. Output format: "csv" or "rdata". Default is "csv".}

\item{file.name}{Character. Name of the output file without extension.}
}
\value{
Data frame containing the processed signature data, also saved to
  the specified file.
}
\description{
Saves signature data to a specified file format, supporting CSV or RData.
Handles single signatures or lists of signatures, converting them to a
data frame for storage.
}
\examples{
# Simulate signatures
set.seed(123)
sim_sigs <- list(
  Signature1 = paste0("Gene", 1:50),
  Signature2 = paste0("Gene", 51:100),
  Signature3 = paste0("Gene", 101:150)
)
tmpfile <- tempfile(fileext = ".csv")
output_sig(
  signatures = sim_sigs, format = "csv",
  file.name = tools::file_path_sans_ext(tmpfile)
)
}
\author{
Dongqiang Zeng
}
