getAll {HaploSim}R Documentation

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)

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.

Value

Matrix.

Examples

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

[Package HaploSim version 1.8.4.2 Index]