Lähetä tietue sähköpostilla: Construction of endophenotypes for complex diseases in the presence of heterogeneity