string.diff: String Nucleotide Mismatch Calculation

View source: R/Sero_Placement_Functions.R

string.diffR Documentation

String Nucleotide Mismatch Calculation

Description

This function calculates the number of nucleotide position differences between two equal length character strings. We use this in order to calculate all possible mismatch values between query and references sequences in order to re-sort the reference sequences into the appropriate order.

Usage

string.diff(a, b, exclude = c("n", "N", "?"), ignore.case = TRUE)

Arguments

a

A character string, equal in length to b.

b

A character string, equal in length to a.

exclude

Characters which to exclude from mismatch calculation.

ignore.case

TRUE/FALSE whether to ignore case of characters.

Value

A number value which is the number of nucleotide differences between the two inputted strings.

Examples

string.diff(a = "AAAAACA",b = "AAAAGCA",exclude = c("n","N","?"),ignore.case = TRUE)

Dogrinev/Seroplacer documentation built on Jan. 28, 2024, 11:26 p.m.