Write a HapMap file from a tidy data frame. Used internally in radiator and might be of interest for users.
write_hapmap(data, filename = NULL)
A tidy data frame object in the global environment or a tidy data frame in wide or long format in the working directory.
The data requires nucleotide A, C, G, T
information for the genotypes.
How to get a tidy data frame ?
Look into radiator tidy_genomic_data
.
(optional) The file name prefix for the hapmap file
written to the working directory. With default: filename = NULL
,
the date and time is appended to radiator_hapmap
.