functioninArray

Information

inArray

Checks membership of a string x in a string array vec. Returns true if an exact match is found in any element of vec, otherwise returns false.

Inputs:
x – the string to locate.
vec – the array of strings to search through.
Output:
hit – true if x matches any entry in vec, false otherwise.

This function is inlined for performance and used by PGx phenotype mapping routines to classify alleles.

Inputs

TypeNameDefaultDescription
Stringx
String[:]vec

Outputs

TypeNameDefaultDescription
Booleanhit