Genetic approach to the study of heterogeneity of affective disorders