Partitioning of Functional Data for Understanding Heterogeneity in Psychiatric Conditions.