hap_result: generate hap results

View source: R/vcf2hap.R

hap_resultR Documentation

generate hap results

Description

summarize hap result and output a txt file

Usage

hap_result(hap, hapPrefix = "H", out = FALSE, file = "hapResult.txt")

Arguments

hap

hap

hapPrefix

prefix of hap names

out

write hap results to a txt file

file

file path

Value

data.frame, first four rows are fixed to meta information: CHR, POS, INFO, ALLELE Hap names were placed in col1, Accessions and freqs were placed at the last two cols.

Examples

data("quickHap_test")
# Your vcf data should imported by `import_vcf()` here
hap <- get_hap(vcf, hyb_remove = TRUE, na.drop =TRUE)
hapResult <- hap_result(hap)
plotHapTable(hapResult)

ZhangRenL/quickHapR documentation built on June 17, 2022, 12:04 a.m.