% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/extract_sc_data.R
\name{extract_sc_data}
\alias{extract_sc_data}
\title{Extract Data Frame from Seurat Object}
\usage{
extract_sc_data(
  sce,
  vars = NULL,
  assay,
  slot = "scale.data",
  combine_meta_data = TRUE
)
}
\arguments{
\item{sce}{Seurat object.}

\item{vars}{Character vector of feature names to extract. If `NULL`, all
features are extracted.}

\item{assay}{Character vector specifying assay(s) to pull data from.}

\item{slot}{Character string specifying the assay data slot. Default is
`"scale.data"`.}

\item{combine_meta_data}{Logical indicating whether to combine metadata
with the extracted data frame. Default is `TRUE`.}
}
\value{
Data frame with cells as rows and features as columns.
}
\description{
Extracts and combines a data frame with cells as rows and features as columns
from Seurat assay data. Supports multiple assays and optional metadata
integration.
}
\examples{
if (requireNamespace("Seurat", quietly = TRUE)) {
  pbmc <- SeuratObject::pbmc_small
  vars <- c("PPBP", "IGLL5", "VDAC3", "CD1C", "AKR1C3")
  eset <- extract_sc_data(sce = pbmc, vars = vars, assay = "RNA")
}
}
\author{
Dongqiang Zeng
}
