read.fasta: Parse a fasta file into a named character vector.
Description
Parse a fasta file into a named character vector.
Usage
read.fasta(file, ids = NULL)
Value
A named character vector in which names are the fasta headers and values are the sequences.
Arguments
- file
A file with fasta-formatted sequences. Can optionally be compressed with gzip, bzip2, xz, or lzma.
- ids
Character vector of IDs to retrieve. The default, NULL
, will retrieve everything.