cln_haplo: Clean haplotypes

Description Usage Arguments Value Examples

View source: R/utils.R

Description

Search for haplotypes below a threshold for read length and set them to missing.

Usage

1
cln_haplo(hap, read_length = 5, missing = NA)

Arguments

hap

haplotype data with the format: X/Y:n,m.

read_length

minimum read length to keep haplotype.

missing

default value for haplotypes below the read_length.

Value

haplotype

Examples

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

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