def trim_leading(scores, threshold):
    """
    Trim low quality bases from the 5'-end of the sequence
    """
    threshold = abs(threshold)
    position = 0
    for position, basescore in enumerate(scores):
        if basescore >= threshold:
            break
    return position, 0
