readSet {coRdon} | R Documentation |
Reads a set of fasta files stored in folder
,
or a single fasta file
.
readSet(folder = character(), file = character(), KOs = c(), zipped = FALSE, prepend.filenames = FALSE)
folder |
Path to directory containing .fasta files. |
file |
Path to a single .fasta file, or zipped file
(if latter, specify |
KOs |
An optional character vector of sequence annotations (e.g. KO) contained in the names of fasta files to be selectively read. |
zipped |
Logical, whether |
prepend.filenames |
Logical, whether to prepend filename(s)
to names in |
Returns a DNAStringSet
object.
exampledir <- system.file("extdata", package = "coRdon") files <- list.files(exampledir) readSet(folder = exampledir) readSet(folder = exampledir, KOs = "K02931") pathtofile <- paste(exampledir, files[1], sep = "/") readSet(file = pathtofile)