c0c91a79ea88b69f8863ace5a7f3f19dea4528ba wong Mon Jan 9 00:07:26 2012 -0800 no more missed duplicated comments diff --git python/lib/ucscgenomics/ucscUtils.py python/lib/ucscgenomics/ucscUtils.py index c540fe2..b155e04 100644 --- python/lib/ucscgenomics/ucscUtils.py +++ python/lib/ucscgenomics/ucscUtils.py @@ -111,22 +111,26 @@ elif align1[i] != align2[i]: consensus.append(align1[i]) consensus.append(align2[i]) before = list() if before_i != 0: before.extend(list1[0:before_i]) if before_j != 0: before.extend(list2[0:before_j]) if after_i < len(list1): consensus.extend(list1[after_i:]) if after_j < len(list2): consensus.extend(list2[after_j:]) before.extend(consensus) setcon = list() + p = re.compile('^#') for i in before: + if p.match(i): + setcon.append(i) + continue if i in setcon: continue else: setcon.append(i) return setcon