functioninArray
Information
inArrayChecks 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–trueifxmatches any entry invec,falseotherwise.
This function is inlined for performance and used by PGx phenotype mapping routines to classify alleles.
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| String | x | ||
| String[:] | vec |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Boolean | hit |