View source: R/genbankReader.R
parseGenBank | R Documentation |
Parse genbank content and return a low-level list object containing each component of the file.
parseGenBank(file, text = readLines(file), partial = NA, verbose = FALSE,
ret.anno = TRUE, ret.seq = TRUE)
file |
character. The file to be parsed. Ignored if |
text |
character. The text to be parsed. |
partial |
logical. If TRUE, features with non-exact boundaries will
be included. Otherwise, non-exact features are excluded, with a warning
if |
verbose |
logical. Should informative messages be printed to the console as the file is being processed. |
ret.anno |
logical. Should the annotations in the GenBank file be
parsed and included in the returned object. (Defaults to |
ret.seq |
logical. Should the origin sequence (if present) in the
GenBank file be included in the returned object. (Defaults to |
if ret.anno
is TRUE
, a list containing the parsed
contents of the file, suitable for passing to make_gbrecord
. If
ret.anno
is FALSE
, a DNAStringSet
object containing
the origin sequence.
This is a low level function not intended for common end-user use.
In nearly all cases, end-users (and most developers) should call
readGenBank
or create a GenBankFile
object and call
import
instead.
prsd = parseGenBank(system.file("sample.gbk", package="genbankr"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.