recode_gametes: A function to assign each allele to a haplotype or an NA if...

View source: R/recode_gametes.R

recode_gametesR Documentation

A function to assign each allele to a haplotype or an NA if not enough information is known

Description

This function reads along each gametes and replaces its read (0 or 1) with the corresponding haplotype (h1 or h2) based on the allele in each donor haplotype; alternatively, the read may be replaced with an NA if not enough information was known for phasing

Usage

recode_gametes(dt, complete_haplotypes)

Arguments

dt

Input matrix of gamete reads

complete_haplotypes

Inferred donor haplotypes

Value

dt matrix of gametes coded by haplotype at each position


mccoy-lab/rhapsodi documentation built on July 27, 2022, 3:56 a.m.