calc_raw_het: Calculate estimated heterozygosity from raw SNP genotypes

View source: R/calc_raw_summaries.R

calc_raw_hetR Documentation

Calculate estimated heterozygosity from raw SNP genotypes

Description

Calculate estimated heterozygosity for each individual from raw SNP genotypes

Usage

calc_raw_het(cross, by = c("individual", "marker"))

Arguments

cross

Object of class "cross2". For details, see the R/qtl2 developer guide.

by

Indicates whether to summarize by founder strain ("individual") or by marker.

Value

A vector of heterozygosities, one for each individual or marker.

See Also

recode_snps(), calc_raw_maf(), calc_raw_founder_maf(), calc_raw_geno_freq(), calc_het()

Examples

## Not run: 
# 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)

## End(Not run)

rqtl/qtl2 documentation built on March 20, 2024, 6:35 p.m.