knitr::opts_chunk$set(collapse = TRUE, comment = "#>")
library(rutil)

Innovation

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.

Usage

system.file('extdata', 'aligned-multiline.fasta', package = 'rutil') |>
    read_fasta()

system.file('extdata', 'aligned-multiline.fasta', package = 'rutil') |>
    read_fasta(unalign = TRUE)


dongzhuoer/biozhuoer documentation built on May 15, 2022, 6:38 a.m.