def parse_FreqDist_interChr(self, f):
        """ Parse HOMER tagdirectory petag.FreqDistribution_1000 file to get inter-chromosomal interactions. """
        parsed_data = dict()
        firstline = True
        for l in f['f']:
            if firstline:
                firstline = False
                interChr = float(re.sub("\)", "", l.split(":")[1]))
            else:
                break
        parsed_data['interChr'] = interChr
        return parsed_data
def parse_FreqDist_interChr ( self , f ) : parsed_data = dict ( ) firstline = True for l in f [ 'f' ] : if firstline : firstline = False interChr = float ( re . sub ( "\)" , "" , l . split ( ":" ) [ 1 ] ) ) else : break parsed_data [ 'interChr' ] = interChr return parsed_data
Parse HOMER tagdirectory petag.FreqDistribution_1000 file to get inter-chromosomal interactions.