Update object of class haplohh-class
constructed by rehh versions up to version 2.0.4.
update_haplohh(haplohh)
an object of an old version of haplohh-class
.
This function is intended to update haplohh
objects
that have been built by rehh versions up to 2.0.4. These objects cannot
be used in functions of the current version.
The following changes have been made to the class definition:
The internal representation of the haplotype matrix followed the encoding
0 missing value
1 ancestral allele
2 derived allele
and has been replaced by a vcf-like encoding:
NA
missing value
0 ancestral allele
1 derived allele.
Furthermore the slots nsnp
, snp.name
and nhap
have been removed
and slot position
renamed to positions
.
An update of an old haplohh
object is done as follows:
new_haplohh = update_haplohh(old_haplohh)
.