mkGenABELtped: generate a PLINK TPED file for GenABEL

Description Usage Arguments Value Examples

View source: R/mega2genabel.R

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

1
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

1
2
3
4
5
6
## 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 Dec. 11, 2021, 9:12 a.m.