isHomo: Checks genotype scores for homozygosity

Description Usage Arguments

Description

Checks genotype scores for homozygosity

Usage

1
isHomo(score, characterClass = "[[:alnum:]]", nonMatch = "false")

Arguments

score

A vector of genotype scores, each of which needs to be a two character string. Numeric values are converted to strings

characterClass

A regex character class to match against. If characters in score do not exist in the character class, an error will be returned

nonMatch

c("false", "error") a string defining whether to return false or throw an error if scores do not match characterClass.


alexwhan/genomap documentation built on May 10, 2019, 8:58 a.m.