\HeaderA{getLabels}{Method getLabels to pick gene and sample labels}{getLabels}
\methaliasA{getLabels.default}{getLabels}{getLabels.default}
\methaliasA{getLabels.maigesDE}{getLabels}{getLabels.maigesDE}
\methaliasA{getLabels.maigesDEcluster}{getLabels}{getLabels.maigesDEcluster}
\methaliasA{getLabels.MAList}{getLabels}{getLabels.MAList}
\methaliasA{getLabels.marrayNorm}{getLabels}{getLabels.marrayNorm}
\methaliasA{getLabels.marrayRaw}{getLabels}{getLabels.marrayRaw}
\methaliasA{getLabels.RGList}{getLabels}{getLabels.RGList}
\keyword{array}{getLabels}
\begin{Description}\relax
Generic function \code{\LinkA{getLabels}{getLabels}} to extract labels given an
ID to genes or samples.
\end{Description}
\begin{Usage}
\begin{verbatim}
getLabels(obj, labelID=NULL, sLabel=TRUE)

## Default S3 method:
getLabels(obj=NULL, labelID=NULL, sLabel=TRUE)

## S3 method for class 'maigesDE':
getLabels(obj=NULL, labelID=NULL, sLabel=TRUE)

## S3 method for class 'maigesDEcluster':
getLabels(obj=NULL, labelID=NULL, sLabel=TRUE)

## S3 method for class 'RGList':
getLabels(obj=NULL, labelID=NULL, sLabel=TRUE)

## S3 method for class 'MAList':
getLabels(obj=NULL, labelID=NULL, sLabel=TRUE)

## S3 method for class 'marrayRaw':
getLabels(obj=NULL, labelID=NULL, sLabel=TRUE)

## S3 method for class 'marrayNorm':
getLabels(obj=NULL, labelID=NULL, sLabel=TRUE)

\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{obj}] object to look for labels. Methods defined for classes
\code{\LinkA{maigesRaw}{maigesRaw}}, \code{\LinkA{maiges}{maiges}},
\code{\LinkA{maigesDE}{maigesDE}}, \code{\LinkA{maigesDEcluster}{maigesDEcluster}}, \code{\LinkA{RGList}{RGList}},
\code{\LinkA{MAList}{MAList}}, \code{\LinkA{marrayRaw}{marrayRaw}} and
\code{\LinkA{marrayNorm}{marrayNorm}}.
\item[\code{labelID}] character string with label name to be searched.
\item[\code{sLabel}] logical indicating search in the sample labels, defaults
to TRUE. If FALSE search is done for gene labels.
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
The name of gene labels are done by the names of the slot \code{Glabels}
in objects of classes \code{\LinkA{maigesRaw}{maigesRaw}} or
\code{\LinkA{maiges}{maiges}}, the slot \code{GeneInfo} in objects of classes
\code{\LinkA{maigesDE}{maigesDE}} or \code{\LinkA{maigesDEcluster}{maigesDEcluster}}, the slot
\code{genes} in objects of classes \code{\LinkA{RGList}{RGList}} or
\code{\LinkA{MAList}{MAList}} and the slot \code{maGnames@maInfo} in
objects of classes \code{\LinkA{marrayRaw}{marrayRaw}} or
\code{\LinkA{marrayNorm}{marrayNorm}}.
Equivalently, the name of sample labels are done by the names of the
slots \code{Slabels}, \code{SampleInfo}, \code{targets} and \code{maTargets@maInfo}.
\end{Details}
\begin{Author}\relax
Gustavo H. Esteves <gesteves@vision.ime.usp.br>
\end{Author}
\begin{Examples}
\begin{ExampleCode}
## Loading dataset
data(gastro)

## Getting the 'Tissue' label for samples in maigesRaw class object
getLabels(gastro.raw, "Tissue", sLabel=TRUE)

## Getting the 'Type' label for samples in maigesNorm class object
getLabels(gastro.summ, "Type", sLabel=TRUE)

## Getting the 'GeneName' label for genes (spots) in maigesRaw class object
getLabels(gastro.raw, "GeneName", sLabel=FALSE)

## Getting the 'Annot' label for samples in maigesNorm class object
getLabels(gastro.summ, "Annot", sLabel=FALSE)
\end{ExampleCode}
\end{Examples}

