Fix modality calculations

Modality calculations were not being calculated correctly so everything was assigned a modality of `bimodal`, which is no good. Also increased the minimum number of samples to be 50% of the samples in the phenotype group.