View source: R/modify-positions.R
| snp_asGeneticPos | R Documentation | 
Use genetic maps available at https://github.com/joepickrell/1000-genomes-genetic-maps/ to interpolate physical positions (in bp) to genetic positions (in cM).
snp_asGeneticPos(
  infos.chr,
  infos.pos,
  dir = tempdir(),
  ncores = 1,
  rsid = NULL,
  type = c("OMNI", "hapmap")
)
| infos.chr | Vector of integers specifying each SNP's chromosome. | 
| infos.pos | Vector of integers specifying the physical position
on a chromosome (in base pairs) of each SNP. | 
| dir | Directory where to download and decompress files.
Default is  | 
| ncores | Number of cores used. Default doesn't use parallelism.
You may use  | 
| rsid | If providing rsIDs, the matching is performed using those (instead of positions) and variants not matched are interpolated using spline interpolation of variants that have been matched. | 
| type | Whether to use the genetic maps interpolated from "OMNI" (the default), or from "hapmap". | 
The new vector of genetic positions.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.