getCMfromBP: Converts centimorgan position to base-pair. Return a list of...

Description Usage Arguments Examples

View source: R/recombination.R

Description

Converts centimorgan position to base-pair. Return a list of centimorgan positions that correspond to the bp vector (in basepairs).

Usage

1

Arguments

bp

vector of base-pair positions

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
library("sim1000G")

examples_dir = system.file("examples", package = "sim1000G")
vcf_file = sprintf("%s/region.vcf.gz", examples_dir)
vcf = readVCF( vcf_file, maxNumberOfVariants = 100,
  min_maf = 0.12)

# For realistic data use the function downloadGeneticMap
generateUniformGeneticMap()
getCMfromBP(seq(1e6,100e6,by=1e6))

adimitromanolakis/sim1000G documentation built on Sept. 29, 2021, 3:44 a.m.