def add_row(self,chrom,elements):
        """Add a row to the table"""
        
        try:
            self[chrom]['coordinate'].append(elements[0])
            self[chrom]['promoter'].append(elements[1])
            self[chrom]['bipromoter'].append(elements[2])
            self[chrom]['downstream'].append(elements[3])
            self[chrom]['gene'].append(elements[4])
            self[chrom]['rel_loc'].append([elements[5],elements[6]])
            self[chrom]['rel_loc_cds'].append([elements[7],elements[8]])
            self[chrom]['roi'].append(elements[-1])
        except __HOLE__:
            raise Exception("Invalid table format: %s" %('\t'.join([chrom]+[str(e) for e in elements])))
dataset/ETHPy150Open taoliu/taolib/Assoc/tables.py/AnnotTable.add_row