fasta2DT | R Documentation |
Reads a FASTA file and converts to a data table.
fasta2DT(fastaFile)
fastaFile |
Character: The path to the input FASTA file. |
A data table with the columns $LOCUS
(the locus name) and $SEQ
(the sequence).
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.