distConsecutiveSnps | R Documentation |
For each pair of consecutive SNPs, return the number of "blocks" (i.e. nucleotides) between both SNPs (to be coherent with distSnpPairs
).
distConsecutiveSnps(snp.coords, only.chr = NULL, nb.cores = 1)
snp.coords |
data.frame with SNP identifiers as row names, and with two columns "chr" and "coord" or "pos" |
only.chr |
identifier of a given chromosome |
nb.cores |
the number of cores to use |
list with one component per chromosome
Timothee Flutre
estimLd
## Not run: ## make fake data
snp.coords <- data.frame(chr=c("chr1","chr1","chr1","chr2"),
pos=c(150, 131, 171, 17))
rownames(snp.coords) <- paste0("snp", 1:nrow(snp.coords))
distConsecutiveSnps(snp.coords)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.