read_fasta: Read sequences from a fasta-formatted file

View source: R/read_fasta.R

read_fastaR Documentation

Read sequences from a fasta-formatted file

Description

vroom::vroom_lines is used to quickly read lines of a text file (as a fasta file is one).

Usage

read_fasta(file, rm_comments = T, comment_indicator = c(";", "#"))

Arguments

file

path to a file with fasta-formatted sequences

rm_comments

logical whether to remove comment lines

comment_indicator

first characters of a line which indicate a comment

Value

a named character vector of sequences in file

Examples

## Not run: 
seqs <- igsc::read_fasta(file = "my/fasta/file.fasta")

## End(Not run)

Close-your-eyes/igsc documentation built on Jan. 28, 2024, 10:28 p.m.