write_hapmap: Write a HapMap file from a tidy data frame

View source: R/write_hapmap.R

write_hapmapR Documentation

Write a HapMap file from a tidy data frame

Description

Write a HapMap file from a tidy data frame. Used internally in radiator and might be of interest for users.

Usage

write_hapmap(data, filename = NULL)

Arguments

data

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.

filename

(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.

Author(s)

Thierry Gosselin thierrygosselin@icloud.com


thierrygosselin/radiator documentation built on May 5, 2024, 5:12 a.m.