def _create_index_for_annotation_row(row):
    """Parse the row from annotation file to get chrom and positions.

    Parameters
    ----------
    row: pd.DataFrame row
         Row of annotation dataframe

    Returns
    -------
    index: array_like
           Array of 1-based positions on chromosome
    """
    coordinates = row["coordinate"].split(",")
    index = []
    for coordinate in coordinates:
        coordinate_start, coordinate_end = [int(x) for x in coordinate.split("-")]
        index += list(range(coordinate_start, coordinate_end + 1))
    return index