def _first_largest(scores):
    result = scores[0]
    for score, direction in scores[1:]:
        if score > result[0]:
            result = (score, direction)
    return result
Similar to max, but returns the first element achieving the high score
dataset/ETHPy150Open biocore/scikit-bio/skbio/alignment/_pairwise.py/_first_largest