Learn R Programming

Mega2R (version 1.0.2)

mkGenABELtped: 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

Run this code
# NOT RUN {
db = system.file("exdata", "seqsimm.db", package="Mega2R")
ENV = read.Mega2DB(db)
mkGenABELtped("foo", NULL, 0, ENV)
# }

Run the code above in your browser using DataLab