format and write trait phenotype data to a relavant file..