Learn R Programming

GenomicTools (version 0.2.6)

importPED: Import a Ped/Map filepair.

Description

This function imports a ped/map filepair.

Usage

importPED(file, n, snps, which, split = "\t| +", sep = ".",
            na.strings = "0", lex.order = FALSE, verbose=TRUE)

Arguments

file

The ped filename.

n

Number of observations to import.

snps

The map file name.

which

A set of SNPs to import.

split

Column separator in ped/map filepair.

sep

Allele separator.

na.strings

Label for missing data.

lex.order

Logical, shall the data be ordered

verbose

Logical, gives verbose feedback

Value

A PedMap object

Details

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.