get_geno: Get genotypes from haplotypes

Description Usage Arguments Value Examples

View source: R/utils.R

Description

Get genotypes from haplotypes

Usage

1
get_geno(hap, genotypes = c("NN", "NP", NA))

Arguments

hap

haplotypes data with format: X/Y:n,m

genotypes

genotypes to assign based on homozygosity, c(Homozygous, Heterozygous, NULL); NULL haplotypes ./.:0

Value

genotype

Examples

1
2
3
get_geno("./.:0")
get_geno("4/2:34,24")
get_geno("2/2:71")

villegar/RhAMPseq documentation built on Aug. 12, 2021, 8:47 p.m.