\HeaderA{getFASTAname}{Obtain sequence name from FASTA object}{getFASTAname}
\keyword{methods}{getFASTAname}
\begin{Description}\relax
Extract the name of a sequence from a FASTA object that created by
\code{readFASTA} function from \code{Biostrings} package.
\end{Description}
\begin{Usage}
\begin{verbatim}
getFASTAname(Fobj)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{Fobj}] is a FASTA object created by \code{\LinkA{readFASTA}{readFASTA}} function
from \code{\LinkA{Biostrings}{Biostrings}} package.
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
The function gets the first string between "\textgreater{}" and space the "desc"
element of the \code{Fobj}, which is the names of the sequence.
\end{Details}
\begin{Value}
A character string.
\end{Value}
\begin{Author}\relax
Z. Jiang
\end{Author}
\begin{SeeAlso}\relax
\code{\LinkA{readFASTA}{readFASTA}}
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
f <- gzfile(file.path(.path.package("SLGI"), "extdata/orf_trans.fasta.gz"), open = "rt")
library(Biostrings)
yeastF <- readFASTA(f)
sapply(yeastF[1:5],getFASTAname)
\end{ExampleCode}
\end{Examples}

