implement a csv-based download of phenotypes.