kmerto10: Converts a kmer to it's normal (base 10) integer...

Description Usage Arguments Value Author(s) Examples

Description

Returns the integer in base 10 that corresponds to the kmer

Usage

1
kmerto10(kmer, alph, base = 5)

Arguments

kmer

A character vector of nucleotides to be converted the representation

alph

The alphabet we are using. A dataframe created using build_alphabet()

base

The base of our representation, default is 4. This corresponds to the number of distinct nucleotides we are processing.

Value

An integer corresponding to the kmer

Author(s)

Tom Mayo t.mayo@ed.ac.uk

Examples

1
2
alph <- kmermods::build_alphabet()
kmerto10('GATC', alph, base = 4)

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