% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Zscore.R
\name{Zscore}
\alias{Zscore}
\title{Z-score normalization for high-throughput screening data.}
\usage{
Zscore(countMat, negGene)
}
\arguments{
\item{countMat}{A matrix of raw count data where rows represent genes/siRNAs and columns represent readouts/conditions. The matrix should have row names corresponding to gene/siRNA identifiers.}

\item{negGene}{A data frame or matrix containing negative control gene/siRNA identifiers. The first column should contain the gene/siRNA names that match the row names in countMat.}
}
\value{
A Z-score normalized matrix with the same dimensions as the input countMat (excluding the Type column added during processing). Each value represents how many standard deviations away from the negative control mean that particular gene/readout combination is.
}
\description{
This function performs Z-score normalization on high-throughput screening data using negative control samples as reference. The Z-score transformation standardizes the data by centering and scaling each column (readout) based on the mean and standard deviation of negative control samples.
}
\details{
The function performs Z-score normalization as follows:
\enumerate{
  \item Extracts negative control samples from the input matrix using the identifiers provided in negGene
  \item For each column (readout), calculates the mean and standard deviation using only the negative control samples
  \item Applies Z-score transformation: \eqn{Z_{ij} = (X_{ij} - \mu_{j}) / \sigma_{j}}
  where \eqn{X_{ij}} is the raw value for gene \eqn{i} in readout \eqn{j}, \eqn{\mu_{j}} is the mean of negative controls in readout \eqn{j}, and \eqn{\sigma_{j}} is the standard deviation of negative controls in readout \eqn{j}
}

This normalization allows for comparison across different readouts and identifies genes/siRNAs that show significant deviation from the negative control distribution.
}
\examples{
data(countMat)
data(negGene)
ZscoreVal <- Zscore(countMat, negGene)
ZscoreVal[1:5, 1:5]

}
\author{
Yajing Hao, Shuyang Zhang, Junhui Li, Guofeng Zhao, Xiang-Dong Fu
}
\keyword{Z-score}
\keyword{ZetaSuite}
\keyword{normalization}
