unpackVCF: Uncompress the .gz archives of the vcf data

Description Usage Arguments Value Warning Author(s) Examples

Description

Recursively searches through the directories and unpack the queried archives.

Usage

1
unpackVCF(pr, year, searchDir, dir = NULL, mc.cores = 1)

Arguments

pr

List or numeric list. Classically the returned object from getPR.

year

Numeric or list (i.e.: c(2000, 2005) or c(19902000, 20002005))

searchDir

character. Root directory of where the archive are stored

dir

character or NULL, if NULL (default), data are unpacked in the directories containing the archive. If a directory is provided, all data are unpacked in that directory.

mc.cores

numeric. For parallel implementation, number of workers.

Value

A list of filenames and potential warning/error messages

Warning

For parallel implementation, see warning section of mclapply

Author(s)

Loic Dutrieux

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
pr <- getPR('Belize')
pr
dir = tempdir()
downloadPR(pr, year=2000, dir=dir)
unpackVCF(pr=pr, year=2000, searchDir=dir, dir=sprintf('%s/%s',dir,'extract/'))
list.files(sprintf('%s/%s',dir,'extract/'))


## End(Not run)

loicdtx/VCF documentation built on May 21, 2019, 7:37 a.m.