From 7b06d07c2cda13420e295e563613bdceceb4a9cc Mon Sep 17 00:00:00 2001 From: Eric Salomaki Date: Fri, 20 Oct 2023 08:52:57 -0400 Subject: [PATCH] Update prep_new_db.py --- prep_new_db.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/prep_new_db.py b/prep_new_db.py index 45519f0..56a84b9 100644 --- a/prep_new_db.py +++ b/prep_new_db.py @@ -113,8 +113,10 @@ def make_metadata(masterdbpath, outdir, lines): for mline in mlines: uniqid = mline.split('\t')[0] for line in lines: - if line == uniqid: + if line == uniqid and mline not in newmd: newmd.append(mline) + else: + pass with open(outdir + '/metadata.tsv', 'w') as metaout: for line in newmd: metaout.write(line + '\n')