def remove_flanking_scores(all_scores, flank_length):
    """ Returns center scores, removing the flanking ones

    Parameters
    ----------
    all_scores: array_like
        An array containting all scores
    flank_length: int
        Number of flanking sites on each side
    """
    assert flank_length > 0
    return all_scores[flank_length:-flank_length]
