base2kmer: Converts a base representation (base 4 default) to the kmer

Description Usage Arguments Value Author(s)

Description

Returns the kmer denoted by the integer

Usage

1
base2kmer(number, alph, k, base = 4)

Arguments

number

A vector of integers representing a number in base 4 (default) which correspond to a kmer.

alph

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

k

The length of kmers we are assessing. Used as a check.

base

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

Value

A kmer, corresponding to the number in base 4(default)

Author(s)

Tom Mayo [email protected]


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