makeCombinations: Create a vector of the default combinations of A, C, G and T

View source: R/strings.R

makeCombinationsR Documentation

Create a vector of the default combinations of A, C, G and T

Description

Create a vector of the default combinations of A, C, G and T

Usage

makeCombinations(what = c("tetramers", "tetramers-all")[1], sorted = TRUE,
  as.DNAStringSet = FALSE, lowercase = FALSE)

Arguments

what

character, the name of the combinations, "tetramers" means A,C,G, and T while "tetramers-all" adds "N" to the tetramers list.

sorted

logical, sort into lexical order (AAAA, AAAC, ..., TTTT)

as.DNAStringSet

logical, if TRUE then return a DNAStringSet otherwise a vector

lowercase

logical, if TRUE then use lower case letters

Value

a character vector or DNStringSet


BigelowLab/tetramers documentation built on April 3, 2022, 8:22 p.m.