| getFASTAname {SLGI} | R Documentation |
Extract the name of a sequence from a FASTA object that created by
readFASTA function from Biostrings package.
getFASTAname(Fobj)
Fobj |
is a FASTA object created by readFASTA function
from Biostrings package. |
The function gets the first string between ">" and space the "desc"
element of the Fobj, which is the names of the sequence.
A character string.
Z. Jiang
f <- gzfile(file.path(.path.package("SLGI"), "extdata/orf_trans.fasta.gz"), open = "rt")
library(Biostrings)
yeastF <- readFASTA(f)
sapply(yeastF[1:5],getFASTAname)