Characterization and prediction of protein-protein interactions within and between complexes