Learn R Programming

hsphase (version 3.0.0)

Phasing, Pedigree Reconstruction, Sire Imputation and Recombination Events Identification of Half-sib Families Using SNP Data

Description

Identification of recombination events, haplotype reconstruction, sire imputation and pedigree reconstruction using half-sib family SNP data.

Copy Link

Version

Install

install.packages('hsphase')

Monthly Downloads

273

Version

3.0.0

License

GPL-3

Maintainer

Mohammad Ferdosi

Last Published

February 17th, 2026

Functions in hsphase (3.0.0)

.prCalus

Calus-style recursive clustering of individuals using an OH matrix
.maf

Calculate minor allele frequency (MAF)
.ptr2por

Convert a two-row haplotype per individual to a one-row representation
.o2tH

Convert a one-row haplotype to a two-row haplotype
.rpohhsphase

Reconstruct half-sib groups by recursive clustering with a recombination stop rule
.phfnoGenotype

Phase half-sib paternal haplotype using blocks and sire haplotypes (no offspring genotype needed)
.prManual

Manual recursive clustering using an OH matrix and a fixed threshold
.prSimple

Simple recursive clustering using an OH matrix with a linear threshold rule
.ibdCluster

Cluster individuals by local IBD-like similarity in sliding windows
.simulateHalfsib

Simulate Half-Sibling Genotypes
hsphase-package

Phasing, Pedigree Reconstruction, Sire Imputation and Recombination Events for Half-sib Families
hss

Half-sib Family Splitter
imageplot

Image Plot of Blocking Structure
map

Example Map File
impute

Impute of Low Density SNP Marker to High Density (Paternal Strand)
hh

Heatmap of Half-sibs
pm

Probability Matrix
genotypes

Example Genotype Data Set
fixSW

Fixing Switch Errors
phf

Half-sib Family Phasing
ohplot

Opposing Homozygotes Plot
pogc

Parent-Offspring Group Constructor
ohd

Opposing Homozygote Detection
recombinations

Recombination Number
ohg

Matrix of Opposing Homozygotes
para

Parallel Analysis of Data
rplot

Recombination Plot
rpoh

Reconstruct Pedigree Based on Matrix of Opposing Homozygotes
ssp

Sire Imputation and Phasing
switchDetector

Switch Detector
pedigree

Example Pedigree
pedigreeNaming

Fix Pedigree Errors
readGenotype

Read and Check the Genotype File
hbp

Haplotype Blocks of Phased Data
groupMatSingle

Grouping a Half-sib Family
cs

Chromosome Splitter
.fastdist

Calculate Genotypic Distances
.hblock

Build haplotype blocks from a BMH result matrix (native routine wrapper)
.fixRotation

Fix strand label rotation across consecutive block-structure columns
.fillGap

Fill gaps in a paternal strand vector (native routine wrapper)
co

Crossover Detection
.fixBothStrand

Fix conflicting allele assignments on both haplotype strands
aio

All-in-one Phasing
addSwitch

Add Switches
bmh

Block Partitioning