powered by
gen_tibble
This function write a VCF from a gen_tibble.
gt_as_vcf(x, file = NULL, chunk_size = NULL, overwrite = FALSE)
the path of the .vcf file
a gen_tibble, with population coded as 'population'
the .vcf file name with a path, or NULL (the default) to use the location of the backing files.
the number of loci processed at a time. Automatically set if left to NULL
logical, should the file be overwritten if it already exists?
example_gt <- load_example_gt("gen_tbl") # Write a vcf file example_gt %>% gt_as_vcf()
Run the code above in your browser using DataLab