\HeaderA{genotypeCoding}{Get genotype coding}{genotypeCoding}
\methaliasA{genotypeCoding.default}{genotypeCoding}{genotypeCoding.default}
\keyword{misc}{genotypeCoding}
\begin{Description}\relax
Get genotype coding.
\end{Description}
\begin{Usage}
\begin{verbatim}
genotypeCoding(geneSetObj, method = "A")
genotypeCoding.default(pedObj, method = "A")
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{geneSetObj}] a geneSet object
\item[\code{pedObj}] a pedigreee object
\item[\code{method}] genotype coding method. The default is additive coding (\code{A}). The other two available coding methods are recessive coding (\code{R}) and dominant coding (\code{D}), respectively.
\end{ldescription}
\end{Arguments}
\begin{Value}
a matrix with \code{nSubjects} rows and \code{nMarkers} columns.
Each column contains coded genotype.
\end{Value}
\begin{Author}\relax
Gregory Warnes <warnes@bst.rochester.edu>
Ross Lazarus <ross.lazarus@channing.harvard.edu>
Weiliang Qiu <stwxq@channing.harvard.edu>
\end{Author}
\begin{Examples}
\begin{ExampleCode}
  data(CAMP)
  res<-genotypeCoding(CAMP, method="A")
  print(res[1:10,])
\end{ExampleCode}
\end{Examples}

