This function imports a ped/map filepair.
importPED(file, n, snps, which, split = "\t| +", sep = ".",
na.strings = "0", lex.order = FALSE, verbose=TRUE)
The ped filename.
Number of observations to import.
The map file name.
A set of SNPs to import.
Column separator in ped/map filepair.
Allele separator.
Label for missing data.
Logical, shall the data be ordered
Logical, gives verbose feedback
A PedMap
object
This function is to a large extend taken from snpStat::read.pedmap
, but here is internally the data.table::fread
function used
that resulted in much faster file processing.