fasta2DT: FASTA file to data table

View source: R/fasta2DT.R

fasta2DTR Documentation

FASTA file to data table

Description

Reads a FASTA file and converts to a data table.

Usage

fasta2DT(fastaFile)

Arguments

fastaFile

Character: The path to the input FASTA file.

Value

A data table with the columns $LOCUS (the locus name) and $SEQ (the sequence).

Examples

# Create a link to raw external datasets in genomalicious
genomaliciousExtData <- paste0(find.package('genomalicious'), '/extdata')

# Path to the demo FASTA file
fasta <- paste0(genomaliciousExtData, '/data_COI.fasta')

# The FASTA file, printed as lines
readLines(fasta)

# Import as data table
fasta2DT(fasta)


j-a-thia/genomalicious documentation built on Oct. 19, 2024, 7:51 p.m.