-
-
Save edawson/f2337d364b619c69d81149509079b2a5 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