mkGenABELtped: generate a PLINK TPED file for GenABEL

View source: R/mega2genabel.R

mkGenABELtpedR Documentation

generate a PLINK TPED file for GenABEL

Description

Generate a PLINK TPED file from the specified Mega2 SQLite database. The file is named "prefix".tped If the markers argument is.null(), the entire envir$markers set is include; otherwise the markers argument MUST be a subset of the envir$markers data.frame – same columns, but fewer rows.

Usage

mkGenABELtped(prefix, markers = NULL, mapno = 0, envir)

Arguments

prefix

prefix for .tped file name

markers

markers selected to be in output file

mapno

specify which map index to use for genetic distances

envir

'environment' containing SQLite database and other globals

Value

None

Examples

## Not run: 
db = system.file("exdata", "seqsimm.db", package="Mega2R")
ENV = read.Mega2DB(db)
mkGenABELtped("foo", NULL, 0, ENV)

## End(Not run)

Mega2R documentation built on May 29, 2024, 1:14 a.m.