def to_xls(self):
        
        columns=self.columns
        chroms=self.get_chroms()
        
        xlsout="# This file was generated by CEAS at %s.\n" %time.strftime("%H:%M:%S %a, %d %b %Y", time.localtime())
        xlsout+="# name: %s\n" %(self.get_name())
        xlsout+="# "+"\t".join(self.columns)+"\n"
        for chrom in chroms:
            elements=[chrom]
            for column in columns[1:5]: elements+=self[chrom][column]
            elements+=self[chrom]['rel_loc'][0]+self[chrom]['rel_loc'][1]+self[chrom]['rel_loc_cds'][0]+self[chrom]['rel_loc_cds'][1]+[self[chrom]['roi']]+[self[chrom]['chroms']]
            fm="%s\t" +"\t".join(["%1.5e"]*(len(elements)-1))+"\n"
            xlsout+=fm  %tuple(elements)            
        return xlsout.strip()
Registers 'run keyword' so that its arguments can be handled correctly.
dataset/ETHPy150Open taoliu/taolib/Assoc/tables.py/P.to_xls--crossover with--dataset/ETHPy150Open shellderp/sublime-robot-plugin/lib/robot/libraries/BuiltIn.py/register_run_keyword