Learn R Programming

HaploSim (version 1.8.4.2)

getAll: Get alleles

Description

Extract the sequence of snp alleles from a list of objects of class haplotype.

Usage

getAll(hList,what = c("snp","qtl"),removeHomozygotes =
FALSE,translatePos = TRUE)

Value

Matrix.

Arguments

hList

List of objects of class haplotype.

what

Specifies if snp or qtl alleles are extracted from haplotype objects.

removeHomozygotes

If TRUE, homozygote genotypes are removed from the marker data.

translatePos

Translates marker positions to positions in Morgan, else keeps the positions as integers.

Details

Function removes homozygous snp loci before extracting these.

Examples

Run this code
example(AssignQTL)
hh <- getAll(hList = hList)
qq <- getAll(hList = hList,what = 'qtl')

Run the code above in your browser using DataLab