"import"(con, format, text, type = c("DNA", "RNA", "AA", "B"), ...)
"export"(object, con, format, ...)
"export"(object, con, format, ...)FastaFile object. URLs and connections
are not supported. If con is not a FastaFile, either
the file extension or the format argument needs to be
fasta. Compressed files (gz, bz2 and
xz) are handled transparently.
XStringSet or
something coercible to a DNAStringSet, like a character vector.
con is missing, a character vector to use as the
input
writeXStringSet (export)
or the readDNAStringSet family of
functions (import).
FastaFile class extends RTLFile and is a
formal represention of a resource in the Fasta format.
To cast a path, URL or connection to a FastaFile, pass it to
the FastaFile constructor.writeXStringSet (export) and the
readDNAStringSet family of functions
(import).See export-methods in the BSgenome package for exporting a BSgenome object as a FASTA file.