plot_haplofreq: Plot and filter markers based on haplotype frequency vs...

View source: R/plot_haplofreq.R

plot_haplofreqR Documentation

Plot and filter markers based on haplotype frequency vs position

Description

Plot and filter markers based on haplotype frequency vs position

Usage

plot_haplofreq(geno, thresh = 0.1, span = 0.3)

Arguments

geno

haplotype dosage matrix (markers x indiv)

thresh

threshold for removing markers (see Details)

span

parameter to control degree of smoothing for spline (higher = less smooth)

Details

This functions works for mapping populations derived from two inbred founders. The geno matrix must be coded based on the dosage (0,1,2) of one founder haplotype.

Markers are removed if their residual to the fitted spline exceeds thresh. Markers are assumed to be ordered. Function designed to be used for one chromosome.

Value

List containing

outliers

index of outlier markers

plot

ggplot2 variable


jendelman/MapRtools documentation built on April 12, 2025, 12:46 p.m.