Sharing information to reconstruct patient-specific pathways in heterogeneous diseases