def adapt_hbond(hbond, res_list):
    """
    Transforms hbond to a list of tuple (#residue, neighbor)
    """
    list = []
    for pos, val in enumerate(hbond):
        if val != - 1:
            list.append((res_list[pos], res_list[val]))
    return list