Last chance! 50% off unlimited learning
Sale ends in
Calculate estimated heterozygosity for each individual from raw SNP genotypes
calc_raw_het(cross, by = c("individual", "marker"))
A vector of heterozygosities, one for each individual or marker.
Object of class "cross2"
. For details, see the
R/qtl2 developer guide.
Indicates whether to summarize by founder strain ("individual"
) or by marker.
recode_snps()
, calc_raw_maf()
, calc_raw_founder_maf()
, calc_raw_geno_freq()
, calc_het()
if (FALSE) {
# load example data and calculate genotype probabilities
file <- paste0("https://raw.githubusercontent.com/rqtl/",
"qtl2data/main/DOex/DOex.zip")
DOex <- read_cross2(file)
DOex_het <- calc_raw_het(DOex)
}
Run the code above in your browser using DataLab