This function write a VCF from a gen_tibble
.
Arguments
- x
a
gen_tibble
, with population coded as 'population'- file
the .vcf file name with a path, or NULL (the default) to use the location of the backing files.
- chunk_size
the number of loci processed at a time. Automatically set if left to NULL
- overwrite
logical, should the file be overwritten if it already exists?
Examples
example_gt <- example_gt("gen_tbl")
# Write a vcf file
example_gt %>% gt_as_vcf()
#> [1] "/tmp/RtmpyN1xne/file22a257eab886.vcf"