dist_tp: Get the genetic distance between two samples .

Description Usage Arguments Value Examples

Description

This function compares the frequencies of alleles found in two samples and calculates the L1 norm or manhattan distance

Usage

1
dist_tp(pairs, snv)

Arguments

pairs

A vector of SPECID. These strings must be found in the SPECID column of the iSNV data frame

snv

A data frame of isnv calls from deepSNV with a SPECID column

Value

the L1 norm

Examples

1
2
3
# There  one shared iSNV here and one fixed difference the rest are the same.
print(small_isnv)
dist_tp(c("HS1595","HS1596"),small_isnv)

jtmccr1/HIVEr documentation built on May 29, 2019, 1:50 a.m.