vcf2df {MungeSumstats}R Documentation

VCF to DF

Description

Function to convert VariantAnnotation CollapsedVCF/ExpandedVCF objects to a data frame

Usage

vcf2df(vcf, expand = TRUE)

Value

data.frame version of VCF

Source

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)


[Package MungeSumstats version 1.2.4 Index]