def updateRepeatStatus(fN, fF, wigDir, chrom, strand): #load oRNAs NX = Nexus(fN, fF) NX.load(['repeat', 'tcc']) #load wig file for chrom, strand coord_value = cgWig.loadSingleWig(wigDir, chrom, strand, 'REPEAT') while NX.nextID(): oChrom, oStrand, start, end = bioLibCG.tccSplit(NX.tcc) if oChrom != chrom or oStrand != strand: continue NX.repeat = False for i in range(start, end + 1): if i in coord_value: NX.repeat = True break NX.save()