def getGenotype(genotypeStr):
    """
    Return genotype index array from genotype string.
    Indices are separated by / or |

    e.g. '0/1' => ['0','1']
    """
    if '/' in genotypeStr:
        return genotypeStr.split('/')
    if '|' in genotypeStr:
        return genotypeStr.split('|')
    return [genotypeStr]
