View source: R/genoconverters.R
isHet | R Documentation |
Takes a vector of genotype scores (each made up of a two character string)
and a character class to match against, and returns a logical value depending
on whether the two characters match (FALSE
) or not (TRUE
).
isHet(score, characterClass = "[[:alnum:]]", nonMatch = "false")
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 |
nonMatch |
c("false", "error") a string defining whether to return false or throw an error if scores do not match characterClass. |
isHet("AA")
isHet(c("AA", "AB", "BB"))
isHet("GT", "[AB]")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.