distSnpPairs: Distance between SNP pairs

View source: R/quantgen.R

distSnpPairsR Documentation

Distance between SNP pairs

Description

For each SNP pair, return the number of "blocks" (i.e. nucleotides) between both SNPs via the distance function.

Usage

distSnpPairs(snp.pairs, snp.coords, nb.cores = 1, verbose = 1)

Arguments

snp.pairs

data.frame with two columns "loc1" and "loc2"

snp.coords

data.frame with SNP identifiers as row names, and two columns, "chr" and "coord" (or "pos")

nb.cores

the number of cores to use

verbose

verbosity level (0/1)

Value

vector

Author(s)

Timothee Flutre

See Also

estimLd, distConsecutiveSnps


timflutre/rutilstimflutre documentation built on Feb. 7, 2024, 8:17 a.m.