added tdt and write table for phenotype data which includes missing data changed to -9