% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Cepo.R
\name{Cepo}
\alias{Cepo}
\title{Computing Cepo cell identity genes}
\usage{
Cepo(
  exprsMat,
  cellTypes,
  minCells = 20,
  minCelltype = 3,
  exprsPct = NULL,
  prefilter_sd = NULL,
  prefilter_pzero = NULL,
  logfc = NULL,
  computePvalue = NULL,
  computeFastPvalue = TRUE,
  variability = "CV",
  method = "weightedMean",
  weight = c(0.5, 0.5),
  workers = 1L,
  block = NULL,
  ...
)
}
\arguments{
\item{exprsMat}{Expression matrix where columns denote cells and rows
denote genes}

\item{cellTypes}{Vector of cell type labels}

\item{minCells}{Integer indicating the minimum number of cells required
within a cell type}

\item{minCelltype}{Integer indicating the minimum number of cell types
required in each batch}

\item{exprsPct}{Percentage of lowly expressed genes to remove.
Default to NULL to not remove any genes.}

\item{prefilter_sd}{Numeric value indicating threshold relating to standard
deviation of genes. Used with prefilter_zeros.}

\item{logfc}{Numeric value indicating the threshold of log fold-change
to use to filter genes.}

\item{computePvalue}{Whether to compute p-values using bootstrap test.
Default to NULL to not make computations.
Set this to an integer to set the number of bootstraps needed
(recommend to be at least 100).}

\item{computeFastPvalue}{Logical vector indicating whether to perform a
faster version of p-value calculation. Set to TRUE by default.}

\item{variability}{A character indicating the stability measure
(CV, IQR, MAD, SD). Default is set to CV.}

\item{method}{Character indicating the method for integration
the two stability measures. By default this is set to
'weightedMean' with equal weights.}

\item{weight}{Vector of two values indicating the weights for each stability
measure. By default this value is c(0.5, 0.5).}

\item{workers}{Number of cores to use. Default to 1, which invokes
\code{BiocParallel::SerialParam}.
For workers greater than 1, see the \code{workers} argument in
\code{BiocParallel::MulticoreParam} and \code{BiocParallel::SnowParam}.}

\item{block}{Vector of batch labels}

\item{...}{Additional arguments passed to \code{BiocParallel::MulticoreParam}
and \code{BiocParallel::SnowParam}.}

\item{prefilter_pzeros}{Numeric value indicating threshold relating to the
percentage of zero expression of genes. Used with prefilter_sd.}
}
\value{
Returns a list of key genes.
}
\description{
ExprsMat accepts various matrix objects,
including DelayedArray and HDF5Array for
out-of-memory computations. See vignette.
}
\examples{
library(SingleCellExperiment)
data('cellbench', package = 'Cepo')
cellbench
cepoOutput <- Cepo(logcounts(cellbench), cellbench$celltype)
cepoOutput

}
