read_fasta: Read a fasta file and convert it to tabseq

View source: R/IO.R

read_fastaR Documentation

Read a fasta file and convert it to tabseq

Description

Takes the path to a fasta file. Loads the fasta file, and converts it to a tabseq table.

Usage

read_fasta(file, basename_only = T, remove_extension = F, skip = 0)

Arguments

file

The path to a fasta-file

basename_only

If TRUE, the full paths to the files will be truncated in favor of the basename only

skip

Skip this number of lines in the file before reading

Value

A tibble containing the respective records and sequences from the fasta-file, represented in the tabseq format.

Examples


my_sequences = read_tabseq("~/tabseq/examples/random.fasta")


cmkobel/tabseq documentation built on Nov. 18, 2022, 8:19 p.m.