nucleotide_distance: Nucleotide distance

nucleotide_distanceR Documentation

Nucleotide distance

Description

compute the number of nucleotide differences between the two sequences assumes the sequences are same length and aligned

Usage

nucleotide_distance(seq_variant1, seq_variant2, proportion = FALSE)

Arguments

seq_variant1

string: coding dna, must be in frame

seq_variant2

string: coding dna, must be in frame

proportion

logical: if true, returns the distance as a proportion (1 = all codons are different, 0 = no differences)

Value

int, number of codon diferences

Examples

nucleotide_distance("ATGCTG", "ATGCTT")

santiago1234/iCodon documentation built on Nov. 2, 2023, 2:03 p.m.