InputVcf {customProDB} | R Documentation |
The InputVcf() function generates a list of GRanges object from a single VCF file.
InputVcf(vcfFile, ...)
vcfFile |
a character contains the path and name of a VCF file |
... |
additional arguments |
Read all fields in a VCF file into GRanges object.
a list of GRanges object containing a representation of data from the VCF file
Xiaojing Wang
## multiple samples in one VCF file vcffile <- system.file("extdata", "test_mul.vcf", package="customProDB") vcfs <- InputVcf(vcffile) length(vcfs) ## single sample vcffile <- system.file("extdata/vcfs", "test1.vcf", package="customProDB") vcf <- InputVcf(vcffile) length(vcf)