\HeaderA{translateID}{Finds identifiers of a given object}{translateID}
\keyword{models}{translateID}
\begin{Description}\relax
see \code{\LinkA{translateID-methods}{translateID.Rdash.methods}}
\end{Description}
\begin{Usage}
\begin{verbatim}
translateID(r, ...)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{r}] An object of psimi25Graph, psimi25Hypergraph,
psimi25Interactor or a list of \code{psimi25Interactor}
\item[\code{...}] the symbol of the ID to translate
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
see \code{\LinkA{translateID-methods}{translateID.Rdash.methods}}
\end{Details}
\begin{Value}
The object of the same class as the parameter
\end{Value}
\begin{Author}\relax
Jitao David Zhang <j.zhang@dkfz.de>
\end{Author}
\begin{SeeAlso}\relax
see \code{\LinkA{translateID-methods}{translateID.Rdash.methods}}
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
xmlDir <- system.file("/extdata/psi25files",package="RpsiXML")

hprdxml <- file.path(xmlDir, "hprd_200709_test.xml")
hprdSet <- parsePsimi25Interaction(hprdxml, HPRD.PSIMI25)

it <- interactors(hprdSet)[[1]]
translateID(it, "uniprot")
translateID(it, "entrezgene")

##Not run
intactxml <- file.path(xmlDir, "intact_2008_test.xml")
intactSet <- parsePsimi25Interaction(intactxml, INTACT.PSIMI25)
intactGraph <- psimi25XML2Graph(intactxml, INTACT.PSIMI25)
intactGraphNew <- translateID(intactGraph,"sourceId")## translate the nodes of the graph to another identifier
                              
intactSetInteractors <- interactors(intactSet)
intactXrefExample <- xref(intactSetInteractors[[1]])
translateID(intactSetInteractors,"intact")
translateID(intactSetInteractors[[1]],"intact")

intactComplexxml <- file.path(xmlDir,"intact_complexSample.xml")
intactComplexSet <- parsePsimi25Complex(intactComplexxml, INTACT.PSIMI25)
intactComplexGraph <- psimi25XML2Graph(intactComplexxml, INTACT.PSIMI25, type="complex")
translateID(intactComplexGraph, "intact", "P49432")
translateID(intactComplexGraph, "intact", NA)
## End(Not run)

\end{ExampleCode}
\end{Examples}

