# HG changeset patch # User m-zytnicki # Date 1369897487 14400 # Node ID e57682cd6997c8f402dc70619a7c0013d8e03b3d # Parent cd852f3e04ab8aaed4539a363cda777186b9bbcb Uploaded diff -r cd852f3e04ab -r e57682cd6997 SMART/Java/Python/cleaning/GffCleaner.py --- a/SMART/Java/Python/cleaning/GffCleaner.py Thu May 30 03:03:34 2013 -0400 +++ b/SMART/Java/Python/cleaning/GffCleaner.py Thu May 30 03:04:47 2013 -0400 @@ -127,6 +127,11 @@ if line[0] == ">": break parsedLine = ParsedLine(line, cpt) if self.acceptedTypes == None or parsedLine.type in self.acceptedTypes: + if parsedLine.id in self.lines: + cpt = 1 + while "%s-%d" % (parsedLine.id, cpt) in self.lines: + cpt += 1 + parsedLine.id = "%s-%d" % (parsedLine.id, cpt) self.lines[parsedLine.id] = parsedLine progress.inc() progress.done()