def check_if_complex_is_complete(df): complex_id = df.complex_id.iloc[0] return is_complete_complex(complex_id, df.protein_id)
def filter_complete_complexes(df): protein_ids = set(df.protein_id_1).union(set(df.protein_id_2)) return is_complete_complex(df.complex_id.iloc[0], protein_ids)