fastodf | R Documentation |
Utility function that uses read.fasta to load a FASTA file as a data.frame.
fastodf(path = NULL, seqtype = c("DNA", "AA"), incl_filepath = TRUE)
path |
(character string, mandatory) the path to the input FASTA file. |
seqtype |
(character string, optional) the type of sequence being read in; DNA ("DNA") or amino acid ("AA"). Defaults to "DNA". |
incl_filepath |
(logical, optional) should the path to the file being read
be included in the |
a data.frame with the following columns: seqname
,
seq
, and filename
. If incl_filepath
is set to TRUE, then
filename
will include the full path to the input file. It will be set to
NA
otherwise.
## Not run:
#Input data
inpath <- system.file("extdata", "cdsearchr_testdata.fasta", package = "seqvisr", mustWork = TRUE)
#Reading in some sample amino acid sequences
fastodf(path = inpath, seqtype = "AA")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.