freqlist: Combines Objects Computed with Function haplofreq() into a...

Description Usage Arguments Details Value Author(s) Examples

Description

The function combines objects computed with function haplofreq into a list with class HaploFreq and adds some attributes.

Usage

1

Arguments

...

R-objects computed with function haplofreq.

Details

The function combines objects computed with function haplofreq into a list with class HaploFreq.

Value

A list with class HaploFreq

Author(s)

Robin Wellmann

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
data(map)
data(Cattle)
dir   <- system.file("extdata", package="optiSel")
files <- paste(dir, "/Chr", 1:2, ".phased", sep="")

Freq <- freqlist(
 haplofreq(files, Cattle, map, thisBreed="Angler", refBreeds="Rotbunt",   minL=2.0),
 haplofreq(files, Cattle, map, thisBreed="Angler", refBreeds="Holstein",  minL=2.0),
 haplofreq(files, Cattle, map, thisBreed="Angler", refBreeds="Fleckvieh", minL=2.0)
  )

#The component names are the reference breeds by default:
names(Freq)

plot(Freq, ID=1, hap=2, refBreed="Rotbunt")

plot(Freq, ID=1, hap=2, refBreed="Holstein", Chr=1)

optiSel documentation built on Jan. 16, 2021, 5:30 p.m.