Description Usage Arguments Value Examples
Read a FASTA file into a tidy dataframe. Wrapper around seqinr::read.fasta
1 | read_fasta(fasta_filename, annot = FALSE)
|
fasta_filename |
FASTA file from which the sequences will be extracted. |
annot |
If TRUE, extract sequence ID annotation into its own column |
... |
Unused extra arguments |
A tidy
data.frame with one column for ID and one column for sequence.
ID |
Sequence header from FASTA '>ID' |
Sequence |
Corresponding sequence, any bioalphabet (RNA/DNA/etc) |
Annot |
Full annotated FASTA header '>ID info|info|info' |
1 2 3 4 5 6 7 | test.fasta is a FASTA formatted file for ex:
> GENENAME1
atgctgacgta
agctacagtat
cagctactaag
read_fasta("test.fasta")
read_fasta("test.fasta", annot=TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.