giving preference to use sample names from phenodata, when given