readDatabase: Reads database of allele frequencies

Description Usage Arguments Details Examples

View source: R/readDatabase.R

Description

Reads database of allele frequencies

Usage

1
readDatabase(filename)

Arguments

character

filename

Details

An tab separated asci file is read and converted to 'ped' format. The first line gives the name of of the marker, the next lines the allele name and frequency. The markers are separated by blank lines.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
library(pedtools)
db = readDatabase("markerDB.txt")
# Attach to a pedigree
x = setMarkers(singleton(1), locusAttributes = db)
# Specify X chromosome
chrom(x, 1:length(db)) = "X"
x

## End(Not run)

thoree/inbred documentation built on March 28, 2021, 7:42 p.m.