convert10tokmer: Converts a normal (base 10) integer to the equivalent kmer

Description Usage Arguments Value Author(s) Examples

Description

Returns the kmer that corresponds to the integer input

Usage

1
convert10tokmer(number_b10, alph, k, base = 4)

Arguments

number_b10

An integer in base 10, representing 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 integer representation

Author(s)

Tom Mayo t.mayo@ed.ac.uk

Examples

1
2
alph <- kmermods::build_alphabet()
convert10tokmer(112, alph, 4, base = 4)

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