From 824f6a6839cf97514e4cb925b787a24ad01825cc Mon Sep 17 00:00:00 2001 From: Nolan Woods Date: Wed, 4 Sep 2019 14:46:41 -0700 Subject: [PATCH] fix: update ids and include missing write param --- make_unique_id/make_unique_id.py | 4 ++++ 1 file changed, 4 insertions(+) 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 )