Comparative analysis of permanent and transient domain-domain interactions in multi-domain proteins