reduce_hap_code: Function to condense haplotype source information

View source: R/gene_dropping_functions.R

reduce_hap_codeR Documentation

Function to condense haplotype source information

Description

A function to condense haplotype source information. A string of 1's and 2's determinining which parental haplotype each allele of the desecendants haplotype came from are condensed. i.e. (111112222 becomes 1(5)2(4) but in matrix format) A list of two matrices is returned, one relating to the sire and one to the dam.

Usage

reduce_hap_code(sire_hap_info, dam_hap_info)

Arguments

sire_hap_info

A vector of 1's and 2's determining sire haplotype source information

dam_hap_info

A vector of 1's and 2's determining dam haplotype source information


simplydch/GeneDrop documentation built on July 8, 2024, 8:17 p.m.