Created
March 28, 2017 22:02
-
-
Save sephraim/3d352ba4893df07a2c35d8f227ab17ac to your computer and use it in GitHub Desktop.
Import VCF file into data frame in R
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(vcfR) | |
# Import VCF | |
my.vcf <- read.vcfR('my.vcf.gz') | |
# Combine CHROM thru FILTER cols + INFO cols | |
my.vcf.df <- cbind(as.data.frame(getFIX(my.vcf)), INFO2df(my.vcf)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This did not work for me
Error in .setupMethodsTables(fdef, initialize = TRUE) :
no slot of name "group" for this object of class "derivedDefaultMethod"