Learn R Programming

ldblock (version 1.2.2)

downloadPopByChr: download hapmap resource with LD estimates

Description

download hapmap resource with LD estimates

Usage

downloadPopByChr(chrname = "chr1", 
 popname = "CEU", 
 urlTemplate = "http://hapmap.ncbi.nlm.nih.gov/downloads/ld_data/2009-02_phaseIII_r2/ld_%%CHRN%%_%%POPN%%.txt.gz", 
 targfolder = Sys.getenv("LDBLOCK_TXTGZ_DIR"))

Arguments

chrname
UCSC format tag for chromosome
popname
hapmap three letter code for population, e.g. 'CEU'
urlTemplate
pattern for creating URL given chr and pop
targfolder
destination

Value

  • just run for side effect of download.file

Details

delivers HapMap LD data to `targfolder`

Examples

Run this code
downloadPopByChr()

Run the code above in your browser using DataLab