Revise get_phenotype to use map rather than foreach
Generic version of get_phenotype, as get_column