Closed privefl closed 5 years ago
I'm not used to PLINK ped/map files. Apparently, there are only 4 columns in .map
files as compared to 6 in .bim
files, so doing:
download.file("https://raw.githubusercontent.com/gabraham/flashpca/master/HapMap3/data.bim",
destfile = (bim <- tempfile(fileext = ".bim")))
bigreadr::fwrite2(bigreadr::fread2(bim, select = 1:4), col.names = FALSE, sep = "\t",
file = (map <- tempfile(fileext = ".map")))
solved this problem.
To reproduce in R: