haplo_cluster: Cluster parental haplotypes

View source: R/haplo_cluster.R

haplo_clusterR Documentation

Cluster parental haplotypes

Description

Cluster parental haplotypes

Usage

haplo_cluster(filename, marker, haplotypes = NULL)

Arguments

filename

Name of diaQTL_parents input file

marker

Either target marker or marker interval (see Details).

haplotypes

Vector of haplotype names (default is all)

Details

The argument marker can be either a single marker or vector of two markers. If a single marker, the function finds the smallest interval containing that marker such that the phased SNP haplotypes are all unique. If two markers are provided, that interval is used. Clustering utilizes hclust(method="average"). See also phased_parents for an additional visualization tool.

Value

List containing

haplo

Data frame of haplotypes

dendro

Dendrogram


jendelman/diaQTL documentation built on Jan. 27, 2024, 6:39 a.m.