fasta2df: Handy wrapper to import fasta files into a data.frame

View source: R/fasta_utils.R

fasta2dfR Documentation

Handy wrapper to import fasta files into a data.frame

Description

Handy wrapper to import fasta files into a data.frame

Usage

fasta2df(path, ID_col = "fasta_header", ...)

Arguments

path

A character indicating a File/path/to/a/fasta/file.fasta

ID_col

A character specifying a column name for the info contained in the fasta header. Default is 'fasta_header'.

...

Additional parameters passed to seqinr::read.fasta like seqtype = "DNA"

Value

A data.frame

Examples

df1 <- fasta2df(path = "/file/to/fasta/species.fasta", ID_col = "Species")

Ni-Ar/niar documentation built on Feb. 3, 2025, 9:25 a.m.