haplohh-class {rehh} | R Documentation |
An object of this class contains the information needed for computation of EHH based statistics.
## S4 method for signature 'haplohh'
chr.name(x)
## S4 method for signature 'haplohh'
positions(x)
## S4 method for signature 'haplohh'
haplo(x)
## S4 method for signature 'haplohh'
nmrk(x)
## S4 method for signature 'haplohh'
mrk.names(x)
## S4 method for signature 'haplohh'
nhap(x)
## S4 method for signature 'haplohh'
hap.names(x)
x |
an object of this class. |
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.
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.
showClass("haplohh")