Download a remote VCF file and its index file
download_vcf( vcf_url, vcf_dir = tempdir(), download_method = "download.file", force_new = FALSE, quiet = TRUE, nThread = parallel::detectCores() - 1 )
| vcf_url | Remote URL to VCF file.  | 
    
|---|---|
| vcf_dir | Where to download VCF file.  | 
    
| download_method | 
 or
  | 
    
| force_new | Overwrite a previously downloaded VCF with the same path name.  | 
    
| quiet | Run quietly.  | 
    
| nThread | Number of threads to parallelize over.  | 
    
List containing the paths to the downloaded VCF and its index file.
vcf_url <- "https://gwas.mrcieu.ac.uk/files/ieu-a-298/ieu-a-298.vcf.gz" out_paths <- download_vcf(vcf_url = vcf_url)#>#>#>#>#>#>