Learn R Programming

rehh (version 3.2.2)

haplohh-class: Class "haplohh"

Description

An object of this class contains the information needed for computation of EHH based statistics.

Usage

# S4 method for haplohh
chr.name(x)

# S4 method for haplohh positions(x)

# S4 method for haplohh haplo(x)

# S4 method for haplohh nmrk(x)

# S4 method for haplohh mrk.names(x)

# S4 method for haplohh nhap(x)

# S4 method for haplohh hap.names(x)

Arguments

x

an object of this class.

Slots

chr.name

name of the chromosome/scaffold to which the markers belong.

positions

vector of type numeric containing the marker positions within the chromosome.

haplo

matrix of type integer containing haplotypes in rows and markers in columns.

Details

This class is the basis for all calculations done by this package. Note that the matrix in slot haplo has to be of type integer, not numeric. Objects built by versions of rehh up to 2.0.4 coded this matrix as numeric and used a different coding scheme. They can be converted e.g. by haplohh <- update_haplohh(old_haplohh) in order be used with the present version.

See Also

data2haplohh, update_haplohh

Examples

Run this code
# NOT RUN {
showClass("haplohh")
# }

Run the code above in your browser using DataLab