\HeaderA{getSharedInteraction}{Calculate the number of shared synthetic genetic interactions
between pairs of genes.}{getSharedInteraction}
\keyword{methods}{getSharedInteraction}
\begin{Description}\relax
The number of common synthetic genetic
interacting partners between two genes.
\end{Description}
\begin{Usage}
\begin{verbatim}getSharedInteraction(iMat, mode="query")\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{iMat}] Adjacency matrix reporting genetic Interactions. Each entry has value 0 or 1,
representing positive or negative interaction of corresponding pairs
of row and column, respectively.
\item[\code{mode}] Character vector of value "query" or "target"
\end{ldescription}
\end{Arguments}
\begin{Value}
A numeric vector of the number of common genetic interactions between a pair
of query or target genes.
\end{Value}
\begin{Author}\relax
N. LeMeur
\end{Author}
\begin{SeeAlso}\relax
\code{congruence}
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
intM <- matrix(c(0,1,0,0,1,1,1,0,1,0,0,1,1,0,1,0),
                nrow=4, ncol=4, 
                dimnames=list(c("p1","p2","p3","p4"),
                  c("p1","p3","p5","p7")))

sharedInt <- getSharedInteraction(intM)

\end{ExampleCode}
\end{Examples}

