Title: | Clustering Genotypes in Haplotypes |
---|---|
Description: | One haplotype is a combination of SNP (Single Nucleotide Polymorphisms) within the QTL (Quantitative Trait Loci). clusterhap groups together all individuals of a population with the same haplotype. Each group contains individual with the same allele in each SNP, whether or not missing data. Thus, clusterhap groups individuals, that to be imputed, have a non-zero probability of having the same alleles in the entire sequence of SNP's. Moreover, clusterhap calculates such probability from relative frequencies. |
Authors: | Gaston Quero <[email protected]> and Sebastian Simondi <[email protected]> , with contributions from Victoria Bonnecarrere and Lucia Gutierrez |
Maintainer: | Gaston Quero <[email protected]> |
License: | GPL-3 |
Version: | 0.1 |
Built: | 2025-02-06 03:40:50 UTC |
Source: | https://github.com/cran/clusterhap |
This function groups together all individuals of a population with the same haplotype.
clusterhap(x, Print = FALSE)
clusterhap(x, Print = FALSE)
x |
a data.frame that should be loaded with read.table function. Each row represents the individuals while each column represents the markers. The first column contains the names of the genotypes. |
Print |
option for print the clusterhap result. The default is FALSE |
Each group contains individual with the same allele in each SNP, whether or not missing data.
a matrix with the haplotypes
Gaston Quero, Sebastian Simondi, Victoria Bonnecarrere, Lucia Gutierrez.
read.table function
#### Simple simulated data data("sim_qtl") clusterhap(sim_qtl, Print=TRUE) ### Real experimental data ## Not run: data(rice_qtl) clusterhap(rice_qtl) ## End(Not run)
#### Simple simulated data data("sim_qtl") clusterhap(sim_qtl, Print=TRUE) ### Real experimental data ## Not run: data(rice_qtl) clusterhap(rice_qtl) ## End(Not run)
The data is a QTL for rice Grain Quality
rice_qtl
rice_qtl
A data frame 326 rows (individual) and 38 variables (SNPs)
Uruguayan Rice Breeding GWAS (URiB)
A dataset containing the marcadores
sim_qtl
sim_qtl
A data frame 5 rows (individuals) and 7 variables (snps)
simulated data