mismatch_kmers: Counts the number of mismatches between two kmers, when...

Description Usage Arguments Value Author(s)

Description

Returns a count of the number of mismatches between two kmers (of equal length), which are represented in integer format. For instance the two kmers AAA and ATA have one mismatch. This function bypasses the conversion to strings.

Usage

1
mismatch_kmers(kmer_1, kmer_2, k, base = 4L)

Arguments

kmer_1

An integer in base 10, representing a kmer

kmer_2

An integer in base 10, representing a kmer

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 count of the mismatches

Author(s)

Tom Mayo t.mayo@ed.ac.uk


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