\HeaderA{domainDist}{Finds the number of gene sets for each shared domain}{domainDist}
\keyword{methods}{domainDist}
\begin{Description}\relax
\code{domainDist} takes a list of shared domains,
and compute for each distinct domain how many gene sets share it.
\end{Description}
\begin{Usage}
\begin{verbatim}domainDist(domainL)\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{domainL}] Each element of the list is a vector of functional
domains.
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
For each domain that appears in the domain list, \code{domainDist}
counts the number of elements that have this domain.
\end{Details}
\begin{Value}
Returns a frequency table with descending order.
\end{Value}
\begin{Author}\relax
Z. Jiang
\end{Author}
\begin{SeeAlso}\relax
\code{\LinkA{getSharedDomains}{getSharedDomains}}, \code{\LinkA{sharedBy}{sharedBy}}
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
data(AtongFnDomain)
domainDist(AtongFnDomain$SharedPfam[1:20])
\end{ExampleCode}
\end{Examples}

