View source: R/modify-positions.R
download_genetic_map | R Documentation |
This function uses linear interpolation, whereas snp_asGeneticPos()
uses
nearest neighbors.
download_genetic_map(
type = c("hg19_OMNI", "hg19_hapmap", "hg38_price"),
dir,
ncores = 1
)
snp_asGeneticPos2(infos.chr, infos.pos, genetic_map)
type |
Which genetic map to download. |
dir |
Directory where to download and decompress files. |
ncores |
Number of cores used. Default doesn't use parallelism.
You may use |
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. |
genetic_map |
A data frame with 3 columns: |
The hg19 genetic maps are downloaded from
https://github.com/joepickrell/1000-genomes-genetic-maps/
while the hg38 one is downloaded from
https://alkesgroup.broadinstitute.org/Eagle/downloads/tables/
.
A data frame with 3 columns: chr
, pos
, and pos_cM
.
The new vector of genetic positions.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.