Description Usage Arguments Value Examples
Converts a SeqFastadna object into a tidy dataframe.
1 | fasta_tidier(fasta_seqinr_object, annot = FALSE)
|
fasta_seqinr_object |
FASTA file read by seqinr::read.fasta 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 8 | seqinr::read.fasta function reads a FASTA file (format below) and returns a SeqFastadna object
> GENENAME1
atgctgacgta
agctacagtat
cagctactaag
seqinr_fasta_object <- seqinr::read.fasta("test.fasta")
fasta_tidier(seqinr_fasta_object)
fasta_tidier(seqinr_fasta_object, annot=TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.