inst/doc/baseq-vignette.R

## ----include = FALSE----------------------------------------------------------
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)

## ----setup--------------------------------------------------------------------
library(baseq)

## ----cleaning-----------------------------------------------------------------
dna_seq <- "ATGCnNryMK"
clean_seq(dna_seq)

rna_seq <- "AUGGCuuNnRYMK"
clean_seq(rna_seq)

## ----translation--------------------------------------------------------------
dna_seq <- "ATCGAGCTAGCTAGCTAGCTAGCT"
proteins <- dna_to_protein(dna_seq)
proteins[["Frame F1"]]

## ----gc-----------------------------------------------------------------------
dna_seq <- "ATGCATGC"
gc_content(dna_seq)

## ----files, eval = FALSE------------------------------------------------------
# # Read a FASTA file into a dataframe
# # df <- read_seq("path/to/file.fasta")
# 
# # Write a dataframe to a FASTA file
# # write_seq(df, "output.fasta")

Try the baseq package in your browser

Any scripts or data that you put into this service are public.

baseq documentation built on March 12, 2026, 1:07 a.m.