Prediction of protein-protein and protein-ligand interactions from protein structures