Haplo: Haplo object construct

View source: R/Haplo.R

HaploR Documentation

Haplo object construct

Description

A Haplo object contains a collection of haplotypes, their frequency, and total count

Usage

Haplo(h, pi, count = NA)

Arguments

h

A haplotype matrix (matrix of characters with rows giving haplotypes)

pi

A numeric vector giving frequencies of haplotypes

count

The total coverage, may be NA if this is not well-defined

Details

A Haplo object is a list with elements h, pi, count, h_seq. h is a character matrix with rows giving haplotypes, pi is a numeric vector of frequencies, count is not currently used and h_seq is a characer vector of haplotypes (rows of h pasted).

Value

A Haplo object


SLeviyang/RegressHaplo documentation built on June 1, 2022, 10:48 p.m.