build_alphabet: Sets up the alphabet for indexing nucleotides

Description Usage Arguments Value Author(s) Examples

Description

Returns a dataframe with each row being a nucleotide and an integer

Usage

1
build_alphabet(int = c(0, 1, 2, 3, 4), let = c("G", "A", "T", "C", "M"))

Arguments

int

A vector of the integers to be used, in order. Default settings are recommended.

let

A vector of the letters corresponding to those integers. Default settings are recommended.

Value

Returns a dataframe with each row being a nucleotide and an integer rows denote equivalence betwwen the nucleotide and the integer

Author(s)

Tom Mayo t.mayo@ed.ac.uk

Examples

1
2
alph <- kmermods::build_alphabet()
int <- alph$int[alph$let=="G"]

TomMayo/kmermods documentation built on May 9, 2019, 4:53 p.m.