vcf2df {MungeSumstats} | R Documentation |
Function to convert VariantAnnotation CollapsedVCF/ExpandedVCF objects to a data frame
vcf2df(vcf, expand = TRUE)
data.frame version of VCF
https://gist.github.com/zhujack/849b75f5a8305edaeca1001dfb9c3fe9
vcf_file <- system.file("extdata", "ALSvcf.vcf",
package = "MungeSumstats")
vcf <- VariantAnnotation::readVcf(file = vcf_file)
vcf_df <- vcf2df(vcf = vcf)