read_fasta: Parse a fasta file into a named character vector.

read_fastaR Documentation

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)

Arguments

file

A file/URL 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.

Value

A named character vector in which names are the fasta headers and values are the sequences.


cmmr/rbiom documentation built on April 28, 2024, 6:38 a.m.