importPED: Import a Ped/Map filepair.

Description Usage Arguments Details Value Author(s)

View source: R/importPED.R

Description

This function imports a ped/map filepair.

Usage

1
2
  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

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.

Value

A PedMap object

Author(s)

Daniel Fischer


GenomicTools documentation built on July 12, 2017, 1:01 a.m.