\HeaderA{buildFDMat}{Build fitness defect contingency matrix}{buildFDMat}
\keyword{data}{buildFDMat}
\keyword{manip}{buildFDMat}
\begin{Description}\relax
Function to build a fitness defect contingency matrix where rows
correspond to tested genes and columns to experimental conditions.
\end{Description}
\begin{Usage}
\begin{verbatim}
buildFDMat(data,genenames,condition)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{data}] List of 'significant' fitness defect scores and the
associated genes at different experimental conditions.
\item[\code{condition}] Character vector of the different experimental
conditions tested
\item[\code{genenames}] Character vector of all the tested genes for fitness defect.
\end{ldescription}
\end{Arguments}
\begin{Value}
Contingency matrix of genes that present significant fitness defect in different experimental conditions.
\end{Value}
\begin{Author}\relax
N. LeMeur
\end{Author}
\begin{Examples}
\begin{ExampleCode}
 data(GiaeverPheno)
 data(GiaeverExpCdt)
 data(GiaeverGene)
 fitnessData <- getFDgene(GiaeverPheno,condition=GiaeverExpCdt,cutoff=c(20,100,100),mode="generation",subset=c(5,15,20))
 GiaeverPhenoM <- buildFDMat(data=fitnessData,genenames=GiaeverGene,condition=GiaeverExpCdt[,3])
\end{ExampleCode}
\end{Examples}

