Message-passing algorithms for the prediction of protein domain interactions from protein-protein interaction data