hamming: Compute Hamming Distance

Description Usage Arguments Value

Description

hamming computes the hamming distance between two equal length strings. The hamming distance is the number of different characters between strings. Is called by get_mapped_barcode_indices.

Usage

1
hamming(str1, str2)

Arguments

str1

The first string, should be equal length to str2

str2

The second string, should be equal length to str1

Value

Returns the hamming distance, a scalar integer


Benji-Wagner/SequenceMapper documentation built on June 6, 2019, 1:08 p.m.