a dataset of genotypes with rownames of sample ID and column names of markers.
sep
allele separator in the imported genotype data. Note: when using the special character like "|", remember to protect it as "\|"(default).
Value
a dataframe of heterozygosity.0 is homozygous;1 is heterozygous. Each row denotes each individual; Each column denotes each locus.
Details
This function test the heterozygosity of each individuals at each locus.Output a table and Usually followed by write.csv(as.data.frame(y),file = "~/*.csv") to export the results.