def get_gene_lens(self, chrom=''):
        """Return the gene lengths"""
        
        # get chroms
        chroms=self.get_chroms()
        
        lengths=[]
        if chrom != '' and chroms in chrom: # a specific chromomosome is given
            lengths = map(lambda start, end: end - start, self[chrom]['txStart'], self[chrom]['txEnd'])
            return lengths
        elif chrom == '':   # all the chromosomes are considered
            for chrom in chroms:
                lengths+= map(lambda start, end: end - start, self[chrom]['txStart'], self[chrom]['txEnd'])
            return lengths
        else:
            return lengths
dataset/ETHPy150Open taoliu/taolib/Assoc/inout.py/GeneTable.get_gene_lens/swapped operands of `in`