dist_dna: Compute pairwise genetic distances

Description Usage Arguments Author(s) Examples

View source: R/dist_dna.R

Description

This function Compute pairwise genetic distances from vectors of mutations as generated in the simulations. The computed distance is the Hamming distance, i.e. the number of nucleotide differences between sequences.

Usage

1

Arguments

x

A list of integer vectors, each of which represents the genome of a pathogen as positions of mutations.

Author(s)

Thibaut Jombart thibautjombart@gmail.com

Examples

1
2
dist_dna(list(integer(0), integer(0), 1, 1))
dist_dna(list(integer(0), integer(0), 1, 1, 1:2, 1:3, 1:4, 11:20))

thibautjombart/quicksim documentation built on May 5, 2019, 2:42 a.m.