diff --git a/make_unique_id/make_unique_id.py b/make_unique_id/make_unique_id.py index d9f3ed1..e6edea0 100644 --- a/make_unique_id/make_unique_id.py +++ b/make_unique_id/make_unique_id.py @@ -39,12 +39,16 @@ def makeUnique(seq): seq.name += suffix else: count += 1 + + ids[seq.id] = count + return seq paths = iter(sys.argv[2:]) for input, output in zip(paths, paths): SeqIO.write( map(makeUnique, SeqIO.parse(input, format)), + output, format )