\HeaderA{detection.p.val}{Calculate Detection p-values}{detection.p.val}
\keyword{misc}{detection.p.val}
\begin{Description}\relax
Calculate MAS5 detection pvalues and Present Marginal Absent calls. This is an implementation based on the algorithm described in 
Liu, Mei et al. (2002) 'Analysis of high density expression microarrays with signed-rank call algorithms', Bioinformatics 18(12) pp1593-1599.
\end{Description}
\begin{Usage}
\begin{verbatim}
detection.p.val(x, tau = NULL,calls=TRUE,alpha1=NULL,alpha2=NULL,ignore.saturated=TRUE)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{x}] An unnormalised AffyBatch object 
\item[\code{tau}] Errrmmm... tau 
\item[\code{alpha1}] Present-Marginal threshold 
\item[\code{alpha2}] Marginal-Absent threshold 
\item[\code{calls}] if true, generate PMA calls 
\item[\code{ignore.saturated}] if true do the saturation correction described in the paper, with a saturation level of 46000 
\end{ldescription}
\end{Arguments}
\begin{Value}
A list:
\begin{ldescription}
\item[\code{pval}] A matrix of detection p values
\item[\code{call}] A matrix of PMA calls
\end{ldescription}
\end{Value}
\begin{Note}\relax
alpha1 and alpha2 are parameters that change according to the chip
type you are using. If they are not specified, the function uses the
current QC environment to find them, and attempts to set one up if it
is not there. This is done with an internal call to the function
\code{\LinkA{setQCEnvironment}{setQCEnvironment}}. If it is unable to find the
appropriate config files, this will cause an error. See
\code{\LinkA{setQCEnvironment}{setQCEnvironment}} for more details.
\end{Note}
\begin{Author}\relax
Crispin J Miller
\end{Author}
\begin{References}\relax
http://bioinformatics.picr.man.ac.uk/
\end{References}
\begin{SeeAlso}\relax
\code{\LinkA{setQCEnvironment}{setQCEnvironment}}
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
   ## Not run: 
     dpv <- detection.p.val(eset);
   
## End(Not run)
\end{ExampleCode}
\end{Examples}


