as_vcf()
converts a SNP matrix to a VCF-like data.frame.
Usage
as_vcf(x, phased = TRUE, chrom = NA_character_, pos = NA_integer_)
write_vcf(x, file)
read_vcf(file)
as_vcf_gt(x, phased = TRUE)
add_pos_id(x)
Arguments
- x
SNP matrix or VCF data.frame.
- phased
A logical to switch separators: |
vs /
.
- chrom
Characters.
- pos
Integers.
- file
A path or connection.