'expects a .pheno file in the extra_files_dir - ugh
note that R is wierd and adds the row.name in
the header so the columns are all wrong - unless you tell it not to.
A file can be written as
write.table(file=\'foo.pheno\',pData(foo),sep=\'   \',quote=F,row.names=F)'

def get_pheno(self, dataset):

    p = open(dataset.metadata.pheno_path, 'r').readlines()
    if (len(p) > 0):
        head = p[0].strip().split(' DCTB ')
        line1 = p[1].strip().split(' DCTB ')
        if (len(head) < len(line1)):
            head.insert(0, 'ChipFileName')
            p[0] = ' DCTB '.join(head)
    else:
        p = []
    return '\n'.join(p)
