ashaplotype: as.haplotype

ashaplotypeR Documentation

as.haplotype

Description

convert hapSummary or hapResult class into haplotype class (pegas)

Usage

as.haplotype(hap)

Arguments

hap

object of hapSummary or hapResult class

Value

haplotype class

Note

It's not advised for hapSummary or hapResult with indels, due to indels will convert to SNPs with equal length of each indel.

Examples

data("geneHapR_test")
hap <- as.haplotype(hapResult)
hapSummary <- hap_summary(hapResult)
hap <- as.haplotype(hapSummary)

geneHapR documentation built on May 29, 2024, 11:59 a.m.