Repository 's_mart'
hg clone https://toolshed.g2.bx.psu.edu/repos/yufei-luo/s_mart

Changeset 41:e57682cd6997 (2013-05-30)
Previous changeset 40:cd852f3e04ab (2013-05-30) Next changeset 42:2abc37c27164 (2013-09-18)
Commit message:
Uploaded
modified:
SMART/Java/Python/cleaning/GffCleaner.py
b
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()