powered by
Convert a vcf to a bed file. Currently, it needs to read into R via read.vcf
vcf2bed(x, filename = NULL, header = FALSE, other = NULL, verbose = TRUE)
A bed styled R object or an external file
a vcf object
the name of file if you want it exported
indicate if the bed file has header or not when exported
fields to include apart from chr, start, end.
more words
Daryl Waggott
clinVar.vcf.example <- system.file("extdata/clinvar_dbSNP138_example.vcf.gz", package = "bedr") x <- read.vcf(clinVar.vcf.example) x.bed <- vcf2bed(x)
Run the code above in your browser using DataLab