knitr::opts_chunk$set(collapse = TRUE, comment = "#>")
library(rutil)
read_fasta()
/write_fasta()
can read/write FASTA format file into/from named character. If you feel frustrate with DNAbin or other stophisticated class, and find youself using read/write_line
and str_extract/replace/...
repeatedly, may be you can consider this package.
system.file('extdata', 'aligned-multiline.fasta', package = 'rutil') |> read_fasta() system.file('extdata', 'aligned-multiline.fasta', package = 'rutil') |> read_fasta(unalign = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.