calc_mw: calculate molecular weight

Description Usage Arguments Examples

Description

calculate molecular weight

Calculate double strand DNA molecular weight

Calculate single strand RNA molecular weight

Calculate peptide molecular weight

Usage

1
2
3
4
5
calc_mw_dsDNA(dstrobj)

calc_mw_ssRNA(dstrobj)

calc_mw_peptide(pstrobj)

Arguments

dstrobj

dstr class object or character vector

pstrobj

pstr class object or character vector

Examples

1
2
3
4
5
6
7
(test <- dstr_rand_seq(3, 20, seed = 1))
calc_mw_dsDNA(test)
calc_mw_ssRNA(test)

(res <- pstr_rand_seq(3, 100, seed = 1)%>% calc_mw_peptide())
barplot(aa_percent ~ name + aa, legend.text = unique(res$name),
  beside = TRUE, data = res)

t-arae/bstringr documentation built on March 18, 2021, 3:08 a.m.