Learn R Programming

rCNV (version 1.3.0)

readVCF: Import VCF file

Description

Function to import raw single and multi-sample VCF files. The function required the R-package data.table for faster importing.

Usage

readVCF(vcf.file.path, verbose = FALSE)

Value

Returns a list with vcf table in a data frame, excluding meta data.

Arguments

vcf.file.path

path to the vcf file

verbose

logical. show progress

Author

Piyal Karunarathne

Examples

Run this code
if (FALSE) vcf.file.path <- paste0(path.package("rCNV"), "/example.raw.vcf.gz")
vcf <- readVCF(vcf.file.path)

Run the code above in your browser using DataLab