tidy_hwdata: Tidy up raw genptype data from PLINK (internal function)

Description Usage Examples

View source: R/hw.R

Description

For extracting the genotype counts from the original raw data from PLINK.

Usage

1

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: 
 # this is how tidy versions were created (run in package dir)
 files <- sapply(RAWFILES, eve102_data, include_raw=TRUE)
 for (i in seq_along(files)) {
   outfile <- file.path("inst", "extdata", paste0(names(files)[i], ".txt.gz"))
   outcon <- gzfile(outfile, "w")
   write.table(tidy_hwdata(file.path("inst", "extdata", basename(files[i]))), 
               file=outcon, sep="\t", quote=FALSE, row.names=FALSE)
   close(outcon)
 }

## End(Not run)

vsbuffalo/eve102 documentation built on May 3, 2019, 7:07 p.m.