hotspot | R Documentation |
Count hotspots by pheno_group and pheno_type.
hotspot(map, peaks, peak_window = 1, minLOD = 5.5)
map |
list of genetic maps |
peaks |
data frame of peak information |
peak_window |
half-width of peak window in Mbp |
minLOD |
minimum LOD to include in count |
object of class hotspot as list of scan1
and map
objects.
Brian S Yandell, brian.yandell@wisc.edu
dirpath <- "https://raw.githubusercontent.com/rqtl/qtl2data/master/DOex"
# Read DOex example cross from 'qtl2data'
DOex <- qtl2::read_cross2(file.path(dirpath, "DOex.zip"))
DOex <- subset(DOex, chr = "2")
# Calculate genotype and allele probabilities
pr <- qtl2::calc_genoprob(DOex, error_prob=0.002)
# Summary of coefficients at scan peak
scan_pr <- qtl2::scan1(pr, DOex$pheno)
peaks <- summary(scan_pr, DOex$pmap)
hotspot(DOex$pmap, peaks)
# Select Sex and Cohort columns of covariates
analyses_tbl <- data.frame(pheno = "OF_immobile_pct", Sex = TRUE, Cohort = TRUE)
# Get hotspot (only one phenotype here).
out <- hotspot(DOex$pmap, peaks)
summary(out)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.