def parse_chocophlan_gene_indexes(annotation_gene_index):
    """ Parse the chocophlan gene index input """
    chocophlan_gene_indexes = []
    for index in annotation_gene_index.split(','):
        if ':' in index:
            split_index = index.split(':')
            start = split_index[0]
            end = split_index[1]
            try:
                start = int(start)
                end = int(end)
                chocophlan_gene_indexes += range(start, end)
            except ValueError:
                pass
        else:
            try:
                index = int(index)
                chocophlan_gene_indexes.append(index)
            except ValueError:
                pass
    return chocophlan_gene_indexes
