hmld: import hapmap LD data and create a structure for its...

Description Usage Arguments Value Examples

View source: R/hmld.R

Description

import hapmap LD data and create a structure for its management; generates a sparse matrix representation of pairwise LD statistics and binds metadata on variant name and position

Usage

1
hmld(hmgztxt, poptag, chrom, genome = "hg19", stat = "Dprime")

Arguments

hmgztxt

name of gzipped text file as distributed at hapmap.ncbi.nlm.nih.gov/downloads/ld_data/2009-02_phaseIII_r2/. It will be processed by read.delim.

poptag

heuristic tag identifying population

chrom

heuristic tag for chromosome name

genome

genome tag

stat

statistic to use, "Dprime", "R2", and "LOD" are options

Value

instance of ldstruct class

Examples

1
2
getClass("ldstruct")
# see vignette

ldblock documentation built on Nov. 8, 2020, 5:33 p.m.