def fit_to_db(self,chrom):
        """Fit the ith row to the db"""

        export_data=[chrom]
        for column in self.columns[1:]:
            element=self.table[chrom][column]
            if column=='rel_loc' or column=='rel_loc_cds': element=element[0]+element[1]
            if type(element)==list: element=str(element)[1:-1]+','
            try:
                export_data.append(abs(element))
            except __HOLE__:
                export_data.append(element)
                
        return export_data
dataset/ETHPy150Open taoliu/taolib/Assoc/tables.py/Summary.fit_to_db